Last active
December 16, 2015 10:58
-
-
Save kellabyte/5423553 to your computer and use it in GitHub Desktop.
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
# 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