Skip to content

Commit fe65d26

Browse files
committed
Remove emscripten build from Makefile
1 parent 6251514 commit fe65d26

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

Makefile

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@
2020
CXX ?= g++
2121
CC ?= gcc
2222

23-
# Emscripten -- For Jsonnet in the browser
24-
EMCXX ?= em++
25-
EMCC ?= emcc
26-
2723
CP ?= cp
2824
OD ?= od
2925

@@ -36,8 +32,6 @@ CXXFLAGS += -Iinclude -Ithird_party/md5 -Ithird_party/json -Ithird_party/rapidya
3632
CFLAGS ?= -g $(OPT) -Wall -Wextra -pedantic -std=c99 -fPIC
3733
CFLAGS += -Iinclude
3834
MAKEDEPENDFLAGS += -Iinclude -Ithird_party/md5 -Ithird_party/json -Ithird_party/rapidyaml/rapidyaml/src/ -Ithird_party/rapidyaml/rapidyaml/ext/c4core/src/
39-
EMCXXFLAGS = $(CXXFLAGS) --memory-init-file 0 -s DISABLE_EXCEPTION_CATCHING=0 -s INLINING_LIMIT=50 -s RESERVED_FUNCTION_POINTERS=20 -s ASSERTIONS=1 -s ALLOW_MEMORY_GROWTH=1
40-
EMCFLAGS = $(CFLAGS) --memory-init-file 0 -s DISABLE_EXCEPTION_CATCHING=0 -s ASSERTIONS=1 -s ALLOW_MEMORY_GROWTH=1
4135
LDFLAGS ?=
4236

4337

@@ -89,8 +83,6 @@ LIBS = \
8983
ALL = \
9084
libjsonnet_test_snippet \
9185
libjsonnet_test_file \
92-
libjsonnet.js \
93-
doc/js/libjsonnet.js \
9486
$(BINS) \
9587
$(LIBS) \
9688
$(LIB_OBJ)
@@ -187,19 +179,6 @@ libjsonnet++.so.$(VERSION): $(LIB_CPP_OBJ)
187179
%.so: %.so.$(SOVERSION)
188180
ln -sf $< $@
189181

190-
# JavaScript build of C binding
191-
JS_EXPORTED_FUNCTIONS = 'EXPORTED_FUNCTIONS=["_jsonnet_make", "_jsonnet_evaluate_snippet", "_jsonnet_fmt_snippet", "_jsonnet_ext_var", "_jsonnet_ext_code", "_jsonnet_tla_var", "_jsonnet_tla_code", "_jsonnet_realloc", "_jsonnet_destroy", "_jsonnet_import_callback"]'
192-
193-
JS_RUNTIME_METHODS = 'EXTRA_EXPORTED_RUNTIME_METHODS=["cwrap", "getValue", "lengthBytesUTF8", "UTF8ToString", "setValue", "stringToUTF8", "addFunction"]'
194-
195-
196-
libjsonnet.js: $(LIB_SRC) $(ALL_HEADERS)
197-
$(EMCXX) -s WASM=0 -s $(JS_EXPORTED_FUNCTIONS) -s $(JS_RUNTIME_METHODS) $(EMCXXFLAGS) $(LDFLAGS) $(LIB_SRC) -o $@
198-
199-
# Copy javascript build to doc directory
200-
doc/js/libjsonnet.js: libjsonnet.js
201-
$(CP) $^ $@
202-
203182
# Tests for C binding.
204183
LIBJSONNET_TEST_SNIPPET_SRCS = \
205184
core/libjsonnet_test_snippet.c \

0 commit comments

Comments
 (0)