mirror of
https://github.com/urbit/shrub.git
synced 2024-12-22 18:31:44 +03:00
3. runs with meson built binary
This commit is contained in:
parent
7a496ea629
commit
653b2e08cc
14
meson-scripts/make-worker.sh
Executable file
14
meson-scripts/make-worker.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
if ! [[ -d $MESON_SOURCE_ROOT/bin ]]; then
|
||||
mkdir -p $MESON_SOURCE_ROOT/bin
|
||||
fi
|
||||
|
||||
if [[ -d $MESON_BUILD_ROOT ]]; then
|
||||
if [[ -f $MESON_BUILD_ROOT/urbit ]]; then
|
||||
cp $MESON_BUILD_ROOT/urbit $MESON_SOURCE_ROOT/bin/
|
||||
if ! [[ -f $MESON_SOURCE_ROOT/bin/urbit-worker ]]; then
|
||||
ln -s $MESON_SOURCE_ROOT/bin/urbit $MESON_SOURCE_ROOT/bin/urbit-worker
|
||||
fi
|
||||
fi
|
||||
fi
|
@ -329,3 +329,5 @@ dependencies: [openssl_dep,
|
||||
murmur3_dep,
|
||||
softfloat3_dep] + os_deps,
|
||||
install: true)
|
||||
|
||||
run_target('worker', command: 'meson-scripts/make-worker.sh')
|
||||
|
@ -2,4 +2,4 @@
|
||||
|
||||
mkdir ./build &> /dev/null
|
||||
meson . ./build --buildtype=release
|
||||
ninja -C build
|
||||
ninja -C build && ninja -C build worker
|
||||
|
Loading…
Reference in New Issue
Block a user