Add c-blosc and hunspell and their tests to CI

- Minor reformatting in `CMakeLists.txt`
- Update c-blosc to latest revision

PiperOrigin-RevId: 454148849
Change-Id: I7a659c0786b1dc35d94059a518a0ec2859055432
This commit is contained in:
Christian Blichmann 2022-06-10 06:15:03 -07:00 committed by Copybara-Service
parent 4ec09d0061
commit 2a65b72ea6
3 changed files with 30 additions and 30 deletions

View File

@ -11,7 +11,14 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04]
contrib: [brotli, jsonnet, libraw, lodepng, libtiff, pffft]
contrib:
- brotli
- c-blosc
- jsonnet
- libraw
- libtiff
- lodepng
- pffft
ignore-errors: [true]
include:
- compiler: clang

View File

@ -16,29 +16,26 @@ cmake_minimum_required(VERSION 3.13..3.22)
project(sapi_blosc CXX)
include(CTest)
include(GoogleTest)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
if(NOT TARGET sapi::sapi)
set(SAPI_ROOT "../.." CACHE PATH "Path to the Sandboxed API source tree")
add_subdirectory(
"${SAPI_ROOT}"
"${CMAKE_BINARY_DIR}/sandboxed-api-build"
EXCLUDE_FROM_ALL
)
add_subdirectory("${SAPI_ROOT}"
"${CMAKE_BINARY_DIR}/sandboxed-api-build"
EXCLUDE_FROM_ALL)
endif()
FetchContent_Declare(libblosc
GIT_REPOSITORY https://github.com/Blosc/c-blosc.git
GIT_TAG ad6361f0151f830efb5ae113211c3559ab969886 # 2022-05-31
)
set(HIDE_SYMBOLS OFF CACHE BOOL "" FORCE)
set(BUILD_BENCHMARKS OFF CACHE BOOL "" FORCE)
set(BUILD_FUZZERS OFF CACHE BOOL "" FORCE)
set(BUILD_TESTS OFF CACHE BOOL "" FORCE)
FetchContent_Declare(
libblosc
GIT_REPOSITORY https://github.com/Blosc/c-blosc.git
GIT_TAG 5b68ad8a6c25e7f013e78b44e8b3bf3b5a6b9cc7
)
FetchContent_MakeAvailable(libblosc)
add_sapi_library(sapi_blosc

View File

@ -16,12 +16,11 @@ cmake_minimum_required(VERSION 3.13..3.22)
project(sapi_hunspell CXX)
include(CTest)
include(GoogleTest)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(SAPI_ROOT "" CACHE PATH "Path to the Sandboxed API source tree")
if(NOT TARGET sapi::sapi)
set(SAPI_ROOT "../.." CACHE PATH "Path to the Sandboxed API source tree")
add_subdirectory("${SAPI_ROOT}"
@ -31,7 +30,7 @@ endif()
FetchContent_Declare(libhunspell
GIT_REPOSITORY https://github.com/hunspell/hunspell.git
GIT_TAG 31e6d6323026a3bef12c5912ce032d88bfef2091
GIT_TAG 31e6d6323026a3bef12c5912ce032d88bfef2091 # 2021-10-15
)
FetchContent_GetProperties(libhunspell)
@ -103,26 +102,23 @@ target_include_directories(hunspell PUBLIC
set(libhunspell_INCLUDE_DIR "${libhunspell_SOURCE_DIR}/src/hunspell")
add_sapi_library(
sapi_hunspell
add_sapi_library(sapi_hunspell
FUNCTIONS Hunspell_create
Hunspell_create_key
Hunspell_destroy
FUNCTIONS
Hunspell_create
Hunspell_create_key
Hunspell_destroy
Hunspell_spell
Hunspell_get_dic_encoding
Hunspell_spell
Hunspell_get_dic_encoding
Hunspell_suggest
Hunspell_analyze
Hunspell_suggest
Hunspell_analyze
Hunspell_add
Hunspell_remove
Hunspell_add
Hunspell_remove
Hunspell_free_list
Hunspell_free_list
INPUTS
"${libhunspell_INCLUDE_DIR}/hunspell.h"
INPUTS "${libhunspell_INCLUDE_DIR}/hunspell.h"
LIBRARY hunspell
LIBRARY_NAME Hunspell