mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-11-23 01:44:35 +08:00
[build] update clang build script
This commit is contained in:
parent
381183f421
commit
8f6b42b817
@ -2,22 +2,29 @@
|
||||
SCRIPT_PATH=$(dirname "${BASH_SOURCE[0]}")
|
||||
SCRIPT_PATH=$(realpath "$SCRIPT_PATH")
|
||||
|
||||
WARN_FLAGS="-Weverything -Wno-padded -Wno-assign-enum -Wno-switch-enum \
|
||||
-Wno-declaration-after-statement -Wno-c++98-compat -Wno-c++98-compat-pedantic \
|
||||
-Wno-cast-align -Wno-covered-switch-default -Wno-documentation-unknown-command \
|
||||
-Wno-documentation -Wno-documentation-html"
|
||||
|
||||
cmake \
|
||||
-GNinja \
|
||||
-DCMAKE_TOOLCHAIN_FILE="$SCRIPT_PATH/../cmake/ClangToolchain.cmake" \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_FIND_LIBRARY_SUFFIXES=".a;.so" \
|
||||
-DBUILD_SHARED_LIBS=OFF \
|
||||
-Bclang \
|
||||
-S"$SCRIPT_PATH/.." \
|
||||
-DCMAKE_INSTALL_PREFIX=/tmp/xxx \
|
||||
-DWITH_SERVER=ON \
|
||||
-DWITH_SAMPLE=ON \
|
||||
-DWITH_CAIRO=ON \
|
||||
-DWITH_FFMPEG=ON \
|
||||
-DWITH_DSP_FFMPEG=ON \
|
||||
-DWITH_PKCS11=ON \
|
||||
-DWITH_SOZR=ON \
|
||||
-DWITH_WAYLAND=ON \
|
||||
-DWITH_WEBVIEW=ON \
|
||||
-DWITH_SWSCALE=ON
|
||||
-GNinja \
|
||||
-DCMAKE_TOOLCHAIN_FILE="$SCRIPT_PATH/../cmake/ClangToolchain.cmake" \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_FIND_LIBRARY_SUFFIXES=".a;.so" \
|
||||
-DBUILD_SHARED_LIBS=OFF \
|
||||
-Bclang \
|
||||
-S"$SCRIPT_PATH/.." \
|
||||
-DCMAKE_INSTALL_PREFIX=/tmp/xxx \
|
||||
-DWITH_SERVER=ON \
|
||||
-DWITH_SAMPLE=ON \
|
||||
-DWITH_CAIRO=ON \
|
||||
-DWITH_FFMPEG=ON \
|
||||
-DWITH_DSP_FFMPEG=ON \
|
||||
-DWITH_PKCS11=ON \
|
||||
-DWITH_SOZR=ON \
|
||||
-DWITH_WAYLAND=ON \
|
||||
-DWITH_WEBVIEW=ON \
|
||||
-DWITH_SWSCALE=ON \
|
||||
-DCMAKE_C_FLAGS="$WARN_FLAGS" \
|
||||
-DCMAKE_CXX_FLAGS="$WARN_FLAGS"
|
||||
|
Loading…
Reference in New Issue
Block a user