fixes
This commit is contained in:
parent
0964523e80
commit
5db807680a
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2017 Luis Blanco
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
59
LICENSES
59
LICENSES
|
@ -1,59 +0,0 @@
|
|||
This document lists all the licenses used in this node-webgl repository:
|
||||
|
||||
- Part I - node-webgl distributed under BSD license
|
||||
- Part II - LightGL.js from Evan Wallace under MIT license
|
||||
|
||||
No specific license found for:
|
||||
- Some tests adapted from LearningWebGL.com lessons, themselves adapted from NeHe lessons.
|
||||
- Travelling wavefront demo adapted from https://github.com/webos-commons/com.creationix.minimason webOS demo, itself adapted from the minimason nko2 demo.
|
||||
|
||||
node-webgl depends on node-glfw, also under BSD license.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
Part I - node-webgl distributed under BSD license
|
||||
|
||||
Copyright (c) 2011-2012, Mikael Bourges-Sevenier
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
|
||||
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
Part II - LightGL.js from Evan Wallace under MIT license
|
||||
|
||||
Copyright (C) 2011 by Evan Wallace
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
59
README.md
59
README.md
|
@ -18,9 +18,51 @@ dependency packages.
|
|||
`npm i -s node-addon-tools-raub`
|
||||
|
||||
|
||||
## Contents
|
||||
## Usage
|
||||
|
||||
[addon-tools.gypi](#addon-toolsgypi)
|
||||
### binding.gyp
|
||||
|
||||
```
|
||||
'variables': {
|
||||
'_rd' : '<!(node -e "console.log(require(\'node-addon-tools-raub\')._rd)")',
|
||||
'_del' : '<!(node -e "console.log(require(\'node-addon-tools-raub\')._del)")',
|
||||
},
|
||||
...
|
||||
'include_dirs': [
|
||||
'<!(node -e "require(\'nan\')")',
|
||||
'<!(node -e "console.log(require(\'node-addon-tools-raub\').include)")',
|
||||
],
|
||||
...
|
||||
[ 'OS=="linux"', { 'action' : [
|
||||
'rm',
|
||||
'<(module_root_dir)/build/Release/obj.target/addon/cpp/addon.o',
|
||||
'<(module_root_dir)/build/Release/addon.node'
|
||||
] } ],
|
||||
[ 'OS=="mac"', { 'action' : [
|
||||
'rm',
|
||||
'<(module_root_dir)/build/Release/obj.target/addon/cpp/addon.o',
|
||||
'<(module_root_dir)/build/Release/addon.node'
|
||||
] } ],
|
||||
[ 'OS=="win"', { 'action' : [
|
||||
'<(_del) "<(module_root_dir)/build/Release/addon.*" && ' +
|
||||
'<(_del) "<(module_root_dir)/build/Release/obj/addon/*.*"'
|
||||
] } ],
|
||||
```
|
||||
|
||||
### Binary dependencies - index.js
|
||||
|
||||
```
|
||||
module.exports = require('node-addon-tools-raub').paths(__dirname);
|
||||
```
|
||||
|
||||
### Compiled addon - index.js
|
||||
|
||||
```
|
||||
module.exports = require('./binary/addon');
|
||||
```
|
||||
|
||||
|
||||
## Contents
|
||||
|
||||
[include/addon-tools.hpp](#includeaddon-toolshpp)
|
||||
|
||||
|
@ -29,19 +71,6 @@ dependency packages.
|
|||
[\_rd.bat / \_del.bat](#_rdbat--_delbat)
|
||||
|
||||
|
||||
---
|
||||
|
||||
## addon-tools.gypi
|
||||
|
||||
Include this gyp file into your `bindings.gyp`.
|
||||
|
||||
```
|
||||
'includes': [ '<!(node -e "require(\'node-addon-tools-raub\').gypi")' ],
|
||||
```
|
||||
|
||||
This will add Nan and Addon Tools include paths to all your targets. Also variables
|
||||
`_rd` and `_del` are set for convenience.
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
{
|
||||
'variables': {
|
||||
'_rd' : '<!(node -e "console.log(require(\'node-addon-tools-raub\')._rd)")',
|
||||
'_del' : '<!(node -e "console.log(require(\'node-addon-tools-raub\')._del)")',
|
||||
},
|
||||
'target_defaults': {
|
||||
'include_dirs': [
|
||||
'<!(node -e "require(\'nan\')")',
|
||||
'<!(node -e "console.log(require(\'node-addon-tools-raub\').include)")',
|
||||
],
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue