diff --git a/BUILD b/BUILD index ffda439..b1c9667 100644 --- a/BUILD +++ b/BUILD @@ -11,8 +11,7 @@ # SPDX-License-Identifier: Apache-2.0 # ******************************************************************************* load("@score_docs_as_code//:docs.bzl", "docs") -load("@score_tooling//:defs.bzl", "copyright_checker", "dash_license_checker", "setup_starpls", "use_format_targets") -load("//:project_config.bzl", "PROJECT_CONFIG") +load("@score_tooling//:defs.bzl", "copyright_checker", "setup_starpls", "use_format_targets") setup_starpls( name = "starpls_server", diff --git a/MODULE.bazel b/MODULE.bazel index 62821f8..f048bc3 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -83,24 +83,6 @@ git_override( use_repo(gcc, "gcc_toolchain", "gcc_toolchain_gcc") -bazel_dep(name = "download_utils", version = "1.0.1") - -download_archive = use_repo_rule("@download_utils//download/archive:defs.bzl", "download_archive") - -download_archive( - name = "json_schema_validator", - build = "//third_party/json_schema_validator:json_schema_validator.BUILD", - strip_prefix = "json-schema-validator-2.1.0", - urls = ["https://github.com/pboettch/json-schema-validator/archive/refs/tags/2.1.0.tar.gz"], -) - -download_archive( - name = "jsonschema", - build = "//third_party/jsonschema:jsonschema.BUILD", - strip_prefix = "jsonschema-4.23.0", - urls = ["https://github.com/python-jsonschema/jsonschema/archive/refs/tags/v4.23.0.tar.gz"], -) - toolchains_qnx = use_extension("@score_toolchains_qnx//:extensions.bzl", "toolchains_qnx", dev_dependency = True) toolchains_qnx.sdp( sha256 = "f2e0cb21c6baddbcb65f6a70610ce498e7685de8ea2e0f1648f01b327f6bac63", @@ -124,23 +106,7 @@ use_repo(toolchains_qnx, "toolchains_qnx_ifs") # C++ dependencies bazel_dep(name = "googletest", version = "1.17.0.bcr.1") -bazel_dep(name = "google_benchmark", version = "1.9.4") bazel_dep(name = "rapidjson", version = "1.1.0") -bazel_dep(name = "jemalloc", version = "5.3.0-bcr.alpha.4") -bazel_dep(name = "libatomic", version = "1.0") -local_path_override( - module_name = "libatomic", - path = "third_party/libatomic", -) - -bazel_dep(name = "rules_boost", repo_name = "com_github_nelhage_rules_boost") -archive_override( - module_name = "rules_boost", - strip_prefix = "rules_boost-master", - urls = ["https://github.com/nelhage/rules_boost/archive/refs/heads/master.tar.gz"], -) - -bazel_dep(name = "boost.program_options", version = "1.87.0") bazel_dep(name = "score_communication", version = "0.1.2") git_override( module_name = "score_communication", @@ -148,8 +114,6 @@ git_override( remote = "https://github.com/eclipse-score/communication.git", ) -bazel_dep(name = "nlohmann_json", version = "3.11.3") -bazel_dep(name = "rules_doxygen", version = "2.5.0") bazel_dep(name = "score_baselibs", version = "0.2.0") git_override( module_name = "score_baselibs", diff --git a/score/mw/log/detail/data_router/shared_memory/BUILD b/score/mw/log/detail/data_router/shared_memory/BUILD index d59be1d..1b5a250 100644 --- a/score/mw/log/detail/data_router/shared_memory/BUILD +++ b/score/mw/log/detail/data_router/shared_memory/BUILD @@ -129,7 +129,6 @@ cc_test( ":reader", ":writer", "//score/mw/log/test/console_logging_environment", - "//third_party/libatomic", "@googletest//:gtest_main", "@score_baselibs//score/os/mocklib:fcntl_mock", "@score_baselibs//score/os/mocklib:mman_mock", diff --git a/score/mw/log/detail/wait_free_producer_queue/BUILD b/score/mw/log/detail/wait_free_producer_queue/BUILD index 54f7831..730a712 100644 --- a/score/mw/log/detail/wait_free_producer_queue/BUILD +++ b/score/mw/log/detail/wait_free_producer_queue/BUILD @@ -108,7 +108,6 @@ cc_test( "alternating_writer", "read_only_reader", "//score/mw/log/test/console_logging_environment", - "//third_party/libatomic", "@googletest//:gtest_main", ], ) diff --git a/third_party/dependencies.bzl b/third_party/dependencies.bzl deleted file mode 100644 index 27137bd..0000000 --- a/third_party/dependencies.bzl +++ /dev/null @@ -1,18 +0,0 @@ -"""Third-party dependencies configuration for eclipse-score-logging. - -This module manages external dependencies for the eclipse-score-logging project. -Currently, only essential dependencies required for the minimal logging toolchain -are loaded and initialized. - -Active dependencies: - - libatomic: Atomic operations library support - -Usage: - Load this module in your WORKSPACE file and call third_party_deps() to - initialize all third-party dependencies. -""" - -load("@//third_party/libatomic:libatomic.bzl", "libatomic") - -def third_party_deps(): - libatomic() diff --git a/third_party/host_gcc/BUILD b/third_party/host_gcc/BUILD deleted file mode 100644 index e69de29..0000000 diff --git a/third_party/host_gcc/host_gcc.MODULE.bazel b/third_party/host_gcc/host_gcc.MODULE.bazel deleted file mode 100644 index 807312d..0000000 --- a/third_party/host_gcc/host_gcc.MODULE.bazel +++ /dev/null @@ -1,28 +0,0 @@ -bazel_dep(name = "score_toolchains_gcc", version = "0.4", dev_dependency = True) - -gcc = use_extension("@score_toolchains_gcc//extentions:gcc.bzl", "gcc", dev_dependency = True) -gcc.toolchain( - sha256 = "457f5f20f57528033cb840d708b507050d711ae93e009388847e113b11bf3600", - strip_prefix = "x86_64-unknown-linux-gnu", - url = "https://github.com/eclipse-score/toolchains_gcc_packages/releases/download/0.0.1/x86_64-unknown-linux-gnu_gcc12.tar.gz", -) - -# TODO to be moved to toolchain. https://github.com/eclipse-score/toolchains_gcc/issues/11 -gcc.extra_features( - features = [ - "minimal_warnings", - "treat_warnings_as_errors", - ], -) -gcc.warning_flags( - minimal_warnings = [ - "-Wall", - "-Wno-error=deprecated-declarations", - ], - strict_warnings = [ - "-Wextra", - "-Wpedantic", - ], - treat_warnings_as_errors = ["-Werror"], -) -use_repo(gcc, "gcc_toolchain", "gcc_toolchain_gcc") diff --git a/third_party/host_llvm/BUILD b/third_party/host_llvm/BUILD deleted file mode 100644 index e69de29..0000000 diff --git a/third_party/host_llvm/host_llvm.MODULE.bazel b/third_party/host_llvm/host_llvm.MODULE.bazel deleted file mode 100644 index 2f6a772..0000000 --- a/third_party/host_llvm/host_llvm.MODULE.bazel +++ /dev/null @@ -1,25 +0,0 @@ -bazel_dep(name = "toolchains_llvm", version = "1.5.0", dev_dependency = True) - -llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm", dev_dependency = True) -llvm.toolchain( - compile_flags = {"": [ - "-march=nehalem", - "-ffp-model=strict", - # Security - "-U_FORTIFY_SOURCE", # https://github.com/google/sanitizers/issues/247 - "-fstack-protector", - "-fno-omit-frame-pointer", - # Diagnostics - "-fcolor-diagnostics", - "-Wno-deprecated-declarations", - "-Wno-error=self-assign-overloaded", - "-Wthread-safety", - ]}, - cxx_standard = {"": "c++17"}, - link_libs = {"": [ - "-lrt", - ]}, - llvm_version = "16.0.0", - stdlib = {"": "dynamic-stdc++"}, -) -use_repo(llvm, "llvm_toolchain") diff --git a/third_party/json_schema_validator/BUILD b/third_party/json_schema_validator/BUILD deleted file mode 100644 index 6bdeed2..0000000 --- a/third_party/json_schema_validator/BUILD +++ /dev/null @@ -1,12 +0,0 @@ -# ******************************************************************************* -# Copyright (c) 2025 Contributors to the Eclipse Foundation -# -# See the NOTICE file(s) distributed with this work for additional -# information regarding copyright ownership. -# -# This program and the accompanying materials are made available under the -# terms of the Apache License Version 2.0 which is available at -# https://www.apache.org/licenses/LICENSE-2.0 -# -# SPDX-License-Identifier: Apache-2.0 -# ******************************************************************************* diff --git a/third_party/json_schema_validator/json_schema_validator.BUILD b/third_party/json_schema_validator/json_schema_validator.BUILD deleted file mode 100644 index b9f6964..0000000 --- a/third_party/json_schema_validator/json_schema_validator.BUILD +++ /dev/null @@ -1,33 +0,0 @@ -# ******************************************************************************* -# Copyright (c) 2025 Contributors to the Eclipse Foundation -# -# See the NOTICE file(s) distributed with this work for additional -# information regarding copyright ownership. -# -# This program and the accompanying materials are made available under the -# terms of the Apache License Version 2.0 which is available at -# https://www.apache.org/licenses/LICENSE-2.0 -# -# SPDX-License-Identifier: Apache-2.0 -# ******************************************************************************* -package( - default_visibility = ["//visibility:public"], -) - -cc_library( - name = "json_schema_validator_lib", - srcs = glob(["src/*"]), - hdrs = ["src/nlohmann/json-schema.hpp"], - features = [ - "third_party_warnings", - "-treat_warnings_as_errors", - ], - includes = ["src"], - deps = ["@nlohmann_json//:json"], -) - -cc_binary( - name = "json_schema_validator", - srcs = ["app/json-schema-validate.cpp"], - deps = [":json_schema_validator_lib"], -) diff --git a/third_party/jsonschema/BUILD b/third_party/jsonschema/BUILD deleted file mode 100644 index 23dbd4a..0000000 --- a/third_party/jsonschema/BUILD +++ /dev/null @@ -1,17 +0,0 @@ -# ******************************************************************************* -# Copyright (c) 2025 Contributors to the Eclipse Foundation -# -# See the NOTICE file(s) distributed with this work for additional -# information regarding copyright ownership. -# -# This program and the accompanying materials are made available under the -# terms of the Apache License Version 2.0 which is available at -# https://www.apache.org/licenses/LICENSE-2.0 -# -# SPDX-License-Identifier: Apache-2.0 -# ******************************************************************************* -alias( - name = "jsonschema", - actual = "@jsonschema//:lib", - visibility = ["//visibility:public"], -) diff --git a/third_party/jsonschema/jsonschema.BUILD b/third_party/jsonschema/jsonschema.BUILD deleted file mode 100644 index 3bacc56..0000000 --- a/third_party/jsonschema/jsonschema.BUILD +++ /dev/null @@ -1,20 +0,0 @@ -# ******************************************************************************* -# Copyright (c) 2025 Contributors to the Eclipse Foundation -# -# See the NOTICE file(s) distributed with this work for additional -# information regarding copyright ownership. -# -# This program and the accompanying materials are made available under the -# terms of the Apache License Version 2.0 which is available at -# https://www.apache.org/licenses/LICENSE-2.0 -# -# SPDX-License-Identifier: Apache-2.0 -# ******************************************************************************* -py_library( - name = "lib", - srcs = glob([ - "jsonschema/**/*.py", - ]), - imports = ["."], - visibility = ["//visibility:public"], -) diff --git a/third_party/libatomic/BUILD b/third_party/libatomic/BUILD deleted file mode 100644 index 10a9804..0000000 --- a/third_party/libatomic/BUILD +++ /dev/null @@ -1,9 +0,0 @@ -cc_library( - name = "libatomic", - linkopts = select({ - "@platforms//os:linux": ["-latomic"], # Link actual system libatomic - "@platforms//os:qnx": ["-latomic"], # QNX also needs libatomic - "//conditions:default": [], # Other platforms don't need it - }), - visibility = ["//visibility:public"], -) diff --git a/third_party/libatomic/MODULE.bazel b/third_party/libatomic/MODULE.bazel deleted file mode 100644 index 10c3aaf..0000000 --- a/third_party/libatomic/MODULE.bazel +++ /dev/null @@ -1,4 +0,0 @@ -module( - name = "libatomic", - version = "1.0", -) diff --git a/third_party/libatomic/libatomic.BUILD b/third_party/libatomic/libatomic.BUILD deleted file mode 100644 index cdb20e2..0000000 --- a/third_party/libatomic/libatomic.BUILD +++ /dev/null @@ -1,23 +0,0 @@ -package(default_visibility = ["//visibility:public"]) - -libatomic_libs = [ - "usr/lib/x86_64-linux-gnu/libatomic.so.1", - "usr/lib/x86_64-linux-gnu/libatomic.so.1.2.0", -] - -cc_library( - name = "libatomic", - srcs = libatomic_libs, - visibility = [ - "//visibility:public", - ], -) - -# A dedicated filegroup that exposes only the shared libraries (without headers). -# This is used to provide .so files to packaging tools (e.g., for .deb creation), -# which do not require headers or full C++ dependency metadata. -# It simplifies packaging logic and avoids unintentionally pulling in development files. -filegroup( - name = "libatomic_solibs", - srcs = libatomic_libs, -) diff --git a/third_party/libatomic/libatomic.bzl b/third_party/libatomic/libatomic.bzl deleted file mode 100644 index 4cb1c3c..0000000 --- a/third_party/libatomic/libatomic.bzl +++ /dev/null @@ -1,14 +0,0 @@ -load("@//third_party:codecraft_remotes.bzl", "CC_UBUNTU_ARCHIVE") -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") -load("@swh_bazel_rules//artifactory:artifactory_deb.bzl", "artifactory_deb_group") - -def libatomic(): - maybe( - artifactory_deb_group, - name = "libatomic", - build_file = "//third_party/libatomic:libatomic.BUILD", - repo = CC_UBUNTU_ARCHIVE, - package_group = { - "pool/main/g/gcc-10//libatomic1_10.5.0-1ubuntu1~20.04_amd64.deb": "29b19adba1cb79b0cbf905ee21cc68d3a88eadcd56c39d1a0b29c5a523b60557", - }, - )