2012-10-02 22:07:12 +08:00
|
|
|
# Locate Apple AVFoundation (next-generation QTKit)
|
|
|
|
# This module defines
|
|
|
|
# AV_FOUNDATION_LIBRARY
|
2013-10-07 17:33:46 +08:00
|
|
|
# AV_FOUNDATION_FOUND, if false, do not try to link to gdal
|
2012-10-02 22:07:12 +08:00
|
|
|
#
|
|
|
|
# $AV_FOUNDATION_DIR is an environment variable that would
|
|
|
|
# correspond to the ./configure --prefix=$AV_FOUNDATION_DIR
|
|
|
|
#
|
2013-10-07 17:33:46 +08:00
|
|
|
# Created by Stephan Maximilian Huber
|
2012-10-02 22:07:12 +08:00
|
|
|
|
|
|
|
|
|
|
|
IF(APPLE)
|
|
|
|
FIND_LIBRARY(AV_FOUNDATION_LIBRARY AVFoundation)
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
SET(AV_FOUNDATION_FOUND "NO")
|
From Stephan Huber, "attached you’ll find a bunch of fixes + enhancements for iOS and OS X based on current trunk. I incorporated + tested the submission from Colin Cochran, so his submission is not needed anymore.
* fixed a bug with multi-touch and touch-id-generation on iOS and OS X. (will fix a bug reported by Colin Cochran, without ditching the existing logic)
* removed unnecessary warning-flagss when generating xcode-projects via cmake, will enable the usage of OSG_AGGRESSIVE_WARNING_FLAGS
* added support for 10.9 (OS X)
* new cmake-variable: IPHONE_VERSION_MIN, this will set the deployment-target (previously hard-coded) If you set the IPHONE_VERSION_MIN to something like 7.0 osg gets compiled also for 64bit (amd64)
* cmake defaults now to the clang compiler if IPHONE_VERSION_MIN > 4.2
* cmake now sets some xcode-settings so the compiler uses the c++98-standard (clang defaults to c++11, w/o this I got a lot of linking errors)
* removed include-dir for avfoundation-plugin as not needed on OSX/IOS.
* enhanced the ios-example, will now show multitouch-information on a hud (similar to the osgmultitouch-example), and more importantly, will compile + link out of the box
* small enhancements for the osc-device-plugin (send only one msg for MOVE/DRAG, even if multiple msgs/event is enabled)
* better memory-handling for the zeroconf-plugin
* fixed a possible bug in the rest-http-plugin when receiving mouse-events.
* incorporated a fix from Colin Cochran "forwarded touch events are not transformed into the GL UIView“
"
2013-10-07 18:05:09 +08:00
|
|
|
IF(AV_FOUNDATION_LIBRARY)
|
2012-10-02 22:07:12 +08:00
|
|
|
SET(AV_FOUNDATION_FOUND "YES")
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
IF(OSG_BUILD_PLATFORM_IPHONE OR OSG_BUILD_PLATFORM_IPHONE_SIMULATOR)
|
2012-12-06 01:15:53 +08:00
|
|
|
# AVFoundation exists ON iOS, too -- good support for SDK 6.0 and greater
|
|
|
|
IF(${IPHONE_SDKVER} LESS "6.0")
|
|
|
|
SET(AV_FOUNDATION_FOUND "NO")
|
2012-10-02 22:07:12 +08:00
|
|
|
ELSE()
|
2012-12-06 01:15:53 +08:00
|
|
|
SET(AV_FOUNDATION_FOUND "YES")
|
2012-10-02 22:07:12 +08:00
|
|
|
ENDIF()
|
2012-12-06 01:15:53 +08:00
|
|
|
ELSE()
|
|
|
|
IF(APPLE)
|
|
|
|
# AVFoundation exists since 10.7, but only 10.8 has all features necessary for OSG
|
|
|
|
# so check the SDK-setting
|
2012-10-02 22:07:12 +08:00
|
|
|
|
2016-08-10 21:30:28 +08:00
|
|
|
IF(OSG_OSX_VERSION VERSION_LESS 10.8)
|
|
|
|
MESSAGE("AVFoundation disabled for SDK < 10.8")
|
|
|
|
SET(AV_FOUNDATION_FOUND "NO")
|
2012-12-06 01:15:53 +08:00
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|