-
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
1 parent
b446e46
commit 7b69ba9
Showing
10 changed files
with
1,916 additions
and
25 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
'targets': [{ | ||
'target_name': 'native', | ||
'include_dirs': [ | ||
"<!(node -e \"require('napi-macros')\")" | ||
], | ||
'sources': ['./src/native/index.c'], | ||
'conditions': [ | ||
['OS=="linux"', { | ||
'cflags': [ '-std=c99', '-Wpedantic' ], | ||
'cflags_cc': [ '-std=c++17', '-Wpedantic' ], | ||
}], | ||
['OS=="win"', { | ||
'msvs_settings': { | ||
'VCCLCompilerTool': { | ||
'AdditionalOptions': [ '/std:c++17' ] | ||
} | ||
}, | ||
}], | ||
['OS=="mac"', { | ||
'xcode_settings': { | ||
# Minimum mac osx target version (matches node v16.14.2) | ||
'MACOSX_DEPLOYMENT_TARGET': '10.13', | ||
'OTHER_CFLAGS': [ | ||
'-std=c99', | ||
'-arch x86_64', | ||
'-arch arm64' | ||
], | ||
'OTHER_CPLUSPLUSFLAGS': [ | ||
'-std=c++17' | ||
'-arch x86_64', | ||
'-arch arm64' | ||
], | ||
'OTHER_LDFLAGS': [ | ||
'-arch x86_64', | ||
'-arch arm64' | ||
] | ||
} | ||
}] | ||
] | ||
}] | ||
} |
Oops, something went wrong.