diff options
-rwxr-xr-x | binding.gyp | 15 | ||||
-rw-r--r-- | index.mm | 1 |
2 files changed, 15 insertions, 1 deletions
diff --git a/binding.gyp b/binding.gyp index c8c5123..5810f8b 100755 --- a/binding.gyp +++ b/binding.gyp @@ -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" ] } ] @@ -3,6 +3,7 @@ #include <stdio.h> #include <unistd.h> #include <uv.h> +#include <string> #import <AVFoundation/AVFoundation.h> |