Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
98ea85e
Add ystdlib-cpp submodule
Bill-hbrhbr Feb 25, 2025
2086223
Migrate
Bill-hbrhbr Feb 25, 2025
f1b3f25
Fix cmake build flag
Bill-hbrhbr Feb 25, 2025
70b14a4
Update CMake option on ystdlib-cpp unit test building
Bill-hbrhbr Feb 26, 2025
4770e5e
Update ystdlib-cpp path
Bill-hbrhbr Mar 4, 2025
f1dade5
Update dependency taskfiles
Bill-hbrhbr Mar 4, 2025
7bdb0a4
Turn of unit test building
Bill-hbrhbr Mar 4, 2025
82ac7da
Remove unrelated changes
Bill-hbrhbr Mar 4, 2025
1ebaf19
Merge branch 'main' into migrate-error-handling
Bill-hbrhbr Mar 4, 2025
11fa690
fix task name
Bill-hbrhbr Mar 4, 2025
635ce2c
fix task name
Bill-hbrhbr Mar 4, 2025
2fc4567
Remove focal workflows
Bill-hbrhbr Mar 4, 2025
06b90fb
Upgrade macos to use appleclang16
Bill-hbrhbr Mar 4, 2025
e7b55eb
Update for macos-13
Bill-hbrhbr Mar 4, 2025
f04c65f
Move envs to deps:core
Bill-hbrhbr Mar 4, 2025
1c94f17
Allow env vars to pass in python scripts
Bill-hbrhbr Mar 4, 2025
53ca62a
Add env var to cli
Bill-hbrhbr Mar 4, 2025
0d0d25f
Update .github/workflows/clp-core-build-macos.yaml
Bill-hbrhbr Mar 4, 2025
af20a46
Remove workflow changes
Bill-hbrhbr Mar 12, 2025
df9b27b
Merge branch 'main' into migrate-error-handling
Bill-hbrhbr Mar 12, 2025
86670f4
Bump ystdlib-cpp version
Bill-hbrhbr Mar 12, 2025
5dee1f2
Update docs
Bill-hbrhbr Mar 12, 2025
0336667
Merge branch 'main' into migrate-error-handling
Bill-hbrhbr Mar 14, 2025
fbb896e
Upgrade dev utils
Bill-hbrhbr Mar 14, 2025
989afcb
Change option to set to prevent overriding
Bill-hbrhbr Mar 14, 2025
d2c6803
Undo source changes
Bill-hbrhbr Mar 14, 2025
9927121
Undo cmakelist change
Bill-hbrhbr Mar 14, 2025
631144b
Upgrade version
Bill-hbrhbr Mar 14, 2025
1e833d0
Merge branch 'main' into migrate-error-handling
Bill-hbrhbr Mar 16, 2025
e0e4ef6
Remove extra changes
Bill-hbrhbr Mar 16, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@
[submodule "components/core/submodules/utfcpp"]
path = components/core/submodules/utfcpp
url = https://github.com/nemtrif/utfcpp.git
[submodule "components/core/submodules/ystdlib-cpp"]
path = components/core/submodules/ystdlib-cpp
url = https://github.com/y-scope/ystdlib-cpp.git
3 changes: 2 additions & 1 deletion components/core/.clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ IncludeCategories:
# Library headers. Update when adding new libraries.
# NOTE: clang-format retains leading white-space on a line in violation of the YAML spec.
- Regex: "<(absl|antlr4|archive|boost|bsoncxx|catch2|curl|date|fmt|json|log_surgeon|lzma|mongocxx\
|msgpack|mysql|openssl|outcome|regex_utils|simdjson|spdlog|sqlite3|string_utils|yaml-cpp|zstd)"
|msgpack|mysql|openssl|outcome|regex_utils|simdjson|spdlog|sqlite3|string_utils|yaml-cpp|ystdlib\
|zstd)"
Priority: 3
# C system headers
- Regex: "^<.+\\.h>"
Expand Down
4 changes: 4 additions & 0 deletions components/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,10 @@ find_package(Threads REQUIRED)
# Add yaml-cpp
add_subdirectory(submodules/yaml-cpp EXCLUDE_FROM_ALL)

# Add ystdlib-cpp
set(YSTDLIB_CPP_BUILD_TESTING OFF)
add_subdirectory(submodules/ystdlib-cpp EXCLUDE_FROM_ALL)

