diff options
author | 2016-05-24 09:44:05 -0700 | |
---|---|---|
committer | 2016-05-24 09:44:05 -0700 | |
commit | 7dd44673e0d8f803f293ded4bc4f7d6a55d460dd (patch) | |
tree | 2eceb61f16ea5e7eef015c6659983f885ae02cc2 /cmake/cmake_build | |
parent | 6d195b22bf6b7eed2b1867f2742e0b829c89e8e1 (diff) |
CMake: control static/shared the normal CMake way.
This flips the default build mode to create a static libskia.
To create a shared libskia, pass -DBUILD_SHARED_LIBS=1 when running cmake.
BUG=skia:5341
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2009503002
CQ_EXTRA_TRYBOTS=client.skia.compile:Build-Ubuntu-GCC-x86_64-Release-CMake-Trybot,Build-Mac-Clang-x86_64-Release-CMake-Trybot
Review-Url: https://codereview.chromium.org/2009503002
Diffstat (limited to 'cmake/cmake_build')
-rwxr-xr-x | cmake/cmake_build | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/cmake/cmake_build b/cmake/cmake_build index f2cb9bf1bf..956f1a44b5 100755 --- a/cmake/cmake_build +++ b/cmake/cmake_build @@ -25,9 +25,18 @@ pushd $here/../third_party/externals/cmake make -j $cores cmake popd -echo "Building with bootstrapped CMake" +echo "Building static library with bootstrapped CMake" mkdir -p $SKIA_OUT/$BUILDTYPE pushd $SKIA_OUT/$BUILDTYPE -$here/../third_party/externals/cmake/bin/cmake -DCMAKE_BUILD_TYPE=$BUILDTYPE $here -G Ninja +$here/../third_party/externals/cmake/bin/cmake -DCMAKE_BUILD_TYPE=$BUILDTYPE \ + $here -G Ninja +ninja +popd + +echo "Building shared library with bootstrapped CMake" +mkdir -p $SKIA_OUT/$BUILDTYPE +pushd $SKIA_OUT/$BUILDTYPE +$here/../third_party/externals/cmake/bin/cmake -DCMAKE_BUILD_TYPE=$BUILDTYPE -DBUILD_SHARED_LIBS=1 \ + $here -G Ninja ninja popd |