Skip to content

Instantly share code, notes, and snippets.

@kellabyte
Last active December 16, 2015 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kellabyte/5423553 to your computer and use it in GitHub Desktop.
Save kellabyte/5423553 to your computer and use it in GitHub Desktop.
# Run with the following:
#
# ./bin/gyp/gyp --depth -Dlibrary=shared_library haywire.gyp
# gyp: Undefined variable library in lib/libuv/uv.gyp while loading dependencies of haywire.gyp while
# trying to load haywire.gyp
{
'targets': [
{
'target_name': 'haywire',
'type': 'executable',
'msvs_guid': '5ECEC9E5-8F23-47B6-93E0-C3B328B3BE65',
'dependencies': [
'./lib/libuv/uv.gyp:libuv',
],
'defines': [
'DEFINE_FOO',
'DEFINE_A_VALUE=value',
],
'include_dirs': [
'include/',
],
'sources': [
'src/program.c',
],
'conditions': [
['OS=="linux"', {
'defines': [
'LINUX_DEFINE',
],
'include_dirs': [
'include/linux',
],
}],
['OS=="win"', {
'defines': [
'WINDOWS_SPECIFIC_DEFINE',
],
}, { # OS != "win",
'defines': [
'NON_WINDOWS_DEFINE',
],
}]
],
},
],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment