tests/JsCoreTest.vala
[app.Builder.js] / Makefile
1
2 #vapigen --library gobject-introspection-1.0 /usr/share/gir-1.0/GIRepository-2.0.gir
3
4
5 PKGS=   --pkg gtk+-3.0 \
6                 --pkg gtksourceview-3.0 \
7                 --pkg libxml-2.0 \
8                 --pkg json-glib-1.0 \
9                 --pkg gee-1.0 \
10                 --pkg gobject-introspection-1.0 \
11                 --pkg webkit2gtk-3.0 \
12                 --pkg clutter-gtk-1.0 \
13                 --pkg gladeui-2.0 \
14                 --pkg libsoup-2.4 \
15                 --pkg javascriptcore  \
16
17
18 FLAGS= -g --vapidir=./vapi 
19
20 CORESRC=        JsRender/*.vala \
21                 Project/*.vala \
22                 Palete/*.vala \
23                 Builder4/Application.vala
24
25 BUILDER4=   Builder4/About.vala \
26                 Builder4/DialogConfirm.vala \
27                 Builder4/DialogNewComponent.vala \
28                 Builder4/StandardErrorDialog.vala \
29                 Builder4/DialogSaveTemplate.vala \
30                 Builder4/DialogSaveModule.vala \
31                 Builder4/DialogTemplateSelect.vala \
32                 Builder4/EditProject.vala \
33                 Builder4/Editor.vala \
34                 Builder4/ProjectSettings.vala \
35                 Builder4/WindowRightPalete.vala \
36                 Builder4/WindowLeftTree.vala \
37                 Builder4/WindowRooView.vala \
38                 Builder4/WindowLeftProps.vala \
39                 Builder4/ClutterFiles.vala \
40                 Builder4/WindowLeftProjects.vala \
41                 Builder4/WindowAddProp.vala \
42                 Builder4/GtkView.vala \
43                 Builder4/MainWindow.vala \
44                 
45 #              Builder4/GladeView.vala \
46
47
48 # compile what... for testing 
49 #all:  builder4
50 #all: test-leftprops
51 #all: test-palate
52 #all: test-addprops
53 #all: test-glade
54 #all: test-gtkview
55 #all: test-vala
56 #all: test-gir
57 #all: test-pack
58 all: test-codevalidate
59
60 builder4:
61         valac $(FLAGS) $(PKGS) $(CORESRC) $(BUILDER4)  \
62                 Builder4/Main.vala  -o /tmp/Builder4
63
64 #-- tests 
65  
66 test-leftprops:
67         valac $(FLAGS) $(PKGS) $(CORESRC) \
68                         tests/TestLeftProps.vala \
69                         Builder4/WindowLeftProps.vala \
70                         -o /tmp/test-leftprops
71
72 test-palate:
73         valac $(FLAGS) $(PKGS) $(CORESRC)  \
74                 Builder4/WindowRightPalete.vala \
75                 tests/PaleteTest.vala -o /tmp/test-palete
76
77 test-glade:
78         valac $(FLAGS) $(PKGS) $(CORESRC)  \
79                 Builder4/GladeView.vala \
80                 tests/GladeTest.vala -o /tmp/test-glade
81
82
83 test-gtkview:
84         valac $(FLAGS) $(PKGS) $(CORESRC)  \
85                 Builder4/GtkView.vala \
86                 tests/GtkView.vala -o /tmp/test-gtkview
87
88
89 test-addprops:
90         valac $(FLAGS) $(PKGS) $(CORESRC)  \
91                 Builder4/WindowAddProp.vala \
92                 tests/AddPropTest.vala -o /tmp/test-addprops
93
94 test-vala: 
95         valac $(FLAGS) $(PKGS) $(CORESRC)  \
96                 Builder4/WindowAddProp.vala \
97                 tests/ValaTest.vala -o /tmp/test-vala
98
99 test-gir: 
100         valac $(FLAGS) $(PKGS) $(CORESRC)  \
101                 tests/GirTest.vala -o /tmp/test-gir
102
103 test-pack: 
104         valac $(FLAGS) $(PKGS) $(CORESRC)  \
105                 tests/PackTest.vala -o /tmp/test-pack
106
107 test-codevalidate:
108         valac $(FLAGS) $(PKGS) $(CORESRC)  \
109                 tests/JsCoreTest.vala -o /tmp/test-codevalidate
110
111
112 #fixme -- old...
113 datatest:
114          valac $(FLAGS) $(PKGS) $(CORESRC) \
115                 Test.GtkWriter.vala -o /tmp/test-data
116
117
118 clean:
119         rm -f /tmp/Builder4
120         rm -f /tmp/test-leftprops