forked from iotaledger/iota-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
3 changed files
with
92 additions
and
49 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
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,11 +1,34 @@ | ||
{ | ||
"targets": [ | ||
{ | ||
"target_name": "index", | ||
'defines': [ | ||
"NAPI_VERSION=<(napi_build_version)", | ||
], | ||
"win_delay_load_hook": "true", | ||
} | ||
] | ||
} | ||
"targets": [ | ||
{ | ||
"target_name": "index", | ||
'defines': [ | ||
"NAPI_VERSION=<(napi_build_version)", | ||
], | ||
"win_delay_load_hook": "true", | ||
"conditions": [ | ||
["OS == 'mac'", { | ||
"cflags+": ["-fvisibility=hidden"], | ||
"xcode_settings": { | ||
# -fvisibility=hidden | ||
"GCC_SYMBOLS_PRIVATE_EXTERN": "YES", | ||
|
||
# Set minimum target version because we're building on newer | ||
# Same as https://github.com/nodejs/node/blob/v11.0.0/common.gypi#L464 | ||
"MACOSX_DEPLOYMENT_TARGET": "10.7", | ||
|
||
# Build universal binary to support M1 (Apple silicon) | ||
"OTHER_CFLAGS": [ | ||
"-arch x86_64", | ||
"-arch arm64" | ||
], | ||
"OTHER_LDFLAGS": [ | ||
"-arch x86_64", | ||
"-arch arm64" | ||
] | ||
} | ||
}] | ||
] | ||
} | ||
] | ||
} |
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