summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2014-04-16 14:14:51 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2014-04-16 14:14:51 +0800
commit37c90f6110924eab439f240fcdb7c6e30f47ade4 (patch)
treedb13e4ac73a2786574a1fc60066883d1925d83f0
parent21e51026d74bca48b814ace73eb588e6542a27cd (diff)
downloadgobject-introspection-37c90f6110924eab439f240fcdb7c6e30f47ade4.tar.gz
build/gi-introspection-msvc.mak: Fix Build and Installation
Copy the .gir files that are bundled with g-i to build/ before trying to compile the .gir's that were generated during the build process, so that the compilation of these .gir's may succeed. Also, create the share/gir-1.0 and lib/girepository-1.0 directories, if needed, before trying to copy the .gir/.typelib files.
-rw-r--r--build/gi-introspection-msvc.mak4
1 files changed, 3 insertions, 1 deletions
diff --git a/build/gi-introspection-msvc.mak b/build/gi-introspection-msvc.mak
index 47e73ecf..fc4f2581 100644
--- a/build/gi-introspection-msvc.mak
+++ b/build/gi-introspection-msvc.mak
@@ -170,7 +170,7 @@ $(bundled_girs): ..\gir\win32-1.0.gir ..\gir\fontconfig-2.0.gir ..\gir\freetype2
@-copy ..\gir\$*.gir $@
# Generate .typelib's from generated .gir's
-$(built_install_typelibs): $(built_install_girs)
+$(built_install_typelibs): $(bundled_girs) $(built_install_girs)
@-echo Compiling $*.typelib...
@-$(G_IR_COMPILER_CURRENT) --includedir=. --debug --verbose $*.gir -o $@
@@ -180,6 +180,8 @@ $(bundled_typelibs): cairo-1.0.gir $(bundled_girs)
@-$(G_IR_COMPILER_CURRENT) --includedir=. --debug --verbose $*.gir -o $@
install-introspection: setgirbuildnev $(built_install_girs) $(built_install_typelibs) $(bundled_girs) cairo-1.0.gir $(bundled_typelibs)
+ @-mkdir $(G_IR_INCLUDEDIR)
+ @-mkdir $(G_IR_TYPELIBDIR)
@-copy cairo-1.0.gir $(G_IR_INCLUDEDIR)
@-for %a in ($(built_install_girs)) do @copy %a $(G_IR_INCLUDEDIR)
@-for %b in ($(built_install_typelibs)) do @copy %b $(G_IR_TYPELIBDIR)