2024-11-21 00:30:48 +00:00
|
|
|
#[=======================================================================[.rst:
|
|
|
|
Linux
|
|
|
|
-----
|
|
|
|
|
|
|
|
This file contains functions for options and configuration for targeting the
|
|
|
|
Linux platform
|
|
|
|
|
|
|
|
]=======================================================================]
|
2024-12-29 02:14:46 +00:00
|
|
|
|
|
|
|
#[=============================[ Linux Options ]=============================]
|
2024-11-21 00:30:48 +00:00
|
|
|
function( linux_options )
|
2024-12-29 02:14:46 +00:00
|
|
|
#[[ The options present in the SCons build shown below are managed by
|
|
|
|
toolchain files, further information can be found in doc/cmake.rst
|
|
|
|
|
|
|
|
use_llvm : Use the LLVM compiler
|
|
|
|
Default: False
|
|
|
|
]]
|
2024-11-21 00:30:48 +00:00
|
|
|
endfunction()
|
|
|
|
|
2024-12-29 02:14:46 +00:00
|
|
|
#[===========================[ Target Generation ]===========================]
|
2024-12-11 00:10:21 +00:00
|
|
|
function( linux_generate )
|
2024-11-21 00:30:48 +00:00
|
|
|
target_compile_definitions( ${TARGET_NAME}
|
|
|
|
PUBLIC
|
|
|
|
LINUX_ENABLED
|
|
|
|
UNIX_ENABLED
|
|
|
|
)
|
|
|
|
|
2024-12-11 00:10:21 +00:00
|
|
|
common_compiler_flags()
|
2024-11-21 00:30:48 +00:00
|
|
|
endfunction()
|