# Find and setup ZStd Library
if(CLP_USE_STATIC_LIBS)
set(ZStd_USE_STATIC_LIBS ON)
Expand Down
1 change: 1 addition & 0 deletions components/core/submodules/ystdlib-cpp
Submodule ystdlib-cpp added at d1b4ae
35 changes: 35 additions & 0 deletions deps-tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ vars:
G_UTFCPP_CHECKSUM_FILE: "{{.G_BUILD_DIR}}/deps#utfcpp.md5"
G_YAML_CPP_CHECKSUM_FILE: "{{.G_BUILD_DIR}}/deps#yaml-cpp.md5"
G_YSCOPE_LOG_VIEWER_CHECKSUM_FILE: "{{.G_BUILD_DIR}}/deps#yscope-log-viewer.md5"
G_YSTDLIB_CPP_CHECKSUM_FILE: "{{.G_BUILD_DIR}}/deps#ystdlib-cpp.md5"

tasks:
default:
Expand All @@ -41,6 +42,7 @@ tasks:
- "{{.G_SQLITE3_CHECKSUM_FILE}}"
- "{{.G_UTFCPP_CHECKSUM_FILE}}"
- "{{.G_YAML_CPP_CHECKSUM_FILE}}"
- "{{.G_YSTDLIB_CPP_CHECKSUM_FILE}}"
generates: ["{{.G_DEPS_CORE_CHECKSUM_FILE}}"]
deps: ["all-internal-deps"]
cmds:
Expand All @@ -57,6 +59,7 @@ tasks:
"{{.G_SQLITE3_CHECKSUM_FILE}}"
"{{.G_UTFCPP_CHECKSUM_FILE}}"
"{{.G_YAML_CPP_CHECKSUM_FILE}}"
"{{.G_YSTDLIB_CPP_CHECKSUM_FILE}}"
>> "{{.G_DEPS_CORE_CHECKSUM_FILE}}"

log-viewer:
Expand Down Expand Up @@ -99,6 +102,7 @@ tasks:
- task: "utfcpp"
- task: "yaml-cpp"
- task: "yscope-log-viewer"
- task: "ystdlib-cpp"

abseil-cpp:
internal: true
Expand Down Expand Up @@ -463,6 +467,37 @@ tasks:
CHECKSUM_FILE: "{{.CHECKSUM_FILE}}"
INCLUDE_PATTERNS: ["{{.DEST}}"]

ystdlib-cpp:
internal: true
vars:
CHECKSUM_FILE: "{{.G_YSTDLIB_CPP_CHECKSUM_FILE}}"
DEST: "{{.G_CORE_COMPONENT_SUBMODULES_DIR}}/ystdlib-cpp"
sources:
- "{{.G_DEP_DOWNLOAD_SCRIPT}}"
- "{{.G_UTILS_TASKFILE}}"
- "{{.ROOT_DIR}}/Taskfile.yml"
- "{{.TASKFILE}}"
generates: ["{{.CHECKSUM_FILE}}"]
deps:
- ":init"
- task: ":utils:checksum:validate"
vars:
CHECKSUM_FILE: "{{.CHECKSUM_FILE}}"
INCLUDE_PATTERNS: ["{{.DEST}}"]
cmds:
- task: "download-dependency"
vars:
DEST: "{{.DEST}}"
FLAGS: "--extract"
SRC_NAME: "ystdlib-cpp-d1b4ae0"
SRC_URL: "https://github.com/y-scope/ystdlib-cpp/archive/d1b4ae0.zip"
# This command must be last
- task: ":utils:checksum:compute"
vars:
CHECKSUM_FILE: "{{.CHECKSUM_FILE}}"
INCLUDE_PATTERNS: ["{{.DEST}}"]


download-dependency:
internal: true
label: "{{.TASK}}-{{.SRC_NAME}}"
Expand Down
1 change: 1 addition & 0 deletions docs/src/dev-guide/components-core/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ This will download:
* [simdjson](https://github.com/simdjson/simdjson) (v3.6.3)
* [SQLite3](https://www.sqlite.org/download.html) (v3.36.0)
* [yaml-cpp](https://github.com/jbeder/yaml-cpp.git) (v0.7.0)
* [ystdlib-cpp](https://github.com/y-scope/ystdlib-cpp.git) (d1b4ae0)

### Environment

Expand Down