From 4bb8b614a70fd8c483b7c5b8eaf7c4ed4634ff18 Mon Sep 17 00:00:00 2001 From: evgeny Date: Tue, 25 Dec 2018 20:35:55 +0300 Subject: upd --- binding.gyp | 15 ++++++++++++++- index.mm | 1 + 2 files changed, 15 insertions(+), 1 deletion(-) 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" ] } ] diff --git a/index.mm b/index.mm index 6423012..2e9db03 100644 --- a/index.mm +++ b/index.mm @@ -3,6 +3,7 @@ #include #include #include +#include #import -- cgit v1.2.3