core.cmake 1.5 KB

1234567891011121314151617181920212223242526
  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(import_lib ${out_lib_dir}/libdriver_lcd.a)
  12. add_library(driver_combine STATIC IMPORTED GLOBAL)
  13. set_target_properties(driver_combine PROPERTIES IMPORTED_LOCATION ${import_lib} INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}/include IMPORTED_LINK_INTERFACE_LIBRARIES driver_camera)
  14. set(import_lib ${out_lib_dir}/libdriver.a)
  15. configure_file(${ql_dm_dir}/libdriver.a ${import_lib} COPYONLY)
  16. add_app_libraries(${import_lib})
  17. add_library(driver STATIC IMPORTED GLOBAL)
  18. set_target_properties(driver PROPERTIES IMPORTED_LOCATION ${import_lib} INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}/include IMPORTED_LINK_INTERFACE_LIBRARIES driver_combine)
  19. set(import_lib ${out_lib_dir}/libdriver_core.a)
  20. configure_file(core/${CONFIG_SOC}/libdriver_core.a ${import_lib} COPYONLY)
  21. add_app_libraries(${import_lib})
  22. add_library(driver_core STATIC IMPORTED GLOBAL)
  23. set_target_properties(driver_core PROPERTIES IMPORTED_LOCATION ${import_lib})