PageRenderTime 287ms CodeModel.GetById 141ms app.highlight 61ms RepoModel.GetById 80ms app.codeStats 0ms

/src/Makefile.am

http://ftk.googlecode.com/
Makefile | 313 lines | 275 code | 38 blank | 0 comment | 21 complexity | 356803690038124c1e00a4978137132b MD5 | raw file
  1include $(abs_top_builddir)/src/rules.mk
  2
  3SUBDIRS=. im os backend compiler demos test
  4
  5lib_LTLIBRARIES=libftk.la
  6
  7LINUX_FB=$(srcdir)/backend/native/ftk_display_fb.c \
  8	$(srcdir)/backend/native/ftk_source_input.c \
  9	$(srcdir)/backend/native/ftk_source_ps2mouse.c \
 10	$(srcdir)/backend/native/ftk_backend_fb.c
 11
 12LINUX_ST7781=$(srcdir)/backend/native/ftk_display_st7781.c \
 13	$(srcdir)/backend/native/ftk_source_input.c \
 14	$(srcdir)/backend/native/ftk_backend_st7781.c
 15
 16LINUX_X11=$(srcdir)/backend/x11-emu/ftk_display_x11.c \
 17	$(srcdir)/backend/x11-emu/ftk_source_x11.c \
 18	$(srcdir)/backend/x11-emu/ftk_backend_x11.c
 19
 20LINUX_DFB=$(srcdir)/backend/directfb/ftk_display_dfb.c \
 21	$(srcdir)/backend/directfb/ftk_source_dfb.c \
 22	$(srcdir)/backend/directfb/ftk_backend_dfb.c
 23
 24LINUX_SIGMA=$(srcdir)/backend/sigma/ftk_backend_sigma.c \
 25	$(srcdir)/backend/native/ftk_source_input.c \
 26	$(srcdir)/backend/sigma/ftk_display_sigma.c
 27
 28PSP=$(srcdir)/backend/psp/ftk_backend_psp.c \
 29	$(srcdir)/backend/psp/ftk_source_psp.c \
 30	$(srcdir)/backend/psp/ftk_display_psp.c
 31
 32OS_LINUX=\
 33	$(srcdir)/os/linux/ftk_mmap_linux.c  \
 34	$(srcdir)/os/linux/ftk_linux.c 
 35OS_PSP=\
 36	$(srcdir)/os/psp/ftk_mmap_psp.c \
 37	$(srcdir)/os/psp/ftk_psp.c 
 38
 39LINEBREAK= \
 40	$(srcdir)/linebreak/linebreak.c  \
 41	$(srcdir)/linebreak/linebreakdata.c  \
 42	$(srcdir)/linebreak/linebreakdef.c
 43
 44OPTIONAL_FUNCS=ftk_file_system_posix.c ftk_file_system.c ftk_file_browser.c 
 45
 46libftk_la_SOURCES=\
 47	ftk_canvas.c          ftk_source_primary.c      ftk_wnd_manager_default.c   \
 48	ftk_label.c           ftk_source_timer.c \
 49	ftk_bitmap.c          ftk_main_loop.c     ftk_util.c \
 50	ftk_source_idle.c   ftk_widget.c \
 51	ftk.c                 ftk_window.c        ftk_sources_manager.c\
 52	ftk_globals.c         ftk_button.c              ftk_image.c         ftk_log.c \
 53	ftk_dialog.c          ftk_status_item.c         ftk_status_panel.c  \
 54	ftk_menu_panel.c      ftk_menu_item.c           ftk_app_window.c    ftk_entry.c \
 55	ftk_text_buffer.c     ftk_icon_cache.c          \
 56	ftk_progress_bar.c    ftk_group_box.c         ftk_check_button.c  \
 57	ftk_gesture.c         ftk_wait_box.c  ftk_scroll_bar.c \
 58	ftk_sprite.c          ftk_display.c             ftk_xml_parser.c    ftk_xul.c \
 59	ftk_expr.c            ftk_list_view.c           ftk_list_model_default.c \
 60	ftk_list_render_default.c ftk_icon_view.c ftk_theme.c ftk_painter.c \
 61	ftk_text_view.c       ftk_pipe_socket.c        ftk_message_box.c \
 62	ftk_popup_menu.c      ftk_combo_box.c \
 63	ftk_clipboard.c       ftk_input_method_chooser_default.c ftk_input_method_manager.c \
 64	ftk_allocator.c            ftk_allocator_default.c \
 65	ftk_allocator_profile.c  \
 66	ftk_input_method_preeditor.c ftk_dlfcn.c \
 67	ftk_input_method_preeditor_default.c \
 68	ftk_main_loop_select.c ftk_config.c ftk_display_mem.c \
 69	ftk_display_rotate.c ftk_wnd_manager.c ftk_path.c \
 70	ftk_tab.c ftk_font_desc.c \
 71	ftk_animation_alpha.c   ftk_animation_scale.c      ftk_animation_trigger_default.c \
 72	ftk_animation_expand.c  ftk_animation_translate.c  ftk_animation_trigger_silence.c \
 73	ftk_animation.c ftk_pairs.c ftk_params.c ftk_interpolator_linear.c \
 74	ftk_interpolator_acc_decelerate.c  ftk_interpolator_bounce.c   \
 75	ftk_interpolator_accelerate.c      ftk_interpolator_decelerate.c \
 76	ftk_input_pattern.c ftk_key_board.c \
 77	$(OPTIONAL_FUNCS)
 78
 79if ENABLE_LINEBREAK
 80libftk_la_SOURCES += $(LINEBREAK)
 81endif
 82
 83libftk_la_CFLAGS=$(CANVAS_CFLAGS)
 84libftk_la_LDFLAGS=$(CANVAS_LDFLAGS)
 85
 86if FTK_CANVAS_DUMMY
 87CANVAS_SOURCES=$(abs_srcdir)/canvas/dummy/ftk_bitmap_factory_dummy.c $(abs_srcdir)/canvas/dummy/ftk_bitmap_dummy.c  $(abs_srcdir)/canvas/dummy/ftk_canvas_dummy.c
 88endif
 89
 90if FTK_CANVAS_SKIA 
 91CANVAS_SOURCES=$(abs_srcdir)/canvas/skia/ftk_bitmap_factory_skia.cpp  $(abs_srcdir)/canvas/skia/ftk_bitmap_skia.cpp  $(abs_srcdir)/canvas/skia/ftk_canvas_skia.cpp
 92endif
 93
 94if FTK_CANVAS_CAIRO
 95CANVAS_SOURCES=$(abs_srcdir)/canvas/skia/ftk_bitmap_factory_skia.cpp  $(abs_srcdir)/canvas/skia/ftk_bitmap_skia.cpp  $(abs_srcdir)/canvas/skia/ftk_canvas_skia.cpp
 96endif
 97
 98if FTK_CANVAS_DIRECTFB
 99CANVAS_SOURCES=$(abs_srcdir)/canvas/directfb/ftk_bitmap_factory_directfb.c $(abs_srcdir)/canvas/directfb/ftk_bitmap_directfb.c  $(abs_srcdir)/canvas/directfb/ftk_canvas_directfb.c
