From b7cb9f4c86b0fe5462ff5a80e17cde3e2ef7184c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 15 Apr 2014 21:50:35 +0200 Subject: C side implemention of w32gdi support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cf15470..d0023f3 100644 --- a/Makefile +++ b/Makefile @@ -37,7 +37,11 @@ COMMAND ?= blueshift PKGNAME ?= blueshift # Bindings for display server access +ifeq ($(FAKE_W32),y) +SERVER_BINDINGS ?= randr vidmode drm w32gdi +else SERVER_BINDINGS ?= randr vidmode drm +endif # Executable bindings for display server access EXECS ?= idcrtc iccprofile @@ -70,6 +74,11 @@ LIBS_iccprofile = xcb LIBS_randr = xcb-randr LIBS_vidmode = x11 xxf86vm LIBS_drm = libdrm +ifeq ($(FAKE_W32),y) +LIBS_w32gdi = $(LIBS_randr) +else +LIBS_w32gdi = +endif LIBS = python3 $(foreach B,$(SERVER_BINDINGS) $(EXECS),$(LIBS_$(B))) FLAGS = $$($(PKGCONFIG) --cflags $(LIBS)) -std=$(STD) $(WARN) $(OPTIMISE) -fPIC $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) @@ -114,6 +123,7 @@ bin/blueshift_iccprofile: obj/blueshift_iccprofile.o bin/blueshift_drm.so: LIBS_=LIBS_drm bin/blueshift_randr.so: LIBS_=LIBS_randr bin/blueshift_vidmode.so: LIBS_=LIBS_vidmode +bin/blueshift_w32gdi.so: LIBS_=LIBS_w32gdi bin/%.so: obj/%.o obj/%_c.o @mkdir -p bin $(CC) $(FLAGS) $$($(PKGCONFIG) --libs $($(LIBS_))) -shared -o $@ $^ @@ -130,6 +140,11 @@ obj/%.o: obj/%.c @mkdir -p obj $(CC) $(FLAGS) -c -o $@ $< +ifeq ($(FAKE_W32),y) +obj/blueshift_w32gdi_c.o: FLAGS+=-DFAKE_W32GDI obj/fake_w32gdi.o obj/fake_w32gdi.h +endif +obj/fake_w32gdi.o: obj/fake_w32gdi.h + # Build rules for Cython source files -- cgit v1.2.3-70-g09d2