]> Pileus Git - ~andy/gtk/blob - tests/makefile.msc
stylecontext: Do invalidation on first resize container
[~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         all-test-apps
31
32 ..\config.h : ..\config.h.win32
33         copy ..\config.h.win32 ..\config.h
34
35
36 #
37 # Test programs:
38 #
39 TESTAPPS = \
40 #       autotestfilechooser autotestfilesystem \
41 #       buildertest floatingtest \
42         flicker \
43 #       objecttests \
44         testaccel testactions testassistant \
45         testbbox testbuttons \
46         testcairo testcalendar testcellrenderertext testclientmessage testcombo testcombochange \
47         testdnd \
48         testellipsise testentrycompletion testentryicons \
49         testfilechooser testfilechooserbutton testframe \
50         testgrouping testgtk \
51         testicontheme testiconview testimage testinput \
52         testmountoperation testmenubars testmerge testmultidisplay testmultiscreen \
53         testnouiprint testnotebookdnd \
54         testoffscreen testorientable \
55         testprint \
56         testrecentchooser testrecentchoosermenu testrichtext \
57         testscale testselection testspinbutton \
58         testtoolbar testtooltips \
59         testtreecolumns testtreecolumnsizing testtreeedit testtreeflow testtreefocus \
60         testtreemodel testtreesort testtreeview treestoretest \
61         teststatusicon \
62         testthreads testvolumebutton testwindows testxinerama \
63         simple
64
65 # syntax error : illegal character '-' in macro
66 #stresstest-toolbar
67
68
69 all-test-apps: 
70         @for %d in ($(TESTAPPS)) do @nmake -nologo -f makefile.msc one-test-app THIS=%d
71
72 one-test-app:
73         @nmake -nologo -f makefile.msc $(THIS).exe TESTAPP=$(THIS) EXTRA_$(THIS)=1
74
75 !ELSE
76
77 EXTRA_OBJETCS = prop-editor.obj
78
79 !IFDEF EXTRA_buildertest
80 EXTRA_LIBS = $(ATK_LIBS)
81 !ENDIF
82
83 !IFDEF EXTRA_testoffscreen
84 EXTRA_OBJETCS = gtkoffscreenbox.obj
85 !ENDIF
86
87 !IFDEF EXTRA_testprint
88 EXTRA_OBJETCS = testprintfileoperation.obj
89 EXTRA_LIBS = $(PANGOCAIRO_LIBS)
90 !ENDIF
91
92 !IFDEF EXTRA_testnouiprint
93 EXTRA_LIBS = $(PANGOCAIRO_LIBS)
94 !ENDIF
95
96 !IFDEF EXTRA_testfilechooser
97 EXTRA_LIBS = gdi32.lib user32.lib shell32.lib
98 !ENDIF
99
100 !IFDEF EXTRA_testsocket
101 EXTRA_OBJETCS = testsocket_common.obj
102 !ENDIF
103
104 !IFDEF EXTRA_testsocket_child
105 EXTRA_OBJETCS = testsocket_common.obj
106 !ENDIF
107
108 $(TESTAPP).exe : ../gtk/gtk-win32-$(GTK_VER).lib $(TESTAPP).obj $(EXTRA_OBJETCS)
109         $(CC) $(CFLAGS) $(TESTAPP).obj $(EXTRA_OBJETCS) $(GTK_LIBS) $(GDK_LIBS) $(GDK_PIXBUF_LIBS) \
110         $(PANGO_LIBS) $(PANGOCAIRO_LIBS) $(GLIB_LIBS) $(CAIRO_LIBS) $(EXTRA_LIBS) $(LDFLAGS)
111
112 $(TESTAPP).obj : $(TESTAPP).c
113         $(CC) $(CFLAGS) -c -DG_LOG_DOMAIN=\"$(TESTAPP)\" $(TESTAPP).c
114
115 !ENDIF