diff options
Diffstat (limited to 'build/win32/vs9/gir.vspropsin')
-rw-r--r-- | build/win32/vs9/gir.vspropsin | 167 |
1 files changed, 167 insertions, 0 deletions
diff --git a/build/win32/vs9/gir.vspropsin b/build/win32/vs9/gir.vspropsin new file mode 100644 index 00000000..60db0e6c --- /dev/null +++ b/build/win32/vs9/gir.vspropsin @@ -0,0 +1,167 @@ +<?xml version="1.0" encoding="Windows-1252"?> +<VisualStudioPropertySheet + ProjectType="Visual C++" + Version="8.00" + Name="giprops" + OutputDirectory="$(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin" + IntermediateDirectory="$(SolutionDir)$(ConfigurationName)\$(PlatformName)\obj\$(ProjectName)\" + > + <Tool + Name="VCCLCompilerTool" + AdditionalIncludeDirectories="..\..\..;..\..\..\girepository;$(GlibEtcInstallRoot)\include;$(GlibEtcInstallRoot)\include\glib-2.0;$(GlibEtcInstallRoot)\lib\glib-2.0\include" + PreprocessorDefinitions="HAVE_CONFIG_H;WIN32" + ForcedIncludeFiles="msvc_recommended_pragmas.h" + /> + <Tool + Name="VCLinkerTool" + AdditionalDependencies="gio-2.0.lib gobject-2.0.lib gmodule-2.0.lib gthread-2.0.lib glib-2.0.lib" + AdditionalLibraryDirectories="$(GlibEtcInstallRoot)\lib" + /> + <Tool + Name="VCPreBuildEventTool" + CommandLine=" +if not exist ..\..\..\config.h copy ..\..\..\config.h.win32 ..\..\..\config.h
 +if not exist ..\..\..\tools\g-ir-scanner copy ..\..\..\tools\g-ir-scanner.in ..\..\..\tools\g-ir-scanner
 +if not exist ..\..\..\tools\g-ir-doc-tool copy ..\..\..\tools\g-ir-doc-tool.in ..\..\..\tools\g-ir-doc-tool
 +if not exist ..\..\..\tools\g-ir-annotation-tool copy ..\..\..\tools\g-ir-annotation-tool.in ..\..\..\tools\g-ir-annotation-tool
 +" + /> + <UserMacro + Name="GlibEtcInstallRoot" + Value="$(SolutionDir)\..\..\..\..\vs9\$(PlatformName)" + /> + <UserMacro + Name="VSVER" + Value="9" + /> + <UserMacro + Name="BASE_GI_DIR" + Value="$(SolutionDir)\..\..\.." + /> + <UserMacro + Name="CopyDir" + Value="$(GlibEtcInstallRoot)" + /> + <UserMacro + Name="GIApiVersion" + Value="1.0" + /> + <UserMacro + Name="DefDir" + Value="$(SolutionDir)$(ConfigurationName)\$(PlatformName)\obj\$(ProjectName)" + /> + <UserMacro + Name="GenerateGIRDef" + Value=" + echo EXPORTS > $(DefDir)\girepository.def
 + cl -EP ..\..\..\girepository\girepository.symbols >> $(DefDir)\girepository.def
 + " + /> + <UserMacro + Name="GenEverythingH" + Value=" +if exist ..\..\..\tests\everything.h goto DONE_GEN_EVERYTHING_C
 +cd ..\..\..\tests
 +set PATH=$(GlibEtcInstallRoot)\bin;$(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin;%PYTHONDIR%;%PATH%
 +set PYTHONPATH=$(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin;$(BASE_GI_DIR)
 +set UNINSTALLED_INTROSPECTION_SRCDIR=$(BASE_GI_DIR)
 +python ..\tools\g-ir-scanner --verbose -I. --add-include-path=..\ --add-include-path=..\gir --generate-typelib-tests=Everything,everything.h,everything.c
 +cd $(SolutionDir)
 +:DONE_GEN_EVERYTHING_C
 + " + /> + <UserMacro + Name="GenerateGIR" + Value=" +@echo off
 +set CC=cl
 +if "$(MINGWDIR)" == "" goto ERR_NOGCC
 +if "$(PYTHONDIR)" == "" goto ERR_NOPYPATH
 +if "$(PKG_CONFIG_PATH)" == "" goto ERR_NOPKGCONFIG
 + +set PYTHONPATH=$(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin;$(BASE_GI_DIR)
 +set UNINSTALLED_INTROSPECTION_SRCDIR=$(BASE_GI_DIR)
 +set PATH=$(GlibEtcInstallRoot)\bin;$(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin;$(PATH);$(PYTHONDIR);$(MINGWDIR)\bin
 +set LIB=$(GlibEtcInstallRoot)\lib;$(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin;$(LIB);$(PYTHONDIR)\libs
 +set INCLUDE=$(GlibEtcInstallRoot)\include;$(GlibEtcInstallRoot)\lib\glib-2.0\include;$(INCLUDE);$(PYTHONDIR)\include
 + +set PLAT=$(PlatformName)
 +set CONF=$(ConfigurationName)
 +set BASEDIR=$(GlibEtcInstallRoot)
 +set VSVER=$(VSVER)
 + +cd ..
 +call gengir.bat
 +cd .\vs$(VSVER)
 +goto DONE
 + +:ERR_NOGCC
 +echo You need a Windows GCC installation to preprocess the headers to generate .gir files
 +echo Please set MINGWDIR accordingly before launching the Project
 +goto DONE
 + +:ERR_NOPYPATH
 +echo You need a Python installation to build the Python module and run the Python scripts to generate .gir files
 +echo The Python installation needs to correspond to the configuration of your build, i.e. Win32 or x64
 +echo Please set PYTHONDIR accordingly before launching the Project
 +goto DONE
 + +:ERR_NOPKGCONFIG
 +echo You need pkg-config and need to set PKG_CONFIG_PATH to point to pkgconfig (.pc) files to generate .gir files
 +echo Please set PKG_CONFIG_PATH accordingly before launching the Project
 +goto DONE
 + +:DONE
 + " + /> + <UserMacro + Name="LibGILibtoolCompatibleDllPrefix" + Value="lib" + /> + <UserMacro + Name="LibGILibtoolCompatibleDllSuffix" + Value="-$(GIApiVersion)-0" + /> + <UserMacro + Name="LibGISeparateVS9DllPrefix" + Value="" + /> + <UserMacro + Name="LibGISeparateVS9DllSuffix" + Value="-1-vs9" + /> + <!-- Change these two to LibGILibtoolCompatibleDllPrefix and + LibGILibtoolCompatibleDllSuffix if that is what you want --> + <UserMacro + Name="LibGIDllPrefix" + Value="$(LibGISeparateVS9DllPrefix)" + /> + <UserMacro + Name="LibGIDllSuffix" + Value="$(LibGISeparateVS9DllSuffix)" + /> + <UserMacro + Name="GIDoInstall" + Value=" +mkdir $(CopyDir)
 +mkdir $(CopyDir)\bin
 +copy $(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin\$(LibGIDllPrefix)girepository$(LibGIDllSuffix).dll $(CopyDir)\bin
 +copy $(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin\g-ir-compiler.exe $(CopyDir)\bin
 +copy $(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin\g-ir-generate.exe $(CopyDir)\bin
 +copy ..\..\..\tools\g-ir-annotation-tool $(CopyDir)\bin
 +copy ..\..\..\tools\g-ir-doc-tool $(CopyDir)\bin
 +copy ..\..\..\tools\g-ir-scanner $(CopyDir)\bin
 + +#include "gir.vs9.install" + +copy $(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin\_giscanner.pyd $(CopyDir)\lib\gobject-introspection\giscanner
 + +mkdir $(CopyDir)\share\gir-$(GIApiVersion)
 +copy $(SolutionDir)$(ConfigurationName)\$(PlatformName)\share\gir-$(GIApiVersion)\*.gir $(CopyDir)\share\gir-$(GIApiVersion)
 + +mkdir $(CopyDir)\lib\girepository-$(GIApiVersion)
 +copy $(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin\girepository-$(GIApiVersion).lib $(CopyDir)\lib
 +copy $(SolutionDir)$(ConfigurationName)\$(PlatformName)\lib\girepository-$(GIApiVersion)\*.typelib $(CopyDir)\lib\girepository-$(GIApiVersion)
 +" + /> +</VisualStudioPropertySheet> |