Home | History | Annotate | Download | only in grxmlcompile
      1 # Copyright 2006 The Android Open Source Project
      2 
      3 LOCAL_PATH:= $(call my-dir)
      4 include $(CLEAR_VARS)
      5 
      6 # common settings for all ASR builds, exports some variables for sub-makes
      7 include $(ASR_MAKE_DIR)/Makefile.defs
      8 
      9 OPENFSTSDK=$(ASR_ROOT_DIR)/tools/thirdparty/OpenFst
     10 
     11 LOCAL_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 
     22 ifndef OPENFSTSDK
     23 LOCAL_SRC_FILES += sub_phon.cpp vocab.cpp
     24 endif
     25 
     26 LOCAL_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 
     41 LOCAL_CFLAGS += \
     42 	$(ASR_GLOBAL_DEFINES) \
     43 	$(ASR_GLOBAL_CPPFLAGS) \
     44 	-fexceptions \
     45 
     46 LOCAL_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 
     60 ifdef OPENFSTSDK
     61 LOCAL_C_INCLUDES += $(OPENFSTSDK)
     62 LOCAL_CFLAGS +=	-DOPENFSTSDK
     63 LOCAL_SHARED_LIBRARIES += libfst
     64 endif
     65 
     66 LOCAL_CLANG := true
     67 
     68 LOCAL_CPPFLAGS += -std=c++11
     69 
     70 # Workaround clang 3.5 bug: b/15319952
     71 LOCAL_CFLAGS += -O1
     72 
     73 LOCAL_STATIC_LIBRARIES := \
     74 	libtinyxml \
     75 
     76 LOCAL_LDLIBS := \
     77 	-lm \
     78 	-lpthread \
     79 	-ldl \
     80 
     81 LOCAL_MODULE:= grxmlcompile
     82 
     83 LOCAL_32_BIT_ONLY := true
     84 
     85 include external/libcxx/libcxx.mk
     86 
     87 include $(BUILD_HOST_EXECUTABLE)
     88