@stdlib/blas-base-cswap 0.0.4 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,6 +18,10 @@
18
18
 
19
19
  // TypeScript Version: 2.0
20
20
 
21
+ /// <reference types="@stdlib/types"/>
22
+
23
+ import { Complex64Array } from '@stdlib/types/array';
24
+
21
25
  /**
22
26
  * Interface describing `cswap`.
23
27
  */
@@ -34,8 +38,8 @@ interface Routine {
34
38
  *
35
39
  * @example
36
40
  * var Complex64Array = require( `@stdlib/array/complex64` );
37
- * var real = require( `@stdlib/complex/real` );
38
- * var imag = require( `@stdlib/complex/imag` );
41
+ * var realf = require( `@stdlib/complex/realf` );
42
+ * var imagf = require( `@stdlib/complex/imagf` );
39
43
  *
40
44
  * var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
41
45
  * var y = new Complex64Array( [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
@@ -45,19 +49,19 @@ interface Routine {
45
49
  * var z = y.get( 0 );
46
50
  * // returns <Complex64>
47
51
  *
48
- * var re = real( z );
52
+ * var re = realf( z );
49
53
  * // returns 1.0
50
54
  *
51
- * var im = imag( z );
55
+ * var im = imagf( z );
52
56
  * // returns 2.0
53
57
  *
54
58
  * z = x.get( 0 );
55
59
  * // returns <Complex64>
56
60
  *
57
- * re = real( z );
61
+ * re = realf( z );
58
62
  * // returns 7.0
59
63
  *
60
- * im = imag( z );
64
+ * im = imagf( z );
61
65
  * // returns 8.0
62
66
  */
63
67
  ( N: number, x: Complex64Array, strideX: number, y: Complex64Array, strideY: number ): Complex64Array; // tslint:disable-line:max-line-length
@@ -76,8 +80,8 @@ interface Routine {
76
80
  *
77
81
  * @example
78
82
  * var Complex64Array = require( `@stdlib/array/complex64` );
79
- * var real = require( `@stdlib/complex/real` );
80
- * var imag = require( `@stdlib/complex/imag` );
83
+ * var realf = require( `@stdlib/complex/realf` );
84
+ * var imagf = require( `@stdlib/complex/imagf` );
81
85
  *
82
86
  * var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
83
87
  * var y = new Complex64Array( [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
@@ -87,19 +91,19 @@ interface Routine {
87
91
  * var z = y.get( 0 );
88
92
  * // returns <Complex64>
89
93
  *
90
- * var re = real( z );
94
+ * var re = realf( z );
91
95
  * // returns 1.0
92
96
  *
93
- * var im = imag( z );
97
+ * var im = imagf( z );
94
98
  * // returns 2.0
95
99
  *
96
100
  * z = x.get( 0 );
97
101
  * // returns <Complex64>
98
102
  *
99
- * re = real( z );
103
+ * re = realf( z );
100
104
  * // returns 7.0
101
105
  *
102
- * im = imag( z );
106
+ * im = imagf( z );
103
107
  * // returns 8.0
104
108
  */
105
109
  ndarray( N: number, x: Complex64Array, strideX: number, offsetX: number, y: Complex64Array, strideY: number, offsetY: number ): Complex64Array; // tslint:disable-line:max-line-length
@@ -117,8 +121,8 @@ interface Routine {
117
121
  *
118
122
  * @example
119
123
  * var Complex64Array = require( `@stdlib/array/complex64` );
120
- * var real = require( `@stdlib/complex/real` );
121
- * var imag = require( `@stdlib/complex/imag` );
124
+ * var realf = require( `@stdlib/complex/realf` );
125
+ * var imagf = require( `@stdlib/complex/imagf` );
122
126
  *
123
127
  * var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
124
128
  * var y = new Complex64Array( [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
@@ -128,25 +132,25 @@ interface Routine {
128
132
  * var z = y.get( 0 );
129
133
  * // returns <Complex64>
130
134
  *
131
- * var re = real( z );
135
+ * var re = realf( z );
132
136
  * // returns 1.0
133
137
  *
134
- * var im = imag( z );
138
+ * var im = imagf( z );
135
139
  * // returns 2.0
136
140
  *
137
141
  * z = x.get( 0 );
138
142
  * // returns <Complex64>
139
143
  *
140
- * re = real( z );
144
+ * re = realf( z );
141
145
  * // returns 7.0
142
146
  *
143
- * im = imag( z );
147
+ * im = imagf( z );
144
148
  * // returns 8.0
145
149
  *
146
150
  * @example
147
151
  * var Complex64Array = require( `@stdlib/array/complex64` );
148
- * var real = require( `@stdlib/complex/real` );
149
- * var imag = require( `@stdlib/complex/imag` );
152
+ * var realf = require( `@stdlib/complex/realf` );
153
+ * var imagf = require( `@stdlib/complex/imagf` );
150
154
  *
151
155
  * var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
152
156
  * var y = new Complex64Array( [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
@@ -156,19 +160,19 @@ interface Routine {
156
160
  * var z = y.get( 0 );
157
161
  * // returns <Complex64>
158
162
  *
159
- * var re = real( z );
163
+ * var re = realf( z );
160
164
  * // returns 1.0
161
165
  *
162
- * var im = imag( z );
166
+ * var im = imagf( z );
163
167
  * // returns 2.0
164
168
  *
165
169
  * z = x.get( 0 );
166
170
  * // returns <Complex64>
167
171
  *
168
- * re = real( z );
172
+ * re = realf( z );
169
173
  * // returns 7.0
170
174
  *
171
- * im = imag( z );
175
+ * im = imagf( z );
172
176
  * // returns 8.0
173
177
  */
174
178
  declare var cswap: Routine;
@@ -16,6 +16,7 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
+ import Complex64Array = require( '@stdlib/array-complex64' );
19
20
  import cswap = require( './index' );
20
21
 
21
22
 
package/lib/cswap.js CHANGED
@@ -37,8 +37,8 @@ var Float32Array = require( '@stdlib/array-float32' );
37
37
  *
38
38
  * @example
39
39
  * var Complex64Array = require( '@stdlib/array-complex64' );
40
- * var real = require( '@stdlib/complex-real' );
41
- * var imag = require( '@stdlib/complex-imag' );
40
+ * var realf = require( '@stdlib/complex-realf' );
41
+ * var imagf = require( '@stdlib/complex-imagf' );
42
42
  *
43
43
  * var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
44
44
  * var y = new Complex64Array( [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
@@ -48,19 +48,19 @@ var Float32Array = require( '@stdlib/array-float32' );
48
48
  * var z = y.get( 0 );
49
49
  * // returns <Complex64>
50
50
  *
51
- * var re = real( z );
51
+ * var re = realf( z );
52
52
  * // returns 1.0
53
53
  *
54
- * var im = imag( z );
54
+ * var im = imagf( z );
55
55
  * // returns 2.0
56
56
  *
57
57
  * z = x.get( 0 );
58
58
  * // returns <Complex64>
59
59
  *
60
- * re = real( z );
60
+ * re = realf( z );
61
61
  * // returns 7.0
62
62
  *
63
- * im = imag( z );
63
+ * im = imagf( z );
64
64
  * // returns 8.0
65
65
  */
66
66
  function cswap( N, x, strideX, y, strideY ) {
@@ -38,8 +38,8 @@ var addon = require( './../src/addon.node' );
38
38
  *
39
39
  * @example
40
40
  * var Complex64Array = require( '@stdlib/array-complex64' );
41
- * var real = require( '@stdlib/complex-real' );
42
- * var imag = require( '@stdlib/complex-imag' );
41
+ * var realf = require( '@stdlib/complex-realf' );
42
+ * var imagf = require( '@stdlib/complex-imagf' );
43
43
  *
44
44
  * var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
45
45
  * var y = new Complex64Array( [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
@@ -49,19 +49,19 @@ var addon = require( './../src/addon.node' );
49
49
  * var z = y.get( 0 );
50
50
  * // returns <Complex64>
51
51
  *
52
- * var re = real( z );
52
+ * var re = realf( z );
53
53
  * // returns 1.0
54
54
  *
55
- * var im = imag( z );
55
+ * var im = imagf( z );
56
56
  * // returns 2.0
57
57
  *
58
58
  * z = x.get( 0 );
59
59
  * // returns <Complex64>
60
60
  *
61
- * re = real( z );
61
+ * re = realf( z );
62
62
  * // returns 7.0
63
63
  *
64
- * im = imag( z );
64
+ * im = imagf( z );
65
65
  * // returns 8.0
66
66
  */
67
67
  function cswap( N, x, strideX, y, strideY ) {
package/lib/index.js CHANGED
@@ -25,8 +25,8 @@
25
25
  *
26
26
  * @example
27
27
  * var Complex64Array = require( '@stdlib/array-complex64' );
28
- * var real = require( '@stdlib/complex-real' );
29
- * var imag = require( '@stdlib/complex-imag' );
28
+ * var realf = require( '@stdlib/complex-realf' );
29
+ * var imagf = require( '@stdlib/complex-imagf' );
30
30
  * var cswap = require( '@stdlib/blas-base-cswap' );
31
31
  *
32
32
  * var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
@@ -37,25 +37,25 @@
37
37
  * var z = y.get( 0 );
38
38
  * // returns <Complex64>
39
39
  *
40
- * var re = real( z );
40
+ * var re = realf( z );
41
41
  * // returns 1.0
42
42
  *
43
- * var im = imag( z );
43
+ * var im = imagf( z );
44
44
  * // returns 2.0
45
45
  *
46
46
  * z = x.get( 0 );
47
47
  * // returns <Complex64>
48
48
  *
49
- * re = real( z );
49
+ * re = realf( z );
50
50
  * // returns 7.0
51
51
  *
52
- * im = imag( z );
52
+ * im = imagf( z );
53
53
  * // returns 8.0
54
54
  *
55
55
  * @example
56
56
  * var Complex64Array = require( '@stdlib/array-complex64' );
57
- * var real = require( '@stdlib/complex-real' );
58
- * var imag = require( '@stdlib/complex-imag' );
57
+ * var realf = require( '@stdlib/complex-realf' );
58
+ * var imagf = require( '@stdlib/complex-imagf' );
59
59
  * var cswap = require( '@stdlib/blas-base-cswap' );
60
60
  *
61
61
  * var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
@@ -66,19 +66,19 @@
66
66
  * var z = y.get( 0 );
67
67
  * // returns <Complex64>
68
68
  *
69
- * var re = real( z );
69
+ * var re = realf( z );
70
70
  * // returns 1.0
71
71
  *
72
- * var im = imag( z );
72
+ * var im = imagf( z );
73
73
  * // returns 2.0
74
74
  *
75
75
  * z = x.get( 0 );
76
76
  * // returns <Complex64>
77
77
  *
78
- * re = real( z );
78
+ * re = realf( z );
79
79
  * // returns 7.0
80
80
  *
81
- * im = imag( z );
81
+ * im = imagf( z );
82
82
  * // returns 8.0
83
83
  */
84
84
 
@@ -86,13 +86,17 @@
86
86
 
87
87
  var join = require( 'path' ).join;
88
88
  var tryRequire = require( '@stdlib/utils-try-require' );
89
- var cswap = require( './main.js' );
89
+ var isError = require( '@stdlib/assert-is-error' );
90
+ var main = require( './main.js' );
90
91
 
91
92
 
92
93
  // MAIN //
93
94
 
95
+ var cswap;
94
96
  var tmp = tryRequire( join( __dirname, './native.js' ) );
95
- if ( !(tmp instanceof Error) ) {
97
+ if ( isError( tmp ) ) {
98
+ cswap = main;
99
+ } else {
96
100
  cswap = tmp;
97
101
  }
98
102
 
package/lib/ndarray.js CHANGED
@@ -39,8 +39,8 @@ var Float32Array = require( '@stdlib/array-float32' );
39
39
  *
40
40
  * @example
41
41
  * var Complex64Array = require( '@stdlib/array-complex64' );
42
- * var real = require( '@stdlib/complex-real' );
43
- * var imag = require( '@stdlib/complex-imag' );
42
+ * var realf = require( '@stdlib/complex-realf' );
43
+ * var imagf = require( '@stdlib/complex-imagf' );
44
44
  *
45
45
  * var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
46
46
  * var y = new Complex64Array( [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
@@ -50,19 +50,19 @@ var Float32Array = require( '@stdlib/array-float32' );
50
50
  * var z = y.get( 0 );
51
51
  * // returns <Complex64>
52
52
  *
53
- * var re = real( z );
53
+ * var re = realf( z );
54
54
  * // returns 1.0
55
55
  *
56
- * var im = imag( z );
56
+ * var im = imagf( z );
57
57
  * // returns 2.0
58
58
  *
59
59
  * z = x.get( 0 );
60
60
  * // returns <Complex64>
61
61
  *
62
- * re = real( z );
62
+ * re = realf( z );
63
63
  * // returns 7.0
64
64
  *
65
- * im = imag( z );
65
+ * im = imagf( z );
66
66
  * // returns 8.0
67
67
  */
68
68
  function cswap( N, x, strideX, offsetX, y, strideY, offsetY ) {
@@ -40,8 +40,8 @@ var addon = require( './../src/addon.node' );
40
40
  *
41
41
  * @example
42
42
  * var Complex64Array = require( '@stdlib/array-complex64' );
43
- * var real = require( '@stdlib/complex-real' );
44
- * var imag = require( '@stdlib/complex-imag' );
43
+ * var realf = require( '@stdlib/complex-realf' );
44
+ * var imagf = require( '@stdlib/complex-imagf' );
45
45
  *
46
46
  * var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
47
47
  * var y = new Complex64Array( [ 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
@@ -51,19 +51,19 @@ var addon = require( './../src/addon.node' );
51
51
  * var z = y.get( 0 );
52
52
  * // returns <Complex64>
53
53
  *
54
- * var re = real( z );
54
+ * var re = realf( z );
55
55
  * // returns 1.0
56
56
  *
57
- * var im = imag( z );
57
+ * var im = imagf( z );
58
58
  * // returns 2.0
59
59
  *
60
60
  * z = x.get( 0 );
61
61
  * // returns <Complex64>
62
62
  *
63
- * re = real( z );
63
+ * re = realf( z );
64
64
  * // returns 7.0
65
65
  *
66
- * im = imag( z );
66
+ * im = imagf( z );
67
67
  * // returns 8.0
68
68
  */
69
69
  function cswap( N, x, strideX, offsetX, y, strideY, offsetY ) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/blas-base-cswap",
3
- "version": "0.0.4",
3
+ "version": "0.0.7",
4
4
  "description": "Interchanges two complex single-precision floating-point vectors.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -15,7 +15,7 @@
15
15
  ],
16
16
  "main": "./lib",
17
17
  "browser": "./lib/main.js",
18
- "gypfile": true,
18
+ "gypfile": false,
19
19
  "directories": {
20
20
  "benchmark": "./benchmark",
21
21
  "doc": "./docs",
@@ -42,6 +42,8 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@stdlib/array-float32": "^0.0.x",
45
+ "@stdlib/assert-is-error": "^0.0.x",
46
+ "@stdlib/types": "^0.0.x",
45
47
  "@stdlib/utils-define-nonenumerable-read-only-property": "^0.0.x",
46
48
  "@stdlib/utils-library-manifest": "^0.0.x",
47
49
  "@stdlib/utils-try-require": "^0.0.x"
package/CHANGELOG.md DELETED
@@ -1,5 +0,0 @@
1
- # CHANGELOG
2
-
3
- > Package changelog.
4
-
5
- See [GitHub Releases](https://github.com/stdlib-js/blas-base-cswap/releases) for the changelog.
package/binding.gyp DELETED
@@ -1,265 +0,0 @@
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` file for building a Node.js native add-on.
18
- #
19
- # [1]: https://gyp.gsrc.io/docs/InputFormatReference.md
20
- # [2]: https://gyp.gsrc.io/docs/UserDocumentation.md
21
- {
22
- # List of files to include in this file:
23
- 'includes': [
24
- './include.gypi',
25
- ],
26
-
27
- # Define variables to be used throughout the configuration for all targets:
28
- 'variables': {
29
- # Target name should match the add-on export name:
30
- 'addon_target_name%': 'addon',
31
-
32
- # Fortran compiler (to override -Dfortran_compiler=<compiler>):
33
- 'fortran_compiler%': 'gfortran',
34
-
35
- # Fortran compiler flags:
36
- 'fflags': [
37
- # Specify the Fortran standard to which a program is expected to conform:
38
- '-std=f95',
39
-
40
- # Indicate that the layout is free-form source code:
41
- '-ffree-form',
42
-
43
- # Aggressive optimization:
44
- '-O3',
45
-
46
- # Enable commonly used warning options:
47
- '-Wall',
48
-
49
- # Warn if source code contains problematic language features:
50
- '-Wextra',
51
-
52
- # Warn if a procedure is called without an explicit interface:
53
- '-Wimplicit-interface',
54
-
55
- # Do not transform names of entities specified in Fortran source files by appending underscores (i.e., don't mangle names, thus allowing easier usage in C wrappers):
56
- '-fno-underscoring',
57
-
58
- # Warn if source code contains Fortran 95 extensions and C-language constructs:
59
- '-pedantic',
60
-
61
- # Compile but do not link (output is an object file):
62
- '-c',
63
- ],
64
-
65
- # Set variables based on the host OS:
66
- 'conditions': [
67
- [
68
- 'OS=="win"',
69
- {
70
- # Define the object file suffix:
71
- 'obj': 'obj',
72
- },
73
- {
74
- # Define the object file suffix:
75
- 'obj': 'o',
76
- }
77
- ], # end condition (OS=="win")
78
- ], # end conditions
79
- }, # end variables
80
-
81
- # Define compile targets:
82
- 'targets': [
83
-
84
- # Target to generate an add-on:
85
- {
86
- # The target name should match the add-on export name:
87
- 'target_name': '<(addon_target_name)',
88
-
89
- # Define dependencies:
90
- 'dependencies': [],
91
-
92
- # Define directories which contain relevant include headers:
93
- 'include_dirs': [
94
- # Local include directory:
95
- '<@(include_dirs)',
96
- ],
97
-
98
- # List of source files:
99
- 'sources': [
100
- '<@(src_files)',
101
- ],
102
-
103
- # Settings which should be applied when a target's object files are used as linker input:
104
- 'link_settings': {
105
- # Define libraries:
106
- 'libraries': [
107
- '<@(libraries)',
108
- ],
109
-
110
- # Define library directories:
111
- 'library_dirs': [
112
- '<@(library_dirs)',
113
- ],
114
- },
115
-
116
- # C/C++ compiler flags:
117
- 'cflags': [
118
- # Enable commonly used warning options:
119
- '-Wall',
120
-
121
- # Aggressive optimization:
122
- '-O3',
123
- ],
124
-
125
- # C specific compiler flags:
126
- 'cflags_c': [
127
- # Specify the C standard to which a program is expected to conform:
128
- '-std=c99',
129
- ],
130
-
131
- # C++ specific compiler flags:
132
- 'cflags_cpp': [
133
- # Specify the C++ standard to which a program is expected to conform:
134
- '-std=c++11',
135
- ],
136
-
137
- # Linker flags:
138
- 'ldflags': [],
139
-
140
- # Apply conditions based on the host OS:
141
- 'conditions': [
142
- [
143
- 'OS=="mac"',
144
- {
145
- # Linker flags:
146
- 'ldflags': [
147
- '-undefined dynamic_lookup',
148
- '-Wl,-no-pie',
149
- '-Wl,-search_paths_first',
150
- ],
151
- },
152
- ], # end condition (OS=="mac")
153
- [
154
- 'OS!="win"',
155
- {
156
- # C/C++ flags:
157
- 'cflags': [
158
- # Generate platform-independent code:
159
- '-fPIC',
160
- ],
161
- },
162
- ], # end condition (OS!="win")
163
- ], # end conditions
164
-
165
- # Define custom build actions for particular inputs:
166
- 'rules': [
167
- {
168
- # Define a rule for processing Fortran files:
169
- 'extension': 'f',
170
-
171
- # Define the pathnames to be used as inputs when performing processing:
172
- 'inputs': [
173
- # Full path of the current input:
174
- '<(RULE_INPUT_PATH)'
175
- ],
176
-
177
- # Define the outputs produced during processing:
178
- 'outputs': [
179
- # Store an output object file in a directory for placing intermediate results (only accessible within a single target):
180
- '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).<(obj)'
181
- ],
182
-
183
- # Define the rule for compiling Fortran based on the host OS:
184
- 'conditions': [
185
- [
186
- 'OS=="win"',
187
-
188
- # Rule to compile Fortran on Windows:
189
- {
190
- 'rule_name': 'compile_fortran_windows',
191
- 'message': 'Compiling Fortran file <(RULE_INPUT_PATH) on Windows...',
192
-
193
- 'process_outputs_as_sources': 0,
194
-
195
- # Define the command-line invocation:
196
- 'action': [
197
- '<(fortran_compiler)',
198
- '<@(fflags)',
199
- '<@(_inputs)',
200
- '-o',
201
- '<@(_outputs)',
202
- ],
203
- },
204
-
205
- # Rule to compile Fortran on non-Windows:
206
- {
207
- 'rule_name': 'compile_fortran_linux',
208
- 'message': 'Compiling Fortran file <(RULE_INPUT_PATH) on Linux...',
209
-
210
- 'process_outputs_as_sources': 1,
211
-
212
- # Define the command-line invocation:
213
- 'action': [
214
- '<(fortran_compiler)',
215
- '<@(fflags)',
216
- '-fPIC', # generate platform-independent code
217
- '<@(_inputs)',
218
- '-o',
219
- '<@(_outputs)',
220
- ],
221
- }
222
- ], # end condition (OS=="win")
223
- ], # end conditions
224
- }, # end rule (extension=="f")
225
- ], # end rules
226
- }, # end target <(addon_target_name)
227
-
228
- # Target to copy a generated add-on to a standard location:
229
- {
230
- 'target_name': 'copy_addon',
231
-
232
- # Declare that the output of this target is not linked:
233
- 'type': 'none',
234
-
235
- # Define dependencies:
236
- 'dependencies': [
237
- # Require that the add-on be generated before building this target:
238
- '<(addon_target_name)',
239
- ],
240
-
241
- # Define a list of actions:
242
- 'actions': [
243
- {
244
- 'action_name': 'copy_addon',
245
- 'message': 'Copying addon...',
246
-
247
- # Explicitly list the inputs in the command-line invocation below:
248
- 'inputs': [],
249
-
250
- # Declare the expected outputs:
251
- 'outputs': [
252
- '<(addon_output_dir)/<(addon_target_name).node',
253
- ],
254
-
255
- # Define the command-line invocation:
256
- 'action': [
257
- 'cp',
258
- '<(PRODUCT_DIR)/<(addon_target_name).node',
259
- '<(addon_output_dir)/<(addon_target_name).node',
260
- ],
261
- },
262
- ], # end actions
263
- }, # end target copy_addon
264
- ], # end targets
265
- }