Imported Upstream version 1.39.0
[platform/upstream/gobject-introspection.git] / build / win32 / vs9 / gir.vspropsin
1 <?xml version="1.0" encoding="Windows-1252"?>
2 <VisualStudioPropertySheet
3         ProjectType="Visual C++"
4         Version="8.00"
5         Name="giprops"
6         OutputDirectory="$(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin"
7         IntermediateDirectory="$(SolutionDir)$(ConfigurationName)\$(PlatformName)\obj\$(ProjectName)\"
8         >
9         <Tool
10                 Name="VCCLCompilerTool"
11                 AdditionalIncludeDirectories="..\..\..;..\..\..\girepository;$(GlibEtcInstallRoot)\include;$(GlibEtcInstallRoot)\include\glib-2.0;$(GlibEtcInstallRoot)\lib\glib-2.0\include"
12                 PreprocessorDefinitions="HAVE_CONFIG_H;WIN32"
13                 ForcedIncludeFiles="msvc_recommended_pragmas.h"
14         />
15         <Tool
16                 Name="VCLinkerTool"
17                 AdditionalDependencies="gio-2.0.lib gobject-2.0.lib gmodule-2.0.lib gthread-2.0.lib glib-2.0.lib"
18                 AdditionalLibraryDirectories="$(GlibEtcInstallRoot)\lib"
19         />
20         <Tool
21                 Name="VCPreBuildEventTool"
22                 CommandLine="
23 if not exist ..\..\..\config.h copy ..\..\..\config.h.win32 ..\..\..\config.h&#x0D;&#x0A;
24 if not exist ..\..\..\tools\g-ir-scanner copy ..\..\..\tools\g-ir-scanner.in ..\..\..\tools\g-ir-scanner&#x0D;&#x0A;
25 if not exist ..\..\..\tools\g-ir-doc-tool copy ..\..\..\tools\g-ir-doc-tool.in ..\..\..\tools\g-ir-doc-tool&#x0D;&#x0A;
26 if not exist ..\..\..\tools\g-ir-annotation-tool copy ..\..\..\tools\g-ir-annotation-tool.in ..\..\..\tools\g-ir-annotation-tool&#x0D;&#x0A;
27 "
28         />
29         <UserMacro
30                 Name="GlibEtcInstallRoot"
31                 Value="$(SolutionDir)\..\..\..\..\vs9\$(PlatformName)"
32         />
33         <UserMacro
34                 Name="VSVER"
35                 Value="9"
36         />
37         <UserMacro
38                 Name="BASE_GI_DIR"
39                 Value="$(SolutionDir)\..\..\.."
40         />
41         <UserMacro
42                 Name="CopyDir"
43                 Value="$(GlibEtcInstallRoot)"
44         />
45         <UserMacro
46                 Name="GIApiVersion"
47                 Value="1.0"
48         />
49         <UserMacro
50                 Name="DefDir"
51                 Value="$(SolutionDir)$(ConfigurationName)\$(PlatformName)\obj\$(ProjectName)"
52         />
53         <UserMacro
54                 Name="GenerateGIRDef"
55                 Value="
56                        echo EXPORTS &gt; $(DefDir)\girepository.def&#x0D;&#x0A;
57                        cl -EP ..\..\..\girepository\girepository.symbols &gt;&gt; $(DefDir)\girepository.def&#x0D;&#x0A;
58                           "
59         />
60         <UserMacro
61                 Name="GenEverythingH"
62                 Value="
63 if exist ..\..\..\tests\everything.h goto DONE_GEN_EVERYTHING_C&#x0D;&#x0A;
64 cd ..\..\..\tests&#x0D;&#x0A;
65 set PATH=$(GlibEtcInstallRoot)\bin;$(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin;%PYTHONDIR%;%PATH%&#x0D;&#x0A;
66 set PYTHONPATH=$(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin;$(BASE_GI_DIR)&#x0D;&#x0A;
67 set UNINSTALLED_INTROSPECTION_SRCDIR=$(BASE_GI_DIR)&#x0D;&#x0A;
68 python ..\tools\g-ir-scanner --verbose -I. --add-include-path=..\ --add-include-path=..\gir --generate-typelib-tests=Everything,everything.h,everything.c&#x0D;&#x0A;
69 cd $(SolutionDir)&#x0D;&#x0A;
70 :DONE_GEN_EVERYTHING_C&#x0D;&#x0A;
71                           "
72         />
73         <UserMacro
74                 Name="GenerateGIR"
75                 Value="
76 @echo off&#x0D;&#x0A;
77 set CC=cl&#x0D;&#x0A;
78 if &quot;$(MINGWDIR)&quot; == &quot;&quot; goto ERR_NOGCC&#x0D;&#x0A;
79 if &quot;$(PYTHONDIR)&quot; == &quot;&quot; goto ERR_NOPYPATH&#x0D;&#x0A;
80 if &quot;$(PKG_CONFIG_PATH)&quot; == &quot;&quot; goto ERR_NOPKGCONFIG&#x0D;&#x0A;
81
82 set PYTHONPATH=$(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin;$(BASE_GI_DIR)&#x0D;&#x0A;
83 set UNINSTALLED_INTROSPECTION_SRCDIR=$(BASE_GI_DIR)&#x0D;&#x0A;
84 set PATH=$(GlibEtcInstallRoot)\bin;$(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin;$(PATH);$(PYTHONDIR);$(MINGWDIR)\bin&#x0D;&#x0A;
85 set LIB=$(GlibEtcInstallRoot)\lib;$(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin;$(LIB);$(PYTHONDIR)\libs&#x0D;&#x0A;
86 set INCLUDE=$(GlibEtcInstallRoot)\include;$(GlibEtcInstallRoot)\lib\glib-2.0\include;$(INCLUDE);$(PYTHONDIR)\include&#x0D;&#x0A;
87
88 set PLAT=$(PlatformName)&#x0D;&#x0A;
89 set CONF=$(ConfigurationName)&#x0D;&#x0A;
90 set BASEDIR=$(GlibEtcInstallRoot)&#x0D;&#x0A;
91 set VSVER=$(VSVER)&#x0D;&#x0A;
92
93 cd ..&#x0D;&#x0A;
94 call gengir.bat&#x0D;&#x0A;
95 cd .\vs$(VSVER)&#x0D;&#x0A;
96 goto DONE&#x0D;&#x0A;
97
98 :ERR_NOGCC&#x0D;&#x0A;
99 echo You need a Windows GCC installation to preprocess the headers to generate .gir files&#x0D;&#x0A;
100 echo Please set MINGWDIR accordingly before launching the Project&#x0D;&#x0A;
101 goto DONE&#x0D;&#x0A;
102
103 :ERR_NOPYPATH&#x0D;&#x0A;
104 echo You need a Python installation to build the Python module and run the Python scripts to generate .gir files&#x0D;&#x0A;
105 echo The Python installation needs to correspond to the configuration of your build, i.e. Win32 or x64&#x0D;&#x0A;
106 echo Please set PYTHONDIR accordingly before launching the Project&#x0D;&#x0A;
107 goto DONE&#x0D;&#x0A;
108
109 :ERR_NOPKGCONFIG&#x0D;&#x0A;
110 echo You need pkg-config and need to set PKG_CONFIG_PATH to point to pkgconfig (.pc) files to generate .gir files&#x0D;&#x0A;
111 echo Please set PKG_CONFIG_PATH accordingly before launching the Project&#x0D;&#x0A;
112 goto DONE&#x0D;&#x0A;
113
114 :DONE&#x0D;&#x0A;
115                           "
116         />
117         <UserMacro
118                 Name="LibGILibtoolCompatibleDllPrefix"
119                 Value="lib"
120         />
121         <UserMacro
122                 Name="LibGILibtoolCompatibleDllSuffix"
123                 Value="-$(GIApiVersion)-0"
124         />
125         <UserMacro
126                 Name="LibGISeparateVS9DllPrefix"
127                 Value=""
128         />
129         <UserMacro
130                 Name="LibGISeparateVS9DllSuffix"
131                 Value="-1-vs9"
132         />
133         <!-- Change these two to LibGILibtoolCompatibleDllPrefix and
134         LibGILibtoolCompatibleDllSuffix if that is what you want -->
135         <UserMacro
136                 Name="LibGIDllPrefix"
137                 Value="$(LibGISeparateVS9DllPrefix)"
138         />
139         <UserMacro
140                 Name="LibGIDllSuffix"
141                 Value="$(LibGISeparateVS9DllSuffix)"
142         />
143         <UserMacro
144                 Name="GIDoInstall"
145                 Value="
146 mkdir $(CopyDir)&#x0D;&#x0A;
147 mkdir $(CopyDir)\bin&#x0D;&#x0A;
148 copy $(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin\$(LibGIDllPrefix)girepository$(LibGIDllSuffix).dll $(CopyDir)\bin&#x0D;&#x0A;
149 copy $(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin\g-ir-compiler.exe $(CopyDir)\bin&#x0D;&#x0A;
150 copy $(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin\g-ir-generate.exe $(CopyDir)\bin&#x0D;&#x0A;
151 copy ..\..\..\tools\g-ir-annotation-tool $(CopyDir)\bin&#x0D;&#x0A;
152 copy ..\..\..\tools\g-ir-doc-tool $(CopyDir)\bin&#x0D;&#x0A;
153 copy ..\..\..\tools\g-ir-scanner $(CopyDir)\bin&#x0D;&#x0A;
154
155 #include "gir.vs9.install"
156
157 copy $(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin\_giscanner.pyd $(CopyDir)\lib\gobject-introspection\giscanner&#x0D;&#x0A;
158
159 mkdir $(CopyDir)\share\gir-$(GIApiVersion)&#x0D;&#x0A;
160 copy $(SolutionDir)$(ConfigurationName)\$(PlatformName)\share\gir-$(GIApiVersion)\*.gir $(CopyDir)\share\gir-$(GIApiVersion)&#x0D;&#x0A;
161
162 mkdir $(CopyDir)\share\gobject-introspection-$(GIApiVersion)&#x0D;&#x0A;
163 copy ..\..\..\girepository\gdump.c $(CopyDir)\share\gobject-introspection-$(GIApiVersion)&#x0D;&#x0A;
164
165 mkdir $(CopyDir)\lib\girepository-$(GIApiVersion)&#x0D;&#x0A;
166 copy $(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin\girepository-$(GIApiVersion).lib $(CopyDir)\lib&#x0D;&#x0A;
167 copy $(SolutionDir)$(ConfigurationName)\$(PlatformName)\lib\girepository-$(GIApiVersion)\*.typelib $(CopyDir)\lib\girepository-$(GIApiVersion)&#x0D;&#x0A;
168 "
169         />
170 </VisualStudioPropertySheet>