mirror of
https://github.com/azahar-emu/dynarmic
synced 2025-11-07 07:29:59 +01:00
CMakeLists: Include backend_x64 only if we're targeting x86_64
This commit is contained in:
parent
dcc880a002
commit
2a1cf94b1c
@ -1,11 +1,4 @@
|
|||||||
set(SRCS
|
set(SRCS
|
||||||
backend_x64/abi.cpp
|
|
||||||
backend_x64/block_of_code.cpp
|
|
||||||
backend_x64/emit_x64.cpp
|
|
||||||
backend_x64/hostloc.cpp
|
|
||||||
backend_x64/interface_x64.cpp
|
|
||||||
backend_x64/jitstate.cpp
|
|
||||||
backend_x64/reg_alloc.cpp
|
|
||||||
common/memory_pool.cpp
|
common/memory_pool.cpp
|
||||||
frontend/arm/types.cpp
|
frontend/arm/types.cpp
|
||||||
frontend/disassembler/disassembler_arm.cpp
|
frontend/disassembler/disassembler_arm.cpp
|
||||||
@ -41,12 +34,6 @@ set(HEADERS
|
|||||||
../include/dynarmic/dynarmic.h
|
../include/dynarmic/dynarmic.h
|
||||||
../include/dynarmic/callbacks.h
|
../include/dynarmic/callbacks.h
|
||||||
../include/dynarmic/disassembler.h
|
../include/dynarmic/disassembler.h
|
||||||
backend_x64/abi.h
|
|
||||||
backend_x64/block_of_code.h
|
|
||||||
backend_x64/emit_x64.h
|
|
||||||
backend_x64/hostloc.h
|
|
||||||
backend_x64/jitstate.h
|
|
||||||
backend_x64/reg_alloc.h
|
|
||||||
common/assert.h
|
common/assert.h
|
||||||
common/bit_util.h
|
common/bit_util.h
|
||||||
common/common_types.h
|
common/common_types.h
|
||||||
@ -78,6 +65,29 @@ set(HEADERS
|
|||||||
ir_opt/passes.h
|
ir_opt/passes.h
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (ARCHITECTURE_x86_64)
|
||||||
|
list(APPEND SRCS
|
||||||
|
backend_x64/abi.cpp
|
||||||
|
backend_x64/block_of_code.cpp
|
||||||
|
backend_x64/emit_x64.cpp
|
||||||
|
backend_x64/hostloc.cpp
|
||||||
|
backend_x64/interface_x64.cpp
|
||||||
|
backend_x64/jitstate.cpp
|
||||||
|
backend_x64/reg_alloc.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
list(APPEND HEADERS
|
||||||
|
backend_x64/abi.h
|
||||||
|
backend_x64/block_of_code.h
|
||||||
|
backend_x64/emit_x64.h
|
||||||
|
backend_x64/hostloc.h
|
||||||
|
backend_x64/jitstate.h
|
||||||
|
backend_x64/reg_alloc.h
|
||||||
|
)
|
||||||
|
else()
|
||||||
|
message(FATAL_ERROR "Unsupported architecture")
|
||||||
|
endif()
|
||||||
|
|
||||||
include(CreateDirectoryGroups)
|
include(CreateDirectoryGroups)
|
||||||
create_directory_groups(${SRCS} ${HEADERS})
|
create_directory_groups(${SRCS} ${HEADERS})
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user