Copy a lot of code from "Where am I" example at https://cgit.freedesktop.org/geoclue/plain/demo/where-am-i.c and log JSON once

This commit is contained in:
2024-02-22 21:43:10 -05:00
parent b779ee7a55
commit 8b5afd720e
2 changed files with 95 additions and 1 deletions

View File

@ -1,6 +1,6 @@
CC = clang
CFLAGS_GEOCLUE = -I/usr/include/libgeoclue-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -pthread
CFLAGS = -Wall -Wextra -g $(CFLAGS_GEOCLUE) -ljson-c -lcurl -lgeoclue-2
CFLAGS = -Wall -Wextra -g $(CFLAGS_GEOCLUE) -ljson-c -lcurl -lgeoclue-2 -lglib-2.0 -lgobject-2.0
SRCS = src/main.c
phonetrackd := phonetrackd