From 4fbea35e17b782a5d80ef667d6d904f3641dc377 Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Fri, 8 Mar 2013 00:07:55 +0100 Subject: [PATCH] allow "tex" image loader by default, and add DEBUG=1 for showing the log in the console, only in debug mode. --- tools/templates/main.m | 6 ++++-- tools/templates/template.xcodeproj/project.pbxproj | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/templates/main.m b/tools/templates/main.m index f87ca6d..6b9014a 100644 --- a/tools/templates/main.m +++ b/tools/templates/main.m @@ -32,10 +32,12 @@ int main(int argc, char *argv[]) { putenv("KIVY_BUILD=ios"); putenv("KIVY_NO_CONFIG=1"); putenv("KIVY_NO_FILELOG=1"); - putenv("KIVY_NO_CONSOLELOG=1"); putenv("KIVY_WINDOW=sdl"); - putenv("KIVY_IMAGE=imageio"); + putenv("KIVY_IMAGE=imageio,tex"); putenv("KIVY_AUDIO=sdl"); + #if DEBUG + putenv("KIVY_NO_CONSOLELOG=1"); + #endif // Export orientation preferences for Kivy export_orientation(); diff --git a/tools/templates/template.xcodeproj/project.pbxproj b/tools/templates/template.xcodeproj/project.pbxproj index 714bf17..baad6a1 100755 --- a/tools/templates/template.xcodeproj/project.pbxproj +++ b/tools/templates/template.xcodeproj/project.pbxproj @@ -271,6 +271,7 @@ GCC_OPTIMIZATION_LEVEL = 0; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = ""; + GCC_PREPROCESSOR_DEFINITIONS = "DEBUG=1"; GCC_VERSION = com.apple.compilers.llvm.clang.1_0; HEADER_SEARCH_PATHS = ( "\"$(PROJECT_DIR)/../build/include\"",