Skip to content

Commit 5ba0c76

Browse files
author
Artiom N
committed
Build and run scripts were added
1 parent 2211853 commit 5ba0c76

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

build.sh

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
3+
# cmake -B build -DCMAKE_CROSSCOMPILING=True -DCMAKE_TOOLCHAIN_FILE=win.toolchain.cmake src
4+
export CC=/usr/local/bin/gcc
5+
export CXX=/usr/local/bin/g++
6+
#export CC=clang
7+
#export CXX=clang++
8+
9+
cmake -B build src
10+
VERBOSE=1 cmake --build build --parallel # --clean-first

build_dockerized.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
3+
docker run -it --rm -v "$PWD:/usr/src/gb" -e "EXT_UID=$(id -u)" -e "EXT_GID=$(id -g)" -w /usr/src/gb artiomn/gb-build-image ./build.sh $*
4+

run

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
CMD=${*:-bash}
4+
5+
docker run -it --rm -v "$PWD:/usr/src/gb" -e "EXT_UID=$(id -u)" -e "EXT_GID=$(id -g)" -w /usr/src/gb artiomn/gb-build-image ${CMD}
6+

0 commit comments

Comments
 (0)