This repository was archived by the owner on Oct 18, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +21
-10
lines changed Expand file tree Collapse file tree 7 files changed +21
-10
lines changed Original file line number Diff line number Diff line change @@ -68,5 +68,5 @@ test_script:
68
68
on_success :
69
69
- cmd : cd c:\projects\opencv4nodejs
70
70
- IF defined APPVEYOR_REPO_TAG_NAME (
71
- npm run prebuild -- -u %GITHUB_TOKEN%
71
+ npm run prebuild -- --include-regex "\.(node|a|so|dylib|lib|dll)$" - u %GITHUB_TOKEN%
72
72
)
Original file line number Diff line number Diff line change 35
35
"cc/core/TermCriteria.cc" ,
36
36
"cc/modules/io/io.cc" ,
37
37
],
38
-
39
38
"cflags" : [
40
39
"-std=c++11"
41
40
],
57
56
"GCC_ENABLE_CPP_EXCEPTIONS" : "YES" ,
58
57
"MACOSX_DEPLOYMENT_TARGET" : "10.9"
59
58
},
60
-
61
59
"conditions" : [
62
60
[ "OS==\" win\" " , {
63
61
"cflags" : [
82
80
"ldflags" : ["--coverage" ]
83
81
},
84
82
}
85
-
83
+ },
84
+ {
85
+ "target_name" : "action_after_build" ,
86
+ "type" : "none" ,
87
+ "dependencies" : [ "opencv4nodejs" ],
88
+ "copies" : [{
89
+ "files" : [ "<!@(node ./lib/bundle.js)" ],
90
+ "destination" : "<(PRODUCT_DIR)"
91
+ }]
86
92
}]
87
93
}
Original file line number Diff line number Diff line change @@ -4,4 +4,4 @@ npm install --unsafe-perm &&\
4
4
cd test
5
5
npm install && npm test
6
6
cd -
7
- npm run prebuild -- -u $GITHUB_TOKEN ;
7
+ npm run prebuild -- --include-regex " \.(node|a|so|dylib|lib|dll)$ " - u $GITHUB_TOKEN ;
Original file line number Diff line number Diff line change
1
+ const { opencvLibDir } = require ( "./dirs" ) ;
2
+ const { readdirSync, realpathSync } = require ( "fs" ) ;
3
+ const { join } = require ( "path" ) ;
4
+
5
+ for ( const file of readdirSync ( opencvLibDir ) ) {
6
+ console . log ( join ( realpathSync ( opencvLibDir ) , file ) ) ;
7
+ }
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const isOSX = () => process.platform == 'darwin'
6
6
7
7
const isUnix = ( ) => ! isWin ( ) && ! isOSX ( ) ;
8
8
9
- const rootDir = `../ node_modules/@nut-tree/opencv-build-${ process . platform } `
9
+ const rootDir = `node_modules/@nut-tree/opencv-build-${ process . platform } `
10
10
const opencvRoot = join ( rootDir , 'opencv' ) ;
11
11
const opencvBuild = join ( opencvRoot , 'build' ) ;
12
12
const opencvInclude = join ( opencvBuild , 'include' ) ;
Original file line number Diff line number Diff line change @@ -15,6 +15,5 @@ if (linkSystemLibs()) {
15
15
}
16
16
17
17
// if not windows, link libs dynamically
18
- console . log ( '-L' + opencvLibDir ) ;
18
+ console . log ( `-L ${ resolvePath ( opencvLibDir ) } ` ) ;
19
19
opencvBuild . opencvModules . forEach ( lib => console . log ( `-lopencv_${ lib } ` ) ) ;
20
- console . log ( '-Wl,-rpath,' + opencvLibDir ) ;
Original file line number Diff line number Diff line change 44
44
},
45
45
"gypfile" : true ,
46
46
"dependencies" : {
47
- "@nut-tree/opencv-build-darwin" : " ^3.4.6" ,
48
47
"macro-inferno" : " ^0.2.3" ,
49
48
"nan" : " ^2.12.1" ,
50
49
"native-node-utils" : " ^0.1.5" ,
56
55
"devDependencies" : {
57
56
"prebuild" : " ^8.2.0"
58
57
},
59
- "opencv" : " 3.4.6"
58
+ "opencv" : " 3.4.6-local "
60
59
}
You can’t perform that action at this time.
0 commit comments