diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2017-02-20 15:34:13 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2017-02-20 15:34:13 +0800 |
commit | da2b1d2380e4da05605498c4259375b822b86eda (patch) | |
tree | fe90e4db69c430e5d2342f1d52f841e319a4976b /win32/gi-introspection-msvc.mak | |
parent | 8ab398d23a1606bc4ab5a0888fc2e5190bfa641d (diff) | |
download | gobject-introspection-da2b1d2380e4da05605498c4259375b822b86eda.tar.gz |
MSVC builds: "Install" test sources like autotools builds
This makes sure that all the test sources that the autotools builds
install are "installed" by the Visual Studio builds as well.
For doing this, move the generation of everything.[c|h] to
gi-introspection-msvc.mak as we need to generate them for all builds, not
just during building the tests.
Diffstat (limited to 'win32/gi-introspection-msvc.mak')
-rw-r--r-- | win32/gi-introspection-msvc.mak | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/win32/gi-introspection-msvc.mak b/win32/gi-introspection-msvc.mak index 7a87f197..78ca3958 100644 --- a/win32/gi-introspection-msvc.mak +++ b/win32/gi-introspection-msvc.mak @@ -49,8 +49,16 @@ built_install_typelibs = \ Gio-$(GLIB_APIVERSION).typelib \ GIRepository-$(GLIB_APIVERSION).typelib +generarated_test_srcs = everything.c everything.h + !if "$(BUILD_INTROSPECTION)" == "TRUE" -all: setgirbuildenv $(built_install_girs) $(built_install_typelibs) $(bundled_girs) $(bundled_typelibs) msg_cairo +all: setgirbuildenv \ + $(generarated_test_srcs) \ + $(built_install_girs) \ + $(built_install_typelibs) \ + $(bundled_girs) \ + $(bundled_typelibs) \ + msg_cairo !include gi-setenv-msvc.mak @@ -153,6 +161,14 @@ $(bundled_typelibs): cairo-1.0.gir $(bundled_girs) @-echo Compiling the bundled $*.gir that came with the GobjectIntrospection package... @-$(G_IR_COMPILER_CURRENT) --includedir=. --debug --verbose $*.gir -o $@ +# Rules for source code generation +$(generarated_test_srcs): + $(PYTHON) $(G_IR_SCANNER_CURRENT) -I$(TOP_SRCDIR) \ + --generate-typelib-tests=Everything,everything.h,everything.c \ + --function-decoration=_GI_TEST_EXTERN \ + --include-first-in-src=config.h \ + --include-last-in-header=gitestmacros.h + msg_cairo: @-echo. @-echo ************* Note *********************************** @@ -190,5 +206,6 @@ clean: @-del /f/q gio_list @-del /f/q gobject_list @-del /f/q glib_list + @-del /f/q $(generarated_test_srcs) @ if exist __pycache__ rmdir /s /q __pycache__ @-del /f/q *.pyc |