atkregistry: remove code not being compiled
[atk.git] / build / introspection-msvc.mak
blob55eec4574d962a427a6d9bac126ca77f726f2cf6
1 # Common Utility NMake Makefile Template
2 # Used to Generate Introspection files for various Projects
4 # Can Override with env vars as needed
5 # You will need to have built gobject-introspection for this to work.
6 # Change or pass in or set the following to suit your environment
8 BASEDIR = ..\..\vs$(VSVER)\$(PLAT)
9 GIR_SUBDIR = share\gir-1.0
10 GIR_TYPELIBDIR = lib\girepository-1.0
11 G_IR_SCANNER = $(BASEDIR)\bin\g-ir-scanner
12 G_IR_COMPILER = $(BASEDIR)\bin\g-ir-compiler.exe
13 G_IR_INCLUDEDIR = $(BASEDIR)\$(GIR_SUBDIR)
14 G_IR_TYPELIBDIR = $(BASEDIR)\$(GIR_TYPELIBDIR)
16 # Note: The PYTHON2 must be a Python 2.6.x or 2.7.x Interpretor!
17 # Either having python.exe from Python 2.6.x/2.7.x in your PATH will work
18 # or passing in PYTHON2=<full path to your Python 2.6.x/2.7.x interpretor> will do
20 # This is required, and gobject-introspection needs to be built
21 # before this can be successfully run.
22 PYTHON2=python
24 # Don't change anything following this line!
25 VALID_PKG_CONFIG_PATH = FALSE
26 VALID_GCC_INSTPATH = FALSE
28 MSG_INVALID_PKGCONFIG = You must set or specifiy a valid PKG_CONFIG_PATH
29 MSG_INVALID_CFG = You need to specify or set CFG to be release or debug to use this Makefile to build the Introspection Files
31 ERROR_MSG =
33 BUILD_INTROSPECTION = TRUE
35 !if ![pkg-config --print-errors --errors-to-stdout $(CHECK_PACKAGE) > pkgconfig.x] \
36 && ![setlocal] \
37 && ![set file="pkgconfig.x"] \
38 && ![FOR %A IN (%file%) DO @echo PKG_CHECK_SIZE=%~zA > pkgconfig.chksize] \
39 && ![del $(ERRNUL) /q/f pkgconfig.x]
40 !endif
42 !include pkgconfig.chksize
43 !if "$(PKG_CHECK_SIZE)" == "0"
44 VALID_PKG_CONFIG_PATH = TRUE
45 !else
46 VALID_PKG_CONFIG_PATH = FALSE
47 !endif
49 !if ![del $(ERRNUL) /q/f pkgconfig.chksize]
50 !endif
52 VALID_CFGSET = FALSE
53 !if "$(CFG)" == "release" || "$(CFG)" == "debug"
54 VALID_CFGSET = TRUE
55 !endif
57 !if "$(VALID_PKG_CONFIG_PATH)" != "TRUE"
58 BUILD_INTROSPECTION = FALSE
59 ERROR_MSG = $(MSG_INVALID_PKGCONFIG)
60 !endif
62 !if "$(VALID_CFGSET)" != "TRUE"
63 BUILD_INTROSPECTION = FALSE
64 ERROR_MSG = $(MSG_INVALID_CFG)
65 !endif