diff options
| author | Mai M <mathew1800@gmail.com> | 2021-08-13 13:19:59 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-13 13:19:59 -0400 |
| commit | c43f451da8bb02ff31741a1359079047e8fb90cf (patch) | |
| tree | fe7b4f2dbcf435a24b50c151c655f2dd2af56a26 /Source | |
| parent | 7cc8437050f05a34e7073e9bf49df9fc5aa3ff2e (diff) | |
| parent | ec2c10887f39f3134fce66e8adb9ac872c6120e6 (diff) | |
Merge pull request #10022 from MerryMage/codesign-debug
DolphinQt: Add entitlement to allow debugger to attach in Debug builds
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/DolphinQt/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | Source/Core/DolphinQt/DolphinEmuDebug.entitlements | 20 |
2 files changed, 22 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/CMakeLists.txt b/Source/Core/DolphinQt/CMakeLists.txt index 2c6ad5c0ef..83bd28652c 100644 --- a/Source/Core/DolphinQt/CMakeLists.txt +++ b/Source/Core/DolphinQt/CMakeLists.txt @@ -527,12 +527,12 @@ if(APPLE) # Code sign make file builds add_custom_command(TARGET dolphin-emu POST_BUILD COMMAND - /usr/bin/codesign -f -s "${MACOS_CODE_SIGNING_IDENTITY}" --deep --options=runtime --entitlements "${CMAKE_SOURCE_DIR}/Source/Core/DolphinQt/DolphinEmu.entitlements" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Dolphin.app" || true) + /usr/bin/codesign -f -s "${MACOS_CODE_SIGNING_IDENTITY}" --deep --options=runtime --entitlements "${CMAKE_SOURCE_DIR}/Source/Core/DolphinQt/DolphinEmu$<$<CONFIG:Debug>:Debug>.entitlements" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Dolphin.app" || true) # Code sign builds for build systems that do have release/debug variants (Xcode) add_custom_command(TARGET dolphin-emu POST_BUILD COMMAND - /usr/bin/codesign -f -s "${MACOS_CODE_SIGNING_IDENTITY}" --deep --options=runtime --entitlements "${CMAKE_SOURCE_DIR}/Source/Core/DolphinQt/DolphinEmu.entitlements" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG}/Dolphin.app" || true) + /usr/bin/codesign -f -s "${MACOS_CODE_SIGNING_IDENTITY}" --deep --options=runtime --entitlements "${CMAKE_SOURCE_DIR}/Source/Core/DolphinQt/DolphinEmuDebug.entitlements" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG}/Dolphin.app" || true) add_custom_command(TARGET dolphin-emu POST_BUILD COMMAND diff --git a/Source/Core/DolphinQt/DolphinEmuDebug.entitlements b/Source/Core/DolphinQt/DolphinEmuDebug.entitlements new file mode 100644 index 0000000000..6445fa77b9 --- /dev/null +++ b/Source/Core/DolphinQt/DolphinEmuDebug.entitlements @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>com.apple.security.cs.allow-jit</key> + <true/> + <!-- Needed for GameCube microphone emulation --> + <key>com.apple.security.device.audio-input</key> + <true/> + <!-- TODO: It is likely this requirement is coming from Qt, but should confirm --> + <key>com.apple.security.automation.apple-events</key> + <true/> + <!-- This is needed to use adhoc signed linked libraries --> + <key>com.apple.security.cs.disable-library-validation</key> + <true/> + <!-- This is needed to attach a debugger to the process --> + <key>com.apple.security.get-task-allow</key> + <true/> +</dict> +</plist> |
