1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2024-11-29 01:33:46 +00:00
dindexer/tools/cmake_default
King_DuckZ 08a6c0d73d Detect compiler to use.
For example if you run the script from dindexer/clang_debug
you will tell cmake to make a debug build using clang.
You can also use gcc_debug but there is no way to specify
a particular version.
2016-08-02 02:11:05 +02:00

15 lines
597 B
Bash
Executable file

#!/usr/bin/env bash
#see: http://stackoverflow.com/questions/59895/can-a-bash-script-tell-which-directory-it-is-stored-in
script_path="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
exec "$script_path/export_compile_commands" \
-DBUILD_TESTING=ON \
-DPBL_WITH_TESTS=OFF \
-DDINDEXER_WITH_BUILD_DATE=ON \
-DDINDEXER_WITH_NICE_MEDIA_TYPES=OFF \
-DDINDEXER_NATIVE_RELEASE=ON \
-DDINDEXER_CXX11_ABI=OFF \
-DDINDEXER_DB_OWNER_NAME=dindexer-user \
-DDINDEXER_ENABLED_BACKENDS=redis,postgresql \
-DDINDEXER_CONFIG_FILE=$(realpath --no-symlinks --canonicalize-missing $PWD/..)/dindexer.yml