annotate src/Makefile.am @ 1375:37dc1ce76bba

Add example files for the coord_hide issue
author wycc
date Fri, 11 Mar 2011 14:05:09 +0800
parents 9ad74b29e011
children
rev   line source
822
586e50f82c1f Unify coding style tag for emacs and vim.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 694
diff changeset
1 # -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 4; -*-
586e50f82c1f Unify coding style tag for emacs and vim.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 694
diff changeset
2 # vim: sw=4:ts=8:sts=4
185
c7e5b8779bb5 Move header files into include/mb/ subdirectory and remove symlink 'mb'.
Thinker K.F. Li <thinker@branda.to>
parents: 178
diff changeset
3 include $(top_srcdir)/config.mk
169
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
4
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
5 lib_LTLIBRARIES = libmbfly.la
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
6
435
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 410
diff changeset
7 noinst_PROGRAMS =
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 410
diff changeset
8
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 410
diff changeset
9 if SH_TEXT
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 410
diff changeset
10 noinst_PROGRAMS += X_main
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 410
diff changeset
11 endif
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 410
diff changeset
12
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 410
diff changeset
13 if TESTCASE
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 410
diff changeset
14 noinst_PROGRAMS += testcase
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 410
diff changeset
15 endif
408
7f7855df2af0 Make unittest built by automake and autoconf.
Thinker K.F. Li <thinker@branda.to>
parents: 375
diff changeset
16
628
e50c4e111698 Disable mbaf for OpenVG
Thinker K.F. Li <thinker@branda.to>
parents: 627
diff changeset
17 if MBAF
368
080aca2b7c47 Move the animated menu to the MBAF layer
wycc
parents: 303
diff changeset
18 MBAF_SOURCES=mbaf/mbapp.c mbaf/mbbutton.c mbaf/mbobject.c mbaf/animated_menu.c
476
ac886e629f90 Conditinal compile MBAF
Thinker K.F. Li <thinker@branda.to>
parents: 468
diff changeset
19 else
ac886e629f90 Conditinal compile MBAF
Thinker K.F. Li <thinker@branda.to>
parents: 468
diff changeset
20 MBAF_SOURCES=
ac886e629f90 Conditinal compile MBAF
Thinker K.F. Li <thinker@branda.to>
parents: 468
diff changeset
21 endif
ac886e629f90 Conditinal compile MBAF
Thinker K.F. Li <thinker@branda.to>
parents: 468
diff changeset
22
435
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 410
diff changeset
23 libmbfly_la_SOURCES= animate.c chgcolor.c coord.c event.c geo.c \
194
45d9a1e2764d Add mb_subtree_free animate action and fix bugs.
Thinker K.F. Li <thinker@branda.to>
parents: 185
diff changeset
24 observer.c paint.c redraw_man.c rotate.c shape_path.c \
435
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 410
diff changeset
25 shape_rect.c shift.c subtree_free.c timer.c \
464
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 435
diff changeset
26 timertool.c tools.c visibility.c prop.c sprite.c \
1369
9ad74b29e011 Fix the bug reported by Wayling
Thinker K.F. Li <thinker@codemud.net>
parents: 1173
diff changeset
27 mouse.c shape_image.c precomputed.c $(MBAF_SOURCES)
1173
6a71b3c43c67 Fix issue of fault to build for ubunutu.
Thinker K.F. Li <thinker@codemud.net>
parents: 1129
diff changeset
28
6a71b3c43c67 Fix issue of fault to build for ubunutu.
Thinker K.F. Li <thinker@codemud.net>
parents: 1129
diff changeset
29 BUILT_SOURCES = precomputed.c precomputed.h
6a71b3c43c67 Fix issue of fault to build for ubunutu.
Thinker K.F. Li <thinker@codemud.net>
parents: 1129
diff changeset
30 CLEANFILES = precomputed.c precomputed.h
1068
aed05ad5102d Fix CPPFLAGS and LDFLAGS of libmbfly_la for imlib2
Thinker K.F. Li <thinker@codemud.net>
parents: 1067
diff changeset
31
aed05ad5102d Fix CPPFLAGS and LDFLAGS of libmbfly_la for imlib2
Thinker K.F. Li <thinker@codemud.net>
parents: 1067
diff changeset
32 libmbfly_la_CPPFLAGS =
aed05ad5102d Fix CPPFLAGS and LDFLAGS of libmbfly_la for imlib2
Thinker K.F. Li <thinker@codemud.net>
parents: 1067
diff changeset
33 libmbfly_la_LDFLAGS =
280
c8b6ca46950b Add merged result
wycc
parents: 278 257
diff changeset
34
435
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 410
diff changeset
35 if SH_TEXT
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 410
diff changeset
36 libmbfly_la_SOURCES += shape_text.c
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 410
diff changeset
37 endif
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 410
diff changeset
38
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 410
diff changeset
39 if SH_STEXT
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 410
diff changeset
40 libmbfly_la_SOURCES += shape_stext.c
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 410
diff changeset
41 endif
2bdd4f5dd2ca Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents: 410
diff changeset
42
654
21f944e79b19 Use --with-backend to specify display backend.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 476
diff changeset
43 if X_BACKEND
464
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 435
diff changeset
44 libmbfly_la_SOURCES += X_supp.c
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 435
diff changeset
45 endif
271212f325b4 Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents: 435
diff changeset
46
903
4c7f0ec97ad9 Copy src/dfb_supp.c from src/X_supp.c
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 822
diff changeset
47 if DFB_BACKEND
4c7f0ec97ad9 Copy src/dfb_supp.c from src/X_supp.c
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 822
diff changeset
48 libmbfly_la_SOURCES += dfb_supp.c
4c7f0ec97ad9 Copy src/dfb_supp.c from src/X_supp.c
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 822
diff changeset
49 endif
4c7f0ec97ad9 Copy src/dfb_supp.c from src/X_supp.c
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents: 822
diff changeset
50
1111
fa5f71d4aa04 console backend
Thinker K.F. Li <thinker@codemud.net>
parents: 1105
diff changeset
51 if CONSOLE_BACKEND
fa5f71d4aa04 console backend
Thinker K.F. Li <thinker@codemud.net>
parents: 1105
diff changeset
52 libmbfly_la_SOURCES += cons_supp.c
fa5f71d4aa04 console backend
Thinker K.F. Li <thinker@codemud.net>
parents: 1105
diff changeset
53 endif
fa5f71d4aa04 console backend
Thinker K.F. Li <thinker@codemud.net>
parents: 1105
diff changeset
54
1067
7b4e80ab671a merge from default branch
Thinker K.F. Li <thinker@codemud.net>
parents: 628 903
diff changeset
55 if CAIRO_IMG_LOADER
7b4e80ab671a merge from default branch
Thinker K.F. Li <thinker@codemud.net>
parents: 628 903
diff changeset
56 libmbfly_la_SOURCES += img_ldr.c
7b4e80ab671a merge from default branch
Thinker K.F. Li <thinker@codemud.net>
parents: 628 903
diff changeset
57 endif
7b4e80ab671a merge from default branch
Thinker K.F. Li <thinker@codemud.net>
parents: 628 903
diff changeset
58
7b4e80ab671a merge from default branch
Thinker K.F. Li <thinker@codemud.net>
parents: 628 903
diff changeset
59 if IMLIB2_IMG_LOADER
7b4e80ab671a merge from default branch
Thinker K.F. Li <thinker@codemud.net>
parents: 628 903
diff changeset
60 libmbfly_la_SOURCES += img_ldr_imlib2.c
1068
aed05ad5102d Fix CPPFLAGS and LDFLAGS of libmbfly_la for imlib2
Thinker K.F. Li <thinker@codemud.net>
parents: 1067
diff changeset
61
aed05ad5102d Fix CPPFLAGS and LDFLAGS of libmbfly_la for imlib2
Thinker K.F. Li <thinker@codemud.net>
parents: 1067
diff changeset
62 libmbfly_la_CPPFLAGS += @imlib2_CFLAGS@
aed05ad5102d Fix CPPFLAGS and LDFLAGS of libmbfly_la for imlib2
Thinker K.F. Li <thinker@codemud.net>
parents: 1067
diff changeset
63 libmbfly_la_LDFLAGS += @imlib2_LIBS@
1067
7b4e80ab671a merge from default branch
Thinker K.F. Li <thinker@codemud.net>
parents: 628 903
diff changeset
64 endif
7b4e80ab671a merge from default branch
Thinker K.F. Li <thinker@codemud.net>
parents: 628 903
diff changeset
65
1105
1b3e295f3acb Add a dummy image loader.
Thinker K.F. Li <thinker@codemud.net>
parents: 1075
diff changeset
66 if DUMMY_IMG_LOADER
1b3e295f3acb Add a dummy image loader.
Thinker K.F. Li <thinker@codemud.net>
parents: 1075
diff changeset
67 libmbfly_la_SOURCES += img_ldr_dummy.c
1b3e295f3acb Add a dummy image loader.
Thinker K.F. Li <thinker@codemud.net>
parents: 1075
diff changeset
68 endif
1b3e295f3acb Add a dummy image loader.
Thinker K.F. Li <thinker@codemud.net>
parents: 1075
diff changeset
69
466
cd6f57b9b104 Add graph_engine_skia.c
Thinker K.F. Li <thinker@branda.to>
parents: 465
diff changeset
70 if CAIRO_GRAPH_ENGINE
465
d8181696b689 Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents: 464
diff changeset
71 libmbfly_la_SOURCES += graph_engine_cairo.c
d8181696b689 Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents: 464
diff changeset
72
601
8863d23cea4b Load images with Imlib2.
Thinker K.F. Li <thinker@branda.to>
parents: 591
diff changeset
73 libmbfly_la_CPPFLAGS += @cairo_CFLAGS@ @pangocairo_CFLAGS@
694
7e64e0f70cb6 Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents: 693
diff changeset
74 libmbfly_la_LDFLAGS += @cairo_LIBS@ @pangocairo_LIBS@
7e64e0f70cb6 Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents: 693
diff changeset
75 endif
7e64e0f70cb6 Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents: 693
diff changeset
76
7e64e0f70cb6 Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents: 693
diff changeset
77 if XSHM
7e64e0f70cb6 Switch XSHM with autoconf
Thinker K.F. Li <thinker@branda.to>
parents: 693
diff changeset
78 libmbfly_la_LDFLAGS += -lXext
465
d8181696b689 Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents: 464
diff changeset
79 endif
169
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
80
466
cd6f57b9b104 Add graph_engine_skia.c
Thinker K.F. Li <thinker@branda.to>
parents: 465
diff changeset
81 if SKIA_GRAPH_ENGINE
468
ae784a86ba82 C++ instead of C to bridge to Skia
Thinker K.F. Li <thinker@branda.to>
parents: 466
diff changeset
82 libmbfly_la_SOURCES += graph_engine_skia.cpp
466
cd6f57b9b104 Add graph_engine_skia.c
Thinker K.F. Li <thinker@branda.to>
parents: 465
diff changeset
83 endif
cd6f57b9b104 Add graph_engine_skia.c
Thinker K.F. Li <thinker@branda.to>
parents: 465
diff changeset
84
1067
7b4e80ab671a merge from default branch
Thinker K.F. Li <thinker@codemud.net>
parents: 628 903
diff changeset
85 if DFB_GRAPH_ENGINE
7b4e80ab671a merge from default branch
Thinker K.F. Li <thinker@codemud.net>
parents: 628 903
diff changeset
86 libmbfly_la_SOURCES += graph_engine_dfb.c
7b4e80ab671a merge from default branch
Thinker K.F. Li <thinker@codemud.net>
parents: 628 903
diff changeset
87 endif
7b4e80ab671a merge from default branch
Thinker K.F. Li <thinker@codemud.net>
parents: 628 903
diff changeset
88
591
71df2896877c build graph_engine_openvg.c in makefile
Thinker K.F. Li <thinker@branda.to>
parents: 476
diff changeset
89 if OPENVG_GRAPH_ENGINE
71df2896877c build graph_engine_openvg.c in makefile
Thinker K.F. Li <thinker@branda.to>
parents: 476
diff changeset
90 libmbfly_la_SOURCES += graph_engine_openvg.c
1075
a7f16c967a0b Remove linking EGL
Thinker K.F. Li <thinker@codemud.net>
parents: 1068
diff changeset
91 libmbfly_la_LDFLAGS += -lOpenVG
591
71df2896877c build graph_engine_openvg.c in makefile
Thinker K.F. Li <thinker@branda.to>
parents: 476
diff changeset
92 endif
71df2896877c build graph_engine_openvg.c in makefile
Thinker K.F. Li <thinker@branda.to>
parents: 476
diff changeset
93
169
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
94 X_main_SOURCES = X_main.c
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
95 X_main_LDADD = $(top_builddir)/src/libmbfly.la
408
7f7855df2af0 Make unittest built by automake and autoconf.
Thinker K.F. Li <thinker@branda.to>
parents: 375
diff changeset
96 X_main_CPPFLAGS = @pangocairo_CFLAGS@ -I$(top_builddir)/include
278
a90fd749af82 Implement the whole tspan attribute. Currently, we can accept font family/font style/font weight and font size.
wycc
parents: 231
diff changeset
97 X_main_LDFLAGS = @pangocairo_LIBS@
408
7f7855df2af0 Make unittest built by automake and autoconf.
Thinker K.F. Li <thinker@branda.to>
parents: 375
diff changeset
98
7f7855df2af0 Make unittest built by automake and autoconf.
Thinker K.F. Li <thinker@branda.to>
parents: 375
diff changeset
99 testcase_SOURCES = testcase.c $(libmbfly_la_SOURCES)
7f7855df2af0 Make unittest built by automake and autoconf.
Thinker K.F. Li <thinker@branda.to>
parents: 375
diff changeset
100 testcase_CFLAGS = -I$(top_builddir)/include \
7f7855df2af0 Make unittest built by automake and autoconf.
Thinker K.F. Li <thinker@branda.to>
parents: 375
diff changeset
101 -DUNITTEST -g @cairo_CFLAGS@ \
7f7855df2af0 Make unittest built by automake and autoconf.
Thinker K.F. Li <thinker@branda.to>
parents: 375
diff changeset
102 @pangocairo_CFLAGS@
7f7855df2af0 Make unittest built by automake and autoconf.
Thinker K.F. Li <thinker@branda.to>
parents: 375
diff changeset
103 testcase_LDFLAGS = -lcunit -L/usr/local/lib/ @pangocairo_LIBS@
7f7855df2af0 Make unittest built by automake and autoconf.
Thinker K.F. Li <thinker@branda.to>
parents: 375
diff changeset
104
7f7855df2af0 Make unittest built by automake and autoconf.
Thinker K.F. Li <thinker@branda.to>
parents: 375
diff changeset
105 EXTRA_PROGRAMS = testcase
1129
eca737d33a18 Improve performance of function to compute center of an arc.
Thinker K.F. Li <thinker@codemud.net>
parents: 1111
diff changeset
106
eca737d33a18 Improve performance of function to compute center of an arc.
Thinker K.F. Li <thinker@codemud.net>
parents: 1111
diff changeset
107 precomputed.c precomputed.h: $(top_srcdir)/tools/gen_precomputed_tabs.py
eca737d33a18 Improve performance of function to compute center of an arc.
Thinker K.F. Li <thinker@codemud.net>
parents: 1111
diff changeset
108 $(PYTHON_PATH) $(top_srcdir)/tools/gen_precomputed_tabs.py \
eca737d33a18 Improve performance of function to compute center of an arc.
Thinker K.F. Li <thinker@codemud.net>
parents: 1111
diff changeset
109 precomputed.c precomputed.h