3. runs with meson built binary

This commit is contained in:
Joe Bryan 2018-11-09 23:59:32 -05:00
parent 7a496ea629
commit 653b2e08cc
3 changed files with 17 additions and 1 deletions

14
meson-scripts/make-worker.sh Executable file
View 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

View File

@ -329,3 +329,5 @@ dependencies: [openssl_dep,
murmur3_dep,
softfloat3_dep] + os_deps,
install: true)
run_target('worker', command: 'meson-scripts/make-worker.sh')

View File

@ -2,4 +2,4 @@
mkdir ./build &> /dev/null
meson . ./build --buildtype=release
ninja -C build
ninja -C build && ninja -C build worker