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