@@ -94,18 +94,18 @@ libtwin.a_files-y += src/screen-ops.c
9494# Renderer implementations (draw-builtin.c includes all compositing operations)
9595libtwin.a_files-$(CONFIG_RENDERER_BUILTIN) += src/draw-builtin.c
9696libtwin.a_files-$(CONFIG_RENDERER_PIXMAN) += src/draw-pixman.c
97- libtwin.a_cflags-$(CONFIG_RENDERER_PIXMAN) += $(shell pkg-config -- cflags pixman-1)
97+ libtwin.a_cflags-$(CONFIG_RENDERER_PIXMAN) += $(call dep, cflags, pixman-1)
9898ifeq ($(CONFIG_RENDERER_PIXMAN ) , y)
99- TARGET_LIBS += $(shell pkg-config -- libs pixman-1)
99+ TARGET_LIBS += $(call dep, libs, pixman-1)
100100endif
101101
102102# Image loaders
103103
104104ifeq ($(CONFIG_LOADER_JPEG ) , y)
105105libtwin.a_files-y += src/image-jpeg.c
106106ifneq ($(CC_IS_EMCC ) , 1)
107- libtwin.a_cflags-y += $(shell pkg-config -- cflags libjpeg)
108- TARGET_LIBS += $(shell pkg-config -- libs libjpeg)
107+ libtwin.a_cflags-y += $(call dep, cflags, libjpeg)
108+ TARGET_LIBS += $(call dep, libs, libjpeg)
109109else
110110# Emscripten libjpeg port - flags needed for both compile and link
111111libtwin.a_cflags-y += -sUSE_LIBJPEG=1
@@ -116,8 +116,8 @@ endif
116116ifeq ($(CONFIG_LOADER_PNG ) , y)
117117libtwin.a_files-y += src/image-png.c
118118ifneq ($(CC_IS_EMCC ) , 1)
119- libtwin.a_cflags-y += $(shell pkg-config -- cflags libpng)
120- TARGET_LIBS += $(shell pkg-config -- libs libpng)
119+ libtwin.a_cflags-y += $(call dep, cflags, libpng)
120+ TARGET_LIBS += $(call dep, libs, libpng)
121121else
122122# Emscripten libpng port (includes zlib) - flags needed for both compile and link
123123libtwin.a_cflags-y += -sUSE_LIBPNG=1 -sUSE_ZLIB=1
@@ -156,8 +156,8 @@ BACKEND := none
156156ifeq ($(CONFIG_BACKEND_SDL ) , y)
157157BACKEND = sdl
158158libtwin.a_files-y += backend/sdl.c
159- libtwin.a_cflags-y += $(shell sdl2-config -- cflags)
160- TARGET_LIBS += $(shell sdl2-config -- libs)
159+ libtwin.a_cflags-y += $(call dep, cflags,sdl2 )
160+ TARGET_LIBS += $(call dep, libs,sdl2 )
161161endif
162162
163163ifeq ($(CONFIG_BACKEND_FBDEV ) , y)
@@ -171,8 +171,8 @@ ifeq ($(CONFIG_BACKEND_VNC), y)
171171BACKEND = vnc
172172libtwin.a_files-y += backend/vnc.c
173173libtwin.a_files-y += src/cursor.c
174- libtwin.a_cflags-y += $(shell pkg-config -- cflags neatvnc aml pixman-1)
175- TARGET_LIBS += $(shell pkg-config -- libs neatvnc aml pixman-1)
174+ libtwin.a_cflags-y += $(call dep, cflags, neatvnc aml pixman-1)
175+ TARGET_LIBS += $(call dep, libs, neatvnc aml pixman-1)
176176endif
177177
178178ifeq ($(CONFIG_BACKEND_HEADLESS ) , y)
@@ -252,11 +252,11 @@ font-edit_files-y = \
252252 tools/font-edit/font-edit.c
253253font-edit_includes-y := tools/font-edit
254254font-edit_cflags-y := \
255- $(call pkg-config- cflags,cairo) \
256- $(call sdl2- cflags)
255+ $(call dep, cflags,cairo) \
256+ $(call dep, cflags,sdl2 )
257257font-edit_ldflags-y := \
258- $(call pkg-config- libs,cairo) \
259- $(call sdl2- libs) \
258+ $(call dep, libs,cairo) \
259+ $(call dep, libs,sdl2 ) \
260260 -lm
261261
262262# Headless control tool
0 commit comments