summaryrefslogtreecommitdiff
path: root/build/atk-introspection-msvc.mak
diff options
context:
space:
mode:
authorjk7744.park <jk7744.park@samsung.com>2015-10-26 15:41:21 +0900
committerjk7744.park <jk7744.park@samsung.com>2015-10-26 15:41:21 +0900
commita3377e1039b10375101aa7fd1e3d28a744edc854 (patch)
tree5e2950689deaf406a4c81f17fa55a57503dc4776 /build/atk-introspection-msvc.mak
parent4ffb1d0e64a5ed0c877abcbc0cd178f8185870a1 (diff)
downloadatk-accepted/tizen_2.4_mobile.tar.gz
atk-accepted/tizen_2.4_mobile.tar.bz2
atk-accepted/tizen_2.4_mobile.zip
Diffstat (limited to 'build/atk-introspection-msvc.mak')
-rw-r--r--build/atk-introspection-msvc.mak50
1 files changed, 50 insertions, 0 deletions
diff --git a/build/atk-introspection-msvc.mak b/build/atk-introspection-msvc.mak
new file mode 100644
index 0000000..8b4c38c
--- /dev/null
+++ b/build/atk-introspection-msvc.mak
@@ -0,0 +1,50 @@
+# NMake Makefile to build Introspection Files for ATK
+
+!include testsrules_msvc.mak
+
+APIVERSION = 1.0
+
+CHECK_PACKAGE = gobject-2.0
+
+!include introspection-msvc.mak
+
+!if "$(BUILD_INTROSPECTION)" == "TRUE"
+all: Atk-$(APIVERSION).gir Atk-$(APIVERSION).typelib
+
+atk_list:
+ @-echo Generating Filelist to Introspect for ATK...
+ $(PYTHON2) gen-file-list-atk.py
+
+Atk-$(APIVERSION).gir: atk_list
+ @-echo Generating Atk-$(APIVERSION).gir...
+ @set CC=$(CC)
+ @set PYTHONPATH=$(BASEDIR)\lib\gobject-introspection
+ @set PATH=win32\vs$(VSVER)\$(CFG)\$(PLAT)\bin;$(BASEDIR)\bin;$(PATH);$(MINGWDIR)\bin
+ @set PKG_CONFIG_PATH=$(PKG_CONFIG_PATH)
+ @set LIB=win32\vs$(VSVER)\$(CFG)\$(PLAT)\bin;$(BASEDIR)\lib;$(LIB)
+ $(PYTHON2) $(G_IR_SCANNER) --verbose -I.. --add-include-path=.. \
+ --namespace=Atk --nsversion=$(APIVERSION) --include=GObject-2.0 \
+ --no-libtool --pkg=glib-2.0 --library=atk-1.0 \
+ --reparse-validate --add-include-path=$(G_IR_INCLUDEDIR) \
+ --pkg-export atk --warn-all --c-include "atk/atk.h" \
+ -DATK_DISABLE_DEPRECATED -DATK_COMPILATION -DATK_LOCALEDIR=\"/dummy/share/locale\" \
+ --filelist=atk_list -o Atk-$(APIVERSION).gir
+
+Atk-$(APIVERSION).typelib: Atk-$(APIVERSION).gir
+ @-echo Compiling Atk-$(APIVERSION).typelib...
+ $(G_IR_COMPILER) --includedir=. --debug --verbose Atk-1.0.gir -o Atk-1.0.typelib
+
+install-introspection: Atk-$(APIVERSION).gir Atk-$(APIVERSION).typelib
+ @-copy Atk-$(APIVERSION).gir $(G_IR_INCLUDEDIR)
+ @-copy /b Atk-$(APIVERSION).typelib $(G_IR_TYPELIBDIR)
+
+!else
+all:
+ @-echo $(ERROR_MSG)
+!endif
+
+clean:
+ @-del /f/q Atk-$(APIVERSION).typelib
+ @-del /f/q Atk-$(APIVERSION).gir
+ @-del /f/q atk_list
+ @-del /f/q *.pyc