Mercurial > MadButterfly
annotate src/Makefile.am @ 465:d8181696b689 Android_Skia
Move functions into graphic engine layers.
Cairo and Skia have their own header files and C/C++ files. Some
functions are refactoried and move into graphic engine layer to make
reset of MadButterfly independently from graphic engines.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Thu, 12 Nov 2009 21:22:30 +0800 |
parents | 271212f325b4 |
children | cd6f57b9b104 |
rev | line source |
---|---|
185
c7e5b8779bb5
Move header files into include/mb/ subdirectory and remove symlink 'mb'.
Thinker K.F. Li <thinker@branda.to>
parents:
178
diff
changeset
|
1 include $(top_srcdir)/config.mk |
169 | 2 |
3 lib_LTLIBRARIES = libmbfly.la | |
4 | |
435
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
410
diff
changeset
|
5 noinst_PROGRAMS = |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
410
diff
changeset
|
6 |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
410
diff
changeset
|
7 if SH_TEXT |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
410
diff
changeset
|
8 noinst_PROGRAMS += X_main |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
410
diff
changeset
|
9 endif |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
410
diff
changeset
|
10 |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
410
diff
changeset
|
11 if TESTCASE |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
410
diff
changeset
|
12 noinst_PROGRAMS += testcase |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
410
diff
changeset
|
13 endif |
408
7f7855df2af0
Make unittest built by automake and autoconf.
Thinker K.F. Li <thinker@branda.to>
parents:
375
diff
changeset
|
14 |
368 | 15 MBAF_SOURCES=mbaf/mbapp.c mbaf/mbbutton.c mbaf/mbobject.c mbaf/animated_menu.c |
435
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
410
diff
changeset
|
16 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
|
17 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
|
18 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
|
19 timertool.c tools.c visibility.c prop.c sprite.c \ |
294 | 20 mouse.c shape_image.c img_ldr.c $(MBAF_SOURCES) |
280 | 21 |
435
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
410
diff
changeset
|
22 if SH_TEXT |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
410
diff
changeset
|
23 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
|
24 endif |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
410
diff
changeset
|
25 |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
410
diff
changeset
|
26 if SH_STEXT |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
410
diff
changeset
|
27 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
|
28 endif |
2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Thinker K.F. Li <thinker@branda.to>
parents:
410
diff
changeset
|
29 |
464
271212f325b4
Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents:
435
diff
changeset
|
30 if X_SUPP |
271212f325b4
Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents:
435
diff
changeset
|
31 libmbfly_la_SOURCES += X_supp.c |
271212f325b4
Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents:
435
diff
changeset
|
32 endif |
271212f325b4
Conditional compile with Cairo and Skia.
Thinker K.F. Li <thinker@branda.to>
parents:
435
diff
changeset
|
33 |
465
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
464
diff
changeset
|
34 if CAIRO_BACKEND |
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
464
diff
changeset
|
35 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
|
36 |
375
44b8223f307c
Rename MIN/MAX to MB_MIN/MB_MAX.
Thinker K.F. Li <thinker@branda.to>
parents:
368
diff
changeset
|
37 libmbfly_la_CPPFLAGS = @cairo_CFLAGS@ @pangocairo_CFLAGS@ |
44b8223f307c
Rename MIN/MAX to MB_MIN/MB_MAX.
Thinker K.F. Li <thinker@branda.to>
parents:
368
diff
changeset
|
38 libmbfly_la_LDFLAGS = @cairo_LIBS@ @pangocairo_LIBS@ |
465
d8181696b689
Move functions into graphic engine layers.
Thinker K.F. Li <thinker@branda.to>
parents:
464
diff
changeset
|
39 endif |
169 | 40 |
41 X_main_SOURCES = X_main.c | |
42 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
|
43 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
|
44 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
|
45 |
7f7855df2af0
Make unittest built by automake and autoconf.
Thinker K.F. Li <thinker@branda.to>
parents:
375
diff
changeset
|
46 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
|
47 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
|
48 -DUNITTEST -g @cairo_CFLAGS@ \ |
7f7855df2af0
Make unittest built by automake and autoconf.
Thinker K.F. Li <thinker@branda.to>
parents:
375
diff
changeset
|
49 @pangocairo_CFLAGS@ |
7f7855df2af0
Make unittest built by automake and autoconf.
Thinker K.F. Li <thinker@branda.to>
parents:
375
diff
changeset
|
50 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
|
51 |
7f7855df2af0
Make unittest built by automake and autoconf.
Thinker K.F. Li <thinker@branda.to>
parents:
375
diff
changeset
|
52 EXTRA_PROGRAMS = testcase |