CMakeLists.txt 1.2 KB

123456789101112131415161718192021222324252627282930
  1. # Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
  2. # All rights reserved.
  3. #
  4. # This software is supplied "AS IS" without any warranties.
  5. # RDA 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. RDA reserves the right to make changes in the
  8. # software without notification. RDA also make no representation or
  9. # warranty that such application will be suitable for the specified use
  10. # without further testing or modification.
  11. set(AT_MANUFACTURER_ID "UNISOC")
  12. set(AT_MODEL_ID "${BUILD_TARGET}-${BUILD_RELEASE_TYPE}")
  13. set(AT_REVISION_ID "${BUILD_REVISION}-${BUILD_AUTO_REVISION}")
  14. configure_file(include/ats_config.h.in ${out_inc_dir}/ats_config.h)
  15. set(at_apn_table_h ${CMAKE_CURRENT_BINARY_DIR}/at_apn_table.h)
  16. set_if(apn_csv CONFIG_AT_GLOBAL_APN_SUPPORT
  17. THEN apn/global_apn.csv
  18. OTHERWISE apn/local_apn.csv
  19. )
  20. add_custom_command(OUTPUT ${at_apn_table_h}
  21. COMMAND python3 apn/csv_parse.py ${apn_csv} ${at_apn_table_h}
  22. DEPENDS apn/csv_parse.py ${apn_csv}
  23. WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
  24. )
  25. set(target ats)
  26. include(core.cmake)