mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-06 18:56:40 -04:00
Set -DBUILD_SHARED_LIBS=ON by default on scripts and CI/CD
This commit is contained in:
parent
6bc108b452
commit
40638924e0
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -56,7 +56,7 @@ jobs:
|
|||||||
set(ENV{CC} ${{ matrix.config.cc }})
|
set(ENV{CC} ${{ matrix.config.cc }})
|
||||||
set(ENV{CXX} ${{ matrix.config.cxx }})
|
set(ENV{CXX} ${{ matrix.config.cxx }})
|
||||||
- run: mkdir build
|
- run: mkdir build
|
||||||
- run: cmake -G "${{ matrix.config.generator }}" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} -DSQLITECPP_BUILD_EXAMPLES=ON -DSQLITECPP_BUILD_TESTS=ON -DSQLITECPP_RUN_CPPCHECK=OFF -DSQLITECPP_RUN_CPPLINT=OFF ..
|
- run: cmake -G "${{ matrix.config.generator }}" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} -DBUILD_SHARED_LIBS=ON -DSQLITECPP_BUILD_TESTS=ON -DSQLITECPP_BUILD_EXAMPLES=ON -DSQLITECPP_RUN_CPPCHECK=OFF -DSQLITECPP_RUN_CPPLINT=OFF ..
|
||||||
working-directory: build
|
working-directory: build
|
||||||
- run: cmake --build build --config ${{ matrix.config.build_type }}
|
- run: cmake --build build --config ${{ matrix.config.build_type }}
|
||||||
- run: ctest --verbose --output-on-failure --test-dir build
|
- run: ctest --verbose --output-on-failure --test-dir build
|
||||||
|
52
build.bat
52
build.bat
@ -1,26 +1,26 @@
|
|||||||
@REM Copyright (c) 2012-2023 Sebastien Rombauts (sebastien.rombauts@gmail.com)
|
@REM Copyright (c) 2012-2023 Sebastien Rombauts (sebastien.rombauts@gmail.com)
|
||||||
@REM
|
@REM
|
||||||
@REM Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
|
@REM Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
|
||||||
@REM or copy at http://opensource.org/licenses/MIT)
|
@REM or copy at http://opensource.org/licenses/MIT)
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
|
|
||||||
@REM Generate a Visual Studio solution for latest version found
|
@REM Generate a Visual Studio solution for latest version found
|
||||||
REM -DPYTHON_EXECUTABLE=D:\workspace\Corvus\UnrealEngine\Engine\Binaries\ThirdParty\Python\Win64\python.exe
|
REM -DPYTHON_EXECUTABLE=D:\workspace\Corvus\UnrealEngine\Engine\Binaries\ThirdParty\Python\Win64\python.exe
|
||||||
cmake -DSQLITECPP_BUILD_EXAMPLES=ON -DSQLITECPP_BUILD_TESTS=ON -DSQLITECPP_RUN_CPPLINT=OFF ..
|
cmake -DBUILD_SHARED_LIBS=ON -DSQLITECPP_BUILD_TESTS=ON -DSQLITECPP_BUILD_EXAMPLES=ON -DSQLITECPP_RUN_CPPLINT=OFF ..
|
||||||
@if ERRORLEVEL 1 goto onError
|
@if ERRORLEVEL 1 goto onError
|
||||||
|
|
||||||
@REM Build default configuration (ie 'Debug')
|
@REM Build default configuration (ie 'Debug')
|
||||||
cmake --build .
|
cmake --build .
|
||||||
@if ERRORLEVEL 1 goto onError
|
@if ERRORLEVEL 1 goto onError
|
||||||
|
|
||||||
@REM Build and run tests
|
@REM Build and run tests
|
||||||
ctest --output-on-failure
|
ctest --output-on-failure
|
||||||
@if ERRORLEVEL 1 goto onError
|
@if ERRORLEVEL 1 goto onError
|
||||||
|
|
||||||
@goto onSuccess
|
@goto onSuccess
|
||||||
|
|
||||||
:onError
|
:onError
|
||||||
@echo An error occured!
|
@echo An error occured!
|
||||||
:onSuccess
|
:onSuccess
|
||||||
@cd ..
|
@cd ..
|
||||||
|
2
build.sh
2
build.sh
@ -11,7 +11,7 @@ mkdir -p build
|
|||||||
cd build
|
cd build
|
||||||
|
|
||||||
# Generate a Makefile for GCC (or Clang, depending on CC/CXX envvar)
|
# Generate a Makefile for GCC (or Clang, depending on CC/CXX envvar)
|
||||||
cmake -DCMAKE_BUILD_TYPE=Debug -DSQLITECPP_USE_ASAN=ON -DSQLITECPP_USE_GCOV=OFF -DSQLITECPP_BUILD_EXAMPLES=ON -DSQLITECPP_BUILD_TESTS=ON ..
|
cmake -DCMAKE_BUILD_TYPE=Debug -DSQLITECPP_USE_ASAN=ON -DSQLITECPP_USE_GCOV=OFF -DBUILD_SHARED_LIBS=ON -DSQLITECPP_BUILD_TESTS=ON -DSQLITECPP_BUILD_EXAMPLES=ON ..
|
||||||
|
|
||||||
# Build (ie 'make')
|
# Build (ie 'make')
|
||||||
cmake --build .
|
cmake --build .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user