From 99b30f389ee0272b5d5d256d95c4e7ea278d3cd3 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Thu, 25 Feb 2016 18:37:01 +0800 Subject: [PATCH] Visual Studio builds: Move @GLIB_VERSION@ usage ... from glib-gen-srcs.[vsprops|props].in to glib-version-paths.[vsprops|props].in, and instead let autotools generate glib-version-paths.[vsprops|props] rather than glib-gen-srcs.[vsprops|props], as this will need to be referenced for other items as well, namely generating the .pc files which will become useful for introspection builds. --- build/win32/vs10/.gitignore | 2 +- build/win32/vs10/Makefile.am | 8 ++++---- .../{glib-gen-srcs.props.in => glib-gen-srcs.props} | 2 +- ...rsion-paths.props => glib-version-paths.props.in} | 12 ++++++++---- build/win32/vs9/.gitignore | 2 +- build/win32/vs9/Makefile.am | 6 +++--- ...lib-gen-srcs.vsprops.in => glib-gen-srcs.vsprops} | 2 +- ...n-paths.vsprops => glib-version-paths.vsprops.in} | 12 ++++++++---- configure.ac | 4 ++-- 9 files changed, 29 insertions(+), 21 deletions(-) rename build/win32/vs10/{glib-gen-srcs.props.in => glib-gen-srcs.props} (96%) rename build/win32/vs10/{glib-version-paths.props => glib-version-paths.props.in} (93%) rename build/win32/vs9/{glib-gen-srcs.vsprops.in => glib-gen-srcs.vsprops} (95%) rename build/win32/vs9/{glib-version-paths.vsprops => glib-version-paths.vsprops.in} (94%) diff --git a/build/win32/vs10/.gitignore b/build/win32/vs10/.gitignore index bfc6500dc..0bdbb5048 100644 --- a/build/win32/vs10/.gitignore +++ b/build/win32/vs10/.gitignore @@ -8,5 +8,5 @@ glib-compile-resources.vcxproj glib-compile-resources.vcxproj.filters glib-compile-schemas.vcxproj glib-compile-schemas.vcxproj.filters -glib-gen-srcs.props +glib-version-paths.props glib-install.props diff --git a/build/win32/vs10/Makefile.am b/build/win32/vs10/Makefile.am index a1b5a5ae6..75b948391 100644 --- a/build/win32/vs10/Makefile.am +++ b/build/win32/vs10/Makefile.am @@ -9,7 +9,7 @@ GENERATED_ITEMS = \ glib-compile-schemas.vcxproj.filters \ glib-compile-resources.vcxproj \ glib-compile-resources.vcxproj.filters \ - glib-gen-srcs.props \ + glib-version-paths.props \ glib-install.props MSVC10_HEADERS_LIST = glib.vs10.headers gobject.vs10.headers gio.vs10.headers @@ -46,10 +46,10 @@ EXTRA_DIST = \ gdbus.vcxproj \ gdbus.vcxproj.filters \ glib-install.vcxproj \ - glib-build-defines.props \ + glib-build-defines.props \ glib-install.propsin \ - glib-version-paths.props \ - glib-gen-srcs.props.in \ + glib-version-paths.props.in \ + glib-gen-srcs.props \ $(GENERATED_ITEMS) glib-install.props: $(top_srcdir)/build/win32/vs10/glib-install.propsin $(MSVC10_HEADERS_LIST) diff --git a/build/win32/vs10/glib-gen-srcs.props.in b/build/win32/vs10/glib-gen-srcs.props similarity index 96% rename from build/win32/vs10/glib-gen-srcs.props.in rename to build/win32/vs10/glib-gen-srcs.props index 5cc213fac..64a20eae9 100644 --- a/build/win32/vs10/glib-gen-srcs.props.in +++ b/build/win32/vs10/glib-gen-srcs.props @@ -8,7 +8,7 @@ copy ..\..\..\glib\glibconfig.h.win32 ..\..\..\glib\glibconfig.h copy ..\..\..\gmodule\gmoduleconf.h.win32 ..\..\..\gmodule\gmoduleconf.h copy ..\..\..\gio\gnetworking.h.win32 ..\..\..\gio\gnetworking.h - if exist $(PythonPath)\python.exe $(PythonPath)\python.exe ..\replace.py --action=replace-var --input=..\..\..\gobject\glib-mkenums.in --output=..\..\..\gobject\glib-mkenums --var=GLIB_VERSION --outstring=@GLIB_VERSION@ + if exist $(PythonPath)\python.exe $(PythonPath)\python.exe ..\replace.py --action=replace-var --input=..\..\..\gobject\glib-mkenums.in --output=..\..\..\gobject\glib-mkenums --var=GLIB_VERSION --outstring=$(GlibVersion) <_PropertySheetDisplayName>glibgensrcsprops diff --git a/build/win32/vs10/glib-version-paths.props b/build/win32/vs10/glib-version-paths.props.in similarity index 93% rename from build/win32/vs10/glib-version-paths.props rename to build/win32/vs10/glib-version-paths.props.in index 4663a84a3..693225262 100644 --- a/build/win32/vs10/glib-version-paths.props +++ b/build/win32/vs10/glib-version-paths.props.in @@ -2,9 +2,10 @@ 10 + @GLIB_VERSION@ + 2.0 ..\..\..\..\vs$(VSVer)\$(Platform) $(GlibEtcInstallRoot) - 2.0 lib -$(ApiVersion)-0 @@ -20,15 +21,18 @@ $(VSVer) + + $(GlibVersion) + + + $(ApiVersion) + $(GlibEtcInstallRoot) $(CopyDir) - - $(ApiVersion) - $(GlibLibtoolCompatibleDllPrefix) diff --git a/build/win32/vs9/.gitignore b/build/win32/vs9/.gitignore index 08775ac91..c23b304ce 100644 --- a/build/win32/vs9/.gitignore +++ b/build/win32/vs9/.gitignore @@ -3,5 +3,5 @@ gobject.vcproj gio.vcproj glib-compile-resources.vcproj glib-compile-schemas.vcproj -glib-gen-srcs.vsprops +glib-version-paths.vsprops glib-install.vsprops diff --git a/build/win32/vs9/Makefile.am b/build/win32/vs9/Makefile.am index dd97b7b60..1cc2b2159 100644 --- a/build/win32/vs9/Makefile.am +++ b/build/win32/vs9/Makefile.am @@ -4,7 +4,7 @@ GENERATED_ITEMS = \ gio.vcproj \ glib-compile-schemas.vcproj \ glib-compile-resources.vcproj \ - glib-gen-srcs.vsprops \ + glib-version-paths.vsprops \ glib-install.vsprops MSVC_HEADERS_LIST = glib.headers gobject.headers gio.headers @@ -28,8 +28,8 @@ EXTRA_DIST = \ glib-compile-resources.vcprojin \ glib-install.vcproj \ glib-build-defines.vsprops \ - glib-version-paths.vsprops \ - glib-gen-srcs.vsprops.in \ + glib-version-paths.vsprops.in \ + glib-gen-srcs.vsprops \ glib-install.vspropsin \ $(GENERATED_ITEMS) diff --git a/build/win32/vs9/glib-gen-srcs.vsprops.in b/build/win32/vs9/glib-gen-srcs.vsprops similarity index 95% rename from build/win32/vs9/glib-gen-srcs.vsprops.in rename to build/win32/vs9/glib-gen-srcs.vsprops index c317aa8ad..a4cf9f86c 100644 --- a/build/win32/vs9/glib-gen-srcs.vsprops.in +++ b/build/win32/vs9/glib-gen-srcs.vsprops @@ -23,6 +23,6 @@ /> diff --git a/build/win32/vs9/glib-version-paths.vsprops b/build/win32/vs9/glib-version-paths.vsprops.in similarity index 94% rename from build/win32/vs9/glib-version-paths.vsprops rename to build/win32/vs9/glib-version-paths.vsprops.in index 33b276c00..f69da65bc 100644 --- a/build/win32/vs9/glib-version-paths.vsprops +++ b/build/win32/vs9/glib-version-paths.vsprops.in @@ -8,6 +8,14 @@ Name="VSVer" Value="9" /> + + -