feat: support static
Some checks failed
android / build (push) Failing after 43s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Debug) (push) Failing after 6m57s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Release) (push) Failing after 7m43s
linux-arm-gcc / linux-gcc-arm (Debug) (push) Failing after 6m59s
linux-arm-gcc / linux-gcc-arm (Release) (push) Failing after 7m28s
linux-arm-gcc / linux-gcc-armhf (Debug) (push) Failing after 7m0s
linux-arm-gcc / linux-gcc-armhf (Release) (push) Failing after 7m36s
linux-mips-gcc / linux-gcc-mipsel (Debug) (push) Failing after 7m44s
linux-mips-gcc / linux-gcc-mipsel (Release) (push) Failing after 7m55s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Failing after 7m50s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Failing after 7m57s
linux-riscv64-gcc / linux-gcc-riscv64 (Debug) (push) Failing after 8m43s
linux-riscv64-gcc / linux-gcc-riscv64 (Release) (push) Failing after 7m35s
linux-x64-clang / linux-clang (Debug) (push) Failing after 31s
linux-x64-clang / linux-clang (Release) (push) Failing after 31s
android / build (pull_request) Failing after 23s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Debug) (pull_request) Failing after 6m49s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Release) (pull_request) Failing after 8m4s
linux-x64-gcc / linux-gcc (Debug) (push) Failing after 10m6s
linux-arm-gcc / linux-gcc-arm (Debug) (pull_request) Failing after 6m58s
linux-x64-gcc / linux-gcc (Release) (push) Failing after 3h12m17s
linux-arm-gcc / linux-gcc-arm (Release) (pull_request) Failing after 7m47s
linux-arm-gcc / linux-gcc-armhf (Debug) (pull_request) Failing after 7m14s
linux-arm-gcc / linux-gcc-armhf (Release) (pull_request) Failing after 8m5s
linux-x86-gcc / linux-gcc (Debug) (push) Failing after 10m32s
linux-mips-gcc / linux-gcc-mipsel (Debug) (pull_request) Failing after 8m5s
linux-x86-gcc / linux-gcc (Release) (push) Failing after 3h11m30s
linux-mips-gcc / linux-gcc-mipsel (Release) (pull_request) Failing after 8m14s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (pull_request) Failing after 8m31s
linux-mips64-gcc / linux-gcc-mips64el (Release) (pull_request) Failing after 8m11s
linux-riscv64-gcc / linux-gcc-riscv64 (Debug) (pull_request) Failing after 8m26s
linux-riscv64-gcc / linux-gcc-riscv64 (Release) (pull_request) Failing after 8m32s
linux-x64-clang / linux-clang (Debug) (pull_request) Failing after 30s
linux-x64-clang / linux-clang (Release) (pull_request) Failing after 30s
linux-x64-gcc / linux-gcc (Debug) (pull_request) Failing after 10m4s
linux-x64-gcc / linux-gcc (Release) (pull_request) Failing after 1h28m27s
linux-x86-gcc / linux-gcc (Debug) (pull_request) Failing after 10m12s
linux-x86-gcc / linux-gcc (Release) (pull_request) Failing after 3h14m46s
Some checks failed
android / build (push) Failing after 43s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Debug) (push) Failing after 6m57s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Release) (push) Failing after 7m43s
linux-arm-gcc / linux-gcc-arm (Debug) (push) Failing after 6m59s
linux-arm-gcc / linux-gcc-arm (Release) (push) Failing after 7m28s
linux-arm-gcc / linux-gcc-armhf (Debug) (push) Failing after 7m0s
linux-arm-gcc / linux-gcc-armhf (Release) (push) Failing after 7m36s
linux-mips-gcc / linux-gcc-mipsel (Debug) (push) Failing after 7m44s
linux-mips-gcc / linux-gcc-mipsel (Release) (push) Failing after 7m55s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Failing after 7m50s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Failing after 7m57s
linux-riscv64-gcc / linux-gcc-riscv64 (Debug) (push) Failing after 8m43s
linux-riscv64-gcc / linux-gcc-riscv64 (Release) (push) Failing after 7m35s
linux-x64-clang / linux-clang (Debug) (push) Failing after 31s
linux-x64-clang / linux-clang (Release) (push) Failing after 31s
android / build (pull_request) Failing after 23s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Debug) (pull_request) Failing after 6m49s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Release) (pull_request) Failing after 8m4s
linux-x64-gcc / linux-gcc (Debug) (push) Failing after 10m6s
linux-arm-gcc / linux-gcc-arm (Debug) (pull_request) Failing after 6m58s
linux-x64-gcc / linux-gcc (Release) (push) Failing after 3h12m17s
linux-arm-gcc / linux-gcc-arm (Release) (pull_request) Failing after 7m47s
linux-arm-gcc / linux-gcc-armhf (Debug) (pull_request) Failing after 7m14s
linux-arm-gcc / linux-gcc-armhf (Release) (pull_request) Failing after 8m5s
linux-x86-gcc / linux-gcc (Debug) (push) Failing after 10m32s
linux-mips-gcc / linux-gcc-mipsel (Debug) (pull_request) Failing after 8m5s
linux-x86-gcc / linux-gcc (Release) (push) Failing after 3h11m30s
linux-mips-gcc / linux-gcc-mipsel (Release) (pull_request) Failing after 8m14s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (pull_request) Failing after 8m31s
linux-mips64-gcc / linux-gcc-mips64el (Release) (pull_request) Failing after 8m11s
linux-riscv64-gcc / linux-gcc-riscv64 (Debug) (pull_request) Failing after 8m26s
linux-riscv64-gcc / linux-gcc-riscv64 (Release) (pull_request) Failing after 8m32s
linux-x64-clang / linux-clang (Debug) (pull_request) Failing after 30s
linux-x64-clang / linux-clang (Release) (pull_request) Failing after 30s
linux-x64-gcc / linux-gcc (Debug) (pull_request) Failing after 10m4s
linux-x64-gcc / linux-gcc (Release) (pull_request) Failing after 1h28m27s
linux-x86-gcc / linux-gcc (Debug) (pull_request) Failing after 10m12s
linux-x86-gcc / linux-gcc (Release) (pull_request) Failing after 3h14m46s
This commit is contained in:
parent
f5d3fcdf63
commit
c4fd274e66
@ -27,7 +27,6 @@ option(TILE_BUILD_TESTS "Build tests" OFF)
|
||||
option(TILE_BUILD_BENCHMARKS "Build tests" OFF)
|
||||
option(TILE_WITH_OPENSSL "Build with openssl" OFF)
|
||||
option(TILE_BUILD_SHARED "Build shared library" ON)
|
||||
option(TILE_BUILD_STATIC "Build static library" ON)
|
||||
|
||||
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
|
||||
set(TILE_BUILD_TESTS ON)
|
||||
@ -226,7 +225,11 @@ if((NOT TILE_HAVE_GETIFADDRS) OR (NOT TILE_HAVE_FREEIFADDRS))
|
||||
list(APPEND TILE_SRCS "tile/base/net/detail/android/ifaddrs.c")
|
||||
endif()
|
||||
|
||||
if (TILE_BUILD_SHARED)
|
||||
add_library(tile SHARED ${TILE_SRCS})
|
||||
else()
|
||||
add_library(tile STATIC ${TILE_SRCS})
|
||||
endif()
|
||||
set_target_properties(tile PROPERTIES VERSION ${PROJECT_VERSION}
|
||||
target_precompile_headers(tile PUBLIC inja/inja.h)
|
||||
target_precompile_headers(tile PUBLIC inja/string_view.h)
|
||||
|
Loading…
Reference in New Issue
Block a user