Skip to content

Commit

Permalink
Pass emsdk path from Taskfile to CMake build; Fix emsdk task name in …
Browse files Browse the repository at this point in the history
…README. (#16)
  • Loading branch information
kirkrodrigues authored Oct 4, 2024
1 parent 475dd1f commit 7d7a1c3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Follow the steps below to develop and contribute to the project.
## Set up
Before opening the project in an IDE, you'll first need to download and install [emscripten]:
```shell
task emscripten
task emsdk
```

## Linting
Expand Down
9 changes: 7 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,13 @@ tasks:
cmds:
- "mkdir -p '{{.OUTPUT_DIR}}'"
- |-
cmake -S "{{.ROOT_DIR}}" -B "{{.OUTPUT_DIR}}" -G "Unix Makefiles"
cmake --build "{{.OUTPUT_DIR}}" --parallel --target "{{.G_CLP_FFI_JS_TARGET_NAME}}"
cmake \
-G "Unix Makefiles" \
-DCMAKE_TOOLCHAIN_FILE="{{.G_EMSDK_DIR}}/upstream/emscripten/cmake/Modules/Platform/\
Emscripten.cmake" \
-S "{{.ROOT_DIR}}" \
-B "{{.OUTPUT_DIR}}"
- "cmake --build '{{.OUTPUT_DIR}}' --parallel --target '{{.G_CLP_FFI_JS_TARGET_NAME}}'"
# This command must be last
- task: "utils:compute-checksum"
vars:
Expand Down

0 comments on commit 7d7a1c3

Please sign in to comment.