summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-06-18 08:12:44 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-06-18 08:12:53 +0200
commit4f8e15c16c4f68b6fae8708b177ce672daefc59c (patch)
tree8c1bf8d808e0939bbd83291855961512ee42e70c /doc
parente8c69667b01e2795c1e4ead0536652f935ffa674 (diff)
Revert "autotools: REMOVAL!"
This reverts commit e8c69667b01e2795c1e4ead0536652f935ffa674. git push on a wrong branch, sorry. This will land today, but not now.
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile.am263
-rw-r--r--doc/previews/Makefile.am73
-rw-r--r--doc/widgets/Makefile.am196
3 files changed, 532 insertions, 0 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
new file mode 100644
index 0000000000..17adf520c1
--- /dev/null
+++ b/doc/Makefile.am
@@ -0,0 +1,263 @@
1SUBDIRS = previews widgets
2
3MAINTAINERCLEANFILES = Makefile.in
4
5.PHONY: doc
6
7PACKAGE_DOCNAME = $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-doc
8
9if EFL_BUILD_DOC
10
11doc-clean:
12 rm -rf html/ latex/ man/ xml/ $(top_builddir)/$(PACKAGE_DOCNAME).tar*
13
14previews-build:
15 @$(MAKE) -C previews
16
17previews-data:
18 @$(MAKE) -C previews doc
19# dir:file name:executable:width:height
20WGT_PREVIEW = \
21 actionslider:preview-00.png:widget_preview_actionslider:120:30 \
22 bg:preview-00.png:widget_preview_bg:50:50 \
23 box:preview-00.png:widget_preview_box:200:160 \
24 bubble:preview-00.png:widget_preview_bubble1:160:50 \
25 bubble:preview-01.png:widget_preview_bubble2:160:50 \
26 bubble:preview-02.png:widget_preview_bubble3:160:50 \
27 button:preview-00.png:widget_preview_button1:160:50 \
28 button:preview-01.png:widget_preview_button2:160:50 \
29 button:preview-02.png:widget_preview_button3:160:50 \
30 calendar:preview-00.png:widget_preview_calendar:300:300 \
31 check:preview-00.png:widget_preview_check1:160:50 \
32 check:preview-01.png:widget_preview_check2:160:50 \
33 check:preview-02.png:widget_preview_check3:160:50 \
34 clock:preview-00.png:widget_preview_clock:200:100 \
35 colorselector:preview-00.png:widget_preview_colorselector:320:300 \
36 conformant:preview-00.png:widget_preview_conformant:200:400 \
37 combobox:preview-00.png:widget_preview_combobox:300:300 \
38 ctxpopup:preview-00.png:widget_preview_ctxpopup:200:130 \
39 datetime:preview-00.png:widget_preview_datetime1:360:60 \
40 datetime:preview-01.png:widget_preview_datetime2:200:60 \
41 datetime:preview-02.png:widget_preview_datetime3:200:60 \
42 dayselector:preview-00.png:widget_preview_dayselector:350:50 \
43 diskselector:preview-00.png:widget_preview_diskselector:120:50 \
44 entry:preview-00.png:widget_preview_entry1:160:50 \
45 entry:preview-01.png:widget_preview_entry2:160:50 \
46 entry:preview-02.png:widget_preview_entry3:160:50 \
47 entry:preview-03.png:widget_preview_entry4:160:50 \
48 fileselector:preview-00.png:widget_preview_fileselector:300:300 \
49 fileselector_button:preview-00.png:widget_preview_fileselector_button1:200:50 \
50 fileselector_button:preview-01.png:widget_preview_fileselector_button2:200:50 \
51 fileselector_button:preview-02.png:widget_preview_fileselector_button3:160:50 \
52 fileselector_entry:preview-00.png:widget_preview_fileselector_entry:70:50 \
53 flip:preview-00.png:widget_preview_flip:100:100 \
54 flipselector:preview-00.png:widget_preview_flipselector:100:60 \
55 frame:preview-00.png:widget_preview_frame:100:50 \
56 gengrid:preview-00.png:widget_preview_gengrid:200:160 \
57 genlist:preview-00.png:widget_preview_genlist1:200:200 \
58 genlist:preview-01.png:widget_preview_genlist2:200:160 \
59 genlist:preview-02.png:widget_preview_genlist3:200:160 \
60 genlist:preview-03.png:widget_preview_genlist4:200:160 \
61 genlist:preview-04.png:widget_preview_genlist5:200:160 \
62 hover:preview-00.png:widget_preview_hover:90:170 \
63 hoversel:preview-00.png:widget_preview_hoversel:90:170 \
64 icon:preview-00.png:widget_preview_icon:50:50 \
65 image:preview-00.png:widget_preview_image:50:50 \
66 index:preview-00.png:widget_preview_index:200:160 \
67 inwin:preview-00.png:widget_preview_inwin1:200:160 \
68 inwin:preview-01.png:widget_preview_inwin2:200:160 \
69 inwin:preview-02.png:widget_preview_inwin3:200:160 \
70 label:preview-00.png:widget_preview_label:70:30 \
71 layout:preview-00.png:widget_preview_layout:200:160 \
72 list:preview-00.png:widget_preview_list:200:200 \
73 map:preview-00.png:widget_preview_map:256:256 \
74 mapbuf:preview-00.png:widget_preview_mapbuf:200:200 \
75 menu:preview-00.png:widget_preview_menu:100:100 \
76 notify:preview-00.png:widget_preview_notify:60:30 \
77 nstate:preview-00.png:widget_preview_nstate:45:28 \
78 panel:preview-00.png:widget_preview_panel:150:50 \
79 panes:preview-00.png:widget_preview_panes:200:100 \
80 photocam:preview-00.png:widget_preview_photocam:243:162 \
81 popup:preview-00.png:widget_preview_popup:480:400 \
82 prefs:preview-00.png:widget_preview_prefs:200:160 \
83 prefs:preview-00.png:widget_preview_prefs:280:250 \
84 progressbar:preview-00.png:widget_preview_progressbar:150:50 \
85 radio:preview-00.png:widget_preview_radio:60:20 \
86 scroller:preview-00.png:widget_preview_scroller:100:30 \
87 segment_control:preview-00.png:widget_preview_segment_control:240:120 \
88 separator:preview-00.png:widget_preview_separator:10:80 \
89 slider:preview-00.png:widget_preview_slider:200:100 \
90 slideshow:preview-00.png:widget_preview_slideshow:50:50 \
91 spinner:preview-00.png:widget_preview_spinner:160:30 \
92 table::preview-00.png:widget_preview_table:100:100 \
93 table:preview-00.png:widget_preview_table:100:100 \
94 thumb:preview-00.png:widget_preview_thumb:100:100 \
95 toolbar:preview-00.png:widget_preview_toolbar:300:100 \
96 web:preview-00.png:widget_preview_web:300:300 \
97 win:preview-00.png:widget_preview_win:200:200
98
99# put in here every elm widget, so that it gets its hierarchy tree built
100# then, make a reference to the generated image, in the form
101# @image html <WGTNAME>_inheritance_tree.{png,eps}
102WGT_TREE = \
103 actionslider \
104 bg \
105 box \
106 bubble \
107 button \
108 calendar \
109 check \
110 clock \
111 colorselector \
112 conformant \
113 container \
114 combobox \
115 ctxpopup \
116 datetime \
117 dayselector \
118 diskselector \
119 entry \
120 fileselector \
121 fileselector_button \
122 fileselector_entry \
123 flip \
124 flipselector \
125 frame \
126 gengrid \
127 genlist \
128 gesture_layer \
129 glview \
130 grid \
131 hover \
132 hoversel \
133 icon \
134 image \
135 index \
136 inwin \
137 label \
138 layout \
139 list \
140 map \
141 mapbuf \
142 menu \
143 multibuttonentry \
144 naviframe \
145 notify \
146 panel \
147 panes \
148 photo \
149 photocam \
150 player \
151 plug \
152 popup \
153 prefs \
154 progressbar \
155 radio \
156 route \
157 scroller \
158 segment_control \
159 separator \
160 slider \
161 slideshow \
162 spinner \
163 table \
164 thumb \
165 toolbar \
166 video \
167 web \
168 win
169
170widget-build:
171 @$(MAKE) -C widgets
172
173widget-preview: widget-build
174 @for ss in $(WGT_PREVIEW); do \
175 ENTRY=($${ss//:/ }) ; \
176 DIR=$${ENTRY[0]} ; \
177 SS=$${ENTRY[1]} ; \
178 BIN=$${ENTRY[2]} ; \
179 X=$${ENTRY[3]} ; \
180 Y=$${ENTRY[4]} ; \
181 echo "Generating widget preview image" $${SS} "for widget" $${DIR}; \
182 $(top_srcdir)/doc/shot.sh $(top_builddir)/doc/html/img/widget/$${DIR} $${SS} $(top_builddir)/doc/widgets/$${BIN} $${X} $${Y} ; \
183 mkdir -p $(top_builddir)/doc/latex/img/widget/$${DIR} ; \
184 convert $(top_builddir)/doc/html/img/widget/$${DIR}/$${SS} $(top_builddir)/doc/latex/img/widget/$${DIR}/$${SS/.png/.eps} ; \
185 done
186
187widget-tree-figures: doc
188 $(srcdir)/widget_hierarchy.py --scan $(top_srcdir)/src/lib -o $(builddir)/widget_tree.p;
189 $(srcdir)/widget_hierarchy.py --tree -i $(builddir)/widget_tree.p > $(builddir)/widgets_tree.dot;
190 dot -Tpng -o $(top_srcdir)/doc/img/elm-widget-tree.png $(top_builddir)/doc/widgets_tree.dot;
191 convert $(top_srcdir)/doc/img/elm-widget-tree.png $(top_srcdir)/doc/img/"elm-widget-tree.eps";
192 @for wgt in $(WGT_TREE); do \
193 WGT_FILE_NAME="WNAME_inheritance_tree.dot"; \
194 WGT_FILE_NAME=$${WGT_FILE_NAME/WNAME/$${wgt}}; \
195 echo "Generating widget inheritance tree image for widget" $${wgt}; \
196 $(srcdir)/widget_hierarchy.py --widget=$${wgt} -i $(top_builddir)/doc/widget_tree.p > $(top_builddir)/doc/$${WGT_FILE_NAME}; \
197 dot -Tpng -o $(top_srcdir)/doc/img/$${WGT_FILE_NAME/.dot/.png} $(top_builddir)/doc/$${WGT_FILE_NAME}; \
198 convert $(top_srcdir)/doc/img/$${WGT_FILE_NAME/.dot/.png} $(top_srcdir)/doc/img/$${WGT_FILE_NAME/.dot/.eps}; \
199 rm $${WGT_FILE_NAME}; \
200 done
201
202doc: all previews-build previews-data widget-preview
203 $(efl_doxygen)
204 @echo "$(efl_doxygen) done !"
205 @echo "copying $(srcdir)/img/*.png to html/"
206 cp $(srcdir)/img/*.png html/
207 @echo "copying $(srcdir)/img/*.eps to latex/"
208 cp $(srcdir)/img/*.eps latex/
209 @echo "Removing older tarball $(PACKAGE_DOCNAME).tar*"
210 rm -rf $(PACKAGE_DOCNAME).tar*
211 @echo "Generating new tarball"
212 $(MKDIR_P) $(PACKAGE_DOCNAME)/doc
213 cp -R html/ latex/ man/ $(PACKAGE_DOCNAME)/doc
214 tar cf $(PACKAGE_DOCNAME).tar $(PACKAGE_DOCNAME)/
215 bzip2 -9 $(PACKAGE_DOCNAME).tar
216 @echo "Removing temporary directory"
217 rm -rf $(PACKAGE_DOCNAME)/
218 @echo "Moving tarball $(PACKAGE_DOCNAME).tar.bz2 to $(top_builddir)"
219 mv $(PACKAGE_DOCNAME).tar.bz2 $(top_builddir)
220 @echo "Documentation Package: doc/$(PACKAGE_DOCNAME).tar.bz2"
221 @echo "Documentation HTML: doc/html"
222
223clean-local: doc-clean
224
225else
226
227doc:
228 @echo "Documentation not built. Run ./configure --help"
229
230endif
231
232EXTRA_DIST = \
233Doxyfile.in \
234e.css \
235head.html \
236foot.html \
237ecore_examples.dox \
238eldbus_examples.dox \
239edje_examples.dox \
240eet_examples.dox \
241eina_examples.dox \
242eio_examples.dox \
243emotion_examples.dox \
244eo_tutorial.dox \
245ephysics_examples.dox \
246evas_examples.dox \
247main.dox \
248pkgconfig.dox \
249shot.sh
250
251include images.mk
252
253all-local:
254 @rm -f images.tmp; \
255 echo 'EXTRA_DIST += \' > images.tmp; \
256 (cd $(srcdir) && find ./img -type f -print | cut -d/ -f2- | grep -v '~' | LANG=C LANGUAGE=C LC_ALL=C LC_CTYPE=C LC_NUMERIC=C LC_TIME=C LC_COLLATE=C LC_MONETARY=C LC_MESSAGES=C LC_PAPER=C LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=C LC_IDENTIFICATION=C sort | tr '\n' ' ') >> images.tmp && \
257 echo >> images.tmp && \
258 if ! cmp "$(srcdir)/images.mk" images.tmp >/dev/null; then \
259 echo "warning: new images added to '$(srcdir)/images.mk'"; \
260 mv -f images.tmp "$(srcdir)/images.mk"; \
261 else \
262 rm images.tmp; \
263 fi
diff --git a/doc/previews/Makefile.am b/doc/previews/Makefile.am
new file mode 100644
index 0000000000..ba952dd154
--- /dev/null
+++ b/doc/previews/Makefile.am
@@ -0,0 +1,73 @@
1if EFL_BUILD_DOC
2
3.PHONY: doc
4
5AM_CPPFLAGS = \
6-I$(top_builddir)/src/lib/efl \
7-I$(top_srcdir)/src/lib/efl \
8-I. \
9-I$(builddir) \
10-I$(top_srcdir)/src/lib/evil \
11-I$(top_builddir)/src/lib/evil \
12-I$(top_srcdir)/src/lib/eina \
13-I$(top_builddir)/src/lib/eina \
14-I$(top_srcdir)/src/lib/eo \
15-I$(top_builddir)/src/lib/eo \
16-I$(top_srcdir)/src/lib/eet \
17-I$(top_builddir)/src/lib/eet \
18-I$(top_srcdir)/src/lib/evas \
19-I$(top_builddir)/src/lib/evas \
20-I$(top_srcdir)/src/lib/ecore \
21-I$(top_builddir)/src/lib/ecore \
22-I$(top_srcdir)/src/lib/ecore_evas \
23-I$(top_builddir)/src/lib/ecore_evas \
24-DEFL_BETA_API_SUPPORT=1 \
25-DEFL_EO_API_SUPPORT=1 \
26@ECORE_EVAS_CFLAGS@
27
28LDADD = \
29$(top_builddir)/src/lib/eina/libeina.la \
30$(top_builddir)/src/lib/eo/libeo.la \
31$(top_builddir)/src/lib/efl/libefl.la \
32$(top_builddir)/src/lib/eet/libeet.la \
33$(top_builddir)/src/lib/evas/libevas.la \
34$(top_builddir)/src/lib/ecore/libecore.la \
35$(top_builddir)/src/lib/ecore_evas/libecore_evas.la \
36@ECORE_EVAS_LDFLAGS@
37
38noinst_PROGRAMS = preview_text_filter
39
40DATADIR = ${abs_top_srcdir}/doc/previews/img
41HTMLDIR = ${abs_top_srcdir}/doc/html
42
43PREVIEWS = blend blur bump curve grow mask transform \
44example_1 padding
45
46previews-data: preview_text_filter
47 $(MKDIR_P) $(DATADIR)
48 $(MKDIR_P) $(HTMLDIR)
49 @for a in $(PREVIEWS) ; do \
50 echo " GEN filter_$${a}.png" ; \
51 FONT="Sans" ; \
52 SIZE=24 ; \
53 TEXT="TEXT" ; \
54 FILTER=`cat ${top_srcdir}/src/examples/evas/filters/filter_$${a}.lua` ; \
55 if [ -e ${top_srcdir}/doc/previews/filter_$${a}.sh ] ; then \
56 source ${top_srcdir}/doc/previews/filter_$${a}.sh ; \
57 fi ; \
58 EVAS_DATA_DIR="$(top_srcdir)/src/lib/evas" $(top_builddir)/doc/previews/preview_text_filter "$${TEXT}" "$${FILTER}" "$(DATADIR)/filter_$${a}.png" "$${FONT}" "$${SIZE}" ; \
59 cp "$(DATADIR)/filter_$${a}.png" "$(HTMLDIR)/" ; \
60 done
61
62if BUILD_EFL_NATIVE
63doc: Makefile previews-data
64endif
65
66
67endif
68
69EXTRA_DIST = preview_text_filter.c
70
71clean-local:
72 rm -rf $(DATADIR)
73
diff --git a/doc/widgets/Makefile.am b/doc/widgets/Makefile.am
new file mode 100644
index 0000000000..e2e75b5ac4
--- /dev/null
+++ b/doc/widgets/Makefile.am
@@ -0,0 +1,196 @@
1MAINTAINERCLEANFILES = Makefile.in
2
3if EFL_BUILD_DOC
4
5include ../../Makefile_Elm_Helpers.am
6
7AM_CPPFLAGS = \
8-I$(top_srcdir) \
9-I$(top_srcdir)/src/lib/elementary \
10-I$(top_builddir)/src/lib/elementary \
11-I$(top_srcdir)/src/bin/elementary \
12-DPACKAGE_BIN_DIR=\"$(bindir)\" \
13-DPACKAGE_DATA_DIR=\"$(datadir)/elementary\" \
14-DDOCW_DIR=\"$(abs_top_builddir)/doc/widgets\" \
15@ELEMENTARY_CFLAGS@
16
17noinst_DATA = widget_preview_prefs.epb
18
19widget_preview_prefs.epb: Makefile widget_preview_prefs.epc
20 $(AM_V_EPB)$(ELM_PREFS_CC) $(ELM_PREFS_FLAGS) \
21 $(top_srcdir)/doc/widgets/widget_preview_prefs.epc \
22 $(top_builddir)/doc/widgets/widget_preview_prefs.epb
23
24noinst_PROGRAMS = \
25widget_preview_actionslider \
26widget_preview_bg \
27widget_preview_box \
28widget_preview_bubble1 \
29widget_preview_bubble2 \
30widget_preview_bubble3 \
31widget_preview_button1 \
32widget_preview_button2 \
33widget_preview_button3 \
34widget_preview_calendar \
35widget_preview_check1 \
36widget_preview_check2 \
37widget_preview_check3 \
38widget_preview_clock \
39widget_preview_colorselector \
40widget_preview_combobox \
41widget_preview_conformant \
42widget_preview_ctxpopup \
43widget_preview_datetime1 \
44widget_preview_datetime2 \
45widget_preview_datetime3 \
46widget_preview_dayselector \
47widget_preview_diskselector \
48widget_preview_entry1 \
49widget_preview_entry2 \
50widget_preview_entry3 \
51widget_preview_entry4 \
52widget_preview_fileselector \
53widget_preview_fileselector_button1 \
54widget_preview_fileselector_button2 \
55widget_preview_fileselector_button3 \
56widget_preview_fileselector_entry \
57widget_preview_flip \
58widget_preview_flipselector \
59widget_preview_frame \
60widget_preview_gengrid \
61widget_preview_genlist1 \
62widget_preview_genlist2 \
63widget_preview_genlist3 \
64widget_preview_genlist4 \
65widget_preview_genlist5 \
66widget_preview_hover \
67widget_preview_hoversel \
68widget_preview_icon \
69widget_preview_image \
70widget_preview_index \
71widget_preview_inwin1 \
72widget_preview_inwin2 \
73widget_preview_inwin3 \
74widget_preview_label \
75widget_preview_layout \
76widget_preview_list \
77widget_preview_map \
78widget_preview_mapbuf \
79widget_preview_menu \
80widget_preview_notify \
81widget_preview_nstate \
82widget_preview_panel \
83widget_preview_panes \
84widget_preview_photocam \
85widget_preview_popup \
86widget_preview_prefs \
87widget_preview_progressbar \
88widget_preview_radio \
89widget_preview_scroller \
90widget_preview_segment_control \
91widget_preview_separator \
92widget_preview_slider \
93widget_preview_slideshow \
94widget_preview_spinner \
95widget_preview_table \
96widget_preview_thumb \
97widget_preview_toolbar \
98widget_preview_web \
99widget_preview_win
100
101LDADD = \
102$(top_builddir)/src/lib/eina/libeina.la \
103$(top_builddir)/src/lib/eo/libeo.la \
104$(top_builddir)/src/lib/efl/libefl.la \
105$(top_builddir)/src/lib/eet/libeet.la \
106$(top_builddir)/src/lib/evas/libevas.la \
107$(top_builddir)/src/lib/ecore/libecore.la \
108$(top_builddir)/src/lib/ecore_evas/libecore_evas.la \
109$(top_builddir)/src/lib/edje/libedje.la \
110$(top_builddir)/src/lib/elementary/libelementary.la \
111@ECORE_EVAS_LDFLAGS@
112
113endif
114
115EXTRA_DIST = \
116 widget_preview_actionslider.c \
117 widget_preview_bg.c \
118 widget_preview_bubble1.c \
119 widget_preview_bubble2.c \
120 widget_preview_bubble3.c \
121 widget_preview_button1.c \
122 widget_preview_button2.c \
123 widget_preview_button3.c \
124 widget_preview_calendar.c \
125 widget_preview_check1.c \
126 widget_preview_check2.c \
127 widget_preview_check3.c \
128 widget_preview_spinner.c \
129 widget_preview_clock.c \
130 widget_preview_colorselector.c \
131 widget_preview_conformant.c \
132 widget_preview_combobox.c \
133 widget_preview_slider.c \
134 widget_preview_panes.c \
135 widget_preview_toolbar.c \
136 widget_preview_mapbuf.c \
137 widget_preview_map.c \
138 widget_preview_ctxpopup.c \
139 widget_preview_datetime1.c \
140 widget_preview_datetime2.c \
141 widget_preview_datetime3.c \
142 widget_preview_dayselector.c \
143 widget_preview_diskselector.c \
144 widget_preview_entry1.c \
145 widget_preview_entry2.c \
146 widget_preview_entry3.c \
147 widget_preview_entry4.c \
148 widget_preview_fileselector_button1.c \
149 widget_preview_fileselector_button2.c \
150 widget_preview_fileselector_button3.c \
151 widget_preview_fileselector.c \
152 widget_preview_fileselector_entry.c \
153 widget_preview_flip.c \
154 widget_preview_flipselector.c \
155 widget_preview_frame.c \
156 widget_preview_hover.c \
157 widget_preview_hoversel.c \
158 widget_preview_icon.c \
159 widget_preview_image.c \
160 widget_preview_index.c \
161 widget_preview_label.c \
162 widget_preview_layout.c \
163 widget_preview_list.c \
164 widget_preview_segment_control.c \
165 widget_preview_popup.c \
166 widget_preview_separator.c \
167 widget_preview_radio.c \
168 widget_preview_panel.c \
169 widget_preview_gengrid.c \
170 widget_preview_genlist1.c \
171 widget_preview_genlist2.c \
172 widget_preview_genlist3.c \
173 widget_preview_genlist4.c \
174 widget_preview_genlist5.c \
175 widget_preview_prefs.c \
176 widget_preview_prefs.epc \
177 widget_preview_progressbar.c \
178 widget_preview_box.c \
179 widget_preview_notify.c \
180 widget_preview_nstate.c \
181 widget_preview_slideshow.c \
182 widget_preview_photocam.c \
183 widget_preview_inwin1.c \
184 widget_preview_inwin2.c \
185 widget_preview_inwin3.c \
186 widget_preview_scroller.c \
187 widget_preview_table.c \
188 widget_preview_win.c \
189 widget_preview_menu.c \
190 widget_preview_thumb.c \
191 widget_preview_web.c \
192 widget_preview_tmpl_foot.c \
193 widget_preview_tmpl_head.c
194
195clean-local:
196 rm -f widget_preview_prefs.epb