Create HAVE_AVFOUNDATION define

This commit is contained in:
twinaphex 2015-04-19 20:38:40 +02:00
parent cbee4c3c03
commit 4e912dbae8
3 changed files with 4 additions and 6 deletions

View File

@ -171,11 +171,6 @@ void apple_display_alert(const char *message, const char *title)
/* Define compatibility symbols and categories. */
//#if defined(MAC_OS_X_VERSION_10_7) || defined(__IPHONE_4_0)
#if defined(__IPHONE_4_0) && defined(IOS)
#define HAVE_AVFOUNDATION
#endif
#ifdef HAVE_AVFOUNDATION
#include <AVFoundation/AVCaptureSession.h>
#include <AVFoundation/AVCaptureDevice.h>

View File

@ -818,6 +818,7 @@
"-DHAVE_XMB",
"-D_LZMA_UINT32_IS_ULONG",
"-DHAVE_MFI",
"-DHAVE_AVFOUNDATION",
);
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
@ -885,6 +886,7 @@
"-DHAVE_XMB",
"-D_LZMA_UINT32_IS_ULONG",
"-DHAVE_MFI",
"-DHAVE_AVFOUNDATION",
);
"OTHER_CFLAGS[arch=*]" = (
"-DNS_BLOCK_ASSERTIONS=1",
@ -924,6 +926,7 @@
"-DHAVE_XMB",
"-D_LZMA_UINT32_IS_ULONG",
"-DHAVE_MFI",
"-DHAVE_AVFOUNDATION",
);
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";

View File

@ -31,7 +31,7 @@ static const camera_driver_t *camera_drivers[] = {
#ifdef ANDROID
&camera_android,
#endif
#if defined(__IPHONE_4_0) && defined(IOS)
#ifdef HAVE_AVFOUNDATION
&camera_apple,
#endif
&camera_null,