diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2014-01-20 16:30:22 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2014-01-20 16:30:22 +0800 |
commit | 39703440cfd4e7949708266270e447b7b22c9347 (patch) | |
tree | cfa236428be0cf0467ea9684fb19555339043c88 /build/win32/vs9/g-ir-compiler.vcprojin | |
parent | 9c2a45a635d9cd6ac752245be4af6d3f00212349 (diff) | |
download | gobject-introspection-39703440cfd4e7949708266270e447b7b22c9347.tar.gz |
Rework The Visual Studio 2008 Build Process
This patch makes the build of G-I on Visual Studio 2008 into a two-step
process, as it would make it clearer and easier to the one building G-I by:
-Splitting up the property sheets into multiple parts, where pre-configured
code (which is currently shipped with the tarball) is copied using custom
build steps, so that they can be re-copied when they are updated. This
also removes the need for setting environment variables before launching
the Visual Studio Project to build the G-I DLL, the tools written in C and
the _giscanner Python2 module. The Python2 paths (set to Python 2.7.x)
are now set in a property sheet, which can be updated quite easily, if
needed.
-Use a set of NMake Makefiles to build the introspection files for GLib,
and also the .gir's that are shipped with G-I, and make it clear to people
what things are needed to build the introspection files.
-Standardizing across the board that we now use $(ApiVersion) for the .lib
files and the "installation" of headers, etc.
Similar updates to the Visual Studio 2010 files will follow later.
Diffstat (limited to 'build/win32/vs9/g-ir-compiler.vcprojin')
-rw-r--r-- | build/win32/vs9/g-ir-compiler.vcprojin | 28 |
1 files changed, 8 insertions, 20 deletions
diff --git a/build/win32/vs9/g-ir-compiler.vcprojin b/build/win32/vs9/g-ir-compiler.vcprojin index f08b9195..b18648ff 100644 --- a/build/win32/vs9/g-ir-compiler.vcprojin +++ b/build/win32/vs9/g-ir-compiler.vcprojin @@ -22,16 +22,13 @@ <Configuration Name="Debug|Win32" ConfigurationType="1" - InheritedPropertySheets=".\gir.vsprops" + InheritedPropertySheets=".\gi-build-defines.vsprops" CharacterSet="2" > <Tool - Name="VCPreBuildEventTool" - /> - <Tool Name="VCCLCompilerTool" Optimization="0" - PreprocessorDefinitions="_DEBUG;FFI_BUILDING" + PreprocessorDefinitions="_DEBUG;$(FFIDefines)" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="3" @@ -51,20 +48,17 @@ <Configuration Name="Debug|x64" ConfigurationType="1" - InheritedPropertySheets=".\gir.vsprops" + InheritedPropertySheets=".\gi-build-defines.vsprops" CharacterSet="2" > <Tool - Name="VCPreBuildEventTool" - /> - <Tool Name="VCMIDLTool" TargetEnvironment="3" /> <Tool Name="VCCLCompilerTool" Optimization="0" - PreprocessorDefinitions="_DEBUG;FFI_BUILDING" + PreprocessorDefinitions="_DEBUG;$(FFIDefines)" MinimalRebuild="true" BasicRuntimeChecks="3" RuntimeLibrary="3" @@ -85,18 +79,15 @@ <Configuration Name="Release|Win32" ConfigurationType="1" - InheritedPropertySheets=".\gir.vsprops" + InheritedPropertySheets=".\gi-build-defines.vsprops" CharacterSet="2" WholeProgramOptimization="1" > <Tool - Name="VCPreBuildEventTool" - /> - <Tool Name="VCCLCompilerTool" Optimization="2" EnableIntrinsicFunctions="true" - PreprocessorDefinitions="FFI_BUILDING" + PreprocessorDefinitions="$(FFIDefines)" RuntimeLibrary="2" EnableFunctionLevelLinking="true" UsePrecompiledHeader="0" @@ -117,14 +108,11 @@ <Configuration Name="Release|x64" ConfigurationType="1" - InheritedPropertySheets=".\gir.vsprops" + InheritedPropertySheets=".\gi-build-defines.vsprops" CharacterSet="2" WholeProgramOptimization="1" > <Tool - Name="VCPreBuildEventTool" - /> - <Tool Name="VCMIDLTool" TargetEnvironment="3" /> @@ -134,7 +122,7 @@ EnableIntrinsicFunctions="true" EnableMinimalRebuild="true" WholeProgramOptimization="false" - PreprocessorDefinitions="FFI_BUILDING" + PreprocessorDefinitions="$(FFIDefines)" RuntimeLibrary="2" EnableFunctionLevelLinking="true" UsePrecompiledHeader="0" |