tests/TreeBuilder.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                 --pkg  vte-2.90  \
17
18
19 FLAGS= -g --vapidir=./vapi 
20
21 CORESRC=        JsRender/*.vala \
22                 Project/*.vala \
23                 Palete/*.vala \
24                 Builder4/Application.vala
25
26 BUILDER4=   Builder4/About.vala \
27                 Builder4/DialogConfirm.vala \
28                 Builder4/DialogNewComponent.vala \
29                 Builder4/StandardErrorDialog.vala \
30                 Builder4/DialogSaveTemplate.vala \
31                 Builder4/DialogSaveModule.vala \
32                 Builder4/DialogTemplateSelect.vala \
33                 Builder4/EditProject.vala \
34                 Builder4/Editor.vala \
35                 Builder4/ProjectSettings.vala \
36                 Builder4/WindowRightPalete.vala \
37                 Builder4/WindowLeftTree.vala \
38                 Builder4/WindowRooView.vala \
39                 Builder4/WindowLeftProps.vala \
40                 Builder4/ClutterFiles.vala \
41                 Builder4/WindowLeftProjects.vala \
42                 Builder4/WindowAddProp.vala \
43                 Builder4/GtkView.vala \
44                 Builder4/MainWindow.vala \
45                 
46 #              Builder4/GladeView.vala \
47
48
49 # compile what... for testing 
50 all:  builder4
51 #all: test-leftprops
52 #all: test-palate
53 #all: test-addprops
54 #all: test-glade
55 #all: test-gtkview
56 #all: test-vala
57 #all: test-gir
58 #all: test-pack
59 #all: test-codevalidate
60
61 builder4:
62         valac $(FLAGS) $(PKGS) $(CORESRC) $(BUILDER4)  \
63                 Builder4/Main.vala  -o /tmp/Builder4
64
65 #-- tests 
66  
67 test-leftprops:
68         valac $(FLAGS) $(PKGS) $(CORESRC) \
69                         tests/TestLeftProps.vala \
70                         Builder4/WindowLeftProps.vala \
71                         -o /tmp/test-leftprops
72
73 test-palate:
74         valac $(FLAGS) $(PKGS) $(CORESRC)  \
75                 Builder4/WindowRightPalete.vala \
76                 tests/PaleteTest.vala -o /tmp/test-palete
77
78 test-glade:
79         valac $(FLAGS) $(PKGS) $(CORESRC)  \
80                 Builder4/GladeView.vala \
81                 tests/GladeTest.vala -o /tmp/test-glade
82
83
84 test-gtkview:
85         valac $(FLAGS) $(PKGS) $(CORESRC)  \
86                 Builder4/GtkView.vala \
87                 tests/GtkView.vala -o /tmp/test-gtkview
88
89
90 test-addprops:
91         valac $(FLAGS) $(PKGS) $(CORESRC)  \
92                 Builder4/WindowAddProp.vala \
93                 tests/AddPropTest.vala -o /tmp/test-addprops
94
95 test-vala: 
96         valac $(FLAGS) $(PKGS) $(CORESRC)  \
97                 Builder4/WindowAddProp.vala \
98                 tests/ValaTest.vala -o /tmp/test-vala
99
100 test-gir: 
101         valac $(FLAGS) $(PKGS) $(CORESRC)  \
102                 tests/GirTest.vala -o /tmp/test-gir
103
104 test-pack: 
105         valac $(FLAGS) $(PKGS) $(CORESRC)  \
106                 tests/PackTest.vala -o /tmp/test-pack
107
108 test-codevalidate:
109         valac $(FLAGS) $(PKGS) $(CORESRC)  \
110                 tests/JsCoreTest.vala -o /tmp/test-codevalidate
111
112
113 #fixme -- old...
114 datatest:
115          valac $(FLAGS) $(PKGS) $(CORESRC) \
116                 Test.GtkWriter.vala -o /tmp/test-data
117
118
119 clean:
120         rm -f /tmp/Builder4
121         rm -f /tmp/test-leftprops