Skip to content

Commit c5a8032

Browse files
committed
feat: Bump GraphViz version to 6.0.2
Tweak Node v Browser build paths Signed-off-by: Gordon Smith <[email protected]>
1 parent 26919c2 commit c5a8032

21 files changed

+342
-321
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/build
44
/coverage
55
/dist
6+
/dist-test
67
/emsdk*
78
/src-expat
89
/src-graphviz

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ SET(EM_FLAGS
1212
"-s ALLOW_MEMORY_GROWTH=1"
1313
"-s WASM=1"
1414
"-s MODULARIZE"
15-
"-s ENVIRONMENT=web,node"
15+
"-s ENVIRONMENT=web"
1616
"-s FILESYSTEM=0"
1717
# "-s MINIMAL_RUNTIME=1"
1818
"-s MODULARIZE=1"

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/) - v6.0.1
6+
* [graphviz](https://www.graphviz.org/) - v6.0.2
77
* [expat](https://libexpat.github.io/) - v2.4.8
88

99
Built with:
10-
* [emsdk](https://github.com/emscripten-core/emsdk) - v3.1.20
10+
* [emsdk](https://github.com/emscripten-core/emsdk) - v3.1.24
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 & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,6 @@ TARGET_LINK_LIBRARIES(expatlib
3636
expat::expat
3737
)
3838

39-
ADD_EXECUTABLE(expatlib_node
40-
main.cpp
41-
)
42-
43-
SET_TARGET_PROPERTIES(expatlib_node PROPERTIES LINK_FLAGS "${LINK_FLAGS} -s ENVIRONMENT=node")
44-
45-
TARGET_LINK_LIBRARIES(expatlib_node
46-
expat::expat
47-
)
48-
4939
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/expatlib.wasm DESTINATION dist COMPONENT runtime)
5040

5141
IF (CMAKE_BUILD_TYPE STREQUAL "Debug")

cpp/graphviz/graphvizlib/CMakeLists.txt

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,6 @@ TARGET_LINK_LIBRARIES(graphvizlib PRIVATE
5050
ortho
5151
)
5252

53-
ADD_EXECUTABLE(graphvizlib_node
54-
${SRCS}
55-
)
56-
57-
SET_TARGET_PROPERTIES(graphvizlib_node PROPERTIES LINK_FLAGS "${LINK_FLAGS} -s ENVIRONMENT=node")
58-
59-
TARGET_LINK_LIBRARIES(graphvizlib_node PRIVATE
60-
gvplugin_core
61-
gvplugin_dot_layout
62-
gvplugin_neato_layout
63-
ortho
64-
)
65-
6653
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/graphvizlib.wasm DESTINATION dist COMPONENT runtime)
6754

6855
IF (CMAKE_BUILD_TYPE STREQUAL "Debug")

cpp/graphviz/graphvizlib/main.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
#include <emscripten.h>
99

10-
1110
extern gvplugin_library_t gvplugin_dot_layout_LTX_library;
1211
extern gvplugin_library_t gvplugin_neato_layout_LTX_library;
1312
#ifdef HAVE_LIBGD
@@ -94,7 +93,6 @@ const char *Graphviz::layout(const char *src, const char *format, const char *en
9493

9594
src = "";
9695
}
97-
9896
m_result = data;
9997
gvFreeRenderData(data);
10098

0 commit comments

Comments
 (0)