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

summaryrefslogtreecommitdiff
path: root/scripts/osx/setup.command
diff options
context:
space:
mode:
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