Generic-ADSP-C.cmake 761 B

12345678910111213141516171819202122
  1. include(Platform/Generic-ADSP-Common)
  2. set(CMAKE_C_OUTPUT_EXTENSION ".doj")
  3. string(APPEND CMAKE_C_FLAGS_DEBUG_INIT " -g")
  4. string(APPEND CMAKE_C_FLAGS_MINSIZEREL_INIT " ")
  5. string(APPEND CMAKE_C_FLAGS_RELEASE_INIT " ")
  6. string(APPEND CMAKE_C_FLAGS_RELWITHDEBINFO_INIT " ")
  7. set(CMAKE_C_LINKER_WRAPPER_FLAG "-flags-link" " ")
  8. set(CMAKE_C_LINKER_WRAPPER_FLAG_SEP ",")
  9. set(CMAKE_C_CREATE_STATIC_LIBRARY
  10. "<CMAKE_C_COMPILER> -build-lib -proc ${ADSP_PROCESSOR} -si-revision ${ADSP_PROCESSOR_SILICIUM_REVISION} -o <TARGET> <CMAKE_C_LINK_FLAGS> <OBJECTS>")
  11. set(CMAKE_C_LINK_EXECUTABLE
  12. "<CMAKE_C_COMPILER> <FLAGS> <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
  13. set(CMAKE_C_CREATE_SHARED_LIBRARY)
  14. set(CMAKE_C_CREATE_MODULE_LIBRARY)