File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,20 @@ help:
108
108
@echo -e " \te.g. 'make toolchain_mips64_build'"
109
109
@echo -e " \te.g. 'make toolchain_arm64_test'"
110
110
@echo
111
+ @echo -e " \tBuild for web using emscripten."
112
+ @echo -e " \t${BOLD} web_<web_stage>${RESET} : build the emscripten <web_stage>."
113
+ @echo -e " \t${BOLD} save_web_<web_stage>${RESET} : Save the <web_stage> docker image."
114
+ @echo -e " \t${BOLD} sh_web_<web_stage>${RESET} : run a container using the <web_stage> docker image specified (debug purpose)."
115
+ @echo -e " \t${BOLD} clean_web_<web_stage>${RESET} : Remove cache and docker image."
116
+ @echo -e " \t${BOLD} clean_web${RESET} : Remove ALL cache and docker image."
117
+ @echo
118
+ @echo -e " \tWith ${BOLD} <web_stage>${RESET} :"
119
+ @echo -e " \t\t${BOLD} env${RESET} "
120
+ @echo -e " \t\t${BOLD} devel${RESET} "
121
+ @echo -e " \t\t${BOLD} build${RESET} "
122
+ @echo -e " \t\t${BOLD} test${RESET} "
123
+ @echo -e " \te.g. 'make web_build'"
124
+ @echo
111
125
@echo -e " \tBuild using a vagrant machine."
112
126
@echo -e " \t${BOLD} <vm>_<vms_stage>${RESET} : build the vagrant <vm> virtual machine."
113
127
@echo -e " \t${BOLD} sh_<vm>_<lang>${RESET} : ssh to the vagrant machine specified (debug purpose)."
Original file line number Diff line number Diff line change 1
1
# Create a virtual environment with all tools installed
2
2
# ref: https://hub.docker.com/_/archlinux/
3
3
FROM archlinux:latest AS env
4
+
4
5
# Install system build dependencies
5
6
ENV PATH=/usr/local/bin:$PATH
6
- RUN pacman -Syu --noconfirm git base-devel cmake
7
+ RUN pacman -Syu --noconfirm git base-devel glibc cmake
8
+ RUN cmake -version
7
9
RUN pacman -Syu --noconfirm nodejs emscripten
8
10
ENV PATH=/usr/lib/emscripten:$PATH
9
11
RUN emcc -v
@@ -14,9 +16,9 @@ WORKDIR /home/project
14
16
COPY . .
15
17
16
18
FROM devel AS build
17
- RUN cmake --version
18
19
RUN emcmake cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release
19
20
RUN cmake --build build --target all -v
21
+ # RUN cmake --build build --target install -v
20
22
21
23
FROM build AS test
22
24
# RUN CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
You can’t perform that action at this time.
0 commit comments