Skip to content

Instantly share code, notes, and snippets.

@cobracmder
Created February 4, 2013 22:52
Show Gist options
  • Save cobracmder/4710476 to your computer and use it in GitHub Desktop.
Save cobracmder/4710476 to your computer and use it in GitHub Desktop.
{
'targets': [
# timesignature
{
'target_name': 'timesignature',
'type': 'executable',
#'includes': [
# "../../<(node_root_dir)/deps/v8/build/common.gypi",
#],
'include_dirs': [
'libgt-0.3.10/src/base'
],
'sources': [
'timesignature.cc',
],
'dependencies': [
'libgt-0.3.10/src/base/base.gyp:libgtbase',
'libgt-0.3.10/src/http/http.gyp:libgthttp',
'libgt-0.3.10/src/png/png.gyp:libgtpng',
],
'link_settings': {
'libraries': [
'-lcrypto',
'-lcurl'
],
},
'variables': {
# node v0.6.x doesn't give us its build variables,
# but on Unix it was only possible to use the system OpenSSL library,
# so default the variable to "true", v0.8.x node and up will overwrite it.
'node_shared_openssl%': 'true',
},
'conditions': [
['node_shared_openssl=="false"', {
# so when "node_shared_openssl" is "false", then OpenSSL has been
# bundled into the node executable. So we need to include the same
# header files that were used when building node.
'include_dirs': [
'<(node_root_dir)/deps/openssl/openssl/include'
],
"conditions" : [
["target_arch=='ia32'", {
"include_dirs": [ "<(node_root_dir)/deps/openssl/config/piii" ]
}],
["target_arch=='x64'", {
"include_dirs": [ "<(node_root_dir)/deps/openssl/config/k8" ]
}],
["target_arch=='arm'", {
"include_dirs": [ "<(node_root_dir)/deps/openssl/config/arm" ]
}],
]
}]
],
},
],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment