This commit is contained in:
evgeny 2018-12-25 20:35:55 +03:00
parent 0b8b83c155
commit 4bb8b614a7
2 changed files with 15 additions and 1 deletions

View File

@ -2,7 +2,20 @@
"targets": [
{
"target_name": "mojave-permissions",
"sources": [ "index.mm" ],
'conditions': [
['OS=="mac"', {
'sources': [
'index.mm'
],
'xcode_settings': {
'CLANG_CXX_LIBRARY': 'libc++',
'MACOSX_DEPLOYMENT_TARGET': '10.14',
'OTHER_CFLAGS': [
'-ObjC++'
]
}
}]
],
"libraries": [ "-framework AVFoundation" ]
}
]

View File

@ -3,6 +3,7 @@
#include <stdio.h>
#include <unistd.h>
#include <uv.h>
#include <string>
#import <AVFoundation/AVFoundation.h>