Skip to content

Commit cf44556

Browse files
committed
checkpoint: working cryptoki state
1 parent da2ccdf commit cf44556

2 files changed

Lines changed: 511 additions & 2256 deletions

File tree

MODULE.bazel

Lines changed: 2 additions & 225 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ module(
1515
version = "0.1.0",
1616
)
1717

18-
bazel_dep(name = "rules_python", version = "2.1.0")
18+
bazel_dep(name = "rules_python", version = "2.0.1")
1919
single_version_override(
2020
module_name = "rules_python",
2121
version = "1.5.4",
2222
)
23+
2324
PYTHON_VERSION = "3.12"
2425

2526
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
@@ -234,231 +235,7 @@ rust.toolchain(
234235
versions = ["nightly/2024-04-16"],
235236
)
236237
use_repo(rust, "rust_toolchains")
237-
<<<<<<< HEAD
238-
<<<<<<< HEAD
239-
240-
# Foreign CC rules for building projects with external build systems (make, cmake, etc.)
241-
bazel_dep(name = "rules_foreign_cc", version = "0.15.1")
242-
243-
# HTTP archive rule for downloading and extracting source code from the web
244-
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
245-
246-
# ===============================================================================
247-
# T O O L C H A I N S
248-
# ===============================================================================
249-
250-
# *******************************************************************************
251-
# Constraint values for specifying platforms and toolchains
252-
# *******************************************************************************
253-
bazel_dep(name = "platforms", version = "1.1.0")
254-
bazel_dep(name = "score_bazel_platforms", version = "0.1.2")
255-
256-
# *******************************************************************************
257-
# C++ Rules for Bazel
258-
# *******************************************************************************
259-
bazel_dep(name = "rules_cc", version = "0.2.20")
260-
261-
# *******************************************************************************
262-
# Set dependency to Bazel C/C++ Toolchain repository
263-
# *******************************************************************************
264-
bazel_dep(
265-
name = "score_bazel_cpp_toolchains",
266-
version = "0.3.1",
267-
dev_dependency = True,
268-
)
269-
270-
# *******************************************************************************
271-
# Init GCC extention
272-
# Legend:
273-
# * CPU: Control Processor Unit
274-
# * OS: Operating System
275-
# * V: Version (GCC or SDP)
276-
# * ES: Runtime-EcoSystem
277-
#
278-
# *******************************************************************************
279-
gcc = use_extension("@score_bazel_cpp_toolchains//extensions:gcc.bzl", "gcc", dev_dependency = True)
280-
281-
# *******************************************************************************
282-
# Setting default GCC (CPU:x86_64|OS:Linux|V:12.2.0|ES:posix)
283-
# *******************************************************************************
284-
gcc.toolchain(
285-
name = "score_gcc_x86_64_toolchain",
286-
target_cpu = "x86_64",
287-
target_os = "linux",
288-
use_default_package = True,
289-
version = "12.2.0",
290-
)
291-
292-
# *******************************************************************************
293-
# Setting default GCC (CPU:aarch64|OS:Linux|V:12.2.0|ES:posix)
294-
# *******************************************************************************
295-
gcc.toolchain(
296-
name = "score_gcc_aarch64_toolchain",
297-
target_cpu = "aarch64",
298-
target_os = "linux",
299-
use_default_package = True,
300-
version = "12.2.0",
301-
)
302-
303-
# *******************************************************************************
304-
# Setting GCC (CPU:x86_64|OS:QNX|version(sdp):8.0.0|ES:posix)
305-
# *******************************************************************************
306-
gcc.toolchain(
307-
name = "score_qcc_x86_64_toolchain",
308-
sdp_version = "8.0.0",
309-
target_cpu = "x86_64",
310-
target_os = "qnx",
311-
use_default_package = True,
312-
version = "12.2.0",
313-
)
314-
315-
# *******************************************************************************
316-
# Setting GCC (CPU:aarch64|OS:QNX|version(sdp):8.0.0|ES:posix)
317-
# *******************************************************************************
318-
gcc.toolchain(
319-
name = "score_qcc_aarch64_toolchain",
320-
sdp_version = "8.0.0",
321-
target_cpu = "aarch64",
322-
target_os = "qnx",
323-
use_default_package = True,
324-
version = "12.2.0",
325-
)
326-
use_repo(
327-
gcc,
328-
"score_gcc_aarch64_toolchain",
329-
"score_gcc_x86_64_toolchain",
330-
"score_qcc_aarch64_toolchain",
331-
"score_qcc_x86_64_toolchain",
332-
)
333-
334-
# *******************************************************************************
335-
# Rust toolchains
336-
# *******************************************************************************
337-
338-
bazel_dep(name = "rules_rust", version = "0.71.3")
339-
340-
bazel_dep(name = "score_toolchains_rust", version = "0.9.1", dev_dependency = True)
341-
342-
# ===============================================================================
343-
# T H I R D - P A R T Y D E P E N D E N C I E S
344-
# ===============================================================================
345-
346-
# *******************************************************************************
347-
# gRPC
348-
# Intended to be replaced with score_communication transporting a size limited
349-
# FlatBuffers in the future
350-
# *******************************************************************************
351-
bazel_dep(name = "grpc", version = "1.81.1")
352-
353-
# Patch grpc and bundled abseil-cpp to not link -lpthread on QNX (pthread is built into libc on QNX)
354-
archive_override(
355-
module_name = "grpc",
356-
patch_strip = 1,
357-
patches = ["//third_party/grpc:grpc_qnx_pthread.patch"],
358-
strip_prefix = "grpc-1.76.0",
359-
urls = ["https://github.com/grpc/grpc/archive/refs/tags/v1.76.0.tar.gz"],
360-
)
361-
362-
# Abseil-cpp dependency (pulled by grpc)
363-
bazel_dep(name = "abseil-cpp", version = "20260526.0")
364-
365-
# Patch abseil-cpp to not link -lpthread on QNX (pthread is built into libc on QNX)
366-
archive_override(
367-
module_name = "abseil-cpp",
368-
patch_strip = 1,
369-
patches = ["//third_party/grpc:abseil_qnx_pthread.patch"],
370-
strip_prefix = "abseil-cpp-20250512.1",
371-
urls = ["https://github.com/abseil/abseil-cpp/archive/refs/tags/20250512.1.tar.gz"],
372-
)
373-
374-
# Protobuf dependency (pulled by grpc)
375-
bazel_dep(name = "protobuf", version = "35.1")
376-
377-
# Patch protobuf to not link -lpthread on QNX (pthread is built into libc on QNX)
378-
archive_override(
379-
module_name = "protobuf",
380-
patch_strip = 1,
381-
patches = ["//third_party/grpc:protobuf_qnx_pthread.patch"],
382-
strip_prefix = "protobuf-31.1",
383-
urls = ["https://github.com/protocolbuffers/protobuf/archive/refs/tags/v31.1.tar.gz"],
384-
)
385-
386-
single_version_override(
387-
module_name = "rules_swift",
388-
version = "3.1.2", # resolve dependency conflict of grpc and flatbuffers
389-
)
390-
391-
# FlatBuffers
392-
bazel_dep(name = "flatbuffers", version = "25.12.19")
393-
394-
# *******************************************************************************
395-
# OpenSSL
396-
# *******************************************************************************
397-
398-
http_archive(
399-
name = "openssl_source",
400-
build_file_content = """
401-
filegroup(
402-
name = "all",
403-
srcs = glob(["**"]),
404-
visibility = ["//visibility:public"],
405-
)
406-
""",
407-
sha256 = "b1bfedcd5b289ff22aee87c9d600f515767ebf45f77168cb6d64f231f518a82e",
408-
strip_prefix = "openssl-3.6.1",
409-
urls = ["https://www.openssl.org/source/openssl-3.6.1.tar.gz"],
410-
)
411-
412-
# *******************************************************************************
413-
# SoftHSMv2
414-
# *******************************************************************************
415-
416-
http_archive(
417-
name = "softhsm_source",
418-
build_file_content = """
419-
filegroup(
420-
name = "all",
421-
srcs = glob(["**"]),
422-
visibility = ["//visibility:public"],
423-
)
424-
""",
425-
patch_args = ["-p1"],
426-
patches = ["//third_party/soft_hsm:softhsm_qnx_dl.patch"],
427-
sha256 = "be14a5820ec457eac5154462ffae51ba5d8a643f6760514d4b4b83a77be91573",
428-
strip_prefix = "SoftHSMv2-2.7.0",
429-
urls = ["https://github.com/softhsm/SoftHSMv2/archive/refs/tags/2.7.0.tar.gz"],
430-
)
431-
432-
# ===============================================================================
433-
# S C O R E M O D U L E S
434-
# ===============================================================================
435-
436-
# tooling
437-
bazel_dep(name = "score_tooling", version = "1.1.2")
438-
bazel_dep(name = "aspect_rules_lint", version = "1.5.3")
439-
bazel_dep(name = "buildifier_prebuilt", version = "8.5.1.2")
440-
441-
#docs-as-code
442-
bazel_dep(name = "score_docs_as_code", version = "4.6.0")
443-
444-
#process
445-
bazel_dep(name = "score_process", version = "1.6.0")
446-
bazel_dep(name = "score_platform", version = "0.6.0")
447-
448-
# GoogleTest
449-
bazel_dep(name = "googletest", version = "1.17.0.bcr.2")
450-
451-
# s-core baselibs
452-
bazel_dep(name = "score_baselibs", version = "0.2.7")
453-
454-
# Integration testing
455-
bazel_dep(name = "score_itf", version = "0.1.0")
456-
# Register the Rust toolchains
457-
=======
458-
>>>>>>> 8c17d44 (Initial Cryptoki integration into ETAS)
459-
=======
460238

461-
>>>>>>> b41b736 (Fix BUILD alias conflict and apply codebase formatting)
462239
register_toolchains("@rust_toolchains//:all")
463240

464241
bazel_dep(name = "rules_shell", version = "0.8.0")

0 commit comments

Comments
 (0)