Skip to content

Commit f313d36

Browse files
committed
Rule for separate sby
1 parent 21069aa commit f313d36

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

default/rules/formal.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@
5757
critical = True,
5858
)
5959

60+
Target(
61+
name = 'sby',
62+
sources = [ 'sby' ],
63+
dependencies = [ 'python3', 'python3-native' ],
64+
resources = [ 'python3' ],
65+
patches = [ 'python3_package.sh' ],
66+
critical = True,
67+
)
68+
6069
Target(
6170
name = 'imctk',
6271
sources = [ 'imctk' ],

default/scripts/sby.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
source ${PATCHES_DIR}/python3_package.sh
2+
python3_package_setup
3+
4+
# flask
5+
python3_package_pip_install "Werkzeug==2.3.7"
6+
python3_package_pip_install "flask==2.1.2"
7+
if [ ${ARCH_BASE} == 'windows' ]; then
8+
python3_package_pip_install "colorama"
9+
fi
10+
rm -rf ${OUTPUT_DIR}${INSTALL_PREFIX}/lib/python3.11/site-packages/bin
11+
12+
# sby
13+
cd ${BUILD_DIR}/sby
14+
make PREFIX=${INSTALL_PREFIX} DESTDIR=${OUTPUT_DIR} -j${NPROC} install
15+
mkdir -p ${OUTPUT_DIR}${INSTALL_PREFIX}/examples
16+
cp -r docs/examples/* ${OUTPUT_DIR}${INSTALL_PREFIX}/examples/.
17+
find ${OUTPUT_DIR}${INSTALL_PREFIX}/examples/ -name "Makefile" -type f -delete
18+
find ${OUTPUT_DIR}${INSTALL_PREFIX}/examples/ -name ".gitignore" -type f -delete
19+
#cargo install --no-track --path tools/aigcexmin --root ${OUTPUT_DIR}${INSTALL_PREFIX} --target=${CARGO_TARGET}

0 commit comments

Comments
 (0)