123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398 |
- # include UCLICDIR and CROSS
- # !! DO NOT reset CFLAGS (i.e. use CFLAGS+=xxx, NOT CFLAGS=xxx) after this include
- include ../../../Makefile.project
- include ../../../Makefile.toolchain
- #***************************************************************************
- # Define Environment Variables
- #***************************************************************************
- ifndef LIB_DIR
- LIB_DIR = ../../../lib
- endif
- ifndef ROOT_DIR
- ROOT_DIR = ../../../..
- endif
- KERNELDIR = ../../../../kernel/linux
- UIRESOURCE_DIR = resources
- MEDIA_UIRESOURCE_DIR = resources
- UIRESOURCE_INC = -I$(CURDIR)/$(UIRESOURCE_DIR)/include -I$(CURDIR)/$(UIRESOURCE_DIR)/string/include -I$(CURDIR)/$(UIRESOURCE_DIR)/font/include
- export UIRESOURCE_DIR
- export UIRESOURCE_INC
- USE_LIBPNG = n
- ifeq ($(CONFIG_SUPPORT_MHEG5),y)
- USE_LIBPNG = y
- endif
- ifeq ($(CONFIG_MEDIA_PHOTO_PNG),y)
- USE_LIBPNG = y
- endif
- USE_LIBJPG = n
- ifeq ($(CONFIG_SUPPORT_MHEG5_HD),y)
- USE_LIBJPG = y
- endif
- ifeq ($(CONFIG_MEDIA_PHOTO_JPG),y)
- USE_LIBJPG = y
- endif
- USE_AV_DEV=n
- ifeq ($(CONFIG_MEDIA_ENABLE),y)
- USE_AV_DEV=y
- endif
- #***************************************************************************
- # Define Compiler Flags
- #***************************************************************************
- ifeq ($(CONFIG_EXE_STATIC),y)
- LIBS += $(UCLIBCDIR)/usr/lib/libpthread.a
- LIBS += $(UCLIBCDIR)/usr/lib/librt.a
- LIBS += $(UCLIBCDIR)/usr/lib/libm.a
- else
- LDFLAGS += -lrt -ldl
- endif
- ifeq ($(CONFIG_VERSION),release)
- CFLAGS += -Dwatchdog
- endif
- include $(LIB_DIR)/lib.mak
- LIBS += $(LIB_MIDMEDIA_STATIC)
- LIBS += $(LIB_FS_STATIC)
- ifeq ($(USE_AV_DEV),y)
- LIBS += ../../../av_dev/runav/lib/librunav.a
- LIBS += ../../../av_dev/runav/lib/libavutil.a
- LIBS += ../../../av_dev/runav/lib/libavformat.a
- LIBS += ../../../av_dev/runav/lib/libavcodec.a
- LIBS += $(LIB_MATH_EN_STATIC)
- LIBS += ../../../av_dev/mpdev/lib/libmpdev.a
- #add openssl library for https
- ifeq ($(CONFIG_SUPPORT_NETWORK),y)
- LIBS += $(LIB_OPENSSL)
- endif
- ifeq ($(CONFIG_SUPPORT_DASH),y)
- LIBS += $(LIB_LIBXML2)
- endif
- ifeq ($(CONFIG_RUNAV_MEMORY_DEBUG), y)
- LIBS += ../../../av_dev/debug_memory/libDbgMem.a
- endif
- LIBS += $(LIB_RECORD_STATIC)
- ifeq ($(CONFIG_MEDIA_ENABLE),y)
- LIBS += $(LIB_PICAPI_STATIC)
- endif
- ifeq ($(USE_LIBJPG),y)
- LIBS += $(LIB_JPG_STATIC)
- endif
- ifeq ($(USE_LIBPNG),y)
- LIBS += $(LIB_PNG_STATIC)
- endif
- endif
- LIBS += $(LIB_ZLIB_STATIC)
- ifeq ($(CONFIG_MEDIA_ENABLE),y)
- LIBS += ../../../lib/libpic.a
- endif
- #ifeq ($(CONFIG_ATV_SUPPORT),y)
- LIBS += $(LIB_ATVGUIOBJ_STATIC)
- #endif
- ifeq ($(CONFIG_MEDIA_ENABLE),y)
- LIBS += $(LIB_MEDIAGUIOBJ_STATIC)
- endif
- ifeq ($(CONFIG_SUPPORT_NETAPP),y)
- LIBS += $(LIB_NETWORKGUIOBJ_STATIC)
- endif
- LIBS += $(LIB_APPCOMMON_STATIC)
- LIBS += $(LIB_SYSCOMMONGUIOBJ_STATIC)
- LIBS += $(LIB_DTVUI_STATIC)
- ifeq ($(CONFIG_MEDIA_ENABLE),y)
- LIBS += $(LIB_MMUI_STATIC)
- endif
- ifeq ($(CONFIG_SUPPORT_NETAPP),y)
- LIBS += $(LIB_NETUI_STATIC)
- endif
- LIBS += $(LIB_APPINFRA_STATIC)
- LIBS += $(LIB_GSL_STATIC)
- LIBS += $(LIB_AFW_STATIC)
- LIBS += $(LIB_MIDDATABASE_STATIC)
- LIBS += $(LIB_UPGRADE_STATIC)
- LIBS += $(LIB_MIDLOGO_STATIC)
- LIBS += $(LIB_APPDAEMON_STATIC)
- LIBS += $(LIB_MIDDISPLAY_STATIC)
- LIBS += $(LIB_IOCTLINTERFACE_STATIC)
- LIBS += $(LIB_TVFE_STATIC)
- LIBS += $(LIB_MIDATV_STATIC)
- LIBS += $(LIB_OSDLIB_STATIC)
- LIBS += $(LIB_GUIENG_STATIC)
- LIBS += $(LIB_UNICODE_STATIC)
- LIBS += $(LIB_SUBTITLE_STATIC)
- LIBS += $(LIB_CECTV_STATIC)
- LIBS += $(LIB_PARTITIONMNG_STATIC)
- LIBS += $(LIB_MIDPVR_STATIC)
- LIBS += $(LIB_KEYUPDATE_STATIC)
- LIBS += $(LIB_DAEMON_STATIC)
- LIBS += $(LIB_MIDDEBUG_STATIC)
- ifeq ($(CONFIG_SUPPORT_TTX),y)
- LIBS += $(LIB_TTX_STATIC)
- endif
- ifeq ($(CONFIG_CC_SUPPORT),y)
- LIBS += $(LIB_CC_STATIC)
- endif
- ifeq ($(CONFIG_SUPPORT_NEW_AIRPLAY),y)
- LIBS += $(LIB_NEW_AIRPLAY_STATIC)
- endif
- ifeq ($(CONFIG_EXTIC_FRC),y)
- LIBS += $(LIB_EXTIC_FRC)
- endif
- ifeq ($(CONFIG_EXTIC_HDMI_SWITCH),y)
- LIBS += $(LIB_EXTIC_HDMI_SWITCH)
- endif
- ifeq ($(CONFIG_EXTIC_DIGITALAMP),y)
- LIBS += $(LIB_EXTIC_DIGITALAMP)
- endif
- ifeq ($(CONFIG_EXTIC_STORAGE_DEVICE),y)
- LIBS += $(LIB_EXTIC_STORAGE_DEVICE)
- endif
- LIBS += $(LIB_MWUSBEDIT)
- LIBS += $(LIB_UMFEVENT_STATIC)
- ifeq ($(CONFIG_MIFI_SUPPORT),y)
- LIBS += $(LIB_MIFI_STATIC)
- endif
- ifeq ($(CONFIG_CALL_TRACE),y)
- LIBS += $(LIB_CALL_TRACE)
- endif
- ifeq ($(CONFIG_SUPPORT_NETWORK),y)
- LIBS += $(LIB_NETWORK_SETTING_STATIC)
- ifeq ($(CONFIG_SUPPORT_NET_OTA),y)
- LIBS += $(LIB_NETWORK_OTA_STATIC)
- endif
- endif
- ifeq ($(CONFIG_SUPPORT_CHECK_STRING_SIZE), y)
- LIBS += $(LIB_CHK_STR)
- endif
- LIBS += $(LIB_LZMA)
- #game
- ifeq ($(CONFIG_OSD_GAME_SUPPORT), y)
- LIBS += $(LIB_OSD_GAME)
- endif
- ifeq ($(CONFIG_SUPPORT_NES_GAME), y)
- LIBS += $(LIB_NES_GAME)
- LIBS += $(LIB_NES_CORE)
- endif
- # debug tool shall be the last
- LIBS += $(LIB_DEBUG_TOOLS)
- LIBS += $(LIB_NEDMALLOC)
- ifeq ($(CONFIG_BT_RDA5856),y)
- LIBS += $(LIB_BT5856)
- endif
- #Miracast
- ifeq ($(CONFIG_SUPPORT_MIRACAST), y)
- LIBS += $(LIB_MIRACAST)
- endif
- ifeq ($(CONFIG_SUPPORT_DLNA), y)
- LIBS += $(LIB_DLNA)
- endif
- ifeq ($(CONFIG_SUPPORT_HBBTV), y)
- LIBS += $(LIB_HBBTV)
- endif
- EXTRA_OBJS += -Wl,--start-group $(LIBS) -Wl,--end-group
- INCLUDE += -I./include
- INCLUDE += -I./atv/include
- INCLUDE += -I./atv/include/guiobj
- INCLUDE += -I./atv/include/app_atv_api
- INCLUDE += $(UIRESOURCE_INC)
- ifeq ($(CONFIG_MEDIA_ENABLE),y)
- INCLUDE += -I./media/include
- INCLUDE += -I./media/include/gui_objects
- INCLUDE += -I./media/resources/include
- endif
- ifeq ($(CONFIG_SUPPORT_NETAPP),y)
- INCLUDE += -I./network/include
- INCLUDE += -I./network/resources/include
- endif
- INCLUDE += -I./include/guiobj
- INCLUDE += -I./include/app_common_api
- INCLUDE += -I../../../include
- INCLUDE += -I../../../include/gsl
- INCLUDE += -I../../../include/app_infra
- INCLUDE += -I../../app_frmwrk/dvb/include
- INCLUDE += -I../../daemon/include
- ifeq ($(CONFIG_OSD_GAME_SUPPORT),y)
- INCLUDE += -I../../../../include/game
- endif
- INCLUDE += -I../../../app_infra/include
- INCLUDE += -I../../../include/middleware/ioctl_interface
- INCLUDE += -I../../../include/middleware/database
- INCLUDE += -I../../../include/middleware/tvfe
- INCLUDE += -I../../../include/middleware/cec_tv
- INCLUDE += -I../../../include/middleware/atv/atv_scan
- INCLUDE += -I../../../include/middleware/atv/atv_afc
- INCLUDE += -I../../../include/middleware/atv/atv_ats
- INCLUDE += -I../../../include/middleware/display
- INCLUDE += -I../../../include/middleware/dtv/dtvcommon
- INCLUDE += -I../../../include/middleware/dtv/dtvmonitor
- INCLUDE += -I../../../include/middleware/dtv/dtvplayback
- INCLUDE += -I../../../include/middleware/dtv/dtvpsimonitor
- INCLUDE += -I../../../include/middleware/dtv/dtvsipsi
- INCLUDE += -I../../../include/middleware/dtv/dtvscan
- INCLUDE += -I../../../include/middleware/dtv/dtvepg
- INCLUDE += -I../../../include/middleware/dtv/dtvota
- INCLUDE += -I../../../include/middleware/dtv/dtv_record
- INCLUDE += -I../../../include/middleware/dtv/dtvci
- INCLUDE += -I../../../include/middleware/media/filesystem
- INCLUDE += -I../../../include/middleware/media/playlist
- INCLUDE += -I../../../include/middleware/media/player
- INCLUDE += -I../../../include/middleware/media/musicplaylist
- INCLUDE += -I../../../include/middleware/media
- INCLUDE += -I../../../include/middleware/common
- INCLUDE += -I../../../include/middleware/common/umf_event
- INCLUDE += -I../../../include/middleware/common/upgrade
- INCLUDE += -I../../../include/middleware/common/gui_eng
- INCLUDE += -I../../../$(CUSTOMER_BOARD_PATH)/adaptable
- INCLUDE += -I../../../$(CUSTOMER_BOARD_PATH)/nvmem
- INCLUDE += -I../../../$(FORMAL_CUSTOMER_PATH)
- INCLUDE += -I../../../../drivers/include
- INCLUDE += -I../../../../drivers/module_include
- INCLUDE += -I../../../include/middleware/ptnmng/partitionlist
- INCLUDE += -I../../../middleware/dtv/dtv_recorder
- INCLUDE += -I../../../middleware/common/osdlib
- ifeq ($(CONFIG_SUPPORT_WIFI),y)
- INCLUDE += -I../../../include/middleware/network/netsetting
- endif
- ifeq ($(CONFIG_SUPPORT_MIRACAST),y)
- INCLUDE += -I../../../include/middleware/network/miracast/wfd
- endif
- ifeq ($(CONFIG_SUPPORT_NET_OTA),y)
- INCLUDE += -I../../../include/middleware/network/net_ota
- endif
- ifeq ($(CONFIG_EXTIC_HDMI_SWITCH),y)
- ifeq ($(CONFIG_EXTIC_HDMI_SWITCH_TI6633),y)
- INCLUDE += -I../../../external/hdmi_switch/TI6633
- endif
- endif
- ifeq ($(CONFIG_EXTIC_DIGITALAMP),y)
- ifeq ($(CONFIG_EXTIC_DIGITALAMP_TAS5711),y)
- INCLUDE += -I../../../external/digitalamp/TAS5711
- endif
- ifeq ($(CONFIG_EXTIC_DIGITALAMP_NTP8849),y)
- INCLUDE += -I../../../external/digitalamp/NTP8849
- endif
- ifeq ($(CONFIG_EXTIC_DIGITALAMP_WA6819B),y)
- INCLUDE += -I../../../external/digitalamp/WA6819B
- endif
- endif
- ifeq ($(CONFIG_EXTIC_STORAGE_DEVICE),y)
- ifeq ($(CONFIG_EXTIC_STORAGE_DEVICE_CW24C08),y)
- INCLUDE += -I../../../external/storage_device/cw24c08
- endif
- endif
- TARGET_EXE = umf
- SRCS_LIST += main.c main_app_external.c main_app_initflow.c umf_debug.c
- ifeq ($(CONFIG_NOT_USEBB),y)
- SRCS_LIST += app.c
- VPATH += ../../../minibox
- LIBS += $(LIB_MINIBOX_STATIC)
- INCLUDE += -I../../../minibox/include
- else
- SRCS_LIST += toy.c
- VPATH += ../../../toy/currsrc
- CFLAGS += -DUMF_USE_SF
- endif
- # IR
- include ../../../customer/$(CUSTOMER_NAME)/public/ir/irinclude.in
- include ../../../customer/$(CUSTOMER_NAME)/public/ir/irsrc.in
- # IR_TX
- ifeq ($(CONFIG_SUPPORT_IR_TX),y)
- include ../../../customer/$(CUSTOMER_NAME)/public/ir_tx/ir_txinclude.in
- include ../../../customer/$(CUSTOMER_NAME)/public/ir_tx/ir_txsrc.in
- endif
- #customer
- VPATH += ../../../$(CUSTOMER_BOARD_PATH)/adaptable
- SRCS_LIST += board_config.c keypad_mapping.c
- VPATH += ../../../customer/$(CUSTOMER_NAME)/public/panel
- SRCS_LIST += pq_table.c
- ifeq ($(CONFIG_SUPPORT_NES_GAME),y)
- VPATH += ../../../customer/$(CUSTOMER_NAME)/public/joystick
- SRCS_LIST += js_map_table.c
- SRCS_LIST += js_info.c
- endif
- compnent += app_common_api sys_common_guiobj $(UIRESOURCE_DIR)
- #ifeq ($(CONFIG_ATV_SUPPORT),y)
- compnent += atv
- #endif
- ifeq ($(CONFIG_MEDIA_ENABLE),y)
- compnent += media
- endif
- ifeq ($(CONFIG_SUPPORT_NETAPP),y)
- compnent += network
- endif
- #ifeq ($(CONFIG_SUPPORT_MIRACAST),y)
- #compnent += wfd_player
- #endif
- .PHONY: all clean install $(compnent) refineUIResource $(TARGET_EXE)
- refineUIResource:
- # ../../../../tools/refine_ui_resource.pl -T ./$(UIRESOURCE_DIR)/region/TV_bitmap_res.c \
- # -V ./$(UIRESOURCE_DIR)/region/TV_palette_res.c -M ./media/$(MEDIA_UIRESOURCE_DIR)/region/FilePlayer_bitmap_res.c \
- # -P ./media/$(MEDIA_UIRESOURCE_DIR)/region/FilePlayer_palette_res.c
- BUILD_MODULE: $(compnent)
- $(compnent): refineUIResource
- @$(MAKE) -C $@ all
- all: $(TARGET_EXE)
- install:
- ifndef CONFIG_INSTALLDIR
- $(error [ERROR] CONFIG_INSTALLDIR not define!!)
- endif
- cp -af $(TARGET_EXE) $(CONFIG_INSTALLDIR)/tmp
- ifeq ($(CONFIG_EXE_STATIC),n)
- cp -af ../../../gsl/librt.so.0 $(CONFIG_INSTALLDIR)/lib
- endif
- ifeq ($(CONFIG_FONT_ENGINE_HARFBUZZ),y)
- $(MAKE) -C $(UIRESOURCE_DIR) install
- endif
- clean_loop: clean
- @rm -fr $(TARGET_EXE)
- @$(MAKE) -C atv clean_loop
- ifeq ($(CONFIG_MEDIA_ENABLE),y)
- @$(MAKE) -C media clean_loop
- endif
- @$(MAKE) -C app_common_api clean_loop
- @$(MAKE) -C sys_common_guiobj clean_loop
- ifeq ($(CONFIG_SUPPORT_NETAPP),y)
- @$(MAKE) -C network clean_loop
- endif
- @$(MAKE) -C resources clean_loop
- include ../../../rules.mak
|