Mercurial > MadButterfly
diff src/Makefile.am @ 435:2bdd4f5dd2ca
Make sh_text and sh_stext optional.
Since sh_text depends on pango, and we want a version of MadButterfly
without Pango (lite version), we make sh_text and sh_stext optional.
User can choice which one to enable.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Wed, 29 Jul 2009 20:22:36 +0800 |
parents | 1a923ea699c1 |
children | 271212f325b4 |
line wrap: on
line diff
--- a/src/Makefile.am Wed Jul 29 16:35:13 2009 +0800 +++ b/src/Makefile.am Wed Jul 29 20:22:36 2009 +0800 @@ -2,16 +2,31 @@ lib_LTLIBRARIES = libmbfly.la -noinst_PROGRAMS = X_main $(TESTCASE) +noinst_PROGRAMS = + +if SH_TEXT +noinst_PROGRAMS += X_main +endif + +if TESTCASE +noinst_PROGRAMS += testcase +endif MBAF_SOURCES=mbaf/mbapp.c mbaf/mbbutton.c mbaf/mbobject.c mbaf/animated_menu.c -libmbfly_la_SOURCES = animate.c chgcolor.c coord.c event.c geo.c \ +libmbfly_la_SOURCES= animate.c chgcolor.c coord.c event.c geo.c \ observer.c paint.c redraw_man.c rotate.c shape_path.c \ - shape_stext.c \ - shape_rect.c shape_text.c shift.c subtree_free.c timer.c \ + shape_rect.c shift.c subtree_free.c timer.c \ timertool.c tools.c visibility.c X_supp.c prop.c sprite.c \ mouse.c shape_image.c img_ldr.c $(MBAF_SOURCES) +if SH_TEXT +libmbfly_la_SOURCES += shape_text.c +endif + +if SH_STEXT +libmbfly_la_SOURCES += shape_stext.c +endif + libmbfly_la_CPPFLAGS = @cairo_CFLAGS@ @pangocairo_CFLAGS@ libmbfly_la_LDFLAGS = @cairo_LIBS@ @pangocairo_LIBS@