@model-create/epanet-engine 0.6.3-alpha.1 → 0.6.4-beta.0
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.
- package/Dockerfile +4 -1
- package/build.sh +1 -2
- package/dist/index.es6.js +10 -85589
- package/dist/index.js +11 -85590
- package/package.json +1 -1
package/Dockerfile
CHANGED
|
@@ -3,7 +3,10 @@ FROM trzeci/emscripten:1.39.4
|
|
|
3
3
|
RUN apt-get update && \
|
|
4
4
|
apt-get install -qqy git && \
|
|
5
5
|
mkdir -p /opt/epanet/build && \
|
|
6
|
-
git clone --depth 1 --branch
|
|
6
|
+
git clone --depth 1 --branch dev https://github.com/OpenWaterAnalytics/EPANET /opt/epanet/src
|
|
7
7
|
RUN cd /opt/epanet/build && \
|
|
8
8
|
emcmake cmake ../src && \
|
|
9
9
|
emmake cmake --build . --config Release
|
|
10
|
+
|
|
11
|
+
# Previous git clone
|
|
12
|
+
# git clone --depth 1 --branch v2.2 https://github.com/OpenWaterAnalytics/EPANET /opt/epanet/src
|
package/build.sh
CHANGED
|
@@ -17,7 +17,7 @@ echo "============================================="
|
|
|
17
17
|
mkdir -p build
|
|
18
18
|
|
|
19
19
|
# Compile C/C++ code
|
|
20
|
-
emcc -
|
|
20
|
+
emcc -O3 -o ./build/epanetEngine.js /opt/epanet/build/lib/libepanet2.a \
|
|
21
21
|
-I /opt/epanet/src/include \
|
|
22
22
|
test.c \
|
|
23
23
|
src/epanet_wrapper.cpp \
|
|
@@ -33,7 +33,6 @@ echo "============================================="
|
|
|
33
33
|
-s WASM=0 \
|
|
34
34
|
--llvm-lto 3 \
|
|
35
35
|
--memory-init-file 0 \
|
|
36
|
-
-s DEMANGLE_SUPPORT=1 \
|
|
37
36
|
--closure 0
|
|
38
37
|
#-s MODULARIZE=1 \
|
|
39
38
|
|