100libftk_la_CFLAGS+=-DFTK_FONT="\"font.ttf\"" 
101endif
102
103if FTK_CANVAS_DEFAULT
104
105if FONT_ENGINE_FREETYPE
106libftk_la_CFLAGS+=-DFTK_FONT="\"font.ttf\"" 
107endif
108
109if FONT_ENGINE_DEFAULT
110libftk_la_CFLAGS+=-DFTK_FONT="\"gb2312.fnt\"" 
111endif
112
113CANVAS_SOURCES=\
114	$(abs_srcdir)/canvas/default/ftk_font.c \
115	$(abs_srcdir)/canvas/default/ftk_canvas_default.c \
116	$(abs_srcdir)/canvas/default/ftk_bitmap_default.c \
117	$(abs_srcdir)/canvas/default/ftk_font_manager.c \
118	$(abs_srcdir)/canvas/default/ftk_bitmap_factory.c \
119	$(abs_srcdir)/canvas/default/ftk_image_png_decoder.c \
120	$(abs_srcdir)/canvas/default/ftk_image_jpeg_decoder.c \
121	$(abs_srcdir)/canvas/default/ftk_image_bmp_decoder.c
122
123if FONT_ENGINE_FREETYPE
124CANVAS_SOURCES+=$(abs_srcdir)/canvas/default/ftk_font_freetype.c
125endif
126
127if FONT_ENGINE_DEFAULT
128CANVAS_SOURCES+=$(abs_srcdir)/canvas/default/ftk_font_default.c $(abs_srcdir)/canvas/default/fontdata.c
129endif
130endif
131
132libftk_la_SOURCES+=$(CANVAS_SOURCES)
133
134if ENABLE_CAIRO
135libftk_la_SOURCES+=ftk_cairo.c
136libftk_la_SOURCES += im/default/ftk_stroke_painter_cairo.c
137endif
138
139if ENABLE_TSLIB
140LINUX_FB+=$(srcdir)/backend/native/ftk_source_tslib.c 
141LINUX_ST7781+=$(srcdir)/backend/native/ftk_source_tslib.c 
142endif
143
144if FTK_BACKEND_FB
145libftk_la_SOURCES+=$(LINUX_FB) $(OS_LINUX)
146endif
147
148if FTK_BACKEND_ST7781
149libftk_la_SOURCES+=$(LINUX_ST7781) $(OS_LINUX)
150endif
151
152if FTK_BACKEND_X11
153libftk_la_SOURCES+=$(LINUX_X11) $(OS_LINUX)
154endif
155
156if ENABLE_FRIBIDI
157libftk_la_SOURCES+=ftk_text_layout_normal.c
158else
159libftk_la_SOURCES+=ftk_text_layout_normal.c
160endif
161if FTK_BACKEND_DFB
162libftk_la_SOURCES+=$(LINUX_DFB) $(OS_LINUX)
163endif
164
165if FTK_BACKEND_SIGMA
166libftk_la_SOURCES+=$(LINUX_SIGMA) $(OS_LINUX)
167libftk_la_CFLAGS+=-I$(abs_top_srcdir)/src/backend/sigma
168libftk_la_CFLAGS+=-I$(abs_top_srcdir)/src/backend/native
169endif
170
171if FTK_BACKEND_PSP
172libftk_la_SOURCES+=$(PSP) $(OS_PSP)
173libftk_la_CFLAGS+=-I$(abs_top_srcdir)/src/backend/psp
174endif
175
176if ENABLE_GPINYIN
177libftk_la_SOURCES += im/gpinyin/share/ngram.cpp \
178	im/gpinyin/share/sync.cpp \
179	im/gpinyin/share/spellingtrie.cpp \
180	im/gpinyin/share/dicttrie.cpp \
181	im/gpinyin/share/dictbuilder.cpp \
182	im/gpinyin/share/spellingtable.cpp \
183	im/gpinyin/share/splparser.cpp \
184	im/gpinyin/share/searchutility.cpp \
185	im/gpinyin/share/utf16char.cpp \
186	im/gpinyin/share/mystdlib.cpp \
187	im/gpinyin/share/utf16reader.cpp \
188	im/gpinyin/share/userdict.cpp \
189	im/gpinyin/share/matrixsearch.cpp \
190	im/gpinyin/share/pinyinime.cpp \
191	im/gpinyin/share/lpicache.cpp \
192	im/gpinyin/share/dictlist.cpp \
193	im/gpinyin/ftk/ftk_input_method_gpinyin.cpp
194else
195libftk_la_SOURCES += im/default/ftk_input_method_util.c 
196if ENABLE_HANDWRITE
197libftk_la_SOURCES += im/default/ftk_input_method_hw.c fhw/ftk_handwrite_engine_fhw.c \
198	fhw/fhw_primitive_recognizer.c
199endif
200endif
201
202ftkdir=$(includedir)/ftk
203ftk_HEADERS=\
204	ftk_allocator_default.h \
205	ftk_allocator.h \
206	ftk_allocator_profile.h \
207	ftk_animation_alpha.h \
208	ftk_animation_expand.h \
209	ftk_animation.h \
210	ftk_animation_scale.h \
211	ftk_animation_translate.h \
212	ftk_animation_trigger_default.h \
213	ftk_animation_trigger.h \
214	ftk_animation_trigger_silence.h \
215	ftk_app_window.h \
216	ftk_backend.h \
217	ftk_bitmap_factory.h \
218	ftk_bitmap.h \
219	ftk_button.h \
220	ftk_cairo.h \
221	ftk_canvas.h \
222	ftk_check_button.h \
223	ftk_clipboard.h \
224	ftk_combo_box.h \
225	ftk_config.h \
226	ftk_dialog.h \
227	ftk_display.h \
228	ftk_display_mem.h \
229	ftk_display_rotate.h \
230	ftk_dlfcn.h \
231	ftk_entry.h \
232	ftk_event.h \
233	ftk_expr.h \
234	ftk_file_browser.h \
235	ftk_file_system.h \
236	ftk_font_desc.h \
237	ftk_gc.h \
238	ftk_gesture.h \
239	ftk_gesture_listener.h \
240	ftk_globals.h \
241	ftk.h \
242	ftk_icon_cache.h \
243	ftk_icon_view.h \
244	ftk_image_decoder.h \
245	ftk_image.h \
246	ftk_input_method_chooser.h \
247	ftk_input_method.h \
248	ftk_input_method_manager.h \
249	ftk_input_method_preeditor_default.h \
250	ftk_input_method_preeditor.h \
251	ftk_interpolator_acc_decelerate.h \
252	ftk_interpolator_accelerate.h \
253	ftk_interpolator_bounce.h \
254	ftk_interpolator_decelerate.h \
255	ftk_interpolator.h \
256	ftk_interpolator_linear.h \
257	ftk_key.h \
258	ftk_input_pattern.h \
259	ftk_label.h \
260	ftk_list_model_default.h \
261	ftk_list_model.h \
262	ftk_list_render_default.h \
263	ftk_list_render.h \
264	ftk_list_view.h \
265	ftk_log.h \
266	ftk_main_loop.h \
267	ftk_menu_item.h \
268	ftk_menu_panel.h \
269	ftk_message_box.h \
270	ftk_mmap.h \
271	ftk_painter.h \
272	ftk_pairs.h \
273	ftk_params.h \
274	ftk_path.h \
275	ftk_pipe.h \
276	ftk_platform.h \
277	ftk_popup_menu.h \
278	ftk_progress_bar.h \
279	ftk_group_box.h \
280	ftk_scroll_bar.h \
281	ftk_source.h \
282	ftk_source_idle.h \
283	ftk_source_primary.h \
284	ftk_sources_manager.h \
285	ftk_source_timer.h \
286	ftk_sprite.h \
287	ftk_status_item.h \
288	ftk_status_panel.h \
289	ftk_tab.h \
290	ftk_text_buffer.h \
291	ftk_text_layout.h \
292	ftk_text_view.h \
293	ftk_theme.h \
294	ftk_translator.h \
295	ftk_typedef.h \
296	ftk_util.h \
297	ftk_wait_box.h \
298	ftk_widget.h \
299	ftk_window.h \
300	ftk_wnd_manager_default.h \
301	ftk_wnd_manager.h \
302	ftk_xml_builder.h \
303	ftk_xml_parser.h \
304	ftk_xul.h \
305	im/default/ftk_input_method_util.h \
306	fhw/fhw_primitive_recognizer.h 
307
308EXTRA_DIST=	rules.mk \
309	ftk_input_method_preeditor_default.h \
310	linebreak/linebreakdef.h linebreak/linebreak.h \
311	ftk_translator.c  ftk_translator.h ftk_file_system_dummy.c
312
313