From Valeriy Dubov, fix for Android build under OSX
This commit is contained in:
parent
255432f76b
commit
2daff56860
@ -820,7 +820,7 @@ IF (BUILD_OSG_EXAMPLES)
|
|||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
|
|
||||||
IF(APPLE)
|
IF(APPLE AND NOT ANDROID)
|
||||||
|
|
||||||
#Here we check if the user specified IPhone SDK
|
#Here we check if the user specified IPhone SDK
|
||||||
IF(OSG_BUILD_PLATFORM_IPHONE OR OSG_BUILD_PLATFORM_IPHONE_SIMULATOR)
|
IF(OSG_BUILD_PLATFORM_IPHONE OR OSG_BUILD_PLATFORM_IPHONE_SIMULATOR)
|
||||||
|
@ -32,7 +32,7 @@ ELSE ()
|
|||||||
ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
|
ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
IF (APPLE)
|
IF(APPLE AND NOT ANDROID)
|
||||||
IF(OSG_BUILD_PLATFORM_IPHONE OR OSG_BUILD_PLATFORM_IPHONE_SIMULATOR)
|
IF(OSG_BUILD_PLATFORM_IPHONE OR OSG_BUILD_PLATFORM_IPHONE_SIMULATOR)
|
||||||
# compile FileUtils.cpp as objective-c++
|
# compile FileUtils.cpp as objective-c++
|
||||||
SET_SOURCE_FILES_PROPERTIES(FileUtils.cpp
|
SET_SOURCE_FILES_PROPERTIES(FileUtils.cpp
|
||||||
@ -121,7 +121,7 @@ SET(TARGET_SRC
|
|||||||
${OPENSCENEGRAPH_VERSIONINFO_RC}
|
${OPENSCENEGRAPH_VERSIONINFO_RC}
|
||||||
)
|
)
|
||||||
|
|
||||||
IF(APPLE)
|
IF(APPLE AND NOT ANDROID)
|
||||||
IF(NOT OSG_BUILD_PLATFORM_IPHONE AND NOT OSG_BUILD_PLATFORM_IPHONE_SIMULATOR)
|
IF(NOT OSG_BUILD_PLATFORM_IPHONE AND NOT OSG_BUILD_PLATFORM_IPHONE_SIMULATOR)
|
||||||
# Needs CoreFoundation calls and a Carbon function
|
# Needs CoreFoundation calls and a Carbon function
|
||||||
SET(OSGDB_PLATFORM_SPECIFIC_LIBRARIES ${CARBON_LIBRARY})
|
SET(OSGDB_PLATFORM_SPECIFIC_LIBRARIES ${CARBON_LIBRARY})
|
||||||
|
@ -69,7 +69,7 @@ IF(WIN32 AND NOT ANDROID)
|
|||||||
PixelBufferWin32.cpp
|
PixelBufferWin32.cpp
|
||||||
)
|
)
|
||||||
ELSE()
|
ELSE()
|
||||||
IF(APPLE)
|
IF(APPLE AND NOT ANDROID)
|
||||||
|
|
||||||
IF(OSG_BUILD_PLATFORM_IPHONE OR OSG_BUILD_PLATFORM_IPHONE_SIMULATOR)
|
IF(OSG_BUILD_PLATFORM_IPHONE OR OSG_BUILD_PLATFORM_IPHONE_SIMULATOR)
|
||||||
SET(OSG_WINDOWING_SYSTEM "IOS" CACHE STRING "Windowing system type for graphics window creation, options only IOS.")
|
SET(OSG_WINDOWING_SYSTEM "IOS" CACHE STRING "Windowing system type for graphics window creation, options only IOS.")
|
||||||
|
Loading…
Reference in New Issue
Block a user