mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 10:09:36 -06:00
port to OpenBSD
This commit is contained in:
@ -42,10 +42,9 @@ if ((DEFINED CMAKE_ANDROID_ARCH_ABI AND CMAKE_ANDROID_ARCH_ABI MATCHES "x86|x86_
|
||||
target_link_libraries(uicommon PRIVATE bdisasm)
|
||||
endif()
|
||||
|
||||
if(ENABLE_X11 AND X11_FOUND)
|
||||
target_include_directories(uicommon PRIVATE ${X11_INCLUDE_DIR})
|
||||
if(X11_FOUND)
|
||||
target_sources(uicommon PRIVATE X11Utils.cpp)
|
||||
target_link_libraries(uicommon PUBLIC ${XRANDR_LIBRARIES})
|
||||
target_link_libraries(uicommon PUBLIC PkgConfig::XRANDR PkgConfig::X11)
|
||||
endif()
|
||||
|
||||
if(TARGET LibUSB::LibUSB)
|
||||
@ -56,8 +55,24 @@ if(ENABLE_LLVM)
|
||||
find_package(LLVM CONFIG QUIET)
|
||||
if(LLVM_FOUND AND TARGET LLVM)
|
||||
message(STATUS "LLVM found, enabling LLVM support in disassembler")
|
||||
target_compile_definitions(uicommon PRIVATE HAVE_LLVM)
|
||||
target_link_libraries(uicommon PRIVATE LLVM)
|
||||
# Minimal documentation about LLVM's CMake functions is available here:
|
||||
# https://releases.llvm.org/16.0.0/docs/CMake.html#embedding-llvm-in-your-project
|
||||
#
|
||||
# However, you have to read the source code in any case.
|
||||
# Look for LLVM-Config.cmake in your (Unix) system:
|
||||
# $ find /usr -name LLVM-Config\\.cmake 2>/dev/null
|
||||
separate_arguments(LLVM_DEFINITIONS_LIST NATIVE_COMMAND ${LLVM_DEFINITIONS})
|
||||
target_compile_definitions(uicommon
|
||||
PRIVATE HAVE_LLVM ${LLVM_DEFINITIONS_LIST}
|
||||
)
|
||||
target_link_directories(uicommon PRIVATE ${LLVM_LIBRARY_DIRS})
|
||||
llvm_expand_pseudo_components(LLVM_EXPAND_COMPONENTS
|
||||
AllTargetsInfos AllTargetsDisassemblers AllTargetsCodeGens
|
||||
)
|
||||
llvm_map_components_to_libnames(LLVM_LIBRARIES
|
||||
mcdisassembler target ${LLVM_EXPAND_COMPONENTS}
|
||||
)
|
||||
target_link_libraries(uicommon PRIVATE ${LLVM_LIBRARIES})
|
||||
target_include_directories(uicommon PRIVATE ${LLVM_INCLUDE_DIRS})
|
||||
endif()
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user