Skip to content

Instantly share code, notes, and snippets.

@kellabyte kellabyte/haywire.gyp
Last active Dec 16, 2015

Embed
What would you like to do?
# 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
You can’t perform that action at this time.