forked from noble/noble
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
44d5dcc
commit 0dd213d
Showing
3 changed files
with
53 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,38 @@ | ||
{ | ||
'variables': { | ||
'openssl_fips' : '' | ||
}, | ||
'targets': [ | ||
{ | ||
'target_name': 'binding', | ||
'sources': [ 'src/noble_mac.mm', 'src/napi_objc.mm', 'src/ble_manager.mm', 'src/objc_cpp.mm', 'src/callbacks.cc' ], | ||
'include_dirs': ["<!@(node -p \"require('node-addon-api').include\")"], | ||
'dependencies': ["<!(node -p \"require('node-addon-api').gyp\")"], | ||
'sources': [ | ||
'src/noble_mac.mm', | ||
'src/napi_objc.mm', | ||
'src/ble_manager.mm', | ||
'src/objc_cpp.mm', | ||
'src/callbacks.cc' | ||
], | ||
'include_dirs': [ | ||
"<!(node -p \"require('node-addon-api').include_dir\")" | ||
], | ||
'cflags!': [ '-fno-exceptions' ], | ||
'cflags_cc!': [ '-fno-exceptions' ], | ||
"defines": ["NAPI_CPP_EXCEPTIONS"], | ||
'xcode_settings': { | ||
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES', | ||
'MACOSX_DEPLOYMENT_TARGET': '10.9', | ||
'CLANG_CXX_LIBRARY': 'libc++', | ||
'MACOSX_DEPLOYMENT_TARGET': '10.7', | ||
'OTHER_CFLAGS': [ | ||
'-fobjc-arc', | ||
'-fobjc-arc', | ||
'-arch x86_64', | ||
'-arch arm64' | ||
], | ||
}, | ||
'link_settings': { | ||
'libraries': [ | ||
'$(SDKROOT)/System/Library/Frameworks/CoreBluetooth.framework', | ||
'OTHER_LDFLAGS': [ | ||
'-framework CoreBluetooth', | ||
'-arch x86_64', | ||
'-arch arm64' | ||
] | ||
}, | ||
'product_dir': '../lib/mac/native', | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters