OSX: set min support 10.9, minor code cleanup
parent
b889ec9334
commit
eaa07379cc
|
@ -15,9 +15,6 @@
|
||||||
|
|
||||||
#import <Cocoa/Cocoa.h>
|
#import <Cocoa/Cocoa.h>
|
||||||
#import <OpenGL/gl.h>
|
#import <OpenGL/gl.h>
|
||||||
#ifndef __MAC_10_6
|
|
||||||
#import <Carbon/Carbon.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "CIrrDeviceOSX.h"
|
#include "CIrrDeviceOSX.h"
|
||||||
|
|
||||||
|
@ -32,7 +29,6 @@
|
||||||
#include "COSOperator.h"
|
#include "COSOperator.h"
|
||||||
#include "CColorConverter.h"
|
#include "CColorConverter.h"
|
||||||
#include "irrlicht.h"
|
#include "irrlicht.h"
|
||||||
#include <algorithm>
|
|
||||||
|
|
||||||
#include "CNSOGLManager.h"
|
#include "CNSOGLManager.h"
|
||||||
|
|
||||||
|
@ -170,7 +166,7 @@ static void addJoystickComponent (CFTypeRef refElement, JoystickInfo* joyInfo)
|
||||||
addComponentInfo(refElement, &newComponent, joyInfo->numActiveJoysticks);
|
addComponentInfo(refElement, &newComponent, joyInfo->numActiveJoysticks);
|
||||||
joyInfo->axisComp.push_back(newComponent);
|
joyInfo->axisComp.push_back(newComponent);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case kHIDUsage_GD_Hatswitch:
|
case kHIDUsage_GD_Hatswitch:
|
||||||
{
|
{
|
||||||
joyInfo->hats++;
|
joyInfo->hats++;
|
||||||
|
@ -178,7 +174,9 @@ static void addJoystickComponent (CFTypeRef refElement, JoystickInfo* joyInfo)
|
||||||
addComponentInfo(refElement, &newComponent, joyInfo->numActiveJoysticks);
|
addComponentInfo(refElement, &newComponent, joyInfo->numActiveJoysticks);
|
||||||
joyInfo->hatComp.push_back(newComponent);
|
joyInfo->hatComp.push_back(newComponent);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -298,8 +296,6 @@ static void getJoystickDeviceInfo (io_object_t hidDevice, CFMutableDictionaryRef
|
||||||
|
|
||||||
#endif // _IRR_COMPILE_WITH_JOYSTICK_EVENTS_
|
#endif // _IRR_COMPILE_WITH_JOYSTICK_EVENTS_
|
||||||
|
|
||||||
// only OSX 10.5 seems to not need these defines...
|
|
||||||
#if !defined(__MAC_10_5) || defined(__MAC_10_6)
|
|
||||||
// Contents from Events.h from Carbon/HIToolbox but we need it with Cocoa too
|
// Contents from Events.h from Carbon/HIToolbox but we need it with Cocoa too
|
||||||
// and for some reason no Cocoa equivalent of these constants seems provided.
|
// and for some reason no Cocoa equivalent of these constants seems provided.
|
||||||
// So I'm doing like everyone else and using copy-and-paste.
|
// So I'm doing like everyone else and using copy-and-paste.
|
||||||
|
@ -437,7 +433,6 @@ enum {
|
||||||
kVK_DownArrow = 0x7D,
|
kVK_DownArrow = 0x7D,
|
||||||
kVK_UpArrow = 0x7E
|
kVK_UpArrow = 0x7E
|
||||||
};
|
};
|
||||||
#endif
|
|
||||||
|
|
||||||
//------------------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------------------
|
||||||
Boolean GetDictionaryBoolean(CFDictionaryRef theDict, const void* key)
|
Boolean GetDictionaryBoolean(CFDictionaryRef theDict, const void* key)
|
||||||
|
@ -483,9 +478,11 @@ static bool firstLaunch = true;
|
||||||
self = [super init];
|
self = [super init];
|
||||||
|
|
||||||
if (self)
|
if (self)
|
||||||
|
{
|
||||||
Device = device;
|
Device = device;
|
||||||
|
|
||||||
Quit = false;
|
Quit = false;
|
||||||
|
}
|
||||||
|
|
||||||
return (self);
|
return (self);
|
||||||
}
|
}
|
||||||
|
@ -558,7 +555,6 @@ CIrrDeviceMacOSX::CIrrDeviceMacOSX(const SIrrlichtCreationParameters& param)
|
||||||
IsActive(true), IsFullscreen(false), IsShiftDown(false), IsControlDown(false), IsResizable(false), NativeScale(1.0f)
|
IsActive(true), IsFullscreen(false), IsShiftDown(false), IsControlDown(false), IsResizable(false), NativeScale(1.0f)
|
||||||
{
|
{
|
||||||
struct utsname name;
|
struct utsname name;
|
||||||
NSString *path;
|
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
setDebugName("CIrrDeviceMacOSX");
|
setDebugName("CIrrDeviceMacOSX");
|
||||||
|
@ -590,10 +586,9 @@ CIrrDeviceMacOSX::CIrrDeviceMacOSX(const SIrrlichtCreationParameters& param)
|
||||||
[NSApp finishLaunching];
|
[NSApp finishLaunching];
|
||||||
}
|
}
|
||||||
|
|
||||||
path = [[NSBundle mainBundle] bundlePath];
|
NSString *path = [[NSBundle mainBundle] bundlePath];
|
||||||
path = [path stringByAppendingString:@"/Contents/Resources"];
|
path = [path stringByAppendingString:@"/Contents/Resources"];
|
||||||
chdir([path fileSystemRepresentation]);
|
chdir([path fileSystemRepresentation]);
|
||||||
[path release];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
uname(&name);
|
uname(&name);
|
||||||
|
@ -623,11 +618,7 @@ CIrrDeviceMacOSX::CIrrDeviceMacOSX(const SIrrlichtCreationParameters& param)
|
||||||
CIrrDeviceMacOSX::~CIrrDeviceMacOSX()
|
CIrrDeviceMacOSX::~CIrrDeviceMacOSX()
|
||||||
{
|
{
|
||||||
[SoftwareDriverTarget release];
|
[SoftwareDriverTarget release];
|
||||||
#ifdef __MAC_10_6
|
|
||||||
[NSApp setPresentationOptions:(NSApplicationPresentationDefault)];
|
[NSApp setPresentationOptions:(NSApplicationPresentationDefault)];
|
||||||
#else
|
|
||||||
SetSystemUIMode(kUIModeNormal, kUIOptionAutoShowMenuBar);
|
|
||||||
#endif
|
|
||||||
closeDevice();
|
closeDevice();
|
||||||
#if defined(_IRR_COMPILE_WITH_JOYSTICK_EVENTS_)
|
#if defined(_IRR_COMPILE_WITH_JOYSTICK_EVENTS_)
|
||||||
for (u32 joystick = 0; joystick < ActiveJoysticks.size(); ++joystick)
|
for (u32 joystick = 0; joystick < ActiveJoysticks.size(); ++joystick)
|
||||||
|
@ -660,11 +651,7 @@ bool CIrrDeviceMacOSX::createWindow()
|
||||||
#if 0
|
#if 0
|
||||||
CGDisplayErr error;
|
CGDisplayErr error;
|
||||||
CGRect displayRect;
|
CGRect displayRect;
|
||||||
#ifdef __MAC_10_6
|
|
||||||
CGDisplayModeRef displaymode, olddisplaymode;
|
CGDisplayModeRef displaymode, olddisplaymode;
|
||||||
#else
|
|
||||||
CFDictionaryRef displaymode, olddisplaymode;
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
@ -719,11 +706,7 @@ bool CIrrDeviceMacOSX::createWindow()
|
||||||
y = screenHeight - y - CreationParams.WindowSize.Height;
|
y = screenHeight - y - CreationParams.WindowSize.Height;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __MAC_10_12
|
|
||||||
NSWindowStyleMask style = NSWindowStyleMaskTitled | NSWindowStyleMaskClosable| NSWindowStyleMaskMiniaturizable;
|
NSWindowStyleMask style = NSWindowStyleMaskTitled | NSWindowStyleMaskClosable| NSWindowStyleMaskMiniaturizable;
|
||||||
#else
|
|
||||||
NSWindowStyleMask style = NSTitledWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
Window = [[NSWindow alloc] initWithContentRect:NSMakeRect(x, y, CreationParams.WindowSize.Width, CreationParams.WindowSize.Height)
|
Window = [[NSWindow alloc] initWithContentRect:NSMakeRect(x, y, CreationParams.WindowSize.Width, CreationParams.WindowSize.Height)
|
||||||
styleMask:style backing:type defer:FALSE];
|
styleMask:style backing:type defer:FALSE];
|
||||||
|
@ -759,7 +742,6 @@ bool CIrrDeviceMacOSX::createWindow()
|
||||||
{
|
{
|
||||||
IsFullscreen = true;
|
IsFullscreen = true;
|
||||||
|
|
||||||
#ifdef __MAC_10_6
|
|
||||||
displaymode = CGDisplayCopyDisplayMode(Display);
|
displaymode = CGDisplayCopyDisplayMode(Display);
|
||||||
|
|
||||||
CFArrayRef Modes = CGDisplayCopyAllDisplayModes(Display, NULL);
|
CFArrayRef Modes = CGDisplayCopyAllDisplayModes(Display, NULL);
|
||||||
|
@ -786,26 +768,15 @@ bool CIrrDeviceMacOSX::createWindow()
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
displaymode = CGDisplayBestModeForParameters(Display,CreationParams.Bits,CreationParams.WindowSize.Width,CreationParams.WindowSize.Height,NULL);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (displaymode != NULL)
|
if (displaymode != NULL)
|
||||||
{
|
{
|
||||||
#ifdef __MAC_10_6
|
|
||||||
olddisplaymode = CGDisplayCopyDisplayMode(Display);
|
olddisplaymode = CGDisplayCopyDisplayMode(Display);
|
||||||
#else
|
|
||||||
olddisplaymode = CGDisplayCurrentMode(Display);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
error = CGCaptureAllDisplays();
|
error = CGCaptureAllDisplays();
|
||||||
if (error == CGDisplayNoErr)
|
if (error == CGDisplayNoErr)
|
||||||
{
|
{
|
||||||
#ifdef __MAC_10_6
|
|
||||||
error = CGDisplaySetDisplayMode(Display, displaymode, NULL);
|
error = CGDisplaySetDisplayMode(Display, displaymode, NULL);
|
||||||
#else
|
|
||||||
error = CGDisplaySwitchToMode(Display, displaymode);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (error == CGDisplayNoErr)
|
if (error == CGDisplayNoErr)
|
||||||
{
|
{
|
||||||
|
@ -845,13 +816,7 @@ bool CIrrDeviceMacOSX::createWindow()
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
if (IsFullscreen) //hide menus in fullscreen mode only
|
if (IsFullscreen) //hide menus in fullscreen mode only
|
||||||
{
|
|
||||||
#ifdef __MAC_10_6
|
|
||||||
[NSApp setPresentationOptions:(NSApplicationPresentationAutoHideDock | NSApplicationPresentationAutoHideMenuBar)];
|
[NSApp setPresentationOptions:(NSApplicationPresentationAutoHideDock | NSApplicationPresentationAutoHideMenuBar)];
|
||||||
#else
|
|
||||||
SetSystemUIMode(kUIModeAllHidden, kUIOptionAutoShowMenuBar);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -938,11 +903,6 @@ void CIrrDeviceMacOSX::createDriver()
|
||||||
[(NSOpenGLContext*)ContextManager->getContext().OpenGLOSX.Context setView:[Window contentView]];
|
[(NSOpenGLContext*)ContextManager->getContext().OpenGLOSX.Context setView:[Window contentView]];
|
||||||
else
|
else
|
||||||
[(NSOpenGLContext*)ContextManager->getContext().OpenGLOSX.Context setView:(NSView*)CreationParams.WindowId];
|
[(NSOpenGLContext*)ContextManager->getContext().OpenGLOSX.Context setView:(NSView*)CreationParams.WindowId];
|
||||||
|
|
||||||
#ifndef __MAC_10_6
|
|
||||||
CGLContextObj CGLContext = (CGLContextObj)[(NSOpenGLContext*)ContextManager->getContext().OpenGLOSX.Context CGLContextObj];
|
|
||||||
CGLSetFullScreen(CGLContext);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
os::Printer::log("No OpenGL support compiled in.", ELL_ERROR);
|
os::Printer::log("No OpenGL support compiled in.", ELL_ERROR);
|
||||||
|
@ -1136,12 +1096,7 @@ void CIrrDeviceMacOSX::setWindowCaption(const wchar_t* text)
|
||||||
{
|
{
|
||||||
size_t numBytes = wcslen(text) * sizeof(wchar_t);
|
size_t numBytes = wcslen(text) * sizeof(wchar_t);
|
||||||
|
|
||||||
#ifdef __BIG_ENDIAN__
|
NSString* name = [[NSString alloc] initWithBytes:text length:numBytes encoding:NSUTF32LittleEndianStringEncoding];
|
||||||
NSStringEncoding encode = sizeof(wchar_t) == 4 ? NSUTF32BigEndianStringEncoding : NSUTF16BigEndianStringEncoding;
|
|
||||||
#else
|
|
||||||
NSStringEncoding encode = sizeof(wchar_t) == 4 ? NSUTF32LittleEndianStringEncoding : NSUTF16LittleEndianStringEncoding;
|
|
||||||
#endif
|
|
||||||
NSString* name = [[NSString alloc] initWithBytes:text length:numBytes encoding:encode];
|
|
||||||
if ( name )
|
if ( name )
|
||||||
{
|
{
|
||||||
[Window setTitle:name];
|
[Window setTitle:name];
|
||||||
|
@ -1347,13 +1302,8 @@ void CIrrDeviceMacOSX::setMouseLocation(s32 x, s32 y)
|
||||||
c.x = p.x;
|
c.x = p.x;
|
||||||
c.y = p.y;
|
c.y = p.y;
|
||||||
|
|
||||||
/*#ifdef __MAC_10_6
|
|
||||||
CGEventRef ev = CGEventCreateMouseEvent(NULL, kCGEventMouseMoved, c, NULL);
|
|
||||||
CGEventPost(kCGHIDEventTap, ev);
|
|
||||||
CFRelease(ev);
|
|
||||||
#endif*/
|
|
||||||
CGSetLocalEventsSuppressionInterval(0);
|
|
||||||
CGWarpMouseCursorPosition(c);
|
CGWarpMouseCursorPosition(c);
|
||||||
|
CGAssociateMouseAndMouseCursorPosition(YES);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1496,19 +1446,10 @@ void CIrrDeviceMacOSX::setResizable(bool resize)
|
||||||
IsResizable = resize;
|
IsResizable = resize;
|
||||||
|
|
||||||
NSWindowStyleMask style;
|
NSWindowStyleMask style;
|
||||||
if (resize) {
|
if (resize)
|
||||||
#ifdef __MAC_10_12
|
|
||||||
style = NSWindowStyleMaskTitled | NSWindowStyleMaskClosable | NSWindowStyleMaskResizable | NSWindowStyleMaskMiniaturizable;
|
style = NSWindowStyleMaskTitled | NSWindowStyleMaskClosable | NSWindowStyleMaskResizable | NSWindowStyleMaskMiniaturizable;
|
||||||
#else
|
else
|
||||||
style = NSTitledWindowMask | NSClosableWindowMask | NSResizableWindowMask | NSMiniaturizableWindowMask;
|
|
||||||
#endif
|
|
||||||
} else {
|
|
||||||
#ifdef __MAC_10_12
|
|
||||||
style = NSWindowStyleMaskTitled | NSWindowStyleMaskClosable | NSWindowStyleMaskMiniaturizable;
|
style = NSWindowStyleMaskTitled | NSWindowStyleMaskClosable | NSWindowStyleMaskMiniaturizable;
|
||||||
#else
|
|
||||||
style = NSTitledWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
[Window setStyleMask:style];
|
[Window setStyleMask:style];
|
||||||
}
|
}
|
||||||
|
@ -1877,7 +1818,6 @@ video::IVideoModeList* CIrrDeviceMacOSX::getVideoModeList()
|
||||||
CGDirectDisplayID display;
|
CGDirectDisplayID display;
|
||||||
display = CGMainDisplayID();
|
display = CGMainDisplayID();
|
||||||
|
|
||||||
#ifdef __MAC_10_6
|
|
||||||
CFArrayRef Modes = CGDisplayCopyAllDisplayModes(display, NULL);
|
CFArrayRef Modes = CGDisplayCopyAllDisplayModes(display, NULL);
|
||||||
|
|
||||||
for(int i = 0; i < CFArrayGetCount(Modes); ++i)
|
for(int i = 0; i < CFArrayGetCount(Modes); ++i)
|
||||||
|
@ -1905,27 +1845,6 @@ video::IVideoModeList* CIrrDeviceMacOSX::getVideoModeList()
|
||||||
VideoModeList->addMode(core::dimension2d<u32>(Width, Height), Depth);
|
VideoModeList->addMode(core::dimension2d<u32>(Width, Height), Depth);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
CFArrayRef availableModes = CGDisplayAvailableModes(display);
|
|
||||||
unsigned int numberOfAvailableModes = CFArrayGetCount(availableModes);
|
|
||||||
for (u32 i= 0; i<numberOfAvailableModes; ++i)
|
|
||||||
{
|
|
||||||
// look at each mode in the available list
|
|
||||||
CFDictionaryRef mode = (CFDictionaryRef)CFArrayGetValueAtIndex(availableModes, i);
|
|
||||||
long bitsPerPixel = GetDictionaryLong(mode, kCGDisplayBitsPerPixel);
|
|
||||||
Boolean safeForHardware = GetDictionaryBoolean(mode, kCGDisplayModeIsSafeForHardware);
|
|
||||||
Boolean stretched = GetDictionaryBoolean(mode, kCGDisplayModeIsStretched);
|
|
||||||
|
|
||||||
if (!safeForHardware)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
long width = GetDictionaryLong(mode, kCGDisplayWidth);
|
|
||||||
long height = GetDictionaryLong(mode, kCGDisplayHeight);
|
|
||||||
// long refresh = GetDictionaryLong((mode), kCGDisplayRefreshRate);
|
|
||||||
VideoModeList.addMode(core::dimension2d<u32>(width, height),
|
|
||||||
bitsPerPixel);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
return VideoModeList;
|
return VideoModeList;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3079,6 +3079,7 @@
|
||||||
5E34C6DD1B7F4A0C00F212E8 /* Debug */ = {
|
5E34C6DD1B7F4A0C00F212E8 /* Debug */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
CLANG_CXX_LANGUAGE_STANDARD = "c++17";
|
CLANG_CXX_LANGUAGE_STANDARD = "c++17";
|
||||||
CLANG_CXX_LIBRARY = "libc++";
|
CLANG_CXX_LIBRARY = "libc++";
|
||||||
CLANG_ENABLE_OBJC_ARC = YES;
|
CLANG_ENABLE_OBJC_ARC = YES;
|
||||||
|
@ -3119,7 +3120,7 @@
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
INSTALL_PATH = /;
|
INSTALL_PATH = /;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
||||||
MACOSX_DEPLOYMENT_TARGET = 10.7;
|
MACOSX_DEPLOYMENT_TARGET = 10.9;
|
||||||
ONLY_ACTIVE_ARCH = YES;
|
ONLY_ACTIVE_ARCH = YES;
|
||||||
OTHER_CPLUSPLUSFLAGS = (
|
OTHER_CPLUSPLUSFLAGS = (
|
||||||
"$(OTHER_CFLAGS)",
|
"$(OTHER_CFLAGS)",
|
||||||
|
@ -3132,6 +3133,7 @@
|
||||||
5E34C6DE1B7F4A0C00F212E8 /* Release */ = {
|
5E34C6DE1B7F4A0C00F212E8 /* Release */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
CLANG_CXX_LANGUAGE_STANDARD = "c++17";
|
CLANG_CXX_LANGUAGE_STANDARD = "c++17";
|
||||||
CLANG_CXX_LIBRARY = "libc++";
|
CLANG_CXX_LIBRARY = "libc++";
|
||||||
CLANG_ENABLE_OBJC_ARC = YES;
|
CLANG_ENABLE_OBJC_ARC = YES;
|
||||||
|
@ -3164,6 +3166,7 @@
|
||||||
"NDEBUG=1",
|
"NDEBUG=1",
|
||||||
"PNG_ARM_NEON_OPT=0",
|
"PNG_ARM_NEON_OPT=0",
|
||||||
);
|
);
|
||||||
|
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
|
||||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||||
|
@ -3172,7 +3175,7 @@
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
INSTALL_PATH = /;
|
INSTALL_PATH = /;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
||||||
MACOSX_DEPLOYMENT_TARGET = 10.7;
|
MACOSX_DEPLOYMENT_TARGET = 10.9;
|
||||||
OTHER_CPLUSPLUSFLAGS = (
|
OTHER_CPLUSPLUSFLAGS = (
|
||||||
"$(OTHER_CFLAGS)",
|
"$(OTHER_CFLAGS)",
|
||||||
"-U__STRICT_ANSI__",
|
"-U__STRICT_ANSI__",
|
||||||
|
@ -3184,7 +3187,6 @@
|
||||||
5E34C9F61B7F6E3400F212E8 /* Debug */ = {
|
5E34C9F61B7F6E3400F212E8 /* Debug */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
||||||
CLANG_ENABLE_OBJC_ARC = NO;
|
CLANG_ENABLE_OBJC_ARC = NO;
|
||||||
CLANG_ENABLE_OBJC_WEAK = YES;
|
CLANG_ENABLE_OBJC_WEAK = YES;
|
||||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||||
|
@ -3203,15 +3205,12 @@
|
||||||
EXECUTABLE_PREFIX = lib;
|
EXECUTABLE_PREFIX = lib;
|
||||||
GCC_DYNAMIC_NO_PIC = NO;
|
GCC_DYNAMIC_NO_PIC = NO;
|
||||||
GCC_OPTIMIZATION_LEVEL = 0;
|
GCC_OPTIMIZATION_LEVEL = 0;
|
||||||
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
|
||||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
MACOSX_DEPLOYMENT_TARGET = 10.7;
|
|
||||||
MTL_ENABLE_DEBUG_INFO = YES;
|
MTL_ENABLE_DEBUG_INFO = YES;
|
||||||
ONLY_ACTIVE_ARCH = YES;
|
|
||||||
PRODUCT_NAME = Irrlicht;
|
PRODUCT_NAME = Irrlicht;
|
||||||
SDKROOT = macosx;
|
SDKROOT = macosx;
|
||||||
};
|
};
|
||||||
|
@ -3220,7 +3219,6 @@
|
||||||
5E34C9F71B7F6E3400F212E8 /* Release */ = {
|
5E34C9F71B7F6E3400F212E8 /* Release */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
||||||
CLANG_ENABLE_OBJC_ARC = NO;
|
CLANG_ENABLE_OBJC_ARC = NO;
|
||||||
CLANG_ENABLE_OBJC_WEAK = YES;
|
CLANG_ENABLE_OBJC_WEAK = YES;
|
||||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||||
|
@ -3239,13 +3237,11 @@
|
||||||
ENABLE_NS_ASSERTIONS = NO;
|
ENABLE_NS_ASSERTIONS = NO;
|
||||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||||
EXECUTABLE_PREFIX = lib;
|
EXECUTABLE_PREFIX = lib;
|
||||||
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
|
|
||||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
MACOSX_DEPLOYMENT_TARGET = 10.7;
|
|
||||||
MTL_ENABLE_DEBUG_INFO = NO;
|
MTL_ENABLE_DEBUG_INFO = NO;
|
||||||
PRODUCT_NAME = Irrlicht;
|
PRODUCT_NAME = Irrlicht;
|
||||||
SDKROOT = macosx;
|
SDKROOT = macosx;
|
||||||
|
@ -3255,7 +3251,6 @@
|
||||||
5E5733E31C18E212003F664E /* Debug */ = {
|
5E5733E31C18E212003F664E /* Debug */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
||||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||||
|
@ -3272,16 +3267,13 @@
|
||||||
EXECUTABLE_PREFIX = lib;
|
EXECUTABLE_PREFIX = lib;
|
||||||
GCC_C_LANGUAGE_STANDARD = gnu11;
|
GCC_C_LANGUAGE_STANDARD = gnu11;
|
||||||
GCC_FAST_MATH = YES;
|
GCC_FAST_MATH = YES;
|
||||||
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
|
||||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
HEADER_SEARCH_PATHS = "${SRCROOT}/../../include";
|
HEADER_SEARCH_PATHS = "${SRCROOT}/../../include";
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
|
||||||
MTL_ENABLE_DEBUG_INFO = YES;
|
MTL_ENABLE_DEBUG_INFO = YES;
|
||||||
ONLY_ACTIVE_ARCH = YES;
|
|
||||||
OTHER_CFLAGS = (
|
OTHER_CFLAGS = (
|
||||||
"-fvisibility=hidden",
|
"-fvisibility=hidden",
|
||||||
"-fdata-sections",
|
"-fdata-sections",
|
||||||
|
@ -3298,7 +3290,6 @@
|
||||||
5E5733E41C18E212003F664E /* Release */ = {
|
5E5733E41C18E212003F664E /* Release */ = {
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
||||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||||
|
@ -3317,7 +3308,6 @@
|
||||||
EXECUTABLE_PREFIX = lib;
|
EXECUTABLE_PREFIX = lib;
|
||||||
GCC_C_LANGUAGE_STANDARD = gnu11;
|
GCC_C_LANGUAGE_STANDARD = gnu11;
|
||||||
GCC_FAST_MATH = YES;
|
GCC_FAST_MATH = YES;
|
||||||
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
|
|
||||||
GCC_UNROLL_LOOPS = YES;
|
GCC_UNROLL_LOOPS = YES;
|
||||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||||
|
@ -3325,7 +3315,6 @@
|
||||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
HEADER_SEARCH_PATHS = "${SRCROOT}/../../include";
|
HEADER_SEARCH_PATHS = "${SRCROOT}/../../include";
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
|
||||||
MTL_ENABLE_DEBUG_INFO = NO;
|
MTL_ENABLE_DEBUG_INFO = NO;
|
||||||
OTHER_CFLAGS = (
|
OTHER_CFLAGS = (
|
||||||
"-fvisibility=hidden",
|
"-fvisibility=hidden",
|
||||||
|
|
Loading…
Reference in New Issue