Skip to content

Commit e2f345b

Browse files
committed
chore: Bump versions
* graphviz - v5.0.1 * emsdk - v3.1.19 Signed-off-by: Gordon Smith <[email protected]>
1 parent 27c9134 commit e2f345b

File tree

17 files changed

+1455
-1131
lines changed

17 files changed

+1455
-1131
lines changed

.dockerignore

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
.vscode/ipch
1+
.vscode/
2+
.nyc_output/
23
build/
4+
coverage/
35
dist/
6+
docker/
47
emsdk/
5-
src-expat/
6-
src-graphviz/
78
lib-*/
89
node_modules/
10+
src-graphviz/
911
types/
12+
vcpkg/
1013
*.tsbuildinfo
11-
.nyc_output/
12-
coverage/
13-
.vscode/c_cpp_properties.json
14-
.vscode/settings.json
15-
test/ubuntu-dev.dockerfile

.github/workflows/testPullRequest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
- run: npm run lint
2222
- run: sudo apt-get update
2323
- run: sudo apt-get install -y build-essential
24-
- run: sudo apt-get install -y git cmake wget
25-
- run: sudo apt-get install -y gcc-multilib g++-multilib pkg-config autoconf bison libtool flex zlib1g-dev
24+
- run: sudo apt-get install -y git cmake wget zip
25+
- run: sudo apt-get install -y gcc-multilib g++-multilib pkg-config autoconf bison libtool flex
2626
- run: sudo apt-get install -y python3 python3-pip
2727
- run: npm run install-build-deps
2828
- run: npm run build;

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ SET(EM_FLAGS
1414
"-s MODULARIZE"
1515
"-s ENVIRONMENT=web,worker,node"
1616
"-s FILESYSTEM=0"
17-
"-s MINIMAL_RUNTIME=2"
17+
# "-s MINIMAL_RUNTIME=1"
1818
"-s MODULARIZE=1"
1919
"-s EXPORT_ES6=1"
2020
"-s IGNORE_CLOSURE_COMPILER_ERRORS=0"
2121
"-s USE_ES6_IMPORT_META=0"
22-
"--pre-js ${CMAKE_CURRENT_SOURCE_DIR}/cpp/src/pre.js"
23-
"--post-js ${CMAKE_CURRENT_SOURCE_DIR}/cpp/src/post.js"
22+
# "--pre-js ${CMAKE_CURRENT_SOURCE_DIR}/cpp/src/pre.js"
23+
# "--post-js ${CMAKE_CURRENT_SOURCE_DIR}/cpp/src/post.js"
2424
)
2525

