问题内容: I’m trying to build a native Node.js module that links against a 3rd party shared library. This library is delivered as part of a bundle that includes pre-built versions for different OSes and Architectures in different directories. e.g. /opt/Foo/linux/x86/lib/libfoo.so /opt/Foo/linux/x86/include/foo.h /opt/Foo/linux/x86_64/lib/libfoo.so /opt/Foo/linux/x86_64/include/foo.h /opt/Foo/linux/arm/lib/libfoo.so /opt/Foo/linux/arm/include/foo.h /opt/Foo/mac/x86_64/lib/libfoo.so /opt/Foo/mac/x86_64/include/foo.h my binding.gyp currently looks like this: { 'targets':