Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit ce7830d

Browse files
author
Simon Hofmann
committed
Partial prebuild
1 parent d234a48 commit ce7830d

File tree

9 files changed

+18
-68
lines changed

9 files changed

+18
-68
lines changed

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,5 @@ test_script:
6868
on_success:
6969
- cmd: cd c:\projects\opencv4nodejs
7070
- IF defined APPVEYOR_REPO_TAG_NAME (
71-
npm run prebuild -- --include-regex "\.(node|a|so|dylib|lib|dll)$" -u %GITHUB_TOKEN%
71+
npm run prebuild -- -u %GITHUB_TOKEN%
7272
)

binding.gyp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,6 @@
7979
"cflags": ["--coverage"],
8080
"ldflags": ["--coverage"]
8181
},
82-
}
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-
}]
82+
}
9283
}]
9384
}

ci/prebuild/prebuild.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ npm install --unsafe-perm &&\
44
cd test
55
npm install && npm test
66
cd -
7-
npm run prebuild -- --include-regex "\.(node|a|so|dylib|lib|dll)$" -u $GITHUB_TOKEN;
7+
npm run prebuild -- -u $GITHUB_TOKEN;

lib/bundle.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

lib/dirs.js

Lines changed: 0 additions & 23 deletions
This file was deleted.

lib/includes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { opencvInclude } = require("./dirs");
1+
const opencvBuild = require(`@nut-tree/opencv-build-${process.platform}`);
22
const { resolvePath, defaultDir, linkSystemLibs } = require('./commons');
33

44
if (linkSystemLibs()) {
@@ -7,4 +7,4 @@ if (linkSystemLibs()) {
77
}
88

99
// set include dir from auto build
10-
console.log(resolvePath(opencvInclude));
10+
console.log(resolvePath(opencvBuild.opencvInclude));

lib/libs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const opencvBuild = require(`@nut-tree/opencv-build-${process.platform}`);
22
const { resolvePath, getLibDir, linkSystemLibs } = require('./commons');
3-
const { opencvLibDir } = require("./dirs");
43

54
function linkLibs(libs) {
65
libs
@@ -21,5 +20,6 @@ if (process.platform === 'win32') {
2120
}
2221

2322
// if not windows, link libs dynamically
24-
console.log(`-L${resolvePath(opencvLibDir)}`);
23+
console.log('-L' + resolvePath(opencvBuild.opencvLibDir));
2524
opencvBuild.opencvModules.forEach(lib => console.log(`-lopencv_${lib}`));
25+
console.log('-Wl,-rpath,' + resolvePath(opencvBuild.opencvLibDir));

package-lock.json

Lines changed: 9 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "opencv4nodejs-prebuilt",
3-
"version": "4.15.0-slim",
3+
"version": "4.15.0",
44
"description": "This is a fork of opencv4nodejs which provides pre-built binaries",
55
"keywords": [
66
"opencv",
@@ -34,7 +34,7 @@
3434
"typings": "./lib/index.d.ts",
3535
"scripts": {
3636
"preinstall": "node ./install.js",
37-
"install": "prebuild-install --verbose || node-gyp rebuild",
37+
"install": "node-gyp rebuild > build.log 2>&1",
3838
"configure": "node-gyp configure",
3939
"build": "node-gyp configure build",
4040
"rebuild": "node-gyp rebuild",

0 commit comments

Comments
 (0)