include $(TOPDIR)/rules.mk include $(TINA_BUILD_TOP)/package/netease/Makefile.common PKG_NAME:=netease_voice PKG_RELEASE:=1 PKG_VERSION:=0.0.1 PKG_BUILD_DIR := $(COMPILE_DIR)/$(PKG_NAME) include $(BUILD_DIR)/package.mk $(info CONFIG_XUNFEI_MSC_SDK=$(CONFIG_XUNFEI_MSC_SDK)) $(info CONFIG_XUNFEI_TTS_SDK=$(CONFIG_XUNFEI_TTS_SDK)) $(info CONFIG_XUNFEI_CAE_SDK=$(CONFIG_XUNFEI_CAE_SDK)) $(info CONFIG_NETEASE_MSC_SDK=$(CONFIG_NETEASE_MSC_SDK)) $(info CONFIG_NETEASE_CAE_SDK=$(CONFIG_NETEASE_CAE_SDK)) $(info CONFIG_USED_DC_SDK=$(CONFIG_USED_DC_SDK)) define Package/$(PKG_NAME) SECTION:=utils CATEGORY:=Netease TITLE:=Netease voice main program in submodule MAINTAINER:=Wang zijiao DEPENDS:=+libneteasedc +libneteasevoicews +libduilite +libjansson +libspeex +alsa-lib +libuws +libjson-c +libyunxin +libcutils $(MAKE_COMMON_DEPEND) ifeq ('$(CONFIG_XUNFEI_MSC_SDK)', 'y') DEPENDS+= +libmsc else ifeq ('$(CONFIG_XUNFEI_TTS_SDK)', 'y') DEPENDS+= +libmsc endif ifeq ('$(CONFIG_XUNFEI_CAE_SDK)', 'y') DEPENDS+= +libcae endif ifeq ('$(CONFIG_NETEASE_MSC_SDK)', 'y') DEPENDS+= +libneteasevoicews endif ifeq ('$(CONFIG_NETEASE_CAE_SDK)', 'y') DEPENDS+= +libfmae endif ifeq ('$(CONFIG_NETEASE_DUILITE_SDK)', 'y') DEPENDS+= +libduilite endif ifeq ('$(CONFIG_USED_DC_SDK)', 'y') DEPENDS+= +libneteasedc endif endef ifeq ('$(CONFIG_NETEASE_DUILITE_SDK)', 'y') TARGET_LDFLAGS += -lauth_tina -lduilite endif ifeq ('$(CONFIG_XUNFEI_MSC_SDK)', 'y') TARGET_LDFLAGS += -lmsc else ifeq ('$(CONFIG_XUNFEI_TTS_SDK)', 'y') TARGET_LDFLAGS += -lmsc endif ifeq ('$(CONFIG_XUNFEI_CAE_SDK)', 'y') TARGET_LDFLAGS += -lcae endif ifeq ('$(CONFIG_NETEASE_MSC_SDK)', 'y') TARGET_LDFLAGS += -lsrcws endif ifeq ('$(CONFIG_NETEASE_CAE_SDK)', 'y') TARGET_LDFLAGS += -lfmae endif ifeq ('$(CONFIG_USED_DC_SDK)', 'y') TARGET_LDFLAGS += -ldc endif define Package/$(PKG_NAME)/config source "$(SOURCE)/Config.in" endef define Package/$(PKG_NAME)/description Netease voice triger, tts, speech recognition main program added by wzj! endef define Build/Prepare mkdir -p $(PKG_BUILD_DIR) $(CP) -d ./src/ $(PKG_BUILD_DIR)/ endef define Build/Configure endef define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR)/src \ ARCH="$(TARGET_ARCH)" \ AR="$(TARGET_AR)" \ CC="$(TARGET_CC)" \ CXX="$(TARGET_CXX)" \ CFLAGS="$(TARGET_CFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS)" \ INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \ TARGET_NAME=$(PKG_NAME) \ all endef define Package/$(PKG_NAME)/install $(INSTALL_DIR) $(1)/bin $(INSTALL_DIR) $(1)/usr/share/netease $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/* $(1)/bin $(INSTALL_BIN) ./res/* $(1)/usr/share/netease endef $(eval $(call BuildPackage,$(PKG_NAME)))