Makefile 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560
  1. # include UCLICDIR and CROSS
  2. # !! DO NOT reset CFLAGS (i.e. use CFLAGS+=xxx, NOT CFLAGS=xxx) after this include
  3. include ../../../Makefile.project
  4. include ../../../Makefile.toolchain
  5. #***************************************************************************
  6. # Define Environment Variables
  7. #***************************************************************************
  8. ifndef LIB_DIR
  9. LIB_DIR = ../../../lib
  10. endif
  11. ifndef ROOT_DIR
  12. ROOT_DIR = ../../../..
  13. endif
  14. KERNELDIR = ../../../../kernel/linux
  15. ifneq ($(CONFIG_ISDB_SYSTEM),y)
  16. ifeq ($(CONFIG_TV_NEW_UI),y)
  17. UIRESOURCE_DIR = resources_new
  18. MEDIA_UIRESOURCE_DIR = resources_new
  19. else ifeq ($(CONFIG_SUPPORT_32M_ATV), y)
  20. UIRESOURCE_DIR = resources_4BPP
  21. MEDIA_UIRESOURCE_DIR = resources_4BPP
  22. else ifeq ($(CONFIG_SUPPORT_MONITOR), y)
  23. UIRESOURCE_DIR = resources_monitor
  24. #MEDIA_UIRESOURCE_DIR = resources_monitor
  25. else
  26. UIRESOURCE_DIR = resources
  27. MEDIA_UIRESOURCE_DIR = resources
  28. endif
  29. else
  30. UIRESOURCE_DIR = sbtvd_resources
  31. MEDIA_UIRESOURCE_DIR = resources
  32. endif
  33. UIRESOURCE_INC = -I$(CURDIR)/$(UIRESOURCE_DIR)/include -I$(CURDIR)/$(UIRESOURCE_DIR)/font/include
  34. ifeq ($(CONFIG_TV_NEW_UI), y)
  35. ifeq ($(CONFIG_DTMB_SYSTEM), y)
  36. UIRESOURCE_INC +=-I$(CURDIR)/$(UIRESOURCE_DIR)/string/include_forDTMB
  37. else
  38. ifdef CONFIG_SUPPORT_64M_DTV
  39. UIRESOURCE_INC +=-I$(CURDIR)/$(UIRESOURCE_DIR)/string/include_for64M
  40. else
  41. UIRESOURCE_INC +=-I$(CURDIR)/$(UIRESOURCE_DIR)/string/include
  42. endif
  43. endif
  44. else #else<CONFIG_TV_NEW_UI>
  45. ifdef CONFIG_SUPPORT_64M_DTV
  46. UIRESOURCE_INC +=-I$(CURDIR)/$(UIRESOURCE_DIR)/string/include_for64M
  47. else
  48. UIRESOURCE_INC +=-I$(CURDIR)/$(UIRESOURCE_DIR)/string/include
  49. endif
  50. endif
  51. export UIRESOURCE_DIR
  52. export UIRESOURCE_INC
  53. USE_LIBPNG = n
  54. ifeq ($(CONFIG_SUPPORT_MHEG5),y)
  55. USE_LIBPNG = y
  56. endif
  57. ifeq ($(CONFIG_MEDIA_PHOTO_PNG),y)
  58. USE_LIBPNG = y
  59. endif
  60. USE_LIBJPG = n
  61. ifeq ($(CONFIG_SUPPORT_MHEG5_HD),y)
  62. USE_LIBJPG = y
  63. endif
  64. ifeq ($(CONFIG_MEDIA_PHOTO_JPG),y)
  65. USE_LIBJPG = y
  66. endif
  67. USE_AV_DEV=n
  68. ifeq ($(CONFIG_DTV_SUPPORT),y)
  69. USE_AV_DEV=y
  70. endif
  71. ifeq ($(CONFIG_MEDIA_ENABLE),y)
  72. USE_AV_DEV=y
  73. endif
  74. ifeq ($(CONFIG_SUPPORT_NETWORK),y)
  75. USE_AV_DEV=y
  76. endif
  77. #***************************************************************************
  78. # Define Compiler Flags
  79. #***************************************************************************
  80. ifeq ($(CONFIG_EXE_STATIC),y)
  81. LIBS += $(UCLIBCDIR)/usr/lib/libpthread.a
  82. LIBS += $(UCLIBCDIR)/usr/lib/librt.a
  83. LIBS += $(UCLIBCDIR)/usr/lib/libm.a
  84. else
  85. LDFLAGS += -lrt -ldl
  86. endif
  87. ifeq ($(CONFIG_VERSION),release)
  88. CFLAGS += -Dwatchdog
  89. endif
  90. include $(LIB_DIR)/lib.mak
  91. ifeq ($(CONFIG_MEDIA_ENABLE),y)
  92. LIBS += $(LIB_MIDMEDIA_STATIC)
  93. endif
  94. LIBS += $(LIB_FS_STATIC)
  95. ifeq ($(USE_AV_DEV),y)
  96. LIBS += ../../../av_dev/runav/lib/librunav.a
  97. LIBS += ../../../av_dev/runav/lib/libavutil.a
  98. LIBS += ../../../av_dev/runav/lib/libavformat.a
  99. LIBS += ../../../av_dev/runav/lib/libavcodec.a
  100. LIBS += $(LIB_MATH_EN_STATIC)
  101. LIBS += ../../../av_dev/mpdev/lib/libmpdev.a
  102. ifeq ($(CONFIG_RUNAV_MEMORY_DEBUG), y)
  103. LIBS += ../../../av_dev/debug_memory/libDbgMem.a
  104. endif
  105. ifeq ($(CONFIG_DTV_SUPPORT),y)
  106. LIBS += $(LIB_RECORD_STATIC)
  107. endif
  108. ifeq ($(CONFIG_MEDIA_ENABLE),y)
  109. LIBS += $(LIB_PICAPI_STATIC)
  110. endif
  111. ifeq ($(USE_LIBJPG),y)
  112. LIBS += $(LIB_JPG_STATIC)
  113. endif
  114. ifeq ($(USE_LIBPNG),y)
  115. LIBS += $(LIB_PNG_STATIC)
  116. endif
  117. #add openssl library for https
  118. ifeq ($(CONFIG_SUPPORT_NETWORK),y)
  119. LIBS += $(LIB_OPENSSL)
  120. endif
  121. endif
  122. LIBS += $(LIB_ZLIB_STATIC)
  123. ifeq ($(CONFIG_SUPPORT_DASH),y)
  124. LIBS += $(LIB_LIBXML2)
  125. endif
  126. #ifeq ($(CONFIG_ATV_SUPPORT),y)
  127. LIBS += $(LIB_ATVGUIOBJ_STATIC)
  128. #endif
  129. ifeq ($(CONFIG_DTV_SUPPORT),y)
  130. LIBS += $(LIB_DTVGUIOBJ_STATIC)
  131. endif
  132. ifeq ($(CONFIG_MEDIA_ENABLE),y)
  133. LIBS += $(LIB_MEDIAGUIOBJ_STATIC)
  134. endif
  135. ifeq ($(CONFIG_SUPPORT_NETAPP),y)
  136. LIBS += $(LIB_NETWORKGUIOBJ_STATIC)
  137. endif
  138. LIBS += $(LIB_APPCOMMON_STATIC)
  139. LIBS += $(LIB_SYSCOMMONGUIOBJ_STATIC)
  140. LIBS += $(LIB_DTVUI_STATIC)
  141. ifeq ($(CONFIG_MEDIA_ENABLE),y)
  142. LIBS += $(LIB_MMUI_STATIC)
  143. endif
  144. ifeq ($(CONFIG_SUPPORT_NETAPP),y)
  145. LIBS += $(LIB_NETUI_STATIC)
  146. endif
  147. LIBS += $(LIB_APPINFRA_STATIC)
  148. LIBS += $(LIB_GSL_STATIC)
  149. LIBS += $(LIB_AFW_STATIC)
  150. ifneq ($(filter y,$(CONFIG_DTV_SUPPORT) $(CONFIG_ATV_SUPPORT)),)
  151. LIBS += $(LIB_MIDDATABASE_STATIC)
  152. endif
  153. LIBS += $(LIB_UPGRADE_STATIC)
  154. ifeq ($(CONFIG_DTV_SUPPORT),y)
  155. LIBS += $(LIB_MIDDTV_STATIC)
  156. endif
  157. ifeq ($(CONFIG_DTV_SUPPORT),y)
  158. LIBS += $(LIB_MIDLOGO_STATIC)
  159. endif
  160. ifeq ($(CONFIG_CI_SUPPORT),y)
  161. LIBS += $(LIB_DTVCI_STATIC)
  162. LIBS += $(LIB_CIPLUS_STATIC)
  163. LIBS += $(LIB_TFM_STATIC)
  164. endif
  165. LIBS += $(LIB_APPDAEMON_STATIC)
  166. LIBS += $(LIB_MIDDISPLAY_STATIC)
  167. LIBS += $(LIB_IOCTLINTERFACE_STATIC)
  168. LIBS += $(LIB_TVFE_STATIC)
  169. ifeq ($(CONFIG_ATV_SUPPORT), y)
  170. LIBS += $(LIB_MIDATV_STATIC)
  171. endif
  172. LIBS += $(LIB_OSDLIB_STATIC)
  173. LIBS += $(LIB_GUIENG_STATIC)
  174. LIBS += $(LIB_UNICODE_STATIC)
  175. ifeq ($(CONFIG_SUPPORT_SUBTITLE),y)
  176. LIBS += $(LIB_SUBTITLE_STATIC)
  177. endif
  178. ifeq ($(CONFIG_SUPPORT_CEC_TV),y)
  179. LIBS += $(LIB_CECTV_STATIC)
  180. endif
  181. LIBS += $(LIB_PARTITIONMNG_STATIC)
  182. ifeq ($(CONFIG_SUPPORT_PVR),y)
  183. LIBS += $(LIB_MIDPVR_STATIC)
  184. endif
  185. LIBS += $(LIB_KEYUPDATE_STATIC)
  186. LIBS += $(LIB_DAEMON_STATIC)
  187. LIBS += $(LIB_MIDDEBUG_STATIC)
  188. ifeq ($(CONFIG_MEMWATCH), y)
  189. LIBS += $(LIB_MEMWATCH_STATIC)
  190. endif
  191. ifeq ($(CONFIG_SUPPORT_MHEG5),y)
  192. LIBS += $(LIB_MHEG5_STATIC)
  193. endif
  194. ifeq ($(CONFIG_SUPPORT_TTX),y)
  195. LIBS += $(LIB_TTX_STATIC)
  196. endif
  197. ifeq ($(CONFIG_CC_SUPPORT),y)
  198. LIBS += $(LIB_CC_STATIC)
  199. endif
  200. ifneq ($(filter y,$(CONFIG_MOD_PACK_TT) $(CONFIG_MOD_PACK_SUB)),)
  201. LIBS += $(LIB_TTCCMALLOC_STATIC)
  202. endif
  203. ifeq ($(CONFIG_SUPPORT_NEW_AIRPLAY),y)
  204. LIBS += $(LIB_NEW_AIRPLAY_STATIC)
  205. endif
  206. ifeq ($(CONFIG_EXTIC_FRC),y)
  207. LIBS += $(LIB_EXTIC_FRC)
  208. endif
  209. ifeq ($(CONFIG_EXTIC_HDMI_SWITCH),y)
  210. LIBS += $(LIB_EXTIC_HDMI_SWITCH)
  211. endif
  212. ifeq ($(CONFIG_EXTIC_DIGITALAMP),y)
  213. LIBS += $(LIB_EXTIC_DIGITALAMP)
  214. endif
  215. ifeq ($(CONFIG_EXTIC_KEYSTONE_CORRECTION),y)
  216. LIBS += $(LIB_EXTIC_KEYSTONE_CORRECTION)
  217. endif
  218. ifneq ($(filter y,$(CONFIG_DTV_SUPPORT) $(CONFIG_ATV_SUPPORT)),)
  219. LIBS += $(LIB_MWUSBEDIT)
  220. endif
  221. LIBS += $(LIB_UMFEVENT_STATIC)
  222. ifeq ($(CONFIG_MIFI_SUPPORT),y)
  223. LIBS += $(LIB_MIFI_STATIC)
  224. endif
  225. ifeq ($(CONFIG_CALL_TRACE),y)
  226. LIBS += $(LIB_CALL_TRACE)
  227. endif
  228. ifeq ($(CONFIG_SUPPORT_NETWORK),y)
  229. LIBS += $(LIB_NETWORK_SETTING_STATIC)
  230. ifeq ($(CONFIG_SUPPORT_NET_OTA),y)
  231. LIBS += $(LIB_NETWORK_OTA_STATIC)
  232. endif
  233. ifeq ($(CONFIG_SUPPORT_USB_MCAST), y)
  234. LIBS += $(LIB_MCAST)
  235. endif
  236. endif
  237. ifeq ($(CONFIG_SUPPORT_CHECK_STRING_SIZE), y)
  238. LIBS += $(LIB_CHK_STR)
  239. endif
  240. LIBS += $(LIB_LZMA)
  241. # debug tool shall be the last
  242. LIBS += $(LIB_DEBUG_TOOLS)
  243. #game
  244. ifeq ($(CONFIG_OSD_GAME_SUPPORT), y)
  245. LIBS += $(LIB_OSD_GAME)
  246. endif
  247. ifeq ($(CONFIG_SUPPORT_NES_GAME), y)
  248. LIBS += $(LIB_NES_GAME)
  249. LIBS += $(LIB_NES_CORE)
  250. endif
  251. LIBS += $(LIB_NEDMALLOC)
  252. ifeq ($(CONFIG_RUNAV_USE_RESERVE_MEMORY), y)
  253. LIBS += $(LIB_AVMEM)
  254. endif
  255. #Miracast
  256. ifeq ($(CONFIG_SUPPORT_MIRACAST), y)
  257. LIBS += $(LIB_MIRACAST)
  258. endif
  259. ifeq ($(CONFIG_SUPPORT_DLNA), y)
  260. LIBS += $(LIB_DLNA)
  261. endif
  262. ifeq ($(CONFIG_SUPPORT_HBBTV), y)
  263. LIBS += $(LIB_HBBTV)
  264. endif
  265. ifeq ($(CONFIG_BT_RDA5856),y)
  266. LIBS += $(LIB_BT5856)
  267. endif
  268. EXTRA_OBJS += -Wl,--start-group $(LIBS) -Wl,--end-group
  269. INCLUDE += -I./include
  270. INCLUDE += -I./atv/include
  271. INCLUDE += -I./atv/include/guiobj
  272. INCLUDE += -I./atv/include/app_atv_api
  273. ifeq ($(CONFIG_DVB_SYSTEM),y)
  274. INCLUDE += -I./dvb/include
  275. INCLUDE += -I./dvb/include/guiobj
  276. INCLUDE += -I./dvb/include/app_dvb_api
  277. endif
  278. ifeq ($(CONFIG_DTMB_SYSTEM),y)
  279. INCLUDE += -I./dtmb/include
  280. INCLUDE += -I./dtmb/include/guiobj
  281. INCLUDE += -I./dtmb/include/app_dvb_api
  282. endif
  283. ifeq ($(CONFIG_ISDB_SYSTEM),y)
  284. INCLUDE += -I./sbtvd/include
  285. INCLUDE += -I./sbtvd/include/guiobj
  286. INCLUDE += -I./sbtvd/include/app_sbtvd_api
  287. endif
  288. ifeq ($(CONFIG_MEDIA_ENABLE),y)
  289. INCLUDE += -I./media/include
  290. INCLUDE += -I./media/include/gui_objects
  291. endif
  292. ifeq ($(CONFIG_SUPPORT_NETAPP),y)
  293. INCLUDE += -I./network/include
  294. INCLUDE += -I./network/resources/include
  295. endif
  296. INCLUDE += -I./include/guiobj
  297. INCLUDE += -I./include/app_common_api
  298. INCLUDE += -I../../../include
  299. INCLUDE += -I../../../include/gsl
  300. INCLUDE += -I../../../include/app_infra
  301. INCLUDE += -I../../app_frmwrk/monitor/include
  302. INCLUDE += -I../../app_frmwrk/monitor/component/include
  303. INCLUDE += -I../../daemon/include
  304. INCLUDE += $(UIRESOURCE_INC)
  305. ifeq ($(CONFIG_TV_NEW_UI),y)
  306. INCLUDE += -I./media/resources_new/include
  307. #else ifeq ($(CONFIG_SUPPORT_MONITOR),y)
  308. #INCLUDE += -I./media/resources_monitor/include
  309. else
  310. INCLUDE += -I./media/resources/include
  311. endif
  312. ifeq ($(CONFIG_OSD_GAME_SUPPORT),y)
  313. INCLUDE += -I../../../../include/game
  314. endif
  315. INCLUDE += -I../../../app_infra/include
  316. INCLUDE += -I../../../include/middleware/ioctl_interface
  317. ifneq ($(filter y,$(CONFIG_DTV_SUPPORT) $(CONFIG_ATV_SUPPORT)),)
  318. INCLUDE += -I../../../include/middleware/database
  319. endif
  320. INCLUDE += -I../../../include/middleware/tvfe
  321. ifeq ($(CONFIG_DTV_SUPPORT),y)
  322. INCLUDE += -I../../../include/middleware/logo
  323. endif
  324. ifeq ($(CONFIG_SUPPORT_CEC_TV),y)
  325. INCLUDE += -I../../../include/middleware/cec_tv
  326. endif
  327. ifeq ($(CONFIG_ATV_SUPPORT),y)
  328. INCLUDE += -I../../../include/middleware/atv/atv_scan
  329. INCLUDE += -I../../../include/middleware/atv/atv_afc
  330. INCLUDE += -I../../../include/middleware/atv/atv_ats
  331. endif
  332. INCLUDE += -I../../../include/middleware/display
  333. ifeq ($(CONFIG_DTV_SUPPORT),y)
  334. INCLUDE += -I../../../include/middleware/dtv/dtvcommon
  335. INCLUDE += -I../../../include/middleware/dtv/dtvmonitor
  336. INCLUDE += -I../../../include/middleware/dtv/dtvplayback
  337. INCLUDE += -I../../../include/middleware/dtv/dtvpsimonitor
  338. INCLUDE += -I../../../include/middleware/dtv/dtvsipsi
  339. INCLUDE += -I../../../include/middleware/dtv/dtvscan
  340. INCLUDE += -I../../../include/middleware/dtv/dtvepg
  341. INCLUDE += -I../../../include/middleware/dtv/dtvota
  342. INCLUDE += -I../../../include/middleware/dtv/dtv_record
  343. INCLUDE += -I../../../include/middleware/dtv/dtvci
  344. endif
  345. ifeq ($(CONFIG_SUPPORT_MHEG5),y)
  346. INCLUDE += -I../../../include/middleware/dtv/dtvmheg5
  347. endif
  348. ifeq ($(CONFIG_MEDIA_ENABLE),y)
  349. INCLUDE += -I../../../include/middleware/media/filesystem
  350. INCLUDE += -I../../../include/middleware/media/playlist
  351. INCLUDE += -I../../../include/middleware/media/player
  352. INCLUDE += -I../../../include/middleware/media/musicplaylist
  353. INCLUDE += -I../../../include/middleware/media
  354. endif
  355. INCLUDE += -I../../../include/middleware/common
  356. INCLUDE += -I../../../include/middleware/common/umf_event
  357. INCLUDE += -I../../../include/middleware/common/upgrade
  358. INCLUDE += -I../../../include/middleware/common/gui_eng
  359. INCLUDE += -I../../../$(CUSTOMER_BOARD_PATH)/adaptable
  360. INCLUDE += -I../../../$(CUSTOMER_BOARD_PATH)/nvmem
  361. INCLUDE += -I../../../$(FORMAL_CUSTOMER_PATH)
  362. INCLUDE += -I../../../../drivers/include
  363. INCLUDE += -I../../../../drivers/module_include
  364. INCLUDE += -I../../../include/middleware/ptnmng/partitionlist
  365. ifeq ($(CONFIG_DTV_SUPPORT),y)
  366. INCLUDE += -I../../../middleware/dtv/dtv_recorder
  367. endif
  368. INCLUDE += -I../../../middleware/common/osdlib
  369. ifeq ($(CONFIG_SUPPORT_SUBTITLE),y)
  370. INCLUDE += -I../../../include/middleware/common/libsubparser
  371. endif
  372. ifneq ($(filter y,$(CONFIG_MOD_PACK_TT) $(CONFIG_MOD_PACK_SUB)),)
  373. INCLUDE += -I../../../include/middleware/common/tt_submalloc
  374. endif
  375. ifeq ($(CONFIG_SUPPORT_MIRACAST),y)
  376. INCLUDE += -I../../../include/middleware/network/miracast/wfd
  377. INCLUDE += -I../../../include/middleware/network/netsetting
  378. endif
  379. ifeq ($(CONFIG_SUPPORT_NET_OTA),y)
  380. INCLUDE += -I../../../include/middleware/network/net_ota
  381. endif
  382. ifeq ($(CONFIG_EXTIC_HDMI_SWITCH),y)
  383. ifeq ($(CONFIG_EXTIC_HDMI_SWITCH_TI6633),y)
  384. INCLUDE += -I../../../external/hdmi_switch/TI6633
  385. endif
  386. endif
  387. ifeq ($(CONFIG_EXTIC_DIGITALAMP),y)
  388. ifeq ($(CONFIG_EXTIC_DIGITALAMP_TAS5711),y)
  389. INCLUDE += -I../../../external/digitalamp/TAS5711
  390. endif
  391. endif
  392. ifeq ($(CONFIG_EXTIC_KEYSTONE_CORRECTION),y)
  393. ifeq ($(CONFIG_EXTIC_KEYSTONE_CORRECTION_POL8902),y)
  394. INCLUDE += -I../../../external/keystone_correction/POL8902
  395. endif
  396. endif
  397. TARGET_EXE = umf
  398. SRCS_LIST += main.c main_app_external.c main_app_initflow.c umf_debug.c
  399. ifeq ($(CONFIG_ENABLE_UMF_MODULES), y)
  400. SRCS_LIST += umf_mod.c
  401. endif
  402. ifeq ($(CONFIG_NOT_USEBB),y)
  403. SRCS_LIST += app.c
  404. VPATH += ../../../minibox
  405. LIBS += $(LIB_MINIBOX_STATIC)
  406. INCLUDE += -I../../../minibox/include
  407. else
  408. SRCS_LIST += toy.c
  409. VPATH += ../../../toy/currsrc
  410. CFLAGS += -DUMF_USE_SF
  411. endif
  412. # IR
  413. include ../../../customer/$(CUSTOMER_NAME)/public/ir/irinclude.in
  414. include ../../../customer/$(CUSTOMER_NAME)/public/ir/irsrc.in
  415. # IR_TX
  416. ifeq ($(CONFIG_SUPPORT_IR_TX),y)
  417. include ../../../customer/$(CUSTOMER_NAME)/public/ir_tx/ir_txinclude.in
  418. include ../../../customer/$(CUSTOMER_NAME)/public/ir_tx/ir_txsrc.in
  419. endif
  420. #customer
  421. VPATH += ../../../$(CUSTOMER_BOARD_PATH)/adaptable
  422. SRCS_LIST += board_config.c keypad_mapping.c
  423. VPATH += ../../../customer/$(CUSTOMER_NAME)/public/panel
  424. SRCS_LIST += pq_table.c
  425. ifeq ($(CONFIG_SUPPORT_NES_GAME),y)
  426. VPATH += ../../../customer/$(CUSTOMER_NAME)/public/joystick
  427. SRCS_LIST += js_map_table.c
  428. SRCS_LIST += js_info.c
  429. endif
  430. compnent += app_common_api sys_common_guiobj $(UIRESOURCE_DIR)
  431. ifeq ($(CONFIG_DTV_SUPPORT),y)
  432. ifeq ($(CONFIG_DVB_SYSTEM), y)
  433. compnent += dvb
  434. endif
  435. ifeq ($(CONFIG_DTMB_SYSTEM), y)
  436. compnent += dtmb
  437. endif
  438. ifeq ($(CONFIG_ISDB_SYSTEM), y)
  439. compnent += sbtvd
  440. endif
  441. endif
  442. #ifeq ($(CONFIG_ATV_SUPPORT),y)
  443. compnent += atv
  444. #endif
  445. ifeq ($(CONFIG_MEDIA_ENABLE),y)
  446. compnent += media
  447. endif
  448. ifeq ($(CONFIG_SUPPORT_NETAPP),y)
  449. compnent += network
  450. endif
  451. #ifeq ($(CONFIG_SUPPORT_MIRACAST),y)
  452. #compnent += wfd_player
  453. #endif
  454. .PHONY: all clean install $(compnent) refineUIResource $(TARGET_EXE)
  455. refineUIResource:
  456. # ../../../../tools/refine_ui_resource.pl -T ./$(UIRESOURCE_DIR)/region/TV_bitmap_res.c \
  457. # -V ./$(UIRESOURCE_DIR)/region/TV_palette_res.c -M ./media/$(MEDIA_UIRESOURCE_DIR)/region/FilePlayer_bitmap_res.c \
  458. # -P ./media/$(MEDIA_UIRESOURCE_DIR)/region/FilePlayer_palette_res.c
  459. BUILD_MODULE: $(compnent)
  460. $(compnent): refineUIResource
  461. @$(MAKE) -C $@ all
  462. all: $(TARGET_EXE)
  463. install:
  464. ifndef CONFIG_INSTALLDIR
  465. $(error [ERROR] CONFIG_INSTALLDIR not define!!)
  466. endif
  467. cp -af $(TARGET_EXE) $(CONFIG_INSTALLDIR)/tmp
  468. ifeq ($(CONFIG_ENABLE_UMF_MODULES), y)
  469. cp -af ./mod.info $(CONFIG_INSTALLDIR)/tmp
  470. endif
  471. ifeq ($(CONFIG_EXE_STATIC),n)
  472. cp -af ../../../gsl/librt.so.0 $(CONFIG_INSTALLDIR)/lib
  473. endif
  474. ifeq ($(CONFIG_FONT_ENGINE_HARFBUZZ),y)
  475. $(MAKE) -C $(UIRESOURCE_DIR) install
  476. endif
  477. clean_loop: clean
  478. @rm -fr $(TARGET_EXE)
  479. @$(MAKE) -C atv clean_loop
  480. ifeq ($(CONFIG_DVB_SYSTEM), y)
  481. @$(MAKE) -C dvb clean_loop
  482. endif
  483. ifeq ($(CONFIG_DTMB_SYSTEM), y)
  484. @$(MAKE) -C dtmb clean_loop
  485. endif
  486. ifeq ($(CONFIG_ISDB_SYSTEM), y)
  487. @$(MAKE) -C sbtvd clean_loop
  488. endif
  489. @$(MAKE) -C media clean_loop
  490. @$(MAKE) -C app_common_api clean_loop
  491. @$(MAKE) -C sys_common_guiobj clean_loop
  492. @$(MAKE) -C network clean_loop
  493. ifeq ($(CONFIG_TV_NEW_UI),y)
  494. @$(MAKE) -C resources_new clean_loop
  495. else ifeq ($(CONFIG_SUPPORT_MONITOR),y)
  496. @$(MAKE) -C resources_monitor clean_loop
  497. else
  498. @$(MAKE) -C resources clean_loop
  499. endif
  500. ifeq ($(CONFIG_ISDB_SYSTEM), y)
  501. @$(MAKE) -C sbtvd_resources clean_loop
  502. endif
  503. @rm -fr umf.*bin
  504. @rm -fr umf.TV_IDL_*
  505. ifeq ($(CONFIG_ENABLE_UMF_MODULES), y)
  506. BUILD_UMF = y
  507. endif
  508. include ../../../rules.mak