Skip to content

Commit

Permalink
rm image
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasrausch committed Feb 5, 2024
1 parent a264c2b commit dd206dc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 39 deletions.
12 changes: 0 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,6 @@ all: $(TARGETS)
src/wally: ${SUBMODULES} $(SOURCES)
$(CXX) $(CXXFLAGS) $(shell export PKG_CONFIG_PATH=${PWD}/src/ocv/lib/pkgconfig/:${PWD}/src/ocv/lib64/pkgconfig/:${PKG_CONFIG_PATH} && pkg-config --cflags opencv4) $@.cpp -o $@ $(shell export PKG_CONFIG_PATH=${PWD}/src/ocv/lib/pkgconfig/:${PWD}/src/ocv/lib64/pkgconfig/:${PKG_CONFIG_PATH} && pkg-config --libs ${LDSTATIC} opencv4) $(LDFLAGS)

.emsdk:
cd src/ && git clone https://github.com/emscripten-core/emsdk && cd emsdk && git pull && ./emsdk install latest && ./emsdk activate latest && cd ../../ && touch .emsdk

.opencvjs: .emsdk $(OPENCVSOURCES)
if [ -f src/opencv/CMakeLists.txt ]; then cd src/ && ./emsdk/emsdk activate latest && source "${PWD}/src/emsdk/emsdk_env.sh" && EMSCRIPTEN="${PWD}/src/emsdk/upstream/emscripten" python3 opencv/platforms/js/build_js.py opencv_js --build_wasm && cd ../ && touch .opencvjs; fi

.htslibjs: .emsdk .htslib
if [ -r src/htslib/Makefile ]; then cp -r src/htslib/ src/htslib_js/ && cd src/htslib_js/ && make clean && make distclean && ../emsdk/emsdk activate latest && source "${PWD}/src/emsdk/emsdk_env.sh" && autoheader && autoconf && EMSCRIPTEN="${PWD}/src/emsdk/upstream/emscripten" emconfigure ./configure --disable-lzma --disable-plugins && emmake make LDFLAGS="-O2 -s ERROR_ON_UNDEFINED_SYMBOLS=0" && cd ../../ && touch .htslibjs; fi

html/image.js: .emsdk .opencvjs .htslibjs $(SOURCES)
mkdir -p html/ && ./src/emsdk/emsdk activate latest && source "${PWD}/src/emsdk/emsdk_env.sh" && em++ -Isrc/ocv/include/opencv4/ -Isrc/htslib_js/ src/image.cpp -o html/image.js -Lsrc/opencv_js/lib/ -Lsrc/htslib_js/ -lopencv_core -lopencv_imgproc -lhts -lz -lbz2 -O3 -s USE_BOOST_HEADERS=1 -s NO_EXIT_RUNTIME=1 -s "EXPORTED_RUNTIME_METHODS=['ccall']" -s ASSERTIONS=1 --bind

install: ${BUILT_PROGRAMS}
mkdir -p ${bindir}
install -p ${BUILT_PROGRAMS} ${bindir}
Expand Down
27 changes: 0 additions & 27 deletions src/image.cpp

This file was deleted.

0 comments on commit dd206dc

Please sign in to comment.