forked from thesofproject/sof
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
39 lines (25 loc) · 793 Bytes
/
CMakeLists.txt
File metadata and controls
39 lines (25 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# SPDX-License-Identifier: BSD-3-Clause
is_zephyr(it_is)
if(it_is) ### Zephyr ###
zephyr_library_sources(
init.c
ext_manifest.c
)
else() ### Not Zephyr ###
add_local_sources(sof init.c)
add_library(ext_manifest STATIC "")
# define compiler version
set_property(TARGET ext_manifest APPEND
PROPERTY COMPILE_DEFINITIONS
XCC_TOOLS_VERSION="${XCC_TOOLS_VERSION}")
# and optimization settings
get_optimization_flag(optimization_flag)
set_property(TARGET ext_manifest APPEND
PROPERTY COMPILE_DEFINITIONS
CC_OPTIMIZE_FLAGS="-${optimization_flag}")
add_local_sources(ext_manifest
ext_manifest.c)
sof_append_relative_path_definitions(ext_manifest)
target_link_libraries(ext_manifest sof_options)
target_link_libraries(sof_static_libraries INTERFACE ext_manifest)
endif() # Zephyr