]> Pileus Git - ~andy/gtk/blob - tests/makefile.msc
wayland: Consolidate device and devicemanager implementation
[~andy/gtk] / tests / makefile.msc
1 ## Makefile for building the gtk test apps with Microsoft C
2 ## Use: nmake -f makefile.msc
3
4 ## There is no install target, you have to decide where and 
5 ## how to install for yourself.
6
7 TOP = ..\..
8 !INCLUDE $(TOP)/glib/build/win32/make.msc
9
10 ################################################################
11
12 # Possibly override versions from build/win32/module.defs
13 GTK_VER = 3.0
14
15 GDK_LIBS = ../gdk/gdk-win32-$(GTK_VER).lib
16 GTK_LIBS = ../gtk/gtk-win32-$(GTK_VER).lib
17
18 INCLUDES = -I . -I .. -I ../gdk -I ../gtk $(GDK_PIXBUF_CFLAGS)
19 DEPCFLAGS = $(PANGO_CFLAGS) $(GLIB_CFLAGS) $(LIBICONV_CFLAGS) $(INTL_CFLAGS) $(ATK_CFLAGS) $(CAIRO_CFLAGS)
20 LDFLAGS = /link /machine:ix86 $(LINKDEBUG)
21 DEFINES = -DG_LOG_DOMAIN=\"GtkTest\" -DGTK_VERSION=\"$(GTK_VER)\"
22
23 TOUCH = copy makefile.msc+nul
24
25 !IFNDEF TESTAPP
26
27 all :   \
28         ..\config.h     \
29         prop-editor.obj \
30         testsocket_common.obj \
31         all-test-apps
32
33 ..\config.h : ..\config.h.win32
34         copy ..\config.h.win32 ..\config.h
35
36
37 #
38 # Test programs:
39 #
40 TESTAPPS = \
41 #       autotestfilechooser autotestfilesystem \
42 #       buildertest floatingtest \
43         flicker \
44 #       objecttests \
45         testaccel testactions testassistant \
46         testbbox testbuttons \
47         testcairo testcalendar testcellrenderertext testclientmessage testcombo testcombochange \
48         testdnd \
49         testellipsise testentrycompletion testentryicons \
50         testfilechooser testfilechooserbutton testframe \
51         testgrouping testgtk \
52         testicontheme testiconview testimage testinput \
53         testmountoperation testmenubars testmerge testmultidisplay testmultiscreen \
54         testnouiprint testnotebookdnd \
55         testoffscreen testorientable \
56         testprint \
57         testrecentchooser testrecentchoosermenu testrichtext \
58         testscale testselection testspinbutton \
59         testtoolbar testtooltips \
60         testtreecolumns testtreecolumnsizing testtreeedit testtreeflow testtreefocus \
61         testtreemodel testtreesort testtreeview treestoretest \
62         testsocket testsocket_child teststatusicon \
63         testthreads testvolumebutton testwindows testxinerama \
64         simple
65
66 # syntax error : illegal character '-' in macro
67 #stresstest-toolbar
68
69
70 all-test-apps: 
71         @for %d in ($(TESTAPPS)) do @nmake -nologo -f makefile.msc one-test-app THIS=%d
72
73 one-test-app:
74         @nmake -nologo -f makefile.msc $(THIS).exe TESTAPP=$(THIS) EXTRA_$(THIS)=1
75
76 !ELSE
77
78 EXTRA_OBJETCS = prop-editor.obj
79
80 !IFDEF EXTRA_buildertest
81 EXTRA_LIBS = $(ATK_LIBS)
82 !ENDIF
83
84 !IFDEF EXTRA_testoffscreen
85 EXTRA_OBJETCS = gtkoffscreenbox.obj
86 !ENDIF
87
88 !IFDEF EXTRA_testprint
89 EXTRA_OBJETCS = testprintfileoperation.obj
90 EXTRA_LIBS = $(PANGOCAIRO_LIBS)
91 !ENDIF
92
93 !IFDEF EXTRA_testnouiprint
94 EXTRA_LIBS = $(PANGOCAIRO_LIBS)
95 !ENDIF
96
97 !IFDEF EXTRA_testfilechooser
98 EXTRA_LIBS = gdi32.lib user32.lib shell32.lib
99 !ENDIF
100
101 !IFDEF EXTRA_testsocket
102 EXTRA_OBJETCS = testsocket_common.obj
103 !ENDIF
104
105 !IFDEF EXTRA_testsocket_child
106 EXTRA_OBJETCS = testsocket_common.obj
107 !ENDIF
108
109 $(TESTAPP).exe : ../gtk/gtk-win32-$(GTK_VER).lib $(TESTAPP).obj $(EXTRA_OBJETCS)
110         $(CC) $(CFLAGS) $(TESTAPP).obj $(EXTRA_OBJETCS) $(GTK_LIBS) $(GDK_LIBS) $(GDK_PIXBUF_LIBS) \
111         $(PANGO_LIBS) $(PANGOCAIRO_LIBS) $(GLIB_LIBS) $(CAIRO_LIBS) $(EXTRA_LIBS) $(LDFLAGS)
112
113 $(TESTAPP).obj : $(TESTAPP).c
114         $(CC) $(CFLAGS) -c -DG_LOG_DOMAIN=\"$(TESTAPP)\" $(TESTAPP).c
115
116 !ENDIF