[gobject-introspection] MSVC Builds: Define HAVE_CONFIG_H for Tests



commit 733a444109d7b4b0e64b61c4b7f6aa320e099f25
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Tue Mar 10 16:14:36 2015 +0800

    MSVC Builds: Define HAVE_CONFIG_H for Tests
    
    We need to include config.h for the tests so that the test DLLs will be
    built with the symbols/functions properly exported.

 build/gi-tests-msvc.mak |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/build/gi-tests-msvc.mak b/build/gi-tests-msvc.mak
index 8d25c12..f44b3bc 100644
--- a/build/gi-tests-msvc.mak
+++ b/build/gi-tests-msvc.mak
@@ -5,7 +5,7 @@
 !include gi-build-common-msvc.mak
 
 BASE_GLIB_LIBS = gio-$(GLIB_APIVERSION).lib gobject-$(GLIB_APIVERSION).lib gmodule-$(GLIB_APIVERSION).lib 
glib-$(GLIB_APIVERSION).lib
-CFLAGS = $(CFLAGS_ADD) /I.. /W3 /we4013 /FImsvc_recommended_pragmas.h
+CFLAGS = $(CFLAGS_ADD) /I.. /W3 /we4013 /FImsvc_recommended_pragmas.h /DHAVE_CONFIG_H
 LDFLAGS = /link $(LDFLAGS_ARCH) $(BASE_GLIB_LIBS)
 LDFLAGS_DLL = /link $(LDFLAGS_ARCH) /DLL /out:$@ /implib:$*-$(GI_APIVERSION).lib $(BASE_GLIB_LIBS)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]