File tree Expand file tree Collapse file tree 1 file changed +14
-22
lines changed
Expand file tree Collapse file tree 1 file changed +14
-22
lines changed Original file line number Diff line number Diff line change @@ -55,31 +55,23 @@ if (ENABLE_WPT)
5555 include ("tests/wpt-harness/wpt.cmake" )
5656endif ()
5757
58+ set (SOURCES
59+ runtime/js.cpp
60+ runtime/allocator.cpp
61+ runtime/encode.cpp
62+ runtime/decode.cpp
63+ runtime/engine.cpp
64+ runtime/event_loop.cpp
65+ runtime/builtin.cpp
66+ runtime/script_loader.cpp
67+ )
68+
5869if (ENABLE_JS_DEBUGGER)
59- add_executable (starling-raw.wasm
60- runtime/js.cpp
61- runtime/allocator.cpp
62- runtime/encode.cpp
63- runtime/decode.cpp
64- runtime/engine.cpp
65- runtime/event_loop.cpp
66- runtime/builtin.cpp
67- runtime/script_loader.cpp
68- runtime/debugger.cpp
69- )
70- else ()
71- add_executable (starling-raw.wasm
72- runtime/js.cpp
73- runtime/allocator.cpp
74- runtime/encode.cpp
75- runtime/decode.cpp
76- runtime/engine.cpp
77- runtime/event_loop.cpp
78- runtime/builtin.cpp
79- runtime/script_loader.cpp
80- )
70+ list (APPEND SOURCES runtime/debugger.cpp)
8171endif ()
8272
73+ add_executable (starling-raw.wasm ${SOURCES} )
74+
8375target_link_libraries (starling-raw.wasm PRIVATE host_api extension_api builtins spidermonkey rust-crates )
8476
8577option (USE_WASM_OPT "use wasm-opt to optimize the StarlingMonkey binary" ON )
You can’t perform that action at this time.
0 commit comments