Skip to content

Commit 69fe74f

Browse files
committed
Upgrade Core and include Blaze
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
1 parent 2fe6502 commit 69fe74f

378 files changed

Lines changed: 67366 additions & 2217 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ jobs:
109109
- run: >
110110
cmake --install ./build --prefix ./build/dist --config Release --verbose
111111
--component sourcemeta_core_dev
112+
- run: >
113+
cmake --install ./build --prefix ./build/dist --config Release --verbose
114+
--component sourcemeta_blaze
115+
- run: >
116+
cmake --install ./build --prefix ./build/dist --config Release --verbose
117+
--component sourcemeta_blaze_dev
112118
- run: >
113119
cmake --install ./build --prefix ./build/dist --config Release --verbose
114120
--component sourcemeta_jsonbinpack

CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ option(JSONBINPACK_ADDRESS_SANITIZER "Build JSON BinPack with an address sanitiz
1818
option(JSONBINPACK_UNDEFINED_SANITIZER "Build JSON BinPack with an undefined behavior sanitizer" OFF)
1919

2020
find_package(Core REQUIRED)
21+
find_package(Blaze REQUIRED)
2122

2223
if(JSONBINPACK_INSTALL)
2324
include(GNUInstallDirs)
@@ -36,9 +37,6 @@ if(JSONBINPACK_INSTALL)
3637
COMPONENT sourcemeta_jsonbinpack_dev)
3738
endif()
3839

39-
# Dependencies
40-
find_package(Core REQUIRED)
41-
4240
# Numeric
4341
if(JSONBINPACK_NUMERIC)
4442
add_subdirectory(src/numeric)

DEPENDENCIES

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
vendorpull https://github.com/sourcemeta/vendorpull 1dcbac42809cf87cb5b045106b863e17ad84ba02
2-
core https://github.com/sourcemeta/core 57e8c91ed68e3ee903526fd2f45cb16ca46759d8
2+
core https://github.com/sourcemeta/core efaed8a73fa1ba38f0c2fdcbd11d0b3223c5a70e
3+
blaze https://github.com/sourcemeta/blaze 0ff98cb5e537f571bdf04f0d59a031a0d8634e07
34
bootstrap https://github.com/twbs/bootstrap 1a6fdfae6be09b09eaced8f0e442ca6f7680a61e

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ compile: .always
2727
--component sourcemeta_core
2828
$(CMAKE) --install ./build --prefix ./build/dist --config $(PRESET) --verbose \
2929
--component sourcemeta_core_dev
30+
$(CMAKE) --install ./build --prefix ./build/dist --config $(PRESET) --verbose \
31+
--component sourcemeta_blaze
32+
$(CMAKE) --install ./build --prefix ./build/dist --config $(PRESET) --verbose \
33+
--component sourcemeta_blaze_dev
3034
$(CMAKE) --install ./build --prefix ./build/dist --config $(PRESET) --verbose \
3135
--component sourcemeta_jsonbinpack
3236
$(CMAKE) --install ./build --prefix ./build/dist --config $(PRESET) --verbose \

cmake/FindBlaze.cmake

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
if(NOT Blaze_FOUND)
2+
if(JSONBINPACK_INSTALL)
3+
set(SOURCEMETA_BLAZE_INSTALL ON CACHE BOOL "enable installation")
4+
else()
5+
set(SOURCEMETA_BLAZE_INSTALL OFF CACHE BOOL "disable installation")
6+
endif()
7+
8+
set(BLAZE_TEST OFF CACHE BOOL "disable")
9+
set(BLAZE_CONFIGURATION OFF CACHE BOOL "disable")
10+
set(BLAZE_CONTRIB OFF CACHE BOOL "disable")
11+
add_subdirectory("${PROJECT_SOURCE_DIR}/vendor/blaze")
12+
include(Sourcemeta)
13+
set(Blaze_FOUND ON)
14+
endif()

cmake/FindCore.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if(NOT Core_FOUND)
1010
set(SOURCEMETA_CORE_GZIP OFF CACHE BOOL "disable")
1111
set(SOURCEMETA_CORE_MD5 OFF CACHE BOOL "disable")
1212
set(SOURCEMETA_CORE_JSONL OFF CACHE BOOL "disable JSONL support")
13-
set(SOURCEMETA_CORE_YAML OFF CACHE BOOL "disable YAML support")
13+
set(SOURCEMETA_CORE_YAML ON CACHE BOOL "needed by Blaze")
1414
set(SOURCEMETA_CORE_EXTENSION_OPTIONS OFF CACHE BOOL "disable")
1515
set(SOURCEMETA_CORE_EXTENSION_BUILD OFF CACHE BOOL "disable")
1616
set(SOURCEMETA_CORE_CONTRIB_GOOGLETEST ${JSONBINPACK_TESTS} CACHE BOOL "GoogleTest")

config.cmake.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ if(NOT JSONBINPACK_COMPONENTS)
1010
endif()
1111

1212
include(CMakeFindDependencyMacro)
13-
find_dependency(Core COMPONENTS regex uri json jsonpointer jsonschema alterschema)
13+
find_dependency(Core COMPONENTS regex uri json jsonpointer jsonschema)
14+
find_dependency(Blaze COMPONENTS alterschema)
1415

1516
foreach(component ${JSONBINPACK_COMPONENTS})
1617
if(component STREQUAL "numeric")

0 commit comments

Comments
 (0)