Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/scripts/osx/setup.command
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-06-20 14:33:09 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-06-20 14:33:09 +1000
commit6352e8e3196f78388b6c771073f9e03eaa612673 (patch)
treee23772f79a7fbc41bc9108951e9e136857484bf4 /scripts/osx/setup.command
parent6741a057e5639280d85d0f88ba26f000baa58f61 (diff)
everything everywhere
all at once
Diffstat (limited to 'scripts/osx/setup.command')
-rw-r--r--scripts/osx/setup.command17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/osx/setup.command b/scripts/osx/setup.command
new file mode 100644
index 0000000..2a1d17c
--- /dev/null
+++ b/scripts/osx/setup.command
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+cd "$(dirname $0)/../.."
+
+mkdir -p dist
+cp scripts/osx/sbinit.config dist/
+
+mkdir -p build
+cd build
+
+CC=clang CXX=clang++ /Applications/CMake.app/Contents/bin/cmake \
+ -DCMAKE_EXPORT_COMPILE_COMMANDS=true \
+ -DCMAKE_BUILD_TYPE=RelWithAsserts \
+ -DSTAR_USE_JEMALLOC=ON \
+ -DCMAKE_INCLUDE_PATH=../lib/osx/include \
+ -DCMAKE_LIBRARY_PATH=../lib/osx/ \
+ ../source