-
-
Save TooTallNate/9968cb16c84c67d3a784 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
# The libvorbis.gyp file uses the "ogg_include_dirs" and "ogg_libraries" | |
# variables to specify custom locations of the libogg headers and symbols. | |
# For 'node-vorbis', we want to find the 'node-ogg' module so that we can link | |
# directly to that .node module. | |
{ | |
'variables': { | |
'node_ogg': '<!(node -p -e "require(\'path\').dirname(require.resolve(\'ogg\'))")', | |
'ogg_include_dirs': [ | |
'<(node_ogg)/deps/libogg/include', | |
'<(node_ogg)/deps/libogg/config/<(OS)/<(target_arch)', | |
], | |
'conditions': [ | |
['OS=="win"', { | |
'ogg_libraries': [ | |
'<(node_ogg)/build/$(Configuration)/ogg.lib', | |
], | |
}, { | |
'ogg_libraries': [ | |
'<(node_ogg)/build/$(BUILDTYPE)/ogg.node', | |
'-Wl,-rpath,<(node_ogg)/build/$(BUILDTYPE)', | |
], | |
}], | |
], | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment