1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- # Copyright (C) 2018 LongSung Technologies Limited and/or its affiliates("LongSung").
- # All rights reserved.
- #
- # This software is supplied "AS IS" without any warranties.
- # LongSung assumes no responsibility or liability for the use of the software,
- # conveys no license or title under any patent, copyright, or mask work
- # right to the product. LongSung reserves the right to make changes in the
- # software without notification. LongSung also make no representation or
- # warranty that such application will be suitable for the specified use
- # without further testing or modification.
- cmake_minimum_required(VERSION 3.13)
- set(app_dir ./app)
- option(ENABLE_HGS_POC "使能海高思POC" ON)
- option(ENABLE_GWSD_POC "使能公网时代POC" OFF)
- if(ENABLE_GWSD_POC)
- add_definitions(-D ENABLE_GWSD_POC)
- set(gwsd_dir ./lib/gwsd)
- set(gwsd_lib ${CMAKE_CURRENT_SOURCE_DIR}/lib/gwsd/POC.lib)
- endif(ENABLE_GWSD_POC)
- option(ENABLE_TEST_FLASH "使能SPI FLASH测试" OFF)
- if(ENABLE_TEST_FLASH)
- set(spi_files ./flashInterface/spiFlash.c ./flashInterface/spiFlashFat.c)
- include_directories(./flashInterface)
- endif(ENABLE_TEST_FLASH)
- set(app_files ${app_dir}/ohpocapp.c
- ${app_dir}/board.c
- ${app_dir}/log.c
- ${app_dir}/poc.c
- ${app_dir}/app.c
- ${app_dir}/uio.c
- ${app_dir}/common.c
- ${app_dir}/setting.c
- ${app_dir}/message.c
- ${app_dir}/gpsCtl.c
- ${app_dir}/hook.c
- ${app_dir}/setSystemPara.c
- ${app_dir}/appAuth.c
- ${app_dir}/GUI/lcdDrv.c
- ${app_dir}/GUI/gui.c
- ${app_dir}/GUI/fonts.c
- ${app_dir}/uiEntry.c
- ${app_dir}/uiBlock.c
- ${app_dir}/Interface/Palace.c
- ${app_dir}/Interface/uiMenu.c
- ${app_dir}/Interface/ListBox.c
- ${app_dir}/Interface/ListBoxSMS.c
- ${app_dir}/Interface/NumEdit.c
- ${app_dir}/Interface/ManageMessage.c
- ${app_dir}/md5/mymd5.c
- ${spi_files})
- add_definitions(-w)
- include_directories(${app_dir} ${app_dir}/md5 ${app_dir}/GUI ${app_dir}/Interface ${gwsd_dir})
- if(ENABLE_HGS_POC)
- add_definitions(-D ENABLE_HGS_POC)
- set(app_lib ${CMAKE_CURRENT_SOURCE_DIR}/lib/libohpoc.a)
- endif(ENABLE_HGS_POC)
- add_appimg(${target} ${flash_ldscript} ${app_files})
- target_link_libraries(${target} PRIVATE ${app_lib} ${gwsd_lib})
|