Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Platforms/emscripten/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,11 @@ def make_mpdec(context, working_dir):
write_library_config(prefix, "mpdec", mpdec_config, context.quiet)


def make_dependencies(context):
make_emscripten_libffi(context)
make_mpdec(context)


def calculate_node_path():
node_version = os.environ.get("PYTHON_NODE_VERSION", None)
if node_version is None:
Expand Down Expand Up @@ -665,6 +670,11 @@ def main():
help="Clone libffi repo, configure and build it for emscripten",
)

make_dependencies_cmd = subcommands.add_parser(
"make-dependencies",
help="Build all static library dependencies",
)

make_build = subcommands.add_parser(
"make-build-python", help="Run `make` for the build Python"
)
Expand Down Expand Up @@ -714,6 +724,7 @@ def main():
configure_build,
make_libffi_cmd,
make_mpdec_cmd,
make_dependencies_cmd,
make_build,
configure_host,
make_host,
Expand Down Expand Up @@ -781,6 +792,7 @@ def main():
"install-emscripten": install_emscripten,
"make-libffi": make_emscripten_libffi,
"make-mpdec": make_mpdec,
"make-dependencies": make_dependencies,
"configure-build-python": configure_build_python,
"make-build-python": make_build_python,
"configure-host": configure_emscripten_python,
Expand Down
Loading