From 5879cf0c50cecded79224b5207be9a83c204ccad Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 5 Mar 2021 19:18:09 +0100 Subject: Fix support for fake methods MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- mk/method-quartz-cg=fake.mk | 7 +++++-- mk/method-quartz-cg=yes.mk | 3 ++- mk/method-w32-gdi=fake.mk | 7 +++++-- mk/method-w32-gdi=yes.mk | 3 ++- 4 files changed, 14 insertions(+), 6 deletions(-) (limited to 'mk') diff --git a/mk/method-quartz-cg=fake.mk b/mk/method-quartz-cg=fake.mk index 496ac8a..0c55278 100644 --- a/mk/method-quartz-cg=fake.mk +++ b/mk/method-quartz-cg=fake.mk @@ -1,3 +1,6 @@ -HDR_QUARTZ_GC = method-quartz-cg.h -PARAMS_QUARTZ_GC = LIBGAMMA_METHOD_QUARTZ_CORE_GRAPHICS quartz_cg -1 rampsf +include mk/method-quartz-cg=yes.mk +HDR_QUARTZ_GC = fake-quartz-cg.h method-quartz-cg.h +OBJ_FAKE_QUARTZ_GC = fake-quartz-cg.o CPPFLAGS_QUARTZ_GC = -DHAVE_LIBGAMMA_METHOD_QUARTZ_CORE_GRAPHICS -DFAKE_LIBGAMMA_METHOD_QUARTZ_CORE_GRAPHICS +CFLAGS_QUARTZ_GC = +LDFLAGS_QUARTZ_GC = diff --git a/mk/method-quartz-cg=yes.mk b/mk/method-quartz-cg=yes.mk index cb079cf..540c23e 100644 --- a/mk/method-quartz-cg=yes.mk +++ b/mk/method-quartz-cg=yes.mk @@ -20,4 +20,5 @@ OBJ_QUARTZ_GC =\ libgamma_quartz_cg_crtc_restore.o\ libgamma_quartz_cg_get_crtc_information.o\ libgamma_quartz_cg_crtc_get_gamma_rampsf.o\ - libgamma_quartz_cg_crtc_set_gamma_rampsf.o + libgamma_quartz_cg_crtc_set_gamma_rampsf.o\ + $(OBJ_FAKE_QUARTZ_GC) diff --git a/mk/method-w32-gdi=fake.mk b/mk/method-w32-gdi=fake.mk index fd068a8..256404e 100644 --- a/mk/method-w32-gdi=fake.mk +++ b/mk/method-w32-gdi=fake.mk @@ -1,3 +1,6 @@ -HDR_W32_GDI = method-w32-gdi.h -PARAMS_W32_GDI = LIBGAMMA_METHOD_W32_GDI w32_gdi 16 ramps16 +include mk/method-w32-gdi=yes.mk +HDR_W32_GDI = fake-w32-gdi.h method-w32-gdi.h +OBJ_FAKE_W32_GDI = fake-w32-gdi.o CPPFLAGS_W32_GDI = -DHAVE_LIBGAMMA_METHOD_W32_GDI -DFAKE_LIBGAMMA_METHOD_W32_GDI +CFLAGS_W32_GDI = +LDFLAGS_W32_GDI = diff --git a/mk/method-w32-gdi=yes.mk b/mk/method-w32-gdi=yes.mk index 3f62a2d..1f04c43 100644 --- a/mk/method-w32-gdi=yes.mk +++ b/mk/method-w32-gdi=yes.mk @@ -15,4 +15,5 @@ OBJ_W32_GDI =\ libgamma_w32_gdi_crtc_restore.o\ libgamma_w32_gdi_get_crtc_information.o\ libgamma_w32_gdi_crtc_get_gamma_ramps16.o\ - libgamma_w32_gdi_crtc_set_gamma_ramps16.o + libgamma_w32_gdi_crtc_set_gamma_ramps16.o\ + $(OBJ_FAKE_W32_GDI) -- cgit v1.2.3-70-g09d2