summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2013-01-21 14:04:24 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2013-01-21 14:04:24 +0800
commit14046eff3dae1bf69e1b88feed8be83622c8bcfd (patch)
tree12f8a3057d5825d6d906f23013e929ddaf7ecd34 /build
parentc2a5eefb00557c11019ce984da54d129cfbf91a9 (diff)
downloadgobject-introspection-14046eff3dae1bf69e1b88feed8be83622c8bcfd.tar.gz
build/win32/gengir.bat: Process the bundled .gir files
This will compile the .typelib files for FreeType, GL and libxml2, and copy the these .gir and their resulting .typelib files to the appropriate folder to prepare for the "install" phase. Note that the ones that aren't normally used in Windows are not processed.
Diffstat (limited to 'build')
-rw-r--r--build/win32/gengir.bat12
1 files changed, 12 insertions, 0 deletions
diff --git a/build/win32/gengir.bat b/build/win32/gengir.bat
index ee61da3b..70c5b854 100644
--- a/build/win32/gengir.bat
+++ b/build/win32/gengir.bat
@@ -256,12 +256,24 @@ g-ir-compiler --includedir=. --debug --verbose GObject-2.0.gir -o GObject-2.0.ty
g-ir-compiler --includedir=. --debug --verbose Gio-2.0.gir -o Gio-2.0.typelib
g-ir-compiler --includedir=. --debug --verbose GIRepository-2.0.gir -o GIRepository-2.0.typelib
+rem Now process the bundled .gir files
+set CURRDIR=%CD%
+cd ..\..\gir
+g-ir-compiler --includedir=. --debug --verbose freetype2-2.0.gir -o freetype2-2.0.typelib
+g-ir-compiler --includedir=. --debug --verbose GL-1.0.gir -o GL-1.0.typelib
+g-ir-compiler --includedir=. --debug --verbose libxml2-2.0.gir -o libxml2-2.0.typelib
+cd %CURRDIR%
+
rem Copy the generated .girs and .typelibs to their appropriate places
mkdir ..\..\build\win32\vs%VSVER%\%CONF%\%PLAT%\share\gir-1.0
move /y *.gir ..\..\build\win32\vs%VSVER%\%CONF%\%PLAT%\share\gir-1.0\
+copy /y ..\..\gir\freetype2-2.0.gir ..\..\build\win32\vs%VSVER%\%CONF%\%PLAT%\share\gir-1.0\
+copy /y ..\..\gir\GL-1.0.gir ..\..\build\win32\vs%VSVER%\%CONF%\%PLAT%\share\gir-1.0\
+copy /y ..\..\gir\libxml2-2.0.gir ..\..\build\win32\vs%VSVER%\%CONF%\%PLAT%\share\gir-1.0\
mkdir ..\..\build\win32\vs%VSVER%\%CONF%\%PLAT%\lib\girepository-1.0
move /y *.typelib ..\..\build\win32\vs%VSVER%\%CONF%\%PLAT%\lib\girepository-1.0\
+move /y ..\..\gir\*.typelib ..\..\build\win32\vs%VSVER%\%CONF%\%PLAT%\lib\girepository-1.0\
:DONE