include.gypi (2195B)
1 # @license Apache-2.0 2 # 3 # Copyright (c) 2020 The Stdlib Authors. 4 # 5 # Licensed under the Apache License, Version 2.0 (the "License"); 6 # you may not use this file except in compliance with the License. 7 # You may obtain a copy of the License at 8 # 9 # http://www.apache.org/licenses/LICENSE-2.0 10 # 11 # Unless required by applicable law or agreed to in writing, software 12 # distributed under the License is distributed on an "AS IS" BASIS, 13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 # See the License for the specific language governing permissions and 15 # limitations under the License. 16 17 # A GYP include file for building a Node.js native add-on. 18 # 19 # Main documentation: 20 # 21 # [1]: https://gyp.gsrc.io/docs/InputFormatReference.md 22 # [2]: https://gyp.gsrc.io/docs/UserDocumentation.md 23 { 24 # Define variables to be used throughout the configuration for all targets: 25 'variables': { 26 # Source directory: 27 'src_dir': './src', 28 29 # Include directories: 30 'include_dirs': [ 31 '<!@(node -e "var arr = require(\'@stdlib/utils/library-manifest\')(\'./manifest.json\',{},{\'basedir\':process.cwd(),\'paths\':\'posix\'}).include; for ( var i = 0; i < arr.length; i++ ) { console.log( arr[ i ] ); }")', 32 ], 33 34 # Add-on destination directory: 35 'addon_output_dir': './src', 36 37 # Source files: 38 'src_files': [ 39 '<(src_dir)/addon.cpp', 40 '<!@(node -e "var arr = require(\'@stdlib/utils/library-manifest\')(\'./manifest.json\',{},{\'basedir\':process.cwd(),\'paths\':\'posix\'}).src; for ( var i = 0; i < arr.length; i++ ) { console.log( arr[ i ] ); }")', 41 ], 42 43 # Library dependencies: 44 'libraries': [ 45 '<!@(node -e "var arr = require(\'@stdlib/utils/library-manifest\')(\'./manifest.json\',{},{\'basedir\':process.cwd(),\'paths\':\'posix\'}).libraries; for ( var i = 0; i < arr.length; i++ ) { console.log( arr[ i ] ); }")', 46 ], 47 48 # Library directories: 49 'library_dirs': [ 50 '<!@(node -e "var arr = require(\'@stdlib/utils/library-manifest\')(\'./manifest.json\',{},{\'basedir\':process.cwd(),\'paths\':\'posix\'}).libpath; for ( var i = 0; i < arr.length; i++ ) { console.log( arr[ i ] ); }")', 51 ], 52 }, # end variables 53 }