diff options
Diffstat (limited to 'src/common/CMakeLists.txt')
| -rw-r--r-- | src/common/CMakeLists.txt | 51 |
1 files changed, 48 insertions, 3 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index eeceaa655..d20e6c3b5 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt | |||
| @@ -32,6 +32,8 @@ add_custom_command(OUTPUT scm_rev.cpp | |||
| 32 | DEPENDS | 32 | DEPENDS |
| 33 | # WARNING! It was too much work to try and make a common location for this list, | 33 | # WARNING! It was too much work to try and make a common location for this list, |
| 34 | # so if you need to change it, please update CMakeModules/GenerateSCMRev.cmake as well | 34 | # so if you need to change it, please update CMakeModules/GenerateSCMRev.cmake as well |
| 35 | "${VIDEO_CORE}/renderer_opengl/gl_arb_decompiler.cpp" | ||
| 36 | "${VIDEO_CORE}/renderer_opengl/gl_arb_decompiler.h" | ||
| 35 | "${VIDEO_CORE}/renderer_opengl/gl_shader_cache.cpp" | 37 | "${VIDEO_CORE}/renderer_opengl/gl_shader_cache.cpp" |
| 36 | "${VIDEO_CORE}/renderer_opengl/gl_shader_cache.h" | 38 | "${VIDEO_CORE}/renderer_opengl/gl_shader_cache.h" |
| 37 | "${VIDEO_CORE}/renderer_opengl/gl_shader_decompiler.cpp" | 39 | "${VIDEO_CORE}/renderer_opengl/gl_shader_decompiler.cpp" |
| @@ -96,8 +98,11 @@ add_library(common STATIC | |||
| 96 | algorithm.h | 98 | algorithm.h |
| 97 | alignment.h | 99 | alignment.h |
| 98 | assert.h | 100 | assert.h |
| 101 | atomic_ops.cpp | ||
| 102 | atomic_ops.h | ||
| 99 | detached_tasks.cpp | 103 | detached_tasks.cpp |
| 100 | detached_tasks.h | 104 | detached_tasks.h |
| 105 | bit_cast.h | ||
| 101 | bit_field.h | 106 | bit_field.h |
| 102 | bit_util.h | 107 | bit_util.h |
| 103 | cityhash.cpp | 108 | cityhash.cpp |
| @@ -106,8 +111,11 @@ add_library(common STATIC | |||
| 106 | common_funcs.h | 111 | common_funcs.h |
| 107 | common_paths.h | 112 | common_paths.h |
| 108 | common_types.h | 113 | common_types.h |
| 114 | concepts.h | ||
| 109 | dynamic_library.cpp | 115 | dynamic_library.cpp |
| 110 | dynamic_library.h | 116 | dynamic_library.h |
| 117 | fiber.cpp | ||
| 118 | fiber.h | ||
| 111 | file_util.cpp | 119 | file_util.cpp |
| 112 | file_util.h | 120 | file_util.h |
| 113 | hash.h | 121 | hash.h |
| @@ -123,6 +131,8 @@ add_library(common STATIC | |||
| 123 | lz4_compression.cpp | 131 | lz4_compression.cpp |
| 124 | lz4_compression.h | 132 | lz4_compression.h |
| 125 | math_util.h | 133 | math_util.h |
| 134 | memory_detect.cpp | ||
| 135 | memory_detect.h | ||
| 126 | memory_hook.cpp | 136 | memory_hook.cpp |
| 127 | memory_hook.h | 137 | memory_hook.h |
| 128 | microprofile.cpp | 138 | microprofile.cpp |
| @@ -139,6 +149,10 @@ add_library(common STATIC | |||
| 139 | scm_rev.cpp | 149 | scm_rev.cpp |
| 140 | scm_rev.h | 150 | scm_rev.h |
| 141 | scope_exit.h | 151 | scope_exit.h |
| 152 | spin_lock.cpp | ||
| 153 | spin_lock.h | ||
| 154 | stream.cpp | ||
| 155 | stream.h | ||
| 142 | string_util.cpp | 156 | string_util.cpp |
| 143 | string_util.h | 157 | string_util.h |
| 144 | swap.h | 158 | swap.h |
| @@ -148,6 +162,8 @@ add_library(common STATIC | |||
| 148 | thread.h | 162 | thread.h |
| 149 | thread_queue_list.h | 163 | thread_queue_list.h |
| 150 | threadsafe_queue.h | 164 | threadsafe_queue.h |
| 165 | time_zone.cpp | ||
| 166 | time_zone.h | ||
| 151 | timer.cpp | 167 | timer.cpp |
| 152 | timer.h | 168 | timer.h |
| 153 | uint128.cpp | 169 | uint128.cpp |
| @@ -155,7 +171,10 @@ add_library(common STATIC | |||
| 155 | uuid.cpp | 171 | uuid.cpp |
| 156 | uuid.h | 172 | uuid.h |
| 157 | vector_math.h | 173 | vector_math.h |
| 158 | web_result.h | 174 | virtual_buffer.cpp |
| 175 | virtual_buffer.h | ||
| 176 | wall_clock.cpp | ||
| 177 | wall_clock.h | ||
| 159 | zstd_compression.cpp | 178 | zstd_compression.cpp |
| 160 | zstd_compression.h | 179 | zstd_compression.h |
| 161 | ) | 180 | ) |
| @@ -165,10 +184,36 @@ if(ARCHITECTURE_x86_64) | |||
| 165 | PRIVATE | 184 | PRIVATE |
| 166 | x64/cpu_detect.cpp | 185 | x64/cpu_detect.cpp |
| 167 | x64/cpu_detect.h | 186 | x64/cpu_detect.h |
| 187 | x64/native_clock.cpp | ||
| 188 | x64/native_clock.h | ||
| 189 | x64/xbyak_abi.h | ||
| 190 | x64/xbyak_util.h | ||
| 168 | ) | 191 | ) |
| 169 | endif() | 192 | endif() |
| 170 | 193 | ||
| 194 | if (MSVC) | ||
| 195 | target_compile_definitions(common PRIVATE | ||
| 196 | # The standard library doesn't provide any replacement for codecvt yet | ||
| 197 | # so we can disable this deprecation warning for the time being. | ||
| 198 | _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING | ||
| 199 | ) | ||
| 200 | target_compile_options(common PRIVATE | ||
| 201 | /W4 | ||
| 202 | /WX | ||
| 203 | ) | ||
| 204 | else() | ||
| 205 | target_compile_options(common PRIVATE | ||
| 206 | -Werror | ||
| 207 | ) | ||
| 208 | endif() | ||
| 209 | |||
| 171 | create_target_directory_groups(common) | 210 | create_target_directory_groups(common) |
| 211 | find_package(Boost 1.71 COMPONENTS context headers REQUIRED) | ||
| 172 | 212 | ||
| 173 | target_link_libraries(common PUBLIC Boost::boost fmt microprofile) | 213 | target_link_libraries(common PUBLIC ${Boost_LIBRARIES} fmt::fmt microprofile) |
| 174 | target_link_libraries(common PRIVATE lz4_static libzstd_static) | 214 | target_link_libraries(common PRIVATE lz4::lz4 xbyak) |
| 215 | if (MSVC) | ||
| 216 | target_link_libraries(common PRIVATE zstd::zstd) | ||
| 217 | else() | ||
| 218 | target_link_libraries(common PRIVATE zstd) | ||
| 219 | endif() | ||