summaryrefslogtreecommitdiff
path: root/src/common/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/CMakeLists.txt')
-rw-r--r--src/common/CMakeLists.txt19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
index e216eb3de..b58a7073f 100644
--- a/src/common/CMakeLists.txt
+++ b/src/common/CMakeLists.txt
@@ -52,6 +52,7 @@ add_library(common STATIC
52 fiber.cpp 52 fiber.cpp
53 fiber.h 53 fiber.h
54 fixed_point.h 54 fixed_point.h
55 free_region_manager.h
55 fs/file.cpp 56 fs/file.cpp
56 fs/file.h 57 fs/file.h
57 fs/fs.cpp 58 fs/fs.cpp
@@ -166,6 +167,13 @@ if (WIN32)
166 target_link_libraries(common PRIVATE ntdll) 167 target_link_libraries(common PRIVATE ntdll)
167endif() 168endif()
168 169
170if (NOT WIN32)
171 target_sources(common PRIVATE
172 signal_chain.cpp
173 signal_chain.h
174 )
175endif()
176
169if(ANDROID) 177if(ANDROID)
170 target_sources(common 178 target_sources(common
171 PRIVATE 179 PRIVATE
@@ -174,6 +182,15 @@ if(ANDROID)
174 ) 182 )
175endif() 183endif()
176 184
185if (UNIX AND NOT APPLE)
186 target_sources(common PRIVATE
187 linux/gamemode.cpp
188 linux/gamemode.h
189 )
190
191 target_link_libraries(common PRIVATE gamemode::headers)
192endif()
193
177if(ARCHITECTURE_x86_64) 194if(ARCHITECTURE_x86_64)
178 target_sources(common 195 target_sources(common
179 PRIVATE 196 PRIVATE
@@ -191,7 +208,7 @@ if(ARCHITECTURE_x86_64)
191 target_link_libraries(common PRIVATE xbyak::xbyak) 208 target_link_libraries(common PRIVATE xbyak::xbyak)
192endif() 209endif()
193 210
194if (ARCHITECTURE_arm64 AND (ANDROID OR LINUX)) 211if (HAS_NCE)
195 target_sources(common 212 target_sources(common
196 PRIVATE 213 PRIVATE
197 arm64/native_clock.cpp 214 arm64/native_clock.cpp