2626
IF (CMAKE_BUILD_TYPE STREQUAL "Debug")

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
![Test PR](https://github.com/hpcc-systems/hpcc-js-wasm/workflows/Test%20PR/badge.svg)
44

55
This repository contains a collection of useful c++ libraries compiled to WASM for (re)use in Node JS, Web Browsers and JavaScript Libraries:
6-
* [graphviz](https://www.graphviz.org/) - v5.0.0
6+
* [graphviz](https://www.graphviz.org/) - v5.0.1
77
* [expat](https://libexpat.github.io/) - v2.4.8
88

99
Built with:
10-
* [emsdk](https://github.com/emscripten-core/emsdk) - v3.1.15
10+
* [emsdk](https://github.com/emscripten-core/emsdk) - v3.1.19
1111

1212
## Quick GraphViz Demos
1313
* https://raw.githack.com/hpcc-systems/hpcc-js-wasm/trunk/index.html

cpp/expat/expatlib/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ find_package(expat CONFIG REQUIRED)
55
# See: https://github.com/emscripten-core/emscripten/blob/main/src/settings.js
66
SET(EM_FLAGS
77
${EM_FLAGS}
8-
"-s FILESYSTEM=1"
98
"-s EXPORT_NAME='${CMAKE_PROJECT_NAME}'"
109
"-s EXPORTED_FUNCTIONS=\"['_malloc']\""
1110
"-s EXPORTED_RUNTIME_METHODS=\"[]\""

cpp/graphviz/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ option(use_sanitizers "enables using address and undefined behavior sanitizer"
2323
option(use_coverage "enables analyzing code coverage" OFF)
2424
option(with_cxx_api "enables building the C++ API" ON)
2525
option(with_cxx_tests "enables building the C++ tests" OFF)
26-
option(use_win_pre_inst_libs "enables building using pre-installed Windows libraries" ON)
26+
option(use_win_pre_inst_libs "enables building using pre-installed Windows libraries" OFF)
2727

2828
if(with_digcola)
2929
add_definitions(-DDIGCOLA)

cpp/graphviz/graphvizlib/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ PROJECT(graphvizlib)
33
# See: https://github.com/emscripten-core/emscripten/blob/main/src/settings.js
44
SET(EM_FLAGS
55
${EM_FLAGS}
6+
"-s FILESYSTEM=1"
67
"-s EXPORT_NAME='${CMAKE_PROJECT_NAME}'"
78
"-s EXPORTED_FUNCTIONS=\"[_free]\""
89
"-s EXPORTED_RUNTIME_METHODS=\"[]\""

cpp/graphviz/lib/common/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ add_library(common_obj OBJECT
1515
${GRAPHVIZ_LIB_DIR}/common/intset.h
1616
${GRAPHVIZ_LIB_DIR}/common/htmllex.h
1717
${GRAPHVIZ_LIB_DIR}/common/htmltable.h
18-
${GRAPHVIZ_LIB_DIR}/common/logic.h
1918
${GRAPHVIZ_LIB_DIR}/common/macros.h
2019
${GRAPHVIZ_LIB_DIR}/common/memory.h
2120
${GRAPHVIZ_LIB_DIR}/common/pointset.h

docker/ubuntu-dev.dockerfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,25 @@ RUN apt-get upgrade -y
88
# Install pre-requisites (keep synced with README.md)
99
## NodeJS
1010
RUN apt-get install -y curl
11-
RUN curl --silent --location https://deb.nodesource.com/setup_14.x | bash -
11+
RUN curl --silent --location https://deb.nodesource.com/setup_16.x | bash -
12+
RUN apt-get update
1213
RUN apt-get install -y nodejs
13-
RUN apt-get install -y build-essential
1414

1515
## Other
16-
RUN apt-get install -y git cmake wget
17-
RUN apt-get install -y gcc-multilib g++-multilib pkg-config autoconf bison libtool flex zlib1g-dev
16+
RUN apt-get install -y build-essential
17+
RUN apt-get install -y git cmake wget zip
18+
RUN apt-get install -y gcc-multilib g++-multilib pkg-config autoconf bison libtool flex
1819
RUN apt-get install -y python3 python3-pip
1920

2021
# Set the working directory
2122
WORKDIR /usr/src/app
2223

23-
COPY ./scripts/* ./scripts/
24+
COPY ./scripts ./scripts
25+
2426
RUN ./scripts/cpp-install-emsdk.sh
2527
RUN ./scripts/cpp-install-graphviz.sh
26-
RUN ./scripts/cpp-install-expat.sh
28+
RUN ./scripts/cpp-install-vcpkg.sh
29+
RUN ./vcpkg/bootstrap-vcpkg.sh
2730

2831
COPY . .
2932

index.html

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,17 @@
2727
<body>
2828
<h3>Async DOT</h3>
2929
<div id="placeholder"></div>
30-
<br>
30+
<hr>
3131
<h3>Two</h3>
3232
<div id="placeholder2"></div>
33-
<br>
33+
<div id="placeholder2b"></div>
34+
<hr>
3435
<h3>Sync DOT</h3>
3536
<div id="placeholder3"></div>
37+
<hr>
3638
<h3>Cached wasmBinary</h3>
3739
<div id="placeholder4"></div>
38-
<h3>End</h3>
40+
<hr>
3941
<script>
4042
hpccWasm.expatVersion().then(v => alert(v));
4143
const dot = `
@@ -95,6 +97,11 @@ <h3>End</h3>
9597
div.innerHTML = svg;
9698
}).catch(err => console.error(err.message));
9799

100+
hpccWasm.graphviz.layout('digraph { a[image="./resources/hpcc-logo.png"]; }', "svg", "dot", { images: [{ path: "./resources/hpcc-logo.png", width: "272px", height: "92px" }] }).then(svg => {
101+
const div = document.getElementById("placeholder2b");
102+
div.innerHTML = svg;
103+
}).catch(err => console.error(err.message));
104+
98105
hpccWasm.graphvizSync().then(graphviz => {
99106
const div = document.getElementById("placeholder3");
100107
try {

0 commit comments

Comments
 (0)