Skip to content

Commit a03319d

Browse files
authored
Get rid of Noa in this project (#1489)
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
1 parent c3f7d13 commit a03319d

File tree

198 files changed

+298
-54459
lines changed

Some content is hidden

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

198 files changed

+298
-54459
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,6 @@ jobs:
120120
${{ matrix.platform.options }}
121121
- run: cmake --build ./build --config Release --target clang_format_test
122122
- run: cmake --build ./build --config Release --parallel 4
123-
- run: >
124-
cmake --install ./build --prefix ./build/dist --config Release --verbose
125-
--component sourcemeta_noa
126-
- run: >
127-
cmake --install ./build --prefix ./build/dist --config Release --verbose
128-
--component sourcemeta_noa_dev
129123
- run: >
130124
cmake --install ./build --prefix ./build/dist --config Release --verbose
131125
--component sourcemeta_core

CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ option(SOURCEMETA_CORE_INSTALL "Install the Sourcemeta Core library" ON)
1818
option(SOURCEMETA_CORE_ADDRESS_SANITIZER "Build Sourcemeta Core with an address sanitizer" OFF)
1919
option(SOURCEMETA_CORE_UNDEFINED_SANITIZER "Build Sourcemeta Core with an undefined behavior sanitizer" OFF)
2020

21-
include(./vendor/noa/cmake/noa.cmake)
21+
include(Sourcemeta)
2222

2323
# TODO: Turn this into a re-usable utility CMake function
2424
if(SOURCEMETA_CORE_INSTALL)
@@ -74,22 +74,22 @@ if(SOURCEMETA_CORE_EXTENSION_ALTERSCHEMA)
7474
endif()
7575

7676
if(SOURCEMETA_CORE_ADDRESS_SANITIZER)
77-
noa_sanitizer(TYPE address)
77+
sourcemeta_sanitizer(TYPE address)
7878
elseif(SOURCEMETA_CORE_UNDEFINED_SANITIZER)
79-
noa_sanitizer(TYPE undefined)
79+
sourcemeta_sanitizer(TYPE undefined)
8080
endif()
8181

8282
if(SOURCEMETA_CORE_DOCS)
83-
noa_target_doxygen(CONFIG "${PROJECT_SOURCE_DIR}/doxygen/Doxyfile.in"
83+
sourcemeta_target_doxygen(CONFIG "${PROJECT_SOURCE_DIR}/doxygen/Doxyfile.in"
8484
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/website")
8585
endif()
8686

8787
if(PROJECT_IS_TOP_LEVEL)
88-
noa_target_clang_format(SOURCES
88+
sourcemeta_target_clang_format(SOURCES
8989
src/*.h src/*.cc
9090
benchmark/*.h benchmark/*.cc
9191
test/*.h test/*.cc)
92-
noa_target_clang_tidy(SOURCES
92+
sourcemeta_target_clang_tidy(SOURCES
9393
src/*.h src/*.cc)
9494
endif()
9595

DEPENDENCIES

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
vendorpull https://github.com/sourcemeta/vendorpull 70342aaf458e6cb80baeb5b718901075fc42ede6
2-
noa https://github.com/sourcemeta/noa b2c8e362a5c4c138eb708603a351df2b2d79a1c9
32
jsontestsuite https://github.com/nst/JSONTestSuite d64aefb55228d9584d3e5b2433f720ea8fd00c82
43
jsonschema-2020-12 https://github.com/json-schema-org/json-schema-spec 769daad75a9553562333a8937a187741cb708c72
54
jsonschema-2019-09 https://github.com/json-schema-org/json-schema-spec 41014ea723120ce70b314d72f863c6929d9f3cfd

Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ configure: .always
2020
compile: .always
2121
$(CMAKE) --build ./build --config $(PRESET) --target clang_format
2222
$(CMAKE) --build ./build --config $(PRESET) --parallel 4
23-
$(CMAKE) --install ./build --prefix ./build/dist --config $(PRESET) --verbose \
24-
--component sourcemeta_noa
25-
$(CMAKE) --install ./build --prefix ./build/dist --config $(PRESET) --verbose \
26-
--component sourcemeta_noa_dev
2723
$(CMAKE) --install ./build --prefix ./build/dist --config $(PRESET) --verbose \
2824
--component sourcemeta_core
2925
$(CMAKE) --install ./build --prefix ./build/dist --config $(PRESET) --verbose \

assets/logo.png

-65 KB
Binary file not shown.

assets/logo.svg

Lines changed: 0 additions & 15 deletions
This file was deleted.

benchmark/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if(SOURCEMETA_CORE_JSONPOINTER)
1313
endif()
1414

1515
if(BENCHMARK_SOURCES)
16-
noa_googlebenchmark(NAMESPACE sourcemeta PROJECT core
16+
sourcemeta_googlebenchmark(NAMESPACE sourcemeta PROJECT core
1717
FOLDER "Core" SOURCES ${BENCHMARK_SOURCES})
1818

1919
target_compile_definitions(sourcemeta_core_benchmark

cmake/FindBoostRegex.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ if(NOT BoostRegex_FOUND)
124124

125125
target_compile_definitions(boost_regex INTERFACE BOOST_REGEX_STANDALONE)
126126

127-
if(SOURCEMETA_CORE_UNDEFINED_SANITIZER AND NOA_COMPILER_LLVM)
127+
if(SOURCEMETA_CORE_UNDEFINED_SANITIZER AND SOURCEMETA_COMPILER_LLVM)
128128
# Boost Regex doesn't pass the LLVM Undefined Behavior sanitizer otherwise
129129
# vendor/boost-regex/include/boost/regex/v5/cpp_regex_traits.hpp:1022:60:
130130
# runtime error: implicit conversion from type 'unsigned char' of value 128

cmake/Findyaml.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if(NOT Yaml_FOUND)
1616

1717
add_library(yaml ${YAML_SOURCES})
1818

19-
if(NOA_COMPILER_LLVM OR NOA_COMPILER_GCC)
19+
if(SOURCEMETA_COMPILER_LLVM OR SOURCEMETA_COMPILER_GCC)
2020
target_compile_options(yaml PRIVATE -Wno-implicit-function-declaration)
2121
target_compile_options(yaml PRIVATE -Wno-int-to-pointer-cast)
2222
endif()

cmake/Sourcemeta.cmake

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
set(SOURCEMETA_UTILITIES_DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/common")
2+
include("${SOURCEMETA_UTILITIES_DIRECTORY}/shim.cmake")
3+
include("${SOURCEMETA_UTILITIES_DIRECTORY}/variables.cmake")
4+
include("${SOURCEMETA_UTILITIES_DIRECTORY}/defaults.cmake")
5+
include("${SOURCEMETA_UTILITIES_DIRECTORY}/compiler/sanitizer.cmake")
6+
include("${SOURCEMETA_UTILITIES_DIRECTORY}/compiler/options.cmake")
7+
include("${SOURCEMETA_UTILITIES_DIRECTORY}/options/enum.cmake")
8+
include("${SOURCEMETA_UTILITIES_DIRECTORY}/commands/copy-file.cmake")
9+
include("${SOURCEMETA_UTILITIES_DIRECTORY}/targets/library.cmake")
10+
include("${SOURCEMETA_UTILITIES_DIRECTORY}/targets/executable.cmake")
11+
include("${SOURCEMETA_UTILITIES_DIRECTORY}/targets/clang-format.cmake")
12+
include("${SOURCEMETA_UTILITIES_DIRECTORY}/targets/clang-tidy.cmake")
13+
include("${SOURCEMETA_UTILITIES_DIRECTORY}/targets/shellcheck.cmake")
14+
include("${SOURCEMETA_UTILITIES_DIRECTORY}/targets/doxygen.cmake")
15+
include("${SOURCEMETA_UTILITIES_DIRECTORY}/targets/googletest.cmake")
16+
include("${SOURCEMETA_UTILITIES_DIRECTORY}/targets/googlebenchmark.cmake")

0 commit comments

Comments
 (0)