Visual Studio builds: Don't build introspection by default
[platform/upstream/atk.git] / tests / testatk_vc.mak
1 !include ..\build\detectenv-msvc.mak
2
3 LD_CFLAGS = /link
4 EXEEXT = .exe
5 GLIB_LIBS = gobject-2.0.lib gmodule-2.0.lib glib-2.0.lib
6
7 ATK_API_VERSION = 1.0
8
9 BUILD_PATH = ..\build\win32\vs$(VSVER)\$(CFG)\$(PLAT)\bin
10 LDFLAGS_PATH = /libpath:$(BUILD_PATH) /libpath:..\..\vs$(VSVER)\$(PLAT)\lib
11
12 TEST_ATK_LIBS = atk-$(ATK_API_VERSION).lib $(GLIB_LIBS)
13
14 LDFLAGS =       \
15         $(LDFLAGS_PATH) \
16         $(LDFLAGS_ARCH)
17
18 CFLAGS =        \
19         $(CFLAGS_ADD) /DG_DISABLE_DEPRECATED /I..       \
20         /I..\..\vs$(VSVER)\$(PLAT)\include\glib-2.0     \
21         /I..\..\vs$(VSVER)\$(PLAT)\lib\glib-2.0\include \
22         /I..\..\vs$(VSVER)\$(PLAT)\include\glib-2.0
23
24 EMPTY_ITEM =
25
26 test_programs = \
27         testdocument$(EXEEXT)   \
28         testrole$(EXEEXT)       \
29         testrelation$(EXEEXT)   \
30         teststateset$(EXEEXT)   \
31         testvalue$(EXEEXT)      \
32         $(EMPTY_ITEM)
33
34 !if "$(VALID_CFGSET)" == "FALSE"
35 all:
36         !@-echo You need to run "nmake -f testatk_vc.mak CFG=release" or
37         !@-echo "nmake -f testatk_vc.mak CFG=debug" to use this Makefile to
38         !@-echo build the test programs.
39
40 clean:
41         @-del /q/f *$(EXEEXT).manifest
42         @-del /q/f *$(EXEEXT)
43         @-del /q/f *.idb
44         @-del /q/f *.obj
45         @-del /q/f *.pdb
46 !else
47 all: $(test_programs)
48
49 .c$(EXEEXT):
50         $(CC) $(CFLAGS) $< $(LD_CFLAGS) $(LDFLAGS) $(TEST_ATK_LIBS) /Fe$@
51         @-if exist $@.manifest mt /nologo /manifest $@.manifest /outputresource:$@;1
52
53 clean:
54         @-del /q/f *$(EXEEXT).manifest
55         @-del /q/f *$(EXEEXT)
56         @-del /q/f *.idb
57         @-del /q/f *.obj
58         @-del /q/f *.pdb
59 !endif