mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-23 13:05:34 +08:00
[ground_segment] use pkg-config for ivy-c if available
This commit is contained in:
@@ -39,9 +39,13 @@ CFLAGS += -Wall -fPIC
|
||||
GTK_CFLAGS = $(shell pkg-config gtk+-2.0 --cflags)
|
||||
GTK_LDFLAGS = $(shell pkg-config gtk+-2.0 --libs) $(shell pkg-config --libs ivy-glib) $(shell pcre-config --libs) -fPIC
|
||||
|
||||
# hack, abuse ivy-glib pkg-config info since there is no ivy.pc
|
||||
# fallback to ivy-glib pkg-config info if there is no ivy-c.pc
|
||||
IVY_INC = $(shell pkg-config --cflags-only-I ivy-c 2> /dev/null)
|
||||
IVY_LDFLAGS = $(shell pkg-config --libs ivy-c 2> /dev/null)
|
||||
ifeq ($(strip $(IVY_INC)),)
|
||||
IVY_INC = $(shell pkg-config --cflags-only-I ivy-glib)
|
||||
IVY_LDFLAGS = $(shell pkg-config --libs-only-L ivy-glib) -livy
|
||||
endif
|
||||
|
||||
# Optitrack specific librarys and includes
|
||||
NATNET_LIBRARYS = $(shell pkg-config glib-2.0 --libs) -lglibivy -lm $(shell pcre-config --libs)
|
||||
|
||||
Reference in New Issue
Block a user