CMakeLists.txt 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471
  1. # Copyright (C) 2018 LongSung Technologies Limited and/or its affiliates("LongSung").
  2. # All rights reserved.
  3. #
  4. # This software is supplied "AS IS" without any warranties.
  5. # LongSung assumes no responsibility or liability for the use of the software,
  6. # conveys no license or title under any patent, copyright, or mask work
  7. # right to the product. LongSung reserves the right to make changes in the
  8. # software without notification. LongSung also make no representation or
  9. # warranty that such application will be suitable for the specified use
  10. # without further testing or modification.
  11. #####################################evrc files#####################################
  12. option(ENABLE_OPENHPOC "使能打包库" OFF)
  13. option(ENABLE_TICKET "使能深度休眠功能" ON)
  14. option(ENABLE_QUE_TASK_LOCK "使能消息队列加任务锁" ON)
  15. option(ENABLE_EVRC_LIB "使能EVRC静态库" OFF)
  16. option(ENABLE_EVRC_ARM "使能EVRC的汇编驱动" OFF)
  17. option(ENABLE_EEVRC "使能EVRC编码驱动" OFF)
  18. option(ENABLE_AMRNB "使能AMRNB编码驱动" OFF)
  19. option(ENABLE_USE_AMRNB "使能调用AMRNB功能" OFF)
  20. option(ENABLE_BUBIAO_GPS "使能添加GPS及部标协议功用" OFF)
  21. if(ENABLE_OPENHPOC)
  22. add_definitions(-D ENABLE_OPENHPOC)
  23. endif(ENABLE_OPENHPOC)
  24. if(ENABLE_USE_AMRNB)
  25. add_definitions(-D ENABLE_USE_AMRNB)
  26. endif(ENABLE_USE_AMRNB)
  27. if(ENABLE_BUBIAO_GPS)
  28. add_definitions(-D ENABLE_BUBIAO_GPS)
  29. endif(ENABLE_BUBIAO_GPS)
  30. if(ENABLE_TICKET)
  31. add_definitions(-D ENABLE_TICKET)
  32. endif(ENABLE_TICKET)
  33. if(ENABLE_QUE_TASK_LOCK)
  34. add_definitions(-D ENABLE_QUE_TASK_LOCK)
  35. endif(ENABLE_QUE_TASK_LOCK)
  36. set(hpoc_evrc_dir ./evrcc)
  37. set(hpoc_evrc_code_dir ${hpoc_evrc_dir}/code)
  38. set(hpoc_evrc_dsp_arm_dir ${hpoc_evrc_dir}/dsp_arm)
  39. set(hpoc_evrc_dspmath_dir ${hpoc_evrc_dir}/dspmath)
  40. if(ENABLE_EVRC_LIB)
  41. set(hpoc_evrc_all_dir )
  42. else(ENABLE_EVRC_LIB)
  43. set(hpoc_evrc_all_dir ${hpoc_evrc_dir}
  44. ${hpoc_evrc_dir}/include
  45. ${hpoc_evrc_dsp_arm_dir}
  46. ${hpoc_evrc_dspmath_dir})
  47. endif(ENABLE_EVRC_LIB)
  48. if(ENABLE_EVRC_ARM)
  49. set(hpoc_evrc_dspmath_files ${hpoc_evrc_dspmath_dir}/mathadv.c
  50. ${hpoc_evrc_dspmath_dir}/ehwutl.c
  51. ${hpoc_evrc_dspmath_dir}/globdefs.c)
  52. set(hpoc_evrc_arm_files ${hpoc_evrc_dsp_arm_dir}/abs_s.s
  53. ${hpoc_evrc_dsp_arm_dir}/dsp_math.c
  54. ${hpoc_evrc_dsp_arm_dir}/l_add.s
  55. ${hpoc_evrc_dsp_arm_dir}/l_sub.s
  56. ${hpoc_evrc_dsp_arm_dir}/l_mac.s
  57. ${hpoc_evrc_dsp_arm_dir}/l_msu.s
  58. ${hpoc_evrc_dsp_arm_dir}/l_shr.s
  59. ${hpoc_evrc_dsp_arm_dir}/l_shl.s
  60. ${hpoc_evrc_dsp_arm_dir}/divide_s.s
  61. ${hpoc_evrc_dsp_arm_dir}/l_abs.s
  62. ${hpoc_evrc_dsp_arm_dir}/l_mult.s
  63. ${hpoc_evrc_dsp_arm_dir}/mac_r.s
  64. ${hpoc_evrc_dsp_arm_dir}/sub.s
  65. ${hpoc_evrc_dsp_arm_dir}/add.s
  66. ${hpoc_evrc_dsp_arm_dir}/mult_r.s
  67. ${hpoc_evrc_dsp_arm_dir}/negate.s
  68. ${hpoc_evrc_dsp_arm_dir}/norm_s.s
  69. ${hpoc_evrc_dsp_arm_dir}/shr_r.s
  70. ${hpoc_evrc_dsp_arm_dir}/shift_r.s
  71. ${hpoc_evrc_dsp_arm_dir}/msu_r.s
  72. ${hpoc_evrc_dsp_arm_dir}/l_negate.s
  73. ${hpoc_evrc_dsp_arm_dir}/l_shr_r.s
  74. ${hpoc_evrc_dsp_arm_dir}/l_shift_r.s
  75. ${hpoc_evrc_dsp_arm_dir}/norm_l.s
  76. ${hpoc_evrc_dsp_arm_dir}/mult.s
  77. ${hpoc_evrc_dsp_arm_dir}/round32.s
  78. ${hpoc_evrc_dsp_arm_dir}/shl.s
  79. ${hpoc_evrc_dsp_arm_dir}/shr.s
  80. ${hpoc_evrc_dsp_arm_dir}/saturate.s
  81. ${hpoc_evrc_dsp_arm_dir}/l_mpy_ls.s
  82. ${hpoc_evrc_dsp_arm_dir}/l_mpy_ll.s
  83. ${hpoc_evrc_dsp_arm_dir}/div_32.s
  84. ${hpoc_evrc_dsp_arm_dir}/fft_tabs.s
  85. ${hpoc_evrc_dsp_arm_dir}/c_fft.s
  86. ${hpoc_evrc_dsp_arm_dir}/test.s)
  87. else(ENABLE_EVRC_ARM)
  88. set(hpoc_evrc_dspmath_files ${hpoc_evrc_dspmath_dir}/mathevrc.c
  89. ${hpoc_evrc_dspmath_dir}/mathadv.c
  90. ${hpoc_evrc_dspmath_dir}/ehwutl.c
  91. ${hpoc_evrc_dspmath_dir}/globdefs.c
  92. ${hpoc_evrc_dspmath_dir}/mathdp31.c)
  93. set(hpoc_evrc_arm_files )
  94. endif(ENABLE_EVRC_ARM)
  95. set(hpoc_evrc_code_files ${hpoc_evrc_code_dir}/acb_ex.c
  96. ${hpoc_evrc_code_dir}/acelp_pf.c
  97. ${hpoc_evrc_code_dir}/apf.c
  98. ${hpoc_evrc_code_dir}/auto.c
  99. ${hpoc_evrc_code_dir}/a2lsp.c
  100. ${hpoc_evrc_code_dir}/bitpack.c
  101. ${hpoc_evrc_code_dir}/bitupack.c
  102. ${hpoc_evrc_code_dir}/bl_intrp.c
  103. ${hpoc_evrc_code_dir}/bqiir.c
  104. ${hpoc_evrc_code_dir}/c3_10pf.c
  105. ${hpoc_evrc_code_dir}/c8_35pf.c
  106. ${hpoc_evrc_code_dir}/comacb.c
  107. ${hpoc_evrc_code_dir}/convh.c
  108. ${hpoc_evrc_code_dir}/cshift.c
  109. ${hpoc_evrc_code_dir}/d3_10pf.c
  110. ${hpoc_evrc_code_dir}/d8_35pf.c
  111. ${hpoc_evrc_code_dir}/decode.c
  112. ${hpoc_evrc_code_dir}/d_fer.c
  113. ${hpoc_evrc_code_dir}/d_no_fer.c
  114. ${hpoc_evrc_code_dir}/d_rate_1.c
  115. ${hpoc_evrc_code_dir}/durbin.c
  116. ${hpoc_evrc_code_dir}/encode.c
  117. ${hpoc_evrc_code_dir}/fcbgq.c
  118. ${hpoc_evrc_code_dir}/fer.c
  119. ${hpoc_evrc_code_dir}/filter.c
  120. ${hpoc_evrc_code_dir}/fndppf.c
  121. ${hpoc_evrc_code_dir}/getext1k.c
  122. ${hpoc_evrc_code_dir}/getgain.c
  123. ${hpoc_evrc_code_dir}/getres.c
  124. ${hpoc_evrc_code_dir}/impulser.c
  125. ${hpoc_evrc_code_dir}/interpol.c
  126. ${hpoc_evrc_code_dir}/intr_cos.c
  127. ${hpoc_evrc_code_dir}/inv_sqrt.c
  128. ${hpoc_evrc_code_dir}/lpcana.c
  129. ${hpoc_evrc_code_dir}/lspmaq.c
  130. ${hpoc_evrc_code_dir}/lsp2a.c
  131. ${hpoc_evrc_code_dir}/maxeloc.c
  132. ${hpoc_evrc_code_dir}/mdfyorig.c
  133. ${hpoc_evrc_code_dir}/mod.c
  134. ${hpoc_evrc_code_dir}/ns127.c
  135. ${hpoc_evrc_code_dir}/pit_shrp.c
  136. ${hpoc_evrc_code_dir}/pktoav.c
  137. ${hpoc_evrc_code_dir}/pre_enc.c
  138. ${hpoc_evrc_code_dir}/putacbc.c
  139. ${hpoc_evrc_code_dir}/r_fft.c
  140. ${hpoc_evrc_code_dir}/rda.c
  141. ${hpoc_evrc_code_dir}/rom.c
  142. ${hpoc_evrc_code_dir}/synfltr.c
  143. ${hpoc_evrc_code_dir}/weight.c
  144. ${hpoc_evrc_code_dir}/w2res.c
  145. ${hpoc_evrc_code_dir}/zeroinpt.c
  146. ${hpoc_evrc_code_dir}/globs.c
  147. ${hpoc_evrc_code_dir}/e_globs.c
  148. ${hpoc_evrc_code_dir}/d_globs.c)
  149. if(ENABLE_EEVRC)
  150. add_definitions(-D ENABLE_EVRC)
  151. if(ENABLE_EVRC_LIB)
  152. add_definitions(-D ENABLE_EVRC_LIB)
  153. set(hpoc_evrc_files )
  154. else(ENABLE_EVRC_LIB)
  155. set(hpoc_evrc_files ${hpoc_evrc_code_files}
  156. ${hpoc_evrc_dspmath_files}
  157. ${hpoc_evrc_arm_files}
  158. ${hpoc_evrc_dir}/evrcc.c
  159. ${hpoc_evrc_dir}/evrcpacket.c)
  160. endif(ENABLE_EVRC_LIB)
  161. else(ENABLE_EEVRC)
  162. set(hpoc_evrc_files )
  163. endif(ENABLE_EEVRC)
  164. #####################################amr files#####################################
  165. set(hpoc_amr_dir ./amrnb)
  166. if (ENABLE_AMRNB)
  167. add_definitions(-D ENABLE_AMRNB)
  168. set(hpoc_amr_files ${hpoc_amr_dir}/agc.c
  169. ${hpoc_amr_dir}/autocorr.c
  170. ${hpoc_amr_dir}/az_lsp.c
  171. ${hpoc_amr_dir}/bits2prm.c
  172. ${hpoc_amr_dir}/cl_ltp.c
  173. ${hpoc_amr_dir}/convolve.c
  174. ${hpoc_amr_dir}/c1035pf.c
  175. ${hpoc_amr_dir}/d_plsf.c
  176. ${hpoc_amr_dir}/d_plsf_5.c
  177. ${hpoc_amr_dir}/d_gain_c.c
  178. ${hpoc_amr_dir}/d_gain_p.c
  179. ${hpoc_amr_dir}/dec_lag6.c
  180. ${hpoc_amr_dir}/d1035pf.c
  181. ${hpoc_amr_dir}/cor_h.c
  182. ${hpoc_amr_dir}/enc_lag3.c
  183. ${hpoc_amr_dir}/enc_lag6.c
  184. ${hpoc_amr_dir}/g_code.c
  185. ${hpoc_amr_dir}/g_pitch.c
  186. ${hpoc_amr_dir}/int_lpc.c
  187. ${hpoc_amr_dir}/inter_36.c
  188. ${hpoc_amr_dir}/inv_sqrt_ex.c
  189. ${hpoc_amr_dir}/lag_wind.c
  190. ${hpoc_amr_dir}/levinson.c
  191. ${hpoc_amr_dir}/lsp_az.c
  192. ${hpoc_amr_dir}/lsp_lsf.c
  193. ${hpoc_amr_dir}/ol_ltp.c
  194. ${hpoc_amr_dir}/pitch_fr.c
  195. ${hpoc_amr_dir}/pitch_ol.c
  196. ${hpoc_amr_dir}/pow2.c
  197. ${hpoc_amr_dir}/pre_big.c
  198. ${hpoc_amr_dir}/pre_proc.c
  199. ${hpoc_amr_dir}/pred_lt.c
  200. ${hpoc_amr_dir}/preemph.c
  201. ${hpoc_amr_dir}/prm2bits.c
  202. ${hpoc_amr_dir}/pstfilt.c
  203. ${hpoc_amr_dir}/q_gain_c.c
  204. ${hpoc_amr_dir}/q_gain_p.c
  205. ${hpoc_amr_dir}/q_plsf.c
  206. ${hpoc_amr_dir}/q_plsf_5.c
  207. ${hpoc_amr_dir}/lsfwt.c
  208. ${hpoc_amr_dir}/reorder.c
  209. ${hpoc_amr_dir}/residu.c
  210. ${hpoc_amr_dir}/lsp.c
  211. ${hpoc_amr_dir}/lpc.c
  212. ${hpoc_amr_dir}/ec_gains.c
  213. ${hpoc_amr_dir}/spreproc.c
  214. ${hpoc_amr_dir}/syn_filt.c
  215. ${hpoc_amr_dir}/weight_a.c
  216. ${hpoc_amr_dir}/qua_gain.c
  217. ${hpoc_amr_dir}/gc_pred.c
  218. ${hpoc_amr_dir}/q_plsf_3.c
  219. ${hpoc_amr_dir}/post_pro.c
  220. ${hpoc_amr_dir}/dec_lag3.c
  221. ${hpoc_amr_dir}/dec_gain.c
  222. ${hpoc_amr_dir}/d_plsf_3.c
  223. ${hpoc_amr_dir}/d4_17pf.c
  224. ${hpoc_amr_dir}/c4_17pf.c
  225. ${hpoc_amr_dir}/d3_14pf.c
  226. ${hpoc_amr_dir}/c3_14pf.c
  227. ${hpoc_amr_dir}/d2_11pf.c
  228. ${hpoc_amr_dir}/c2_11pf.c
  229. ${hpoc_amr_dir}/d2_9pf.c
  230. ${hpoc_amr_dir}/c2_9pf.c
  231. ${hpoc_amr_dir}/cbsearch.c
  232. ${hpoc_amr_dir}/spstproc.c
  233. ${hpoc_amr_dir}/gain_q.c
  234. ${hpoc_amr_dir}/cod_amr.c
  235. ${hpoc_amr_dir}/dec_amr.c
  236. ${hpoc_amr_dir}/sp_enc.c
  237. ${hpoc_amr_dir}/sp_dec.c
  238. ${hpoc_amr_dir}/ph_disp.c
  239. ${hpoc_amr_dir}/g_adapt.c
  240. ${hpoc_amr_dir}/calc_en.c
  241. ${hpoc_amr_dir}/qgain795.c
  242. ${hpoc_amr_dir}/qgain475.c
  243. ${hpoc_amr_dir}/sqrt_l.c
  244. ${hpoc_amr_dir}/set_sign.c
  245. ${hpoc_amr_dir}/s10_8pf.c
  246. ${hpoc_amr_dir}/bgnscd.c
  247. ${hpoc_amr_dir}/gmed_n.c
  248. ${hpoc_amr_dir}/mac_32.c
  249. ${hpoc_amr_dir}/ex_ctrl.c
  250. ${hpoc_amr_dir}/c_g_aver.c
  251. ${hpoc_amr_dir}/lsp_avg.c
  252. ${hpoc_amr_dir}/int_lsf.c
  253. ${hpoc_amr_dir}/c8_31pf.c
  254. ${hpoc_amr_dir}/d8_31pf.c
  255. ${hpoc_amr_dir}/p_ol_wgh.c
  256. ${hpoc_amr_dir}/ton_stab.c
  257. ${hpoc_amr_dir}/vad1.c
  258. ${hpoc_amr_dir}/dtx_enc.c
  259. ${hpoc_amr_dir}/dtx_dec.c
  260. ${hpoc_amr_dir}/a_refl.c
  261. ${hpoc_amr_dir}/b_cn_cod.c
  262. ${hpoc_amr_dir}/calc_cor.c
  263. ${hpoc_amr_dir}/hp_max.c
  264. ${hpoc_amr_dir}/vadname.c
  265. ${hpoc_amr_dir}/vad2.c
  266. ${hpoc_amr_dir}/r_fft_ex.c
  267. ${hpoc_amr_dir}/lflg_upd.c
  268. ${hpoc_amr_dir}/e_homing.c
  269. ${hpoc_amr_dir}/d_homing.c
  270. ${hpoc_amr_dir}/sid_sync.c
  271. ${hpoc_amr_dir}/count.c
  272. ${hpoc_amr_dir}/basicop2.c
  273. ${hpoc_amr_dir}/oper_32b.c
  274. ${hpoc_amr_dir}/set_zero.c
  275. ${hpoc_amr_dir}/log2.c
  276. ${hpoc_amr_dir}/copy.c
  277. ${hpoc_amr_dir}/wamr.c)
  278. else(ENABLE_AMRNB)
  279. set(hpoc_amr_files )
  280. endif(ENABLE_AMRNB)
  281. #####################################pt files#####################################
  282. set(hpoc_pt_dir ./pt)
  283. set(hpoc_pt_files ${hpoc_pt_dir}/pt-timer.c)
  284. #####################################fonts#####################################
  285. set(hpoc_font_dir ./fonts)
  286. set(hpoc_font_files ${hpoc_font_dir}/GB2312UnicodeTable.c
  287. ${hpoc_font_dir}/strnormalize.c
  288. ${hpoc_font_dir}/unicode.c
  289. ${hpoc_font_dir}/language.c)
  290. #####################################proto#####################################
  291. set(hpoc_proto_dir ./proto)
  292. set(hpoc_proto_files ${hpoc_proto_dir}/ptt.pb-c.c
  293. ${hpoc_proto_dir}/protobuf-c/protobuf-c.c)
  294. #####################################queue#####################################
  295. set(hpoc_queue_dir ./queue)
  296. set(hpoc_queue_files ${hpoc_queue_dir}/bufQueue.c)
  297. #####################################libev#####################################
  298. set(hpoc_libev_dir ./libev/libev-4.15)
  299. set(hpoc_libev_files ${hpoc_libev_dir}/ev.c
  300. ${hpoc_libev_dir}/event.c)
  301. #####################################log#####################################
  302. set(hpoc_log_dir ./log)
  303. set(hpoc_log_files ${hpoc_log_dir}/log.c)
  304. #####################################app files#####################################
  305. set(hpoc_app_dir ./app)
  306. if(ENABLE_TICKET)
  307. set(hpoc_ticket_file ${hpoc_app_dir}/ticket.c)
  308. else(ENABLE_TICKET)
  309. set(hpoc_ticket_file )
  310. endif(ENABLE_TICKET)
  311. if(ENABLE_BUBIAO_GPS)
  312. set(hpoc_gps_file ${hpoc_app_dir}/gps.c
  313. ${hpoc_app_dir}/nmea.c
  314. ${hpoc_app_dir}/bubiao.c)
  315. else(ENABLE_BUBIAO_GPS)
  316. set(hpoc_gps_file )
  317. endif(ENABLE_BUBIAO_GPS)
  318. set(hpoc_app_file ./hpocapp.c
  319. ${hpoc_app_dir}/main.c
  320. ${hpoc_app_dir}/atCmdList.c
  321. ${hpoc_app_dir}/netio.c
  322. ${hpoc_app_dir}/pocCmds.c
  323. ${hpoc_app_dir}/poc_code.c
  324. ${hpoc_app_dir}/poc_tcp.c
  325. ${hpoc_app_dir}/netWork.c
  326. ${hpoc_app_dir}/app.c
  327. ${hpoc_app_dir}/para.c
  328. ${hpoc_app_dir}/poc.c
  329. ${hpoc_app_dir}/domain.c
  330. ${hpoc_app_dir}/common.c
  331. ${hpoc_app_dir}/tcpUdp.c
  332. ${hpoc_app_dir}/poc_udp.c
  333. ${hpoc_app_dir}/tts.c
  334. ${hpoc_app_dir}/plyRec.c
  335. ${hpoc_app_dir}/authFota.c
  336. ${hpoc_app_dir}/group.c
  337. ${hpoc_app_dir}/hook.c
  338. ${hpoc_app_dir}/bsp.c
  339. ${hpoc_app_dir}/tupApi.c
  340. ${hpoc_app_dir}/evrc2Pcm.c
  341. ${hpoc_app_dir}/http.c
  342. ${hpoc_app_dir}/extAuth.c
  343. ${hpoc_ticket_file}
  344. ${hpoc_gps_file})
  345. #####################################include path#####################################
  346. set(hpoc_all_files ${hpoc_app_file}
  347. ${hpoc_evrc_files}
  348. ${hpoc_amr_files}
  349. ${hpoc_pt_files}
  350. ${hpoc_font_files}
  351. ${hpoc_proto_files}
  352. ${hpoc_queue_files}
  353. ${hpoc_libev_file}
  354. ${hpoc_log_files})
  355. ##################################################################################
  356. #aux_source_directory(${SOURCE_TOP_DIR}/hpoc/app SRC_LIST)
  357. include_directories(${hpoc_app_dir}
  358. ${hpoc_evrc_all_dir}
  359. ${hpoc_amr_dir}
  360. ${hpoc_pt_dir}
  361. ${hpoc_font_dir}
  362. ${hpoc_proto_dir}
  363. ${hpoc_proto_dir}/protobuf-c
  364. ${hpoc_queue_dir}
  365. ${hpoc_libev_dirs}
  366. ${hpoc_log_dir})
  367. #add_definitions(-Wall)
  368. add_definitions(-w)
  369. add_definitions(-D PLATFORM_MS5700
  370. -D NO_EXIT_ABORT_CALL
  371. -D UNUSED_STD_MALLOC
  372. -D NDEBUG
  373. -D __unix
  374. -D linux)
  375. if(ENABLE_EVRC_LIB)
  376. set(hpoc_evrc_lib ${CMAKE_CURRENT_SOURCE_DIR}/lib/libevrcc.a)
  377. else(ENABLE_EVRC_LIB)
  378. set(hpoc_evrc_lib )
  379. if(ENABLE_EVRC_ARM)
  380. add_definitions(-D ANDROID
  381. -D __ARM_ARCH__=7
  382. -mcpu=cortex-a8
  383. -mfpu=neon
  384. )
  385. endif(ENABLE_EVRC_ARM)
  386. endif(ENABLE_EVRC_LIB)
  387. if(ENABLE_OPENHPOC)
  388. set(openhpoc_app_files
  389. ${hpoc_app_dir}/ohpoc.c
  390. ${hpoc_app_dir}/main.c
  391. ${hpoc_app_dir}/atCmdList.c
  392. ${hpoc_app_dir}/netio.c
  393. ${hpoc_app_dir}/pocCmds.c
  394. ${hpoc_app_dir}/poc_code.c
  395. ${hpoc_app_dir}/poc_tcp.c
  396. ${hpoc_app_dir}/netWork.c
  397. ${hpoc_app_dir}/app.c
  398. ${hpoc_app_dir}/para.c
  399. ${hpoc_app_dir}/poc.c
  400. ${hpoc_app_dir}/domain.c
  401. ${hpoc_app_dir}/common.c
  402. ${hpoc_app_dir}/tcpUdp.c
  403. ${hpoc_app_dir}/poc_udp.c
  404. ${hpoc_app_dir}/tts.c
  405. ${hpoc_app_dir}/plyRec.c
  406. ${hpoc_app_dir}/authFota.c
  407. ${hpoc_app_dir}/group.c
  408. ${hpoc_app_dir}/hook.c
  409. ${hpoc_app_dir}/bsp.c
  410. ${hpoc_app_dir}/tupApi.c
  411. ${hpoc_app_dir}/evrc2Pcm.c
  412. ${hpoc_app_dir}/http.c
  413. ${hpoc_app_dir}/extAuth.c
  414. ${hpoc_ticket_file}
  415. ${hpoc_gps_file})
  416. set(OPENHPOC_FILES
  417. ${hpoc_pt_files}
  418. ${hpoc_font_files}
  419. ${hpoc_proto_files}
  420. ${hpoc_queue_files}
  421. ${hpoc_log_files}
  422. ${openhpoc_app_files})
  423. endif(ENABLE_OPENHPOC)
  424. if(CONFIG_APPIMG_LOAD_FLASH)
  425. set(target M5700_POC)
  426. add_appimg(${target} ${flash_ldscript} ${hpoc_all_files})
  427. target_link_libraries(${target} PRIVATE ${hpoc_evrc_lib} ${libc_file_name} ${libm_file_name} ${libgcc_file_name})
  428. set(pac_file ${out_hex_dir}/${target}.pac)
  429. set(target_img_file ${out_hex_dir}/${target}.img)
  430. pac_init_fdl(init_fdl)
  431. add_custom_command(OUTPUT ${pac_file}
  432. COMMAND python3 ${pacgen_py} ${init_fdl}
  433. cfg-image -i APPIMG -a ${CONFIG_APPIMG_FLASH_ADDRESS}
  434. -s ${CONFIG_APPIMG_FLASH_SIZE}
  435. -p ${target_img_file}
  436. pac-gen ${pac_file}
  437. DEPENDS ${pacgen_py} ${target_img_file}
  438. WORKING_DIRECTORY ${SOURCE_TOP_DIR}
  439. )
  440. add_custom_target(${target}_pacgen ALL DEPENDS ${pac_file})
  441. if(ENABLE_OPENHPOC)
  442. SET(LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR})
  443. add_library(openhpoc STATIC ${OPENHPOC_FILES})
  444. endif()
  445. endif()