From 47e33bd36c1a251be38db702c052f419fd62313b Mon Sep 17 00:00:00 2001 From: Ignacio Sanchez Gines Date: Thu, 7 May 2020 15:03:58 +0200 Subject: [PATCH] Disable debugger for iOS --- platforms/ios/Gearboy.xcodeproj/project.pbxproj | 5 +++++ platforms/ios/Gearboy/Emulator.h | 1 - platforms/ios/Gearboy/texturemanager.mm | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/platforms/ios/Gearboy.xcodeproj/project.pbxproj b/platforms/ios/Gearboy.xcodeproj/project.pbxproj index d071f6cf..ea788bc9 100644 --- a/platforms/ios/Gearboy.xcodeproj/project.pbxproj +++ b/platforms/ios/Gearboy.xcodeproj/project.pbxproj @@ -657,6 +657,10 @@ CLANG_CXX_LIBRARY = "libc++"; DEVELOPMENT_TEAM = V3F66RFMSJ; FRAMEWORK_SEARCH_PATHS = "$(inherited)"; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + GEARBOY_DISABLE_DISASSEMBLER, + ); HEADER_SEARCH_PATHS = ( "$(inherited)", /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, @@ -683,6 +687,7 @@ DEVELOPMENT_TEAM = V3F66RFMSJ; FRAMEWORK_SEARCH_PATHS = "$(inherited)"; GCC_OPTIMIZATION_LEVEL = 2; + GCC_PREPROCESSOR_DEFINITIONS = GEARBOY_DISABLE_DISASSEMBLER; HEADER_SEARCH_PATHS = ( "$(inherited)", /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, diff --git a/platforms/ios/Gearboy/Emulator.h b/platforms/ios/Gearboy/Emulator.h index d55a1348..6f0cc022 100644 --- a/platforms/ios/Gearboy/Emulator.h +++ b/platforms/ios/Gearboy/Emulator.h @@ -26,7 +26,6 @@ #endif #endif -#define GEARBOY_DISABLE_DISASSEMBLER #import "../../../src/gearboy.h" #import "../../../platforms/audio-shared/Sound_Queue.h" #import "EmulatorInput.h" diff --git a/platforms/ios/Gearboy/texturemanager.mm b/platforms/ios/Gearboy/texturemanager.mm index 57f6b386..7f568ad6 100644 --- a/platforms/ios/Gearboy/texturemanager.mm +++ b/platforms/ios/Gearboy/texturemanager.mm @@ -18,7 +18,6 @@ */ #include "texturemanager.h" -#define GEARBOY_DISABLE_DISASSEMBLER #import "../../../src/gearboy.h" #include