mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-28 13:44:02 +08:00
27 lines
961 B
CMake
27 lines
961 B
CMake
include_guard()
|
|
|
|
set(CMAKE_EXECUTABLE_SUFFIX ".dxe")
|
|
|
|
macro(__compiler_adsp lang)
|
|
set(CMAKE_${lang}_OUTPUT_EXTENSION ".doj")
|
|
|
|
set(CMAKE_${lang}_LINKER_WRAPPER_FLAG "-flags-link" " ")
|
|
set(CMAKE_${lang}_LINKER_WRAPPER_FLAG_SEP ",")
|
|
|
|
set(_CMAKE_${lang}_ADSP_FLAGS "-proc=${CMAKE_ADSP_PROCESSOR}")
|
|
|
|
set(CMAKE_${lang}_COMPILE_OBJECT
|
|
"<CMAKE_${lang}_COMPILER> ${_CMAKE_${lang}_ADSP_FLAGS} <DEFINES> <INCLUDES> <FLAGS> -o <OBJECT> -c <SOURCE>")
|
|
|
|
set(CMAKE_${lang}_CREATE_STATIC_LIBRARY
|
|
"<CMAKE_${lang}_COMPILER> ${_CMAKE_${lang}_ADSP_FLAGS} -build-lib -o <TARGET> <CMAKE_${lang}_LINK_FLAGS> <OBJECTS>")
|
|
|
|
set(CMAKE_${lang}_LINK_EXECUTABLE
|
|
"<CMAKE_${lang}_COMPILER> ${_CMAKE_${lang}_ADSP_FLAGS} <FLAGS> <CMAKE_${lang}_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
|
|
|
|
unset(_CMAKE_${lang}_ADSP_FLAGS)
|
|
|
|
set(CMAKE_${lang}_CREATE_SHARED_LIBRARY)
|
|
set(CMAKE_${lang}_CREATE_MODULE_LIBRARY)
|
|
endmacro()
|