rbe-tebako 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.clang-format +4 -0
- data/Brewfile +23 -0
- data/CMakeLists.txt +464 -0
- data/CODE_OF_CONDUCT.adoc +128 -0
- data/CONTRIBUTING.adoc +294 -0
- data/Gemfile +31 -0
- data/INSTALLATION.adoc +233 -0
- data/LICENSE.md +33 -0
- data/README.adoc +1363 -0
- data/Rakefile +35 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/cmake/copy_dir.cmake +29 -0
- data/common.env +5 -0
- data/exe/rbe-tebako +32 -0
- data/exe/rbe-tebako-packager +77 -0
- data/include/tebako/tebako-fs.h +43 -0
- data/include/tebako/tebako-main.h +42 -0
- data/include/tebako/tebako-prism.h +51 -0
- data/lib/rbe-tebako.rb +6 -0
- data/lib/tebako/build_helpers.rb +77 -0
- data/lib/tebako/cache_manager.rb +112 -0
- data/lib/tebako/cli.rb +220 -0
- data/lib/tebako/cli_helpers.rb +165 -0
- data/lib/tebako/codegen.rb +252 -0
- data/lib/tebako/deploy_helper.rb +258 -0
- data/lib/tebako/error.rb +70 -0
- data/lib/tebako/options_manager.rb +338 -0
- data/lib/tebako/package_descriptor.rb +143 -0
- data/lib/tebako/packager/pass1_patch.rb +266 -0
- data/lib/tebako/packager/pass1a_patch.rb +55 -0
- data/lib/tebako/packager/pass2_patch.rb +140 -0
- data/lib/tebako/packager/pass2_patch_crt.rb +46 -0
- data/lib/tebako/packager/pass2msys_patch.rb +190 -0
- data/lib/tebako/packager/patch.rb +54 -0
- data/lib/tebako/packager/patch_buildsystem.rb +124 -0
- data/lib/tebako/packager/patch_helpers.rb +109 -0
- data/lib/tebako/packager/patch_libraries.rb +188 -0
- data/lib/tebako/packager/patch_literals.rb +275 -0
- data/lib/tebako/packager/patch_main.rb +93 -0
- data/lib/tebako/packager/rubygems_patch.rb +83 -0
- data/lib/tebako/packager.rb +210 -0
- data/lib/tebako/packager_lite.rb +78 -0
- data/lib/tebako/ruby_builder.rb +71 -0
- data/lib/tebako/ruby_version.rb +206 -0
- data/lib/tebako/scenario_manager.rb +251 -0
- data/lib/tebako/stripper.rb +135 -0
- data/lib/tebako/version.rb +30 -0
- data/lib/tebako.rb +34 -0
- data/src/tebako-main.cpp +168 -0
- data/tools/.gitattributes +4 -0
- data/tools/.github/workflows/build-containers.yml +190 -0
- data/tools/.github/workflows/lint.yml +41 -0
- data/tools/.github/workflows/test.yml +331 -0
- data/tools/.gitignore +1 -0
- data/tools/README.md +49 -0
- data/tools/ci-scripts/arm-brew-install.sh +43 -0
- data/tools/ci-scripts/arm-brew-setup.sh +33 -0
- data/tools/ci-scripts/level-up.sh +35 -0
- data/tools/ci-scripts/patch-fbthrift.sh +94 -0
- data/tools/ci-scripts/patch-folly.sh +551 -0
- data/tools/ci-scripts/patch-glog.sh +57 -0
- data/tools/ci-scripts/patch-zstd.sh +57 -0
- data/tools/ci-scripts/tools.sh +63 -0
- data/tools/ci-scripts/x86-brew-install.sh +43 -0
- data/tools/ci-scripts/x86-brew-setup.sh +33 -0
- data/tools/cmake-scripts/def-external-project.cmake +96 -0
- data/tools/cmake-scripts/macos-environment.cmake +91 -0
- data/tools/cmake-scripts/msys-environment.cmake +78 -0
- data/tools/cmake-scripts/setup-libarchive.cmake +93 -0
- data/tools/cmake-scripts/setup-libfmt.cmake +61 -0
- data/tools/cmake-scripts/setup-libhowardhinnerdate.cmake +55 -0
- data/tools/cmake-scripts/setup-libutfcpp.cmake +56 -0
- data/tools/cmake-scripts/version.cmake +162 -0
- data/tools/docker/alpine-3.17-dev.Dockerfile +49 -0
- data/tools/docker/tools/tools.sh +66 -0
- data/tools/docker/ubuntu-20.04-dev.Dockerfile +51 -0
- data/tools/dwarfs-test-helper/CMakeLists.txt +34 -0
- data/tools/include/pro-statvfs.h +57 -0
- data/tools/tests/cmake/CMakeLists.txt +81 -0
- data/tools/tests/setup-libfmt/CMakeLists.txt +35 -0
- data/tools/tests/setup-libhowardhinnerdate/CMakeLists.txt +35 -0
- data/tools/tests/setup-librachive/CMakeLists.txt +35 -0
- data/tools/tests/setup-libutfcpp/CMakeLists.txt +36 -0
- data/tools/tests/setup-openssl/CMakeLists.txt +36 -0
- metadata +312 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Copyright (c) 2022-2025 [Ribose Inc](https://www.ribose.com).
|
|
2
|
+
# All rights reserved.
|
|
3
|
+
# This file is a part of the Tebako project.
|
|
4
|
+
#
|
|
5
|
+
# Redistribution and use in source and binary forms, with or without
|
|
6
|
+
# modification, are permitted provided that the following conditions
|
|
7
|
+
# are met:
|
|
8
|
+
# 1. Redistributions of source code must retain the above copyright
|
|
9
|
+
# notice, this list of conditions and the following disclaimer.
|
|
10
|
+
# 2. Redistributions in binary form must reproduce the above copyright
|
|
11
|
+
# notice, this list of conditions and the following disclaimer in the
|
|
12
|
+
# documentation and/or other materials provided with the distribution.
|
|
13
|
+
#
|
|
14
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
15
|
+
# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
16
|
+
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
17
|
+
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS
|
|
18
|
+
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
19
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
20
|
+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
21
|
+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
22
|
+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
23
|
+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
24
|
+
# POSSIBILITY OF SUCH DAMAGE.
|
|
25
|
+
|
|
26
|
+
def_ext_prj_t(LIBUTFCPP "3.2.5" "14fd1b3c466814cb4c40771b7f207b61d2c7a0aa6a5e620ca05c00df27f25afd")
|
|
27
|
+
|
|
28
|
+
message(STATUS "Collecting libutfcpp - " v${LIBUTFCPP_VER} " at " ${LIBUTFCPP_SOURCE_DIR})
|
|
29
|
+
|
|
30
|
+
set(CMAKE_ARGUMENTS -DCMAKE_INSTALL_PREFIX=${DEPS}
|
|
31
|
+
-DUTF8_INSTALL=OFF
|
|
32
|
+
-DUTF8_SAMPLES=OFF
|
|
33
|
+
-DUTF8_TESTS=OFF
|
|
34
|
+
-DCMAKE_BUILD_TYPE=Release
|
|
35
|
+
-DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}
|
|
36
|
+
-DCMAKE_OSX_ARCHITECTURES=${CMAKE_OSX_ARCHITECTURES}
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
if(TEBAKO_BUILD_TARGET)
|
|
40
|
+
list(APPEND CMAKE_ARGUMENTS -DCMAKE_C_FLAGS=--target=${TEBAKO_BUILD_TARGET})
|
|
41
|
+
list(APPEND CMAKE_ARGUMENTS -DCMAKE_EXE_LINKER_FLAGS=--target=${TEBAKO_BUILD_TARGET})
|
|
42
|
+
list(APPEND CMAKE_ARGUMENTS -DCMAKE_SHARED_LINKER_FLAGS=--target=${TEBAKO_BUILD_TARGET})
|
|
43
|
+
endif(TEBAKO_BUILD_TARGET)
|
|
44
|
+
|
|
45
|
+
ExternalProject_Add(${LIBUTFCPP_PRJ}
|
|
46
|
+
PREFIX "${DEPS}"
|
|
47
|
+
URL https://github.com/nemtrif/utfcpp/archive/refs/tags/v${LIBUTFCPP_VER}.tar.gz
|
|
48
|
+
URL_HASH SHA256=${LIBUTFCPP_HASH}
|
|
49
|
+
DOWNLOAD_NO_PROGRESS true
|
|
50
|
+
UPDATE_COMMAND ""
|
|
51
|
+
INSTALL_COMMAND ${CMAKE_COMMAND} -E copy_directory ${LIBUTFCPP_SOURCE_DIR}/source ${DEPS_INCLUDE_DIR}
|
|
52
|
+
CMAKE_ARGS ${CMAKE_ARGUMENTS}
|
|
53
|
+
SOURCE_DIR ${LIBUTFCPP_SOURCE_DIR}
|
|
54
|
+
BINARY_DIR ${LIBUTFCPP_BINARY_DIR}
|
|
55
|
+
BUILD_BYPRODUCTS ${__LIBUTFCPP}
|
|
56
|
+
)
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
# Copyright (c) 2018-2025 Ribose Inc.
|
|
2
|
+
# All rights reserved.
|
|
3
|
+
#
|
|
4
|
+
# Redistribution and use in source and binary forms, with or without
|
|
5
|
+
# modification, are permitted provided that the following conditions
|
|
6
|
+
# are met:
|
|
7
|
+
# 1. Redistributions of source code must retain the above copyright
|
|
8
|
+
# notice, this list of conditions and the following disclaimer.
|
|
9
|
+
# 2. Redistributions in binary form must reproduce the above copyright
|
|
10
|
+
# notice, this list of conditions and the following disclaimer in the
|
|
11
|
+
# documentation and/or other materials provided with the distribution.
|
|
12
|
+
#
|
|
13
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
14
|
+
# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
15
|
+
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
16
|
+
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS
|
|
17
|
+
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
18
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
19
|
+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
20
|
+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
21
|
+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
22
|
+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
23
|
+
# POSSIBILITY OF SUCH DAMAGE.
|
|
24
|
+
|
|
25
|
+
# desired length of commit hash
|
|
26
|
+
set(GIT_REV_LEN 7)
|
|
27
|
+
|
|
28
|
+
# call git, store output in var (can fail)
|
|
29
|
+
macro(_git var)
|
|
30
|
+
execute_process(
|
|
31
|
+
COMMAND "${GIT_EXECUTABLE}" ${ARGN}
|
|
32
|
+
WORKING_DIRECTORY "${source_dir}"
|
|
33
|
+
RESULT_VARIABLE _git_ec
|
|
34
|
+
OUTPUT_VARIABLE ${var}
|
|
35
|
+
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
36
|
+
ERROR_QUIET
|
|
37
|
+
)
|
|
38
|
+
endmacro()
|
|
39
|
+
|
|
40
|
+
function(extract_version_info version var_prefix)
|
|
41
|
+
# extract the main components
|
|
42
|
+
# v1.9.0-3-g5b92266+1546836556
|
|
43
|
+
# v1.9.0-3-g5b92266-dirty+1546836556
|
|
44
|
+
string(REGEX MATCH "^v?([0-9]+\\.[0-9]+\\.[0-9]+)(-([0-9]+)-g([0-9a-f]+)(-dirty)?)?(\\+([0-9]+))?$" matches "${version}")
|
|
45
|
+
if (NOT matches)
|
|
46
|
+
message(FATAL_ERROR "Failed to extract version components from ${version}.")
|
|
47
|
+
endif()
|
|
48
|
+
set(${var_prefix}_VERSION "${CMAKE_MATCH_1}" PARENT_SCOPE) # 1.9.0
|
|
49
|
+
if (NOT CMAKE_MATCH_3)
|
|
50
|
+
set(CMAKE_MATCH_3 "0")
|
|
51
|
+
endif()
|
|
52
|
+
set(${var_prefix}_VERSION_NCOMMITS "${CMAKE_MATCH_3}" PARENT_SCOPE) # 3
|
|
53
|
+
if (NOT CMAKE_MATCH_4)
|
|
54
|
+
set(CMAKE_MATCH_4 "0")
|
|
55
|
+
endif()
|
|
56
|
+
set(${var_prefix}_VERSION_GIT_REV "${CMAKE_MATCH_4}" PARENT_SCOPE) # 5b92266
|
|
57
|
+
if (CMAKE_MATCH_5 STREQUAL "-dirty")
|
|
58
|
+
set(${var_prefix}_VERSION_IS_DIRTY TRUE PARENT_SCOPE)
|
|
59
|
+
else()
|
|
60
|
+
set(${var_prefix}_VERSION_IS_DIRTY FALSE PARENT_SCOPE)
|
|
61
|
+
endif()
|
|
62
|
+
# timestamp is optional, default to 0
|
|
63
|
+
if (NOT CMAKE_MATCH_7)
|
|
64
|
+
set(CMAKE_MATCH_7 "0")
|
|
65
|
+
endif()
|
|
66
|
+
set(${var_prefix}_VERSION_COMMIT_TIMESTAMP "${CMAKE_MATCH_7}" PARENT_SCOPE) # 1546836556
|
|
67
|
+
endfunction()
|
|
68
|
+
|
|
69
|
+
function(determine_version source_dir var_prefix)
|
|
70
|
+
set(has_release_tag NO)
|
|
71
|
+
set(has_version_txt NO)
|
|
72
|
+
set(local_prefix "_determine_ver")
|
|
73
|
+
# find out base version via version.txt
|
|
74
|
+
set(base_version "0.0.0")
|
|
75
|
+
if (EXISTS "${source_dir}/version.txt")
|
|
76
|
+
set(has_version_txt YES)
|
|
77
|
+
file(STRINGS "${source_dir}/version.txt" version_file)
|
|
78
|
+
extract_version_info("${version_file}" "${local_prefix}")
|
|
79
|
+
set(base_version "${${local_prefix}_VERSION}")
|
|
80
|
+
message(STATUS "Found version.txt with ${version_file}")
|
|
81
|
+
else()
|
|
82
|
+
message(STATUS "Found no version.txt.")
|
|
83
|
+
endif()
|
|
84
|
+
# for GIT_EXECUTABLE
|
|
85
|
+
find_package(Git)
|
|
86
|
+
# get a description of the version, something like:
|
|
87
|
+
# v1.9.1-0-g38ffe82 (a tagged release)
|
|
88
|
+
# v1.9.1-0-g38ffe82-dirty (a tagged release with local modifications)
|
|
89
|
+
# v1.9.0-3-g5b92266 (post-release snapshot)
|
|
90
|
+
# v1.9.0-3-g5b92266-dirty (post-release snapshot with local modifications)
|
|
91
|
+
_git(version describe --abbrev=${GIT_REV_LEN} --match "v[0-9]*" --long --dirty)
|
|
92
|
+
if (NOT _git_ec EQUAL 0)
|
|
93
|
+
# no annotated tags, fake one
|
|
94
|
+
message(STATUS "Found no annotated tags.")
|
|
95
|
+
_git(revision rev-parse --short=${GIT_REV_LEN} --verify HEAD)
|
|
96
|
+
if (_git_ec EQUAL 0)
|
|
97
|
+
set(version "v${base_version}-0-g${revision}")
|
|
98
|
+
# check if dirty (this won't detect untracked files, but should be ok)
|
|
99
|
+
_git(changes diff-index --quiet HEAD --)
|
|
100
|
+
if (NOT _git_ec EQUAL 0)
|
|
101
|
+
string(APPEND version "-dirty")
|
|
102
|
+
endif()
|
|
103
|
+
# append the commit timestamp of the most recent commit (only
|
|
104
|
+
# in non-release branches -- typically master)
|
|
105
|
+
_git(commit_timestamp show -s --format=%ct)
|
|
106
|
+
if (_git_ec EQUAL 0)
|
|
107
|
+
string(APPEND version "+${commit_timestamp}")
|
|
108
|
+
endif()
|
|
109
|
+
elseif(has_version_txt)
|
|
110
|
+
# Nothing to get from git - so use version.txt completely
|
|
111
|
+
set(version "${version_file}")
|
|
112
|
+
else()
|
|
113
|
+
# Sad case - no git, no version.txt
|
|
114
|
+
set(version "v${base_version}")
|
|
115
|
+
endif()
|
|
116
|
+
else()
|
|
117
|
+
set(has_release_tag YES)
|
|
118
|
+
message(STATUS "Found annotated tag ${version}")
|
|
119
|
+
endif()
|
|
120
|
+
extract_version_info("${version}" "${local_prefix}")
|
|
121
|
+
if ("${has_version_txt}" AND NOT ${base_version} STREQUAL ${local_prefix}_VERSION)
|
|
122
|
+
message(WARNING "Tagged version ${${local_prefix}_VERSION} doesn't match one from the version.txt: ${base_version}")
|
|
123
|
+
if (${base_version} VERSION_GREATER ${local_prefix}_VERSION)
|
|
124
|
+
set(${local_prefix}_VERSION ${base_version})
|
|
125
|
+
endif()
|
|
126
|
+
endif()
|
|
127
|
+
foreach(suffix VERSION VERSION_NCOMMITS VERSION_GIT_REV VERSION_IS_DIRTY VERSION_COMMIT_TIMESTAMP)
|
|
128
|
+
if (NOT DEFINED ${local_prefix}_${suffix})
|
|
129
|
+
message(FATAL_ERROR "Unable to determine version.")
|
|
130
|
+
endif()
|
|
131
|
+
set(${var_prefix}_${suffix} "${${local_prefix}_${suffix}}" PARENT_SCOPE)
|
|
132
|
+
message(STATUS "${var_prefix}_${suffix}: ${${local_prefix}_${suffix}}")
|
|
133
|
+
endforeach()
|
|
134
|
+
# Set VERSION_SUFFIX and VERSION_FULL. When making changes, be aware that
|
|
135
|
+
# this is used in packaging as well and will affect ordering.
|
|
136
|
+
# | state | version_full |
|
|
137
|
+
# |-----------------------------------------------------|
|
|
138
|
+
# | exact tag | 0.9.0 |
|
|
139
|
+
# | exact tag, dirty | 0.9.0+git20180604 |
|
|
140
|
+
# | after tag | 0.9.0+git20180604.1.085039f |
|
|
141
|
+
# | no tag, version.txt | 0.9.0+git20180604.2ee02af |
|
|
142
|
+
# | no tag, no version.txt| 0.0.0+git20180604.2ee02af |
|
|
143
|
+
string(TIMESTAMP date "%Y%m%d" UTC)
|
|
144
|
+
set(version_suffix "")
|
|
145
|
+
if (NOT ${local_prefix}_VERSION_NCOMMITS EQUAL 0)
|
|
146
|
+
# 0.9.0+git20150604.4.289818b
|
|
147
|
+
string(APPEND version_suffix "+git${date}.${${local_prefix}_VERSION_NCOMMITS}.${${local_prefix}_VERSION_GIT_REV}")
|
|
148
|
+
elseif ((NOT has_release_tag) AND ((NOT has_version_txt) OR ("${base_version}" STREQUAL "0.0.0") OR (NOT "${revision}" STREQUAL "")))
|
|
149
|
+
# 0.9.0+git20150604.289818b
|
|
150
|
+
string(APPEND version_suffix "+git${date}.${${local_prefix}_VERSION_GIT_REV}")
|
|
151
|
+
elseif(${local_prefix}_VERSION_IS_DIRTY)
|
|
152
|
+
# 0.9.0+git20150604
|
|
153
|
+
string(APPEND version_suffix "+git${date}")
|
|
154
|
+
endif()
|
|
155
|
+
set(version_full "${${local_prefix}_VERSION}${version_suffix}")
|
|
156
|
+
# set the results
|
|
157
|
+
set(${var_prefix}_VERSION_SUFFIX "${version_suffix}" PARENT_SCOPE)
|
|
158
|
+
set(${var_prefix}_VERSION_FULL "${version_full}" PARENT_SCOPE)
|
|
159
|
+
# for informational purposes
|
|
160
|
+
message(STATUS "${var_prefix}_VERSION_SUFFIX: ${version_suffix}")
|
|
161
|
+
message(STATUS "${var_prefix}_VERSION_FULL: ${version_full}")
|
|
162
|
+
endfunction()
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Copyright (c) 2024-2025 [Ribose Inc](https://www.ribose.com).
|
|
2
|
+
# All rights reserved.
|
|
3
|
+
# This file is a part of the Tebako project.
|
|
4
|
+
#
|
|
5
|
+
# Redistribution and use in source and binary forms, with or without
|
|
6
|
+
# modification, are permitted provided that the following conditions
|
|
7
|
+
# are met:
|
|
8
|
+
# 1. Redistributions of source code must retain the above copyright
|
|
9
|
+
# notice, this list of conditions and the following disclaimer.
|
|
10
|
+
# 2. Redistributions in binary form must reproduce the above copyright
|
|
11
|
+
# notice, this list of conditions and the following disclaimer in the
|
|
12
|
+
# documentation and/or other materials provided with the distribution.
|
|
13
|
+
#
|
|
14
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
15
|
+
# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
16
|
+
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
17
|
+
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS
|
|
18
|
+
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
19
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
20
|
+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
21
|
+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
22
|
+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
23
|
+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
24
|
+
# POSSIBILITY OF SUCH DAMAGE.
|
|
25
|
+
|
|
26
|
+
FROM alpine:3.17
|
|
27
|
+
|
|
28
|
+
ENV TZ=Etc/UTC
|
|
29
|
+
ENV ARCH=x64
|
|
30
|
+
|
|
31
|
+
RUN apk --no-cache --upgrade add build-base cmake git bash sudo \
|
|
32
|
+
autoconf boost-static boost-dev flex-dev bison make clang \
|
|
33
|
+
binutils-dev libevent-dev acl-dev sed python3 pkgconfig curl \
|
|
34
|
+
lz4-dev openssl-dev zlib-dev xz ninja zip unzip tar xz-dev \
|
|
35
|
+
libunwind-dev libdwarf-dev gflags-dev elfutils-dev gcompat \
|
|
36
|
+
libevent-static openssl-libs-static lz4-static libffi-dev \
|
|
37
|
+
zlib-static libunwind-static acl-static fmt-dev xz-static \
|
|
38
|
+
gdbm-dev yaml-dev yaml-static ncurses-dev ncurses-static \
|
|
39
|
+
readline-dev readline-static p7zip ruby-dev jemalloc-dev \
|
|
40
|
+
gettext-dev gperf brotli-dev brotli-static clang libxslt-dev \
|
|
41
|
+
libxslt-static ccache double-conversion-dev glog-dev
|
|
42
|
+
|
|
43
|
+
RUN gem install bundler
|
|
44
|
+
|
|
45
|
+
ENV CC=clang
|
|
46
|
+
ENV CXX=clang++
|
|
47
|
+
|
|
48
|
+
ENV PS1="\[\]\[\e]0;\u@\h: \w\a\]\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ \[\]"
|
|
49
|
+
CMD ["bash"]
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# Copyright (c) 2024-2025 [Ribose Inc](https://www.ribose.com).
|
|
4
|
+
# All rights reserved.
|
|
5
|
+
# This file is a part of the Tebako project.
|
|
6
|
+
#
|
|
7
|
+
# Redistribution and use in source and binary forms, with or without
|
|
8
|
+
# modification, are permitted provided that the following conditions
|
|
9
|
+
# are met:
|
|
10
|
+
# 1. Redistributions of source code must retain the above copyright
|
|
11
|
+
# notice, this list of conditions and the following disclaimer.
|
|
12
|
+
# 2. Redistributions in binary form must reproduce the above copyright
|
|
13
|
+
# notice, this list of conditions and the following disclaimer in the
|
|
14
|
+
# documentation and/or other materials provided with the distribution.
|
|
15
|
+
#
|
|
16
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
17
|
+
# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
18
|
+
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
19
|
+
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS
|
|
20
|
+
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
21
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
22
|
+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
23
|
+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
24
|
+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
25
|
+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
26
|
+
# POSSIBILITY OF SUCH DAMAGE.
|
|
27
|
+
|
|
28
|
+
set -o errexit -o pipefail -o noclobber -o nounset
|
|
29
|
+
|
|
30
|
+
: "${LOCAL_BUILDS:=/tmp/tebako}"
|
|
31
|
+
: "${CMAKE_VERSION:=3.24.4-1}"
|
|
32
|
+
: "${RUBY_VERSION:=3.3.7}"
|
|
33
|
+
: "${RUBY_INSTALL_VERSION:=0.9.3}"
|
|
34
|
+
: "${ARCH:=x64}"
|
|
35
|
+
|
|
36
|
+
install_cmake() {
|
|
37
|
+
echo "Running install_cmake for CMake version ${CMAKE_VERSION} for ${ARCH}"
|
|
38
|
+
local cmake_install="${LOCAL_BUILDS}/cmake"
|
|
39
|
+
mkdir -p "${cmake_install}"
|
|
40
|
+
pushd "${cmake_install}"
|
|
41
|
+
wget -nv "https://github.com/xpack-dev-tools/cmake-xpack/releases/download/v${CMAKE_VERSION}/xpack-cmake-${CMAKE_VERSION}-linux-${ARCH}.tar.gz"
|
|
42
|
+
tar -zxf "xpack-cmake-${CMAKE_VERSION}-linux-${ARCH}.tar.gz" --directory /usr --strip-components=1 --skip-old-files
|
|
43
|
+
popd
|
|
44
|
+
rm -rf "${cmake_install}"
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
install_ruby() {
|
|
48
|
+
echo "Running ruby_install version ${RUBY_INSTALL_VERSION} for Ruby ${RUBY_VERSION}"
|
|
49
|
+
local ruby_install=${LOCAL_BUILDS}/ruby_install
|
|
50
|
+
mkdir -p "${ruby_install}"
|
|
51
|
+
pushd "${ruby_install}"
|
|
52
|
+
wget -nv "https://github.com/postmodern/ruby-install/releases/download/v${RUBY_INSTALL_VERSION}/ruby-install-${RUBY_INSTALL_VERSION}.tar.gz"
|
|
53
|
+
tar -xzvf "ruby-install-${RUBY_INSTALL_VERSION}.tar.gz"
|
|
54
|
+
cd "ruby-install-${RUBY_INSTALL_VERSION}"
|
|
55
|
+
make install
|
|
56
|
+
ruby-install --system ruby "${RUBY_VERSION}" -- --without-gmp --disable-dtrace --disable-debug-env --disable-install-doc CC="${CC}"
|
|
57
|
+
popd
|
|
58
|
+
rm -rf "${ruby_install}"
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
DIR0=$( dirname "$0" )
|
|
62
|
+
DIR_TOOLS=$( cd "$DIR0" && pwd )
|
|
63
|
+
|
|
64
|
+
echo "Running tools.sh with args: $* DIR_TOOLS: ${DIR_TOOLS}"
|
|
65
|
+
|
|
66
|
+
"$@"
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Copyright (c) 2024-2025 [Ribose Inc](https://www.ribose.com).
|
|
2
|
+
# All rights reserved.
|
|
3
|
+
# This file is a part of the Tebako project.
|
|
4
|
+
#
|
|
5
|
+
# Redistribution and use in source and binary forms, with or without
|
|
6
|
+
# modification, are permitted provided that the following conditions
|
|
7
|
+
# are met:
|
|
8
|
+
# 1. Redistributions of source code must retain the above copyright
|
|
9
|
+
# notice, this list of conditions and the following disclaimer.
|
|
10
|
+
# 2. Redistributions in binary form must reproduce the above copyright
|
|
11
|
+
# notice, this list of conditions and the following disclaimer in the
|
|
12
|
+
# documentation and/or other materials provided with the distribution.
|
|
13
|
+
#
|
|
14
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
15
|
+
# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
16
|
+
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
17
|
+
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS
|
|
18
|
+
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
19
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
20
|
+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
21
|
+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
22
|
+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
23
|
+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
24
|
+
# POSSIBILITY OF SUCH DAMAGE.
|
|
25
|
+
|
|
26
|
+
FROM ubuntu:focal
|
|
27
|
+
|
|
28
|
+
ENV DEBIAN_FRONTEND=noninteractive
|
|
29
|
+
ENV TZ=Etc/UTC
|
|
30
|
+
ARG ARCH=x64
|
|
31
|
+
|
|
32
|
+
RUN apt-get -y update && \
|
|
33
|
+
apt-get -y install sudo wget git make pkg-config clang-12 clang++-12 \
|
|
34
|
+
autoconf binutils-dev libevent-dev acl-dev libfmt-dev libjemalloc-dev \
|
|
35
|
+
libdouble-conversion-dev libiberty-dev liblz4-dev liblzma-dev libssl-dev \
|
|
36
|
+
libboost-filesystem-dev libboost-program-options-dev libboost-system-dev \
|
|
37
|
+
libboost-iostreams-dev libboost-date-time-dev libboost-context-dev \
|
|
38
|
+
libboost-regex-dev libboost-thread-dev libbrotli-dev libunwind-dev \
|
|
39
|
+
libdwarf-dev libelf-dev libgoogle-glog-dev libffi-dev libgdbm-dev \
|
|
40
|
+
libyaml-dev libncurses-dev libreadline-dev libutfcpp-dev libstdc++-10-dev \
|
|
41
|
+
gcc-10 g++-10 curl gpg gcovr ccache
|
|
42
|
+
|
|
43
|
+
ENV CC=clang-12
|
|
44
|
+
ENV CXX=clang++-12
|
|
45
|
+
|
|
46
|
+
COPY tools /opt/tools
|
|
47
|
+
RUN /opt/tools/tools.sh install_cmake && \
|
|
48
|
+
/opt/tools/tools.sh install_ruby
|
|
49
|
+
|
|
50
|
+
ENV PS1="\[\]\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ \[\]"
|
|
51
|
+
CMD ["bash"]
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Copyright (c) 2025 [Ribose Inc](https://www.ribose.com).
|
|
2
|
+
# All rights reserved.
|
|
3
|
+
# This file is a part of the Tebako project.
|
|
4
|
+
#
|
|
5
|
+
# Redistribution and use in source and binary forms, with or without
|
|
6
|
+
# modification, are permitted provided that the following conditions
|
|
7
|
+
# are met:
|
|
8
|
+
# 1. Redistributions of source code must retain the above copyright
|
|
9
|
+
# notice, this list of conditions and the following disclaimer.
|
|
10
|
+
# 2. Redistributions in binary form must reproduce the above copyright
|
|
11
|
+
# notice, this list of conditions and the following disclaimer in the
|
|
12
|
+
# documentation and/or other materials provided with the distribution.
|
|
13
|
+
#
|
|
14
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
15
|
+
# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
16
|
+
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
17
|
+
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS
|
|
18
|
+
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
19
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
20
|
+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
21
|
+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
22
|
+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
23
|
+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
24
|
+
# POSSIBILITY OF SUCH DAMAGE.
|
|
25
|
+
|
|
26
|
+
cmake_minimum_required(VERSION 3.24.0)
|
|
27
|
+
project(setup-openssl)
|
|
28
|
+
|
|
29
|
+
include(ExternalProject)
|
|
30
|
+
|
|
31
|
+
set(GNU_BASH bash)
|
|
32
|
+
|
|
33
|
+
include(${ROOT}/tools/cmake-scripts/def-external-project.cmake)
|
|
34
|
+
include(${ROOT}/tools/cmake-scripts/setup-openssl-1.1.1.cmake)
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) 2022-2025 [Ribose Inc](https://www.ribose.com).
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* This file is a part of the Tebako project. (libdwarfs-wr)
|
|
6
|
+
*
|
|
7
|
+
* Redistribution and use in source and binary forms, with or without
|
|
8
|
+
* modification, are permitted provided that the following conditions
|
|
9
|
+
* are met:
|
|
10
|
+
* 1. Redistributions of source code must retain the above copyright
|
|
11
|
+
* notice, this list of conditions and the following disclaimer.
|
|
12
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
|
13
|
+
* notice, this list of conditions and the following disclaimer in the
|
|
14
|
+
* documentation and/or other materials provided with the distribution.
|
|
15
|
+
*
|
|
16
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
17
|
+
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
18
|
+
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
19
|
+
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS
|
|
20
|
+
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
21
|
+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
22
|
+
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
23
|
+
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
24
|
+
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
25
|
+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
26
|
+
* POSSIBILITY OF SUCH DAMAGE.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
#pragma once
|
|
31
|
+
|
|
32
|
+
#ifdef _WIN32
|
|
33
|
+
using fsblkcnt_t = unsigned long;
|
|
34
|
+
using fsfilcnt_t = unsigned long;
|
|
35
|
+
struct statvfs {
|
|
36
|
+
unsigned long f_bsize; /* Filesystem block size */
|
|
37
|
+
unsigned long f_frsize; /* Fragment size */
|
|
38
|
+
fsblkcnt_t f_blocks; /* Size of fs in f_frsize units */
|
|
39
|
+
fsblkcnt_t f_bfree; /* Number of free blocks */
|
|
40
|
+
fsblkcnt_t f_bavail; /* Number of free blocks for
|
|
41
|
+
unprivileged users */
|
|
42
|
+
fsfilcnt_t f_files; /* Number of inodes */
|
|
43
|
+
fsfilcnt_t f_ffree; /* Number of free inodes */
|
|
44
|
+
fsfilcnt_t f_favail; /* Number of free inodes for
|
|
45
|
+
unprivileged users */
|
|
46
|
+
unsigned long f_fsid; /* Filesystem ID */
|
|
47
|
+
unsigned long f_flag; /* Mount flags */
|
|
48
|
+
unsigned long f_namemax; /* Maximum filename length */
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
enum {
|
|
52
|
+
ST_RDONLY = 1, /* Mount read-only. */
|
|
53
|
+
#define ST_RDONLY ST_RDONLY
|
|
54
|
+
ST_NOSUID = 2 /* Ignore suid and sgid bits. */
|
|
55
|
+
#define ST_NOSUID ST_NOSUID
|
|
56
|
+
};
|
|
57
|
+
#endif
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# Copyright (c) 2024-2025 [Ribose Inc](https://www.ribose.com).
|
|
2
|
+
# All rights reserved.
|
|
3
|
+
# This file is a part of the Tebako project.
|
|
4
|
+
#
|
|
5
|
+
# Redistribution and use in source and binary forms, with or without
|
|
6
|
+
# modification, are permitted provided that the following conditions
|
|
7
|
+
# are met:
|
|
8
|
+
# 1. Redistributions of source code must retain the above copyright
|
|
9
|
+
# notice, this list of conditions and the following disclaimer.
|
|
10
|
+
# 2. Redistributions in binary form must reproduce the above copyright
|
|
11
|
+
# notice, this list of conditions and the following disclaimer in the
|
|
12
|
+
# documentation and/or other materials provided with the distribution.
|
|
13
|
+
#
|
|
14
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
15
|
+
# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
16
|
+
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
17
|
+
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS
|
|
18
|
+
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
19
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
20
|
+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
21
|
+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
22
|
+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
23
|
+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
24
|
+
# POSSIBILITY OF SUCH DAMAGE.
|
|
25
|
+
|
|
26
|
+
cmake_minimum_required(VERSION 3.15)
|
|
27
|
+
project(cmake-tests)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# Adjust the path to where your macos-environment.cmake is located
|
|
31
|
+
include("${CMAKE_CURRENT_LIST_DIR}/../../cmake-scripts/macos-environment.cmake")
|
|
32
|
+
|
|
33
|
+
# Function to check if a variable is set (not empty)
|
|
34
|
+
function(check_variable_set VAR_NAME)
|
|
35
|
+
if(NOT ${VAR_NAME})
|
|
36
|
+
message(FATAL_ERROR "${VAR_NAME} is not set.")
|
|
37
|
+
endif()
|
|
38
|
+
endfunction()
|
|
39
|
+
|
|
40
|
+
# Function to check if a file/directory exists at the path specified by a variable
|
|
41
|
+
function(check_exists VAR_NAME TYPE)
|
|
42
|
+
if(NOT EXISTS "${${VAR_NAME}}")
|
|
43
|
+
if(TYPE STREQUAL "FILE")
|
|
44
|
+
message(FATAL_ERROR "The file specified in ${VAR_NAME} does not exist: ${${VAR_NAME}}")
|
|
45
|
+
elseif(TYPE STREQUAL "DIRECTORY")
|
|
46
|
+
message(FATAL_ERROR "The directory specified in ${VAR_NAME} does not exist: ${${VAR_NAME}}")
|
|
47
|
+
endif()
|
|
48
|
+
endif()
|
|
49
|
+
endfunction()
|
|
50
|
+
|
|
51
|
+
message(STATUS "BREW_PREFIX: ${BREW_PREFIX}")
|
|
52
|
+
check_variable_set(BREW_PREFIX)
|
|
53
|
+
check_exists(BREW_PREFIX DIRECTORY)
|
|
54
|
+
|
|
55
|
+
message(STATUS "OPENSSL_ROOT_DIR: ${OPENSSL_ROOT_DIR}")
|
|
56
|
+
check_variable_set(OPENSSL_ROOT_DIR)
|
|
57
|
+
check_exists(OPENSSL_ROOT_DIR DIRECTORY)
|
|
58
|
+
|
|
59
|
+
message(STATUS "CMAKE_PREFIX_PATH: ${CMAKE_PREFIX_PATH}")
|
|
60
|
+
check_variable_set(CMAKE_PREFIX_PATH)
|
|
61
|
+
check_exists(CMAKE_PREFIX_PATH DIRECTORY)
|
|
62
|
+
|
|
63
|
+
message(STATUS "BREW_BISON_PREFIX: ${BREW_BISON_PREFIX}")
|
|
64
|
+
check_variable_set(BREW_BISON_PREFIX)
|
|
65
|
+
check_exists(BREW_BISON_PREFIX DIRECTORY)
|
|
66
|
+
|
|
67
|
+
message(STATUS "BREW_FLEX_PREFIX: ${BREW_FLEX_PREFIX}")
|
|
68
|
+
check_variable_set(BREW_FLEX_PREFIX)
|
|
69
|
+
check_exists(BREW_FLEX_PREFIX DIRECTORY)
|
|
70
|
+
|
|
71
|
+
message(STATUS "FLEX_EXECUTABLE: ${FLEX_EXECUTABLE}")
|
|
72
|
+
check_variable_set(FLEX_EXECUTABLE)
|
|
73
|
+
check_exists(FLEX_EXECUTABLE FILE)
|
|
74
|
+
|
|
75
|
+
message(STATUS "BREW_BASH_PREFIX: ${BREW_BASH_PREFIX}")
|
|
76
|
+
check_variable_set(BREW_BASH_PREFIX)
|
|
77
|
+
check_exists(BREW_BASH_PREFIX DIRECTORY)
|
|
78
|
+
|
|
79
|
+
message(STATUS "GNU_BASH: ${GNU_BASH}")
|
|
80
|
+
check_variable_set(GNU_BASH)
|
|
81
|
+
check_exists(GNU_BASH FILE)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Copyright (c) 2024-2025 [Ribose Inc](https://www.ribose.com).
|
|
2
|
+
# All rights reserved.
|
|
3
|
+
# This file is a part of the Tebako project.
|
|
4
|
+
#
|
|
5
|
+
# Redistribution and use in source and binary forms, with or without
|
|
6
|
+
# modification, are permitted provided that the following conditions
|
|
7
|
+
# are met:
|
|
8
|
+
# 1. Redistributions of source code must retain the above copyright
|
|
9
|
+
# notice, this list of conditions and the following disclaimer.
|
|
10
|
+
# 2. Redistributions in binary form must reproduce the above copyright
|
|
11
|
+
# notice, this list of conditions and the following disclaimer in the
|
|
12
|
+
# documentation and/or other materials provided with the distribution.
|
|
13
|
+
#
|
|
14
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
15
|
+
# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
16
|
+
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
17
|
+
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS
|
|
18
|
+
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
19
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
20
|
+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
21
|
+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
22
|
+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
23
|
+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
24
|
+
# POSSIBILITY OF SUCH DAMAGE.
|
|
25
|
+
|
|
26
|
+
cmake_minimum_required(VERSION 3.24.0)
|
|
27
|
+
project(setup-libfmt-test)
|
|
28
|
+
|
|
29
|
+
include(ExternalProject)
|
|
30
|
+
|
|
31
|
+
set(ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../..)
|
|
32
|
+
set(DEPS ${CMAKE_CURRENT_BINARY_DIR}/deps)
|
|
33
|
+
|
|
34
|
+
include(${ROOT}/cmake-scripts/def-external-project.cmake)
|
|
35
|
+
include(${ROOT}/cmake-scripts/setup-libfmt.cmake)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Copyright (c) 2024-2025 [Ribose Inc](https://www.ribose.com).
|
|
2
|
+
# All rights reserved.
|
|
3
|
+
# This file is a part of the Tebako project.
|
|
4
|
+
#
|
|
5
|
+
# Redistribution and use in source and binary forms, with or without
|
|
6
|
+
# modification, are permitted provided that the following conditions
|
|
7
|
+
# are met:
|
|
8
|
+
# 1. Redistributions of source code must retain the above copyright
|
|
9
|
+
# notice, this list of conditions and the following disclaimer.
|
|
10
|
+
# 2. Redistributions in binary form must reproduce the above copyright
|
|
11
|
+
# notice, this list of conditions and the following disclaimer in the
|
|
12
|
+
# documentation and/or other materials provided with the distribution.
|
|
13
|
+
#
|
|
14
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
15
|
+
# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
16
|
+
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
17
|
+
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS
|
|
18
|
+
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
19
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
20
|
+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
21
|
+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
22
|
+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
23
|
+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
24
|
+
# POSSIBILITY OF SUCH DAMAGE.
|
|
25
|
+
|
|
26
|
+
cmake_minimum_required(VERSION 3.24.0)
|
|
27
|
+
project(setup-libhowardhinnerdate-test)
|
|
28
|
+
|
|
29
|
+
include(ExternalProject)
|
|
30
|
+
|
|
31
|
+
set(ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../..)
|
|
32
|
+
set(DEPS ${CMAKE_CURRENT_BINARY_DIR}/deps)
|
|
33
|
+
|
|
34
|
+
include(${ROOT}/cmake-scripts/def-external-project.cmake)
|
|
35
|
+
include(${ROOT}/cmake-scripts/setup-libhowardhinnerdate.cmake)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Copyright (c) 2024-2025
|
|
2
|
+
# All rights reserved.
|
|
3
|
+
# This file is a part of the Tebako project.
|
|
4
|
+
#
|
|
5
|
+
# Redistribution and use in source and binary forms, with or without
|
|
6
|
+
# modification, are permitted provided that the following conditions
|
|
7
|
+
# are met:
|
|
8
|
+
# 1. Redistributions of source code must retain the above copyright
|
|
9
|
+
# notice, this list of conditions and the following disclaimer.
|
|
10
|
+
# 2. Redistributions in binary form must reproduce the above copyright
|
|
11
|
+
# notice, this list of conditions and the following disclaimer in the
|
|
12
|
+
# documentation and/or other materials provided with the distribution.
|
|
13
|
+
#
|
|
14
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
15
|
+
# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
16
|
+
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
17
|
+
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS
|
|
18
|
+
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
19
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
20
|
+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
21
|
+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
22
|
+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
23
|
+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
24
|
+
# POSSIBILITY OF SUCH DAMAGE.
|
|
25
|
+
|
|
26
|
+
cmake_minimum_required(VERSION 3.24.0)
|
|
27
|
+
project(setup-librachive-test)
|
|
28
|
+
|
|
29
|
+
include(ExternalProject)
|
|
30
|
+
|
|
31
|
+
set(ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../..)
|
|
32
|
+
set(DEPS ${CMAKE_CURRENT_BINARY_DIR}/deps)
|
|
33
|
+
|
|
34
|
+
include(${ROOT}/cmake-scripts/def-external-project.cmake)
|
|
35
|
+
include(${ROOT}/cmake-scripts/setup-libarchive.cmake)
|