-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
236 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.4.0 | ||
1.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,29 @@ | ||
#!/bin/bash | ||
|
||
docker build --force-rm=true -f ./Dockerfile.android-21 \ | ||
docker build --force-rm=true -f ./Dockerfile.android-v \ | ||
--build-arg vcpkg_target_triplet="arm-android" \ | ||
--build-arg cmake="android-armv7a-eabi-cmake" \ | ||
--build-arg android_abi="armeabi-v7a" \ | ||
--build-arg android_target="21" \ | ||
-t abeimler/simple-cppbuilder:arm-android-21 . | ||
|
||
docker build --force-rm=true -f ./Dockerfile.android-21 \ | ||
docker build --force-rm=true -f ./Dockerfile.android-v \ | ||
--build-arg vcpkg_target_triplet="arm64-android" \ | ||
--build-arg cmake="android-aarch64-cmake" \ | ||
--build-arg android_abi="arm64-v8a" \ | ||
--build-arg android_target="21" \ | ||
-t abeimler/simple-cppbuilder:arm64-android21 . | ||
|
||
docker build --force-rm=true -f ./Dockerfile.android-21 \ | ||
docker build --force-rm=true -f ./Dockerfile.android-v \ | ||
--build-arg vcpkg_target_triplet="x86-android" \ | ||
--build-arg cmake="android-x86-cmake" \ | ||
--build-arg android_abi="x86" \ | ||
--build-arg android_target="21" \ | ||
-t abeimler/simple-cppbuilder:x86-android-21 . | ||
|
||
docker build --force-rm=true -f ./Dockerfile.android-21 \ | ||
docker build --force-rm=true -f ./Dockerfile.android-v \ | ||
--build-arg vcpkg_target_triplet="x64-android" \ | ||
--build-arg cmake="android-x86-64-cmake" \ | ||
--build-arg android_abi="x86_64" \ | ||
--build-arg android_target="21" \ | ||
-t abeimler/simple-cppbuilder:x64-android-21 . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
docker build --force-rm=true -f ./Dockerfile.android-v \ | ||
--build-arg vcpkg_target_triplet="arm-android" \ | ||
--build-arg cmake="android-armv7a-eabi-cmake" \ | ||
--build-arg android_abi="armeabi-v7a" \ | ||
--build-arg android_target="24" \ | ||
-t abeimler/simple-cppbuilder:arm-android-24 . | ||
|
||
docker build --force-rm=true -f ./Dockerfile.android-v \ | ||
--build-arg vcpkg_target_triplet="arm64-android" \ | ||
--build-arg cmake="android-aarch64-cmake" \ | ||
--build-arg android_abi="arm64-v8a" \ | ||
--build-arg android_target="24" \ | ||
-t abeimler/simple-cppbuilder:arm64-android24 . | ||
|
||
docker build --force-rm=true -f ./Dockerfile.android-v \ | ||
--build-arg vcpkg_target_triplet="x86-android" \ | ||
--build-arg cmake="android-x86-cmake" \ | ||
--build-arg android_abi="x86" \ | ||
--build-arg android_target="24" \ | ||
-t abeimler/simple-cppbuilder:x86-android-24 . | ||
|
||
docker build --force-rm=true -f ./Dockerfile.android-v \ | ||
--build-arg vcpkg_target_triplet="x64-android" \ | ||
--build-arg cmake="android-x86-64-cmake" \ | ||
--build-arg android_abi="x86_64" \ | ||
--build-arg android_target="24" \ | ||
-t abeimler/simple-cppbuilder:x64-android-24 . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ set(OPT_WARNINGS_AS_ERRORS OFF) | |
include(FetchContent) | ||
# Add project_options | ||
# https://github.com/cpp-best-practices/project_options | ||
FetchContent_Declare(_project_options URL https://github.com/cpp-best-practices/project_options/archive/refs/tags/v0.24.0.zip) | ||
FetchContent_Declare(_project_options URL https://github.com/cpp-best-practices/project_options/archive/refs/tags/v0.25.2.zip) | ||
FetchContent_MakeAvailable(_project_options) | ||
include(${_project_options_SOURCE_DIR}/Index.cmake) | ||
|
||
|
@@ -80,25 +80,38 @@ set(ENABLE_CPPCHECK OFF) | |
set(ENABLE_SANITIZER_ADDRESS OFF) | ||
set(ENABLE_SANITIZER_UNDEFINED_BEHAVIOR OFF) | ||
set(ENABLE_COVERAGE OFF) | ||
set(ENABLE_INCLUDE_WHAT_YOU_USE OFF) | ||
set(ENABLE_INTERPROCEDURAL_OPTIMIZATION OFF) | ||
|
||
option(ENABLE_CHECKING "Enable Static analyzer" OFF) | ||
option(ENABLE_CHECKING_INCLUDE_WHAT_YOU_USE "Enable Static analyzer for include-what-you-use" OFF) | ||
if(ENABLE_CHECKING) | ||
set(ENABLE_CLANG_TIDY "ENABLE_CLANG_TIDY") | ||
set(ENABLE_CPPCHECK "ENABLE_CPPCHECK") | ||
set(ENABLE_INCLUDE_WHAT_YOU_USE "ENABLE_INCLUDE_WHAT_YOU_USE") | ||
endif() | ||
if(ENABLE_CHECKING_INCLUDE_WHAT_YOU_USE) | ||
set(ENABLE_INCLUDE_WHAT_YOU_USE "ENABLE_INCLUDE_WHAT_YOU_USE") | ||
endif() | ||
|
||
option(ENABLE_TESTING "Enable the tests" ${PROJECT_IS_TOP_LEVEL}) | ||
option(DISABLE_SANITIZER "Disable Sanitizer" OFF) | ||
if(ENABLE_TESTING) | ||
if(NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "Windows") | ||
set(ENABLE_SANITIZER_ADDRESS "ENABLE_SANITIZER_ADDRESS") | ||
set(ENABLE_SANITIZER_UNDEFINED_BEHAVIOR "ENABLE_SANITIZER_UNDEFINED_BEHAVIOR") | ||
else() | ||
# FIXME: Catch2d.lib(catch_istream.cpp.obj) : error LNK2038: mismatch detected for 'annotate_vector': value '0' doesn't match value '1' | ||
# # or it is MSVC and has run vcvarsall | ||
# string(FIND "$ENV{PATH}" "$ENV{VSINSTALLDIR}" index_of_vs_install_dir) | ||
# if(MSVC AND "${index_of_vs_install_dir}" STREQUAL "-1") | ||
# set(ENABLE_SANITIZER_ADDRESS "ENABLE_SANITIZER_ADDRESS") | ||
# endif() | ||
if(NOT DEFINED OPT_ENABLE_COVERAGE) | ||
set(ENABLE_COVERAGE "ENABLE_COVERAGE") | ||
endif() | ||
|
||
if(NOT DISABLE_SANITIZER) | ||
if(NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "Windows") | ||
set(ENABLE_SANITIZER_ADDRESS "ENABLE_SANITIZER_ADDRESS") | ||
set(ENABLE_SANITIZER_UNDEFINED_BEHAVIOR "ENABLE_SANITIZER_UNDEFINED_BEHAVIOR") | ||
else() | ||
# or it is MSVC and has run vcvarsall | ||
string(FIND "$ENV{PATH}" "$ENV{VSINSTALLDIR}" index_of_vs_install_dir) | ||
if(MSVC AND "${index_of_vs_install_dir}" STREQUAL "-1") | ||
set(ENABLE_SANITIZER_ADDRESS "ENABLE_SANITIZER_ADDRESS") | ||
endif() | ||
endif() | ||
endif() | ||
endif() | ||
|
||
|
@@ -151,7 +164,6 @@ include(cmake/CPM.cmake) | |
CPMAddPackage("gh:TheLartians/[email protected]") | ||
CPMAddPackage("gh:TheLartians/[email protected]") | ||
|
||
#add_subdirectory(libs) | ||
|
||
if(ENABLE_TESTING) | ||
# This variable is set by project() in CMake 3.21+ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.