• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2006 The Android Open Source Project
2
3LOCAL_PATH:= $(call my-dir)
4include $(CLEAR_VARS)
5
6# common settings for all ASR builds, exports some variables for sub-makes
7include $(ASR_MAKE_DIR)/Makefile.defs
8
9OPENFSTSDK=$(ASR_ROOT_DIR)/tools/thirdparty/OpenFst
10
11LOCAL_SRC_FILES:= \
12	gr_iface.cpp \
13	netw_dump.cpp \
14	sub_base.cpp \
15	sub_grph.cpp \
16	sub_min.cpp \
17	sub_supp.cpp \
18	grxmlcompile.cpp \
19	grxmldoc.cpp \
20	hashmap.cpp \
21
22ifndef OPENFSTSDK
23LOCAL_SRC_FILES += sub_phon.cpp vocab.cpp
24endif
25
26LOCAL_C_INCLUDES := \
27	$(LOCAL_PATH) \
28	$(ASR_ROOT_DIR)/shared/include \
29	$(ASR_ROOT_DIR)/portable/include \
30	$(ASR_ROOT_DIR)/srec/include \
31	$(ASR_ROOT_DIR)/srec/AcousticModels/include \
32	$(ASR_ROOT_DIR)/srec/EventLog/include \
33	$(ASR_ROOT_DIR)/srec/Grammar/include \
34	$(ASR_ROOT_DIR)/srec/Nametag/include \
35	$(ASR_ROOT_DIR)/srec/Recognizer/include \
36	$(ASR_ROOT_DIR)/srec/Session/include \
37	$(ASR_ROOT_DIR)/srec/Semproc/include \
38	$(ASR_ROOT_DIR)/srec/Vocabulary/include \
39	external/tinyxml \
40
41LOCAL_CFLAGS += \
42	$(ASR_GLOBAL_DEFINES) \
43	$(ASR_GLOBAL_CPPFLAGS) \
44	-fexceptions \
45
46LOCAL_SHARED_LIBRARIES := \
47	libESR_Shared \
48	libESR_Portable \
49	libSR_AcousticModels \
50	libSR_AcousticState \
51	libSR_Core \
52	libSR_EventLog \
53	libSR_G2P \
54	libSR_Grammar \
55	libSR_Nametag \
56	libSR_Session \
57	libSR_Semproc \
58	libSR_Vocabulary \
59
60ifdef OPENFSTSDK
61LOCAL_C_INCLUDES += $(OPENFSTSDK)
62LOCAL_CFLAGS +=	-DOPENFSTSDK
63LOCAL_SHARED_LIBRARIES += libfst
64endif
65
66LOCAL_STATIC_LIBRARIES := \
67	libtinyxml \
68
69LOCAL_LDLIBS := \
70	-lm \
71	-lpthread \
72	-ldl \
73
74LOCAL_MODULE:= grxmlcompile
75
76include $(BUILD_HOST_EXECUTABLE)
77