Skip to content

Commit

Permalink
build libs with emsdk 3.1.69
Browse files Browse the repository at this point in the history
  • Loading branch information
kalwalt committed Nov 5, 2024
1 parent dbd34f3 commit 3818d73
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 23 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
src/output
node_modules
build/*.bc
build/*.o
demo/public/marker
20 changes: 9 additions & 11 deletions build/NftMarkerCreator.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/NftMarkerCreator_wasm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/NftMarkerCreator_wasm.thread.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion build/NftMarkerCreator_wasm.thread.worker.js

This file was deleted.

2 changes: 1 addition & 1 deletion emscripten/WebARKitLib
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@
"scripts": {
"test": "jest",
"build-local": "node tools/makem.js; echo Built at `date`",
"build-docker": "docker exec emscripten-nft-marker-creator-app npm run build-local",
"demo": "cd demo && node demoServer.js",
"format": "prettier --write \"**/*.{js,json,css,md}\"",
"check-format": "prettier --check \"**/*.{js,json,css,md}\""
"check-format": "prettier --check \"**/*.{js,json,css,md}\"",
"setup-docker": "docker run -dit --name emscripten-nft-marker-creator-app -v $(pwd):/src emscripten/emsdk:3.1.69 bash"
},
"license": "LGPL-3.0",
"devDependencies": {
Expand Down
12 changes: 5 additions & 7 deletions tools/makem.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ var kpm_sources = [
"KPM/FreakMatcher/detectors/DoG_scale_invariant_detector.cpp",
"KPM/FreakMatcher/detectors/gaussian_scale_space_pyramid.cpp",
"KPM/FreakMatcher/detectors/gradients.cpp",
"KPM/FreakMatcher/detectors/harris.cpp",
//"KPM/FreakMatcher/detectors/harris.cpp",
"KPM/FreakMatcher/detectors/orientation_assignment.cpp",
"KPM/FreakMatcher/detectors/pyramid.cpp",
"KPM/FreakMatcher/facade/visual_database_facade.cpp",
Expand Down Expand Up @@ -116,8 +116,6 @@ FLAGS += " -s TOTAL_MEMORY=" + MEM + " ";
FLAGS += " -s ALLOW_MEMORY_GROWTH=1 ";
FLAGS += " -s USE_ZLIB=1";
FLAGS += " -s USE_LIBJPEG=1";
//FLAGS += ' -s ASSERTIONS=1';
FLAGS += " --memory-init-file 0 "; // for memless file
FLAGS += " -s FORCE_FILESYSTEM=1";

//ONLY ENABLE FOR THE NFT-MARKER-CREATOR WEB VERSION !IMPORTANT FLAGS
Expand Down Expand Up @@ -187,7 +185,7 @@ var compile_arlib = format(
FLAGS +
" " +
DEFINES +
" -r -o {OUTPUT_PATH}libar.bc ",
" -r -o {OUTPUT_PATH}libar.o ",
OUTPUT_PATH,
);

Expand All @@ -196,7 +194,7 @@ var compile_combine_min = format(
" " +
INCLUDES +
" " +
" {OUTPUT_PATH}libar.bc " +
" {OUTPUT_PATH}libar.o " +
MAIN_SOURCES +
EXPORTED_FUNCTIONS +
FLAGS +
Expand All @@ -214,7 +212,7 @@ var compile_wasm = format(
" " +
INCLUDES +
" " +
" {OUTPUT_PATH}libar.bc " +
" {OUTPUT_PATH}libar.o " +
MAIN_SOURCES +
EXPORTED_FUNCTIONS +
FLAGS +
Expand All @@ -233,7 +231,7 @@ var compile_wasm_td = format(
" " +
INCLUDES +
" " +
" {OUTPUT_PATH}libar.bc " +
" {OUTPUT_PATH}libar.o " +
MAIN_SOURCES +
EXPORTED_FUNCTIONS +
FLAGS +
Expand Down

0 comments on commit 3818d73

Please sign in to comment.