diff options
| -rw-r--r-- | .gitmodules | 3 | ||||
| -rw-r--r-- | CMakeLists.txt | 2 | ||||
| -rw-r--r-- | externals/CMakeLists.txt | 8 | ||||
| m--------- | externals/xbyak | 0 |
4 files changed, 13 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules index f498a60de..dbb1b0dd3 100644 --- a/.gitmodules +++ b/.gitmodules | |||
| @@ -16,3 +16,6 @@ | |||
| 16 | [submodule "dynarmic"] | 16 | [submodule "dynarmic"] |
| 17 | path = externals/dynarmic | 17 | path = externals/dynarmic |
| 18 | url = https://github.com/MerryMage/dynarmic.git | 18 | url = https://github.com/MerryMage/dynarmic.git |
| 19 | [submodule "xbyak"] | ||
| 20 | path = externals/xbyak | ||
| 21 | url = https://github.com/herumi/xbyak.git | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2c00690c0..bcee98a5f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -256,6 +256,8 @@ set(INI_PREFIX "${CMAKE_CURRENT_SOURCE_DIR}/externals/inih") | |||
| 256 | include_directories(${INI_PREFIX}) | 256 | include_directories(${INI_PREFIX}) |
| 257 | add_subdirectory(${INI_PREFIX}) | 257 | add_subdirectory(${INI_PREFIX}) |
| 258 | 258 | ||
| 259 | add_subdirectory(externals) | ||
| 260 | |||
| 259 | option(DYNARMIC_TESTS OFF) | 261 | option(DYNARMIC_TESTS OFF) |
| 260 | add_subdirectory(externals/dynarmic) | 262 | add_subdirectory(externals/dynarmic) |
| 261 | 263 | ||
diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt new file mode 100644 index 000000000..7e4b05ffc --- /dev/null +++ b/externals/CMakeLists.txt | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | # Xbyak | ||
| 2 | if (ARCHITECTURE_x86_64) | ||
| 3 | add_library(xbyak INTERFACE) | ||
| 4 | target_include_directories(xbyak INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/xbyak/xbyak) | ||
| 5 | if (NOT MSVC) | ||
| 6 | target_compile_options(xbyak INTERFACE -fno-operator-names) | ||
| 7 | endif() | ||
| 8 | endif() | ||
diff --git a/externals/xbyak b/externals/xbyak new file mode 160000 | |||
| Subproject fe4765d2fed4e990ea5e9661b6bc5fc9bf48ec1 | |||