updated build system
This commit is contained in:
1 parent
41fe87d90a
commit
98e64770fb
26 files changed
+472
-26
No files matched your search
@@ -15,6 +15,7 @@ binutils_version
|
|||||||
bitcoinsystem
|
bitcoinsystem
|
||||||
boost_asio_has_std_string_view
|
boost_asio_has_std_string_view
|
||||||
bugprone
|
bugprone
|
||||||
|
cabi
|
||||||
cflags
|
cflags
|
||||||
chrono
|
chrono
|
||||||
clsid
|
clsid
|
||||||
@@ -139,6 +140,7 @@ hwnd
|
|||||||
icudata
|
icudata
|
||||||
icui18n
|
icui18n
|
||||||
icuuc
|
icuuc
|
||||||
|
indexd
|
||||||
inproc
|
inproc
|
||||||
iostreams
|
iostreams
|
||||||
iphlpapi
|
iphlpapi
|
||||||
|
|||||||
+2
-1
@@ -1,5 +1,6 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
.cache/
|
.cache/
|
||||||
|
.flutter-companion
|
||||||
.vs/
|
.vs/
|
||||||
Info.plist
|
Info.plist
|
||||||
build*/
|
build*/
|
||||||
@@ -11,7 +12,7 @@ override.sh
|
|||||||
repertory.iss
|
repertory.iss
|
||||||
scripts/cleanup.cmd
|
scripts/cleanup.cmd
|
||||||
scripts/cleanup.sh
|
scripts/cleanup.sh
|
||||||
|
sia-sdk-rs/
|
||||||
support/Dockerfile
|
support/Dockerfile
|
||||||
version.cpp
|
version.cpp
|
||||||
version.rc
|
version.rc
|
||||||
.flutter-companion
|
|
||||||
+1
-1
@@ -6,7 +6,7 @@ set(CURL_HASH 222c6b5c1f368ac63aed59bce2774eb5def9e8e67e46e800be182e684d2845a3)
|
|||||||
set(EXPAT_HASH 6e8ce7b52ebbaa423c59becc7cf1e6875c42e49228c062ac8123c10e700cec27)
|
set(EXPAT_HASH 6e8ce7b52ebbaa423c59becc7cf1e6875c42e49228c062ac8123c10e700cec27)
|
||||||
set(GCC_HASH 7294d65cc1a0558cb815af0ca8c7763d86f7a31199794ede3f630c0d1b0a5723)
|
set(GCC_HASH 7294d65cc1a0558cb815af0ca8c7763d86f7a31199794ede3f630c0d1b0a5723)
|
||||||
set(GTEST_HASH 6e3191c1455468b3fc35a417fb565c1c5071aee1b7e7f85e30cf48a98d37d8b5)
|
set(GTEST_HASH 6e3191c1455468b3fc35a417fb565c1c5071aee1b7e7f85e30cf48a98d37d8b5)
|
||||||
set(ICU_HASH f06bcab72736ee9d55689033b8198a178562354128cf38edb2afc2e67e3fd931)
|
set(ICU_HASH 195b1dbb083321cc097e8cf88eca73de34fb41418f091748f7b6a829a4d40f1d)
|
||||||
set(INNOSETUP_HASH 0362a383ed217d4c4239b5933866dd96d3eb2102737da92f80f6057a4b40df2f)
|
set(INNOSETUP_HASH 0362a383ed217d4c4239b5933866dd96d3eb2102737da92f80f6057a4b40df2f)
|
||||||
set(JSON_HASH 4b92eb0c06d10683f7447ce9406cb97cd4b453be18d7279320f7b2f025c10187)
|
set(JSON_HASH 4b92eb0c06d10683f7447ce9406cb97cd4b453be18d7279320f7b2f025c10187)
|
||||||
set(LIBSODIUM_HASH 5838bb0c3da6148c24ebe531d1ed1297de9a87aea77d426bcd99f289e681631c)
|
set(LIBSODIUM_HASH 5838bb0c3da6148c24ebe531d1ed1297de9a87aea77d426bcd99f289e681631c)
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ set(EXPAT2_VERSION 2_9_0)
|
|||||||
set(EXPAT_VERSION 2.9.0)
|
set(EXPAT_VERSION 2.9.0)
|
||||||
set(GCC_VERSION 15.2.0)
|
set(GCC_VERSION 15.2.0)
|
||||||
set(GTEST_VERSION 1.18.0)
|
set(GTEST_VERSION 1.18.0)
|
||||||
set(ICU_VERSION 78.3)
|
set(ICU_VERSION 79.1)
|
||||||
set(INNOSETUP2_VERSION 7_1_0)
|
set(INNOSETUP2_VERSION 7_1_0)
|
||||||
set(INNOSETUP_VERSION 7.1.0)
|
set(INNOSETUP_VERSION 7.1.0)
|
||||||
set(JSON_VERSION 3.12.0)
|
set(JSON_VERSION 3.12.0)
|
||||||
|
|||||||
+46
-1
@@ -1,5 +1,5 @@
|
|||||||
#comment
|
#comment
|
||||||
FROM arm64v8/alpine:3.24.2
|
FROM arm64v8/alpine:3.24.4
|
||||||
MAINTAINER Scott E. Graves <scott.e.graves@protonmail.com>
|
MAINTAINER Scott E. Graves <scott.e.graves@protonmail.com>
|
||||||
CMD bash
|
CMD bash
|
||||||
|
|
||||||
@@ -16,6 +16,7 @@ RUN apk add \
|
|||||||
boost-dev \
|
boost-dev \
|
||||||
bzip2-static \
|
bzip2-static \
|
||||||
cmake \
|
cmake \
|
||||||
|
curl \
|
||||||
diffutils \
|
diffutils \
|
||||||
elfutils-dev \
|
elfutils-dev \
|
||||||
file \
|
file \
|
||||||
@@ -83,3 +84,47 @@ RUN apk add \
|
|||||||
|
|
||||||
RUN ln -sf /usr/bin/aclocal-1.18 /usr/bin/aclocal-1.16
|
RUN ln -sf /usr/bin/aclocal-1.18 /usr/bin/aclocal-1.16
|
||||||
RUN ln -sf /usr/bin/automake-1.18 /usr/bin/automake-1.16
|
RUN ln -sf /usr/bin/automake-1.18 /usr/bin/automake-1.16
|
||||||
|
|
||||||
|
ARG ICU_VERSION
|
||||||
|
ENV MY_ICU_VERSION=${ICU_VERSION}
|
||||||
|
COPY ./3rd_party/mingw64/icu-release-${ICU_VERSION}.tar.gz ./3rd_party/mingw64/icu-release-${ICU_VERSION}.tar.gz.sha256 /tmp/
|
||||||
|
RUN test -n "${MY_ICU_VERSION}" \
|
||||||
|
&& cd /tmp \
|
||||||
|
&& sha256sum -c ./icu-release-${MY_ICU_VERSION}.tar.gz.sha256 \
|
||||||
|
&& tar xzf ./icu-release-${MY_ICU_VERSION}.tar.gz \
|
||||||
|
&& cd icu-release-${MY_ICU_VERSION}/icu4c/source \
|
||||||
|
&& CXXFLAGS="-std=gnu++17" ./configure \
|
||||||
|
--disable-samples \
|
||||||
|
--disable-tests \
|
||||||
|
--enable-shared \
|
||||||
|
--enable-static \
|
||||||
|
--prefix=/usr/local \
|
||||||
|
&& make \
|
||||||
|
&& make install \
|
||||||
|
&& cd /tmp \
|
||||||
|
&& rm -rf icu-release-${MY_ICU_VERSION} icu-release-${MY_ICU_VERSION}.tar.gz*
|
||||||
|
|
||||||
|
ARG RUST_VERSION=stable
|
||||||
|
|
||||||
|
ENV RUSTUP_HOME=/opt/rustup
|
||||||
|
ENV CARGO_HOME=/opt/cargo
|
||||||
|
ENV PATH="/opt/cargo/bin:${PATH}"
|
||||||
|
|
||||||
|
RUN curl --proto '=https' --tlsv1.2 -fsSL \
|
||||||
|
https://sh.rustup.rs -o /tmp/rustup-init.sh \
|
||||||
|
&& sh /tmp/rustup-init.sh \
|
||||||
|
-y \
|
||||||
|
--no-modify-path \
|
||||||
|
--profile minimal \
|
||||||
|
--default-toolchain "${RUST_VERSION}" \
|
||||||
|
&& rm /tmp/rustup-init.sh
|
||||||
|
|
||||||
|
ARG GID
|
||||||
|
ARG UID
|
||||||
|
RUN chown -R "${UID}:${GID}" /opt/rustup
|
||||||
|
RUN chown -R "${UID}:${GID}" /opt/cargo
|
||||||
|
|
||||||
|
RUN rustc --version \
|
||||||
|
&& cargo --version \
|
||||||
|
&& rustup target list --installed
|
||||||
|
|
||||||
File renamed without changes.
+46
-1
@@ -1,5 +1,5 @@
|
|||||||
#comment
|
#comment
|
||||||
FROM --platform=linux/amd64 alpine:3.24.2
|
FROM --platform=linux/amd64 alpine:3.24.4
|
||||||
MAINTAINER Scott E. Graves <scott.e.graves@protonmail.com>
|
MAINTAINER Scott E. Graves <scott.e.graves@protonmail.com>
|
||||||
CMD bash
|
CMD bash
|
||||||
|
|
||||||
@@ -16,6 +16,7 @@ RUN apk add \
|
|||||||
boost-dev \
|
boost-dev \
|
||||||
bzip2-static \
|
bzip2-static \
|
||||||
cmake \
|
cmake \
|
||||||
|
curl \
|
||||||
diffutils \
|
diffutils \
|
||||||
elfutils-dev \
|
elfutils-dev \
|
||||||
file \
|
file \
|
||||||
@@ -83,3 +84,47 @@ RUN apk add \
|
|||||||
|
|
||||||
RUN ln -sf /usr/bin/aclocal-1.18 /usr/bin/aclocal-1.16
|
RUN ln -sf /usr/bin/aclocal-1.18 /usr/bin/aclocal-1.16
|
||||||
RUN ln -sf /usr/bin/automake-1.18 /usr/bin/automake-1.16
|
RUN ln -sf /usr/bin/automake-1.18 /usr/bin/automake-1.16
|
||||||
|
|
||||||
|
ARG ICU_VERSION
|
||||||
|
ENV MY_ICU_VERSION=${ICU_VERSION}
|
||||||
|
COPY ./3rd_party/mingw64/icu-release-${ICU_VERSION}.tar.gz ./3rd_party/mingw64/icu-release-${ICU_VERSION}.tar.gz.sha256 /tmp/
|
||||||
|
RUN test -n "${MY_ICU_VERSION}" \
|
||||||
|
&& cd /tmp \
|
||||||
|
&& sha256sum -c ./icu-release-${MY_ICU_VERSION}.tar.gz.sha256 \
|
||||||
|
&& tar xzf ./icu-release-${MY_ICU_VERSION}.tar.gz \
|
||||||
|
&& cd icu-release-${MY_ICU_VERSION}/icu4c/source \
|
||||||
|
&& CXXFLAGS="-std=gnu++17" ./configure \
|
||||||
|
--disable-samples \
|
||||||
|
--disable-tests \
|
||||||
|
--enable-shared \
|
||||||
|
--enable-static \
|
||||||
|
--prefix=/usr/local \
|
||||||
|
&& make \
|
||||||
|
&& make install \
|
||||||
|
&& cd /tmp \
|
||||||
|
&& rm -rf icu-release-${MY_ICU_VERSION} icu-release-${MY_ICU_VERSION}.tar.gz*
|
||||||
|
|
||||||
|
ARG RUST_VERSION=stable
|
||||||
|
|
||||||
|
ENV RUSTUP_HOME=/opt/rustup
|
||||||
|
ENV CARGO_HOME=/opt/cargo
|
||||||
|
ENV PATH="/opt/cargo/bin:${PATH}"
|
||||||
|
|
||||||
|
RUN curl --proto '=https' --tlsv1.2 -fsSL \
|
||||||
|
https://sh.rustup.rs -o /tmp/rustup-init.sh \
|
||||||
|
&& sh /tmp/rustup-init.sh \
|
||||||
|
-y \
|
||||||
|
--no-modify-path \
|
||||||
|
--profile minimal \
|
||||||
|
--default-toolchain "${RUST_VERSION}" \
|
||||||
|
&& rm /tmp/rustup-init.sh
|
||||||
|
|
||||||
|
ARG GID
|
||||||
|
ARG UID
|
||||||
|
RUN chown -R "${UID}:${GID}" /opt/rustup
|
||||||
|
RUN chown -R "${UID}:${GID}" /opt/cargo
|
||||||
|
|
||||||
|
RUN rustc --version \
|
||||||
|
&& cargo --version \
|
||||||
|
&& rustup target list --installed
|
||||||
|
|
||||||
+33
-1
@@ -1,5 +1,5 @@
|
|||||||
#comment
|
#comment
|
||||||
FROM --platform=linux/amd64 alpine:3.24.2
|
FROM --platform=linux/amd64 alpine:3.24.4
|
||||||
|
|
||||||
RUN apk update
|
RUN apk update
|
||||||
RUN apk upgrade
|
RUN apk upgrade
|
||||||
@@ -11,6 +11,7 @@ RUN apk add \
|
|||||||
binutils \
|
binutils \
|
||||||
bison \
|
bison \
|
||||||
bzip2 \
|
bzip2 \
|
||||||
|
ca-certificates \
|
||||||
clang21-extra-tools \
|
clang21-extra-tools \
|
||||||
cmake \
|
cmake \
|
||||||
curl \
|
curl \
|
||||||
@@ -1193,6 +1194,37 @@ RUN (cp ${MY_MINGW_DIR}/lib/*.dll ${MY_MINGW_DIR}/bin || echo "no dll's found")
|
|||||||
&& rm -rf /3rd_party \
|
&& rm -rf /3rd_party \
|
||||||
&& rm -rf /root/.wine
|
&& rm -rf /root/.wine
|
||||||
|
|
||||||
|
ARG RUST_VERSION=stable
|
||||||
|
|
||||||
|
ENV RUSTUP_HOME=/opt/rustup
|
||||||
|
ENV CARGO_HOME=/opt/cargo
|
||||||
|
ENV PATH="/opt/cargo/bin:${PATH}"
|
||||||
|
|
||||||
|
RUN curl --proto '=https' --tlsv1.2 -fsSL \
|
||||||
|
https://sh.rustup.rs -o /tmp/rustup-init.sh \
|
||||||
|
&& sh /tmp/rustup-init.sh \
|
||||||
|
-y \
|
||||||
|
--no-modify-path \
|
||||||
|
--profile minimal \
|
||||||
|
--default-host x86_64-unknown-linux-musl \
|
||||||
|
--default-toolchain "${RUST_VERSION}" \
|
||||||
|
--target x86_64-pc-windows-gnu \
|
||||||
|
&& rm /tmp/rustup-init.sh
|
||||||
|
|
||||||
|
ENV CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER="${MY_MINGW_PREFIX}-gcc"
|
||||||
|
ENV CC_x86_64_pc_windows_gnu="${MY_MINGW_PREFIX}-gcc"
|
||||||
|
ENV CXX_x86_64_pc_windows_gnu="${MY_MINGW_PREFIX}-g++"
|
||||||
|
ENV AR_x86_64_pc_windows_gnu="${MY_MINGW_PREFIX}-ar"
|
||||||
|
|
||||||
|
RUN rustc --version \
|
||||||
|
&& cargo --version \
|
||||||
|
&& rustup target list --installed
|
||||||
|
|
||||||
|
ARG GID
|
||||||
|
ARG UID
|
||||||
|
RUN chown -R "${UID}:${GID}" /opt/rustup
|
||||||
|
RUN chown -R "${UID}:${GID}" /opt/cargo
|
||||||
|
|
||||||
USER $USERNAME
|
USER $USERNAME
|
||||||
WORKDIR /home/$USERNAME
|
WORKDIR /home/$USERNAME
|
||||||
|
|
||||||
+4
-4
@@ -1,10 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
CURRENT_DIR=$(dirname "$0")
|
CURRENT_DIR=$(dirname "$0")
|
||||||
CURRENT_DIR=$(realpath ${CURRENT_DIR})
|
CURRENT_DIR=$(realpath "${CURRENT_DIR}")
|
||||||
|
|
||||||
rsync -av --progress ${CURRENT_DIR}/${PROJECT_NAME}/${PROJECT_NAME}_test/test_input/ \
|
rsync -av --progress "${CURRENT_DIR}/${PROJECT_NAME}/${PROJECT_NAME}_test/test_input/" \
|
||||||
${PROJECT_BUILD_DIR}/build/test_input/
|
"${PROJECT_BUILD_DIR}/build/test_input/"
|
||||||
|
|
||||||
rsync -av --progress ${CURRENT_DIR}/${PROJECT_NAME}/${PROJECT_NAME}_test/test_input/ \
|
rsync -av --progress ${CURRENT_DIR}/${PROJECT_NAME}/${PROJECT_NAME}_test/test_input/ \
|
||||||
${PROJECT_DIST_DIR}/test_input/
|
${PROJECT_DIST_DIR}/test_input/
|
||||||
|
|||||||
Executable
+21
@@ -0,0 +1,21 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
CURRENT_DIR=$(dirname "$0")
|
||||||
|
CURRENT_DIR=$(realpath "${CURRENT_DIR}")
|
||||||
|
|
||||||
|
pushd "${CURRENT_DIR}"
|
||||||
|
git clone https://github.com/SiaFoundation/sia-sdk-rs.git
|
||||||
|
pushd "sia-sdk-rs"
|
||||||
|
git pull
|
||||||
|
|
||||||
|
if [ "${PROJECT_IS_MINGW}" == "1" ]; then
|
||||||
|
cargo build --locked --release \
|
||||||
|
--target x86_64-pc-windows-gnu \
|
||||||
|
-p sia_storage_cabi
|
||||||
|
else
|
||||||
|
cargo build --locked --release \
|
||||||
|
-p sia_storage_cabi
|
||||||
|
fi
|
||||||
|
|
||||||
|
popd
|
||||||
|
popd
|
||||||
@@ -1,5 +1,9 @@
|
|||||||
set(CMAKE_CXX_FLAGS "-include common.hpp ${CMAKE_CXX_FLAGS}")
|
set(CMAKE_CXX_FLAGS "-include common.hpp ${CMAKE_CXX_FLAGS}")
|
||||||
|
|
||||||
|
include_directories(SYSTEM ${CMAKE_CURRENT_SOURCE_DIR}/sia-sdk-rs/sia_storage_cabi/include)
|
||||||
|
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/sia-sdk-rs/target/release)
|
||||||
|
link_libraries(sia_storage_cabi.a)
|
||||||
|
|
||||||
add_project_library(lib${PROJECT_NAME} "" "" "${PROJECT_ADDITIONAL_SOURCES}")
|
add_project_library(lib${PROJECT_NAME} "" "" "${PROJECT_ADDITIONAL_SOURCES}")
|
||||||
|
|
||||||
add_project_executable(${PROJECT_NAME} lib${PROJECT_NAME} lib${PROJECT_NAME})
|
add_project_executable(${PROJECT_NAME} lib${PROJECT_NAME} lib${PROJECT_NAME})
|
||||||
|
|||||||
@@ -106,6 +106,7 @@ private:
|
|||||||
utils::atomic<remote::remote_mount> remote_mount_;
|
utils::atomic<remote::remote_mount> remote_mount_;
|
||||||
utils::atomic<s3_config> s3_config_;
|
utils::atomic<s3_config> s3_config_;
|
||||||
utils::atomic<sia_config> sia_config_;
|
utils::atomic<sia_config> sia_config_;
|
||||||
|
utils::atomic<sia_indexd_config> sia_indexd_config_;
|
||||||
std::unordered_map<std::string, std::function<std::string()>>
|
std::unordered_map<std::string, std::function<std::string()>>
|
||||||
value_get_lookup_;
|
value_get_lookup_;
|
||||||
std::unordered_map<std::string, std::function<std::string(std::string_view)>>
|
std::unordered_map<std::string, std::function<std::string(std::string_view)>>
|
||||||
@@ -187,6 +188,8 @@ public:
|
|||||||
|
|
||||||
[[nodiscard]] auto get_sia_config() const -> sia_config;
|
[[nodiscard]] auto get_sia_config() const -> sia_config;
|
||||||
|
|
||||||
|
[[nodiscard]] auto get_sia_indexd_config() const -> sia_indexd_config;
|
||||||
|
|
||||||
[[nodiscard]] auto get_task_wait_ms() const -> std::uint16_t;
|
[[nodiscard]] auto get_task_wait_ms() const -> std::uint16_t;
|
||||||
|
|
||||||
[[nodiscard]] auto get_value_by_name(std::string_view name) const
|
[[nodiscard]] auto get_value_by_name(std::string_view name) const
|
||||||
|
|||||||
@@ -0,0 +1,123 @@
|
|||||||
|
/*
|
||||||
|
Copyright <2018-2026> <scott.e.graves@protonmail.com>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
*/
|
||||||
|
#ifndef REPERTORY_INCLUDE_PROVIDERS_SIA_INDEXD_SIA_INDEXD_PROVIDER_HPP_
|
||||||
|
#define REPERTORY_INCLUDE_PROVIDERS_SIA_INDEXD_SIA_INDEXD_PROVIDER_HPP_
|
||||||
|
|
||||||
|
#include "providers/base_provider.hpp"
|
||||||
|
#include "types/repertory.hpp"
|
||||||
|
|
||||||
|
namespace repertory {
|
||||||
|
class app_config;
|
||||||
|
class i_file_manager;
|
||||||
|
struct i_http_comm;
|
||||||
|
|
||||||
|
class sia_indexd_provider : public base_provider {
|
||||||
|
public:
|
||||||
|
static const constexpr auto type{provider_type::sia_indexd};
|
||||||
|
|
||||||
|
public:
|
||||||
|
sia_indexd_provider(app_config &config, i_http_comm &comm);
|
||||||
|
|
||||||
|
~sia_indexd_provider() override = default;
|
||||||
|
|
||||||
|
public:
|
||||||
|
sia_indexd_provider(const sia_indexd_provider &) = delete;
|
||||||
|
sia_indexd_provider(sia_indexd_provider &&) = delete;
|
||||||
|
auto operator=(const sia_indexd_provider &) -> sia_indexd_provider & = delete;
|
||||||
|
auto operator=(sia_indexd_provider &&) -> sia_indexd_provider & = delete;
|
||||||
|
|
||||||
|
private:
|
||||||
|
sia_indexd_config sia_indexd_config_;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
[[nodiscard]] auto create_directory_impl(std::string_view api_path,
|
||||||
|
api_meta_map &meta)
|
||||||
|
-> api_error override;
|
||||||
|
|
||||||
|
[[nodiscard]] auto get_directory_items_impl(std::string_view api_path,
|
||||||
|
directory_item_list &list) const
|
||||||
|
-> api_error override;
|
||||||
|
|
||||||
|
[[nodiscard]] auto remove_directory_impl(std::string_view api_path)
|
||||||
|
-> api_error override;
|
||||||
|
|
||||||
|
[[nodiscard]] auto remove_file_impl(std::string_view api_path)
|
||||||
|
-> api_error override;
|
||||||
|
|
||||||
|
[[nodiscard]] auto upload_file_impl(std::string_view api_path,
|
||||||
|
std::string_view source_path,
|
||||||
|
stop_type &stop_requested)
|
||||||
|
-> api_error override;
|
||||||
|
|
||||||
|
public:
|
||||||
|
[[nodiscard]] auto check_version(std::string &required_version,
|
||||||
|
std::string &returned_version) const
|
||||||
|
-> bool override;
|
||||||
|
|
||||||
|
[[nodiscard]] auto get_directory_item_count(std::string_view api_path) const
|
||||||
|
-> std::uint64_t override;
|
||||||
|
|
||||||
|
[[nodiscard]] auto get_file(std::string_view api_path, api_file &file) const
|
||||||
|
-> api_error override;
|
||||||
|
|
||||||
|
[[nodiscard]] auto get_file_list(api_file_list &list,
|
||||||
|
std::string &marker) const
|
||||||
|
-> api_error override;
|
||||||
|
|
||||||
|
[[nodiscard]] auto get_provider_type() const -> provider_type override {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
|
||||||
|
[[nodiscard]] auto get_total_drive_space() const -> std::uint64_t override;
|
||||||
|
|
||||||
|
[[nodiscard]] auto is_directory(std::string_view api_path, bool &exists) const
|
||||||
|
-> api_error override;
|
||||||
|
|
||||||
|
[[nodiscard]] auto is_file(std::string_view api_path, bool &exists) const
|
||||||
|
-> api_error override;
|
||||||
|
|
||||||
|
[[nodiscard]] auto is_online() const -> bool override;
|
||||||
|
|
||||||
|
[[nodiscard]] auto is_rename_supported() const -> bool override {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
[[nodiscard]] auto read_file_bytes(std::string_view api_path,
|
||||||
|
std::size_t size, std::uint64_t offset,
|
||||||
|
data_buffer &buffer,
|
||||||
|
stop_type &stop_requested)
|
||||||
|
-> api_error override;
|
||||||
|
|
||||||
|
[[nodiscard]] auto rename_file(std::string_view /*from_api_path*/,
|
||||||
|
std::string_view /*to_api_path*/)
|
||||||
|
-> api_error override {
|
||||||
|
return api_error::not_implemented;
|
||||||
|
}
|
||||||
|
|
||||||
|
[[nodiscard]] auto start(api_item_added_callback api_item_added,
|
||||||
|
i_file_manager *mgr) -> bool override;
|
||||||
|
|
||||||
|
void stop() override;
|
||||||
|
};
|
||||||
|
} // namespace repertory
|
||||||
|
|
||||||
|
#endif // REPERTORY_INCLUDE_PROVIDERS_SIA_INDEXD_SIA_INDEXD_PROVIDER_HPP_
|
||||||
@@ -231,6 +231,7 @@ enum class provider_type : std::size_t {
|
|||||||
remote,
|
remote,
|
||||||
s3,
|
s3,
|
||||||
encrypt,
|
encrypt,
|
||||||
|
sia_indexd,
|
||||||
unknown,
|
unknown,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -392,6 +393,26 @@ struct sia_config final {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct sia_indexd_config final {
|
||||||
|
std::string bucket;
|
||||||
|
|
||||||
|
auto operator==(const sia_indexd_config &cfg) const noexcept -> bool {
|
||||||
|
if (&cfg != this) {
|
||||||
|
return bucket == cfg.bucket;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto operator!=(const sia_indexd_config &cfg) const noexcept -> bool {
|
||||||
|
if (&cfg != this) {
|
||||||
|
return not(cfg == *this);
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
using api_file_list = std::vector<api_file>;
|
using api_file_list = std::vector<api_file>;
|
||||||
using api_file_provider_callback = std::function<void(api_file &)>;
|
using api_file_provider_callback = std::function<void(api_file &)>;
|
||||||
using api_item_added_callback = std::function<api_error(bool, api_file &)>;
|
using api_item_added_callback = std::function<api_error(bool, api_file &)>;
|
||||||
@@ -449,6 +470,7 @@ inline constexpr auto JSON_S3_CONFIG{"S3Config"};
|
|||||||
inline constexpr auto JSON_SECRET_KEY{"SecretKey"};
|
inline constexpr auto JSON_SECRET_KEY{"SecretKey"};
|
||||||
inline constexpr auto JSON_SEND_TIMEOUT_MS{"SendTimeoutMs"};
|
inline constexpr auto JSON_SEND_TIMEOUT_MS{"SendTimeoutMs"};
|
||||||
inline constexpr auto JSON_SIA_CONFIG{"SiaConfig"};
|
inline constexpr auto JSON_SIA_CONFIG{"SiaConfig"};
|
||||||
|
inline constexpr auto JSON_SIA_INDEXD_CONFIG{"SiaIndexdConfig"};
|
||||||
inline constexpr auto JSON_SIZE{"Size"};
|
inline constexpr auto JSON_SIZE{"Size"};
|
||||||
inline constexpr auto JSON_TASK_WAIT_MS{"TaskWaitMs"};
|
inline constexpr auto JSON_TASK_WAIT_MS{"TaskWaitMs"};
|
||||||
inline constexpr auto JSON_TIMEOUT_MS{"TimeoutMs"};
|
inline constexpr auto JSON_TIMEOUT_MS{"TimeoutMs"};
|
||||||
@@ -579,6 +601,16 @@ template <> struct adl_serializer<repertory::sia_config> {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template <> struct adl_serializer<repertory::sia_indexd_config> {
|
||||||
|
static void to_json(json &data, const repertory::sia_indexd_config &value) {
|
||||||
|
data[repertory::JSON_BUCKET] = value.bucket;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void from_json(const json &data, repertory::sia_indexd_config &value) {
|
||||||
|
data.at(repertory::JSON_BUCKET).get_to(value.bucket);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
template <typename data_t>
|
template <typename data_t>
|
||||||
struct adl_serializer<repertory::utils::atomic<data_t>> {
|
struct adl_serializer<repertory::utils::atomic<data_t>> {
|
||||||
static void to_json(json &data,
|
static void to_json(json &data,
|
||||||
|
|||||||
@@ -719,7 +719,7 @@ auto app_config::default_agent_name(provider_type prov) -> std::string {
|
|||||||
"",
|
"",
|
||||||
"",
|
"",
|
||||||
"",
|
"",
|
||||||
};
|
};
|
||||||
|
|
||||||
return PROVIDER_AGENT_NAMES.at(static_cast<std::size_t>(prov));
|
return PROVIDER_AGENT_NAMES.at(static_cast<std::size_t>(prov));
|
||||||
}
|
}
|
||||||
@@ -732,7 +732,7 @@ auto app_config::default_api_port(provider_type prov) -> std::uint16_t {
|
|||||||
0U,
|
0U,
|
||||||
0U,
|
0U,
|
||||||
0U,
|
0U,
|
||||||
};
|
};
|
||||||
return PROVIDER_API_PORTS.at(static_cast<std::size_t>(prov));
|
return PROVIDER_API_PORTS.at(static_cast<std::size_t>(prov));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -774,7 +774,7 @@ auto app_config::default_remote_api_port(provider_type prov) -> std::uint16_t {
|
|||||||
20010U,
|
20010U,
|
||||||
20100U,
|
20100U,
|
||||||
20001U,
|
20001U,
|
||||||
};
|
};
|
||||||
return PROVIDER_REMOTE_PORTS.at(static_cast<std::size_t>(prov));
|
return PROVIDER_REMOTE_PORTS.at(static_cast<std::size_t>(prov));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -922,6 +922,11 @@ auto app_config::get_json() const -> json {
|
|||||||
ret.erase(JSON_REMOTE_CONFIG);
|
ret.erase(JSON_REMOTE_CONFIG);
|
||||||
ret.erase(JSON_S3_CONFIG);
|
ret.erase(JSON_S3_CONFIG);
|
||||||
} break;
|
} break;
|
||||||
|
case provider_type::sia_indexd: {
|
||||||
|
ret.erase(JSON_ENCRYPT_CONFIG);
|
||||||
|
ret.erase(JSON_REMOTE_CONFIG);
|
||||||
|
ret.erase(JSON_S3_CONFIG);
|
||||||
|
} break;
|
||||||
default:
|
default:
|
||||||
throw std::runtime_error(
|
throw std::runtime_error(
|
||||||
fmt::format("unsupported provider type|{}", get_provider_name(prov_)));
|
fmt::format("unsupported provider type|{}", get_provider_name(prov_)));
|
||||||
@@ -967,8 +972,8 @@ auto app_config::get_provider_display_name(provider_type prov) -> std::string {
|
|||||||
static const std::array<std::string,
|
static const std::array<std::string,
|
||||||
static_cast<std::size_t>(provider_type::unknown) + 1U>
|
static_cast<std::size_t>(provider_type::unknown) + 1U>
|
||||||
PROVIDER_DISPLAY_NAMES = {
|
PROVIDER_DISPLAY_NAMES = {
|
||||||
"Sia", "Remote", "S3", "Encrypt", "Unknown",
|
"Sia", "Remote", "S3", "Encrypt", "Sia Indexd", "Unknown",
|
||||||
};
|
};
|
||||||
return PROVIDER_DISPLAY_NAMES.at(static_cast<std::size_t>(prov));
|
return PROVIDER_DISPLAY_NAMES.at(static_cast<std::size_t>(prov));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -976,8 +981,8 @@ auto app_config::get_provider_name(provider_type prov) -> std::string {
|
|||||||
static const std::array<std::string,
|
static const std::array<std::string,
|
||||||
static_cast<std::size_t>(provider_type::unknown) + 1U>
|
static_cast<std::size_t>(provider_type::unknown) + 1U>
|
||||||
PROVIDER_NAMES = {
|
PROVIDER_NAMES = {
|
||||||
"sia", "remote", "s3", "encrypt", "unknown",
|
"sia", "remote", "s3", "encrypt", "sia_indexd", "unknown",
|
||||||
};
|
};
|
||||||
return PROVIDER_NAMES.at(static_cast<std::size_t>(prov));
|
return PROVIDER_NAMES.at(static_cast<std::size_t>(prov));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1005,6 +1010,10 @@ auto app_config::get_s3_config() const -> s3_config { return s3_config_; }
|
|||||||
|
|
||||||
auto app_config::get_sia_config() const -> sia_config { return sia_config_; }
|
auto app_config::get_sia_config() const -> sia_config { return sia_config_; }
|
||||||
|
|
||||||
|
auto app_config::get_sia_indexd_config() const -> sia_indexd_config {
|
||||||
|
return sia_indexd_config_;
|
||||||
|
}
|
||||||
|
|
||||||
auto app_config::get_task_wait_ms() const -> std::uint16_t {
|
auto app_config::get_task_wait_ms() const -> std::uint16_t {
|
||||||
return std::max(min_task_wait_ms, task_wait_ms_.load());
|
return std::max(min_task_wait_ms, task_wait_ms_.load());
|
||||||
}
|
}
|
||||||
@@ -1095,6 +1104,7 @@ auto app_config::load() -> bool {
|
|||||||
found);
|
found);
|
||||||
get_value(json_document, JSON_S3_CONFIG, s3_config_, found);
|
get_value(json_document, JSON_S3_CONFIG, s3_config_, found);
|
||||||
get_value(json_document, JSON_SIA_CONFIG, sia_config_, found);
|
get_value(json_document, JSON_SIA_CONFIG, sia_config_, found);
|
||||||
|
get_value(json_document, JSON_SIA_INDEXD_CONFIG, sia_indexd_config_, found);
|
||||||
get_value(json_document, JSON_TASK_WAIT_MS, task_wait_ms_, found);
|
get_value(json_document, JSON_TASK_WAIT_MS, task_wait_ms_, found);
|
||||||
|
|
||||||
std::uint64_t version{};
|
std::uint64_t version{};
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
#include "providers/encrypt/encrypt_provider.hpp"
|
#include "providers/encrypt/encrypt_provider.hpp"
|
||||||
#include "providers/s3/s3_provider.hpp"
|
#include "providers/s3/s3_provider.hpp"
|
||||||
#include "providers/sia/sia_provider.hpp"
|
#include "providers/sia/sia_provider.hpp"
|
||||||
|
#include "providers/sia_indexd/sia_indexd_provider.hpp"
|
||||||
#include "types/startup_exception.hpp"
|
#include "types/startup_exception.hpp"
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
@@ -42,8 +43,8 @@ inline void create_comm(std::unique_ptr<intf_t> &comm, const config_t &config) {
|
|||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
namespace repertory {
|
namespace repertory {
|
||||||
auto create_provider(provider_type prov,
|
auto create_provider(provider_type prov, app_config &config)
|
||||||
app_config &config) -> std::unique_ptr<i_provider> {
|
-> std::unique_ptr<i_provider> {
|
||||||
static std::mutex mutex;
|
static std::mutex mutex;
|
||||||
mutex_lock lock(mutex);
|
mutex_lock lock(mutex);
|
||||||
|
|
||||||
@@ -55,6 +56,11 @@ auto create_provider(provider_type prov,
|
|||||||
config.get_host_config());
|
config.get_host_config());
|
||||||
return std::make_unique<sia_provider>(config, *comm);
|
return std::make_unique<sia_provider>(config, *comm);
|
||||||
}
|
}
|
||||||
|
case provider_type::sia_indexd: {
|
||||||
|
create_comm<i_http_comm, curl_comm, host_config>(comm,
|
||||||
|
config.get_host_config());
|
||||||
|
return std::make_unique<sia_indexd_provider>(config, *comm);
|
||||||
|
}
|
||||||
case provider_type::s3: {
|
case provider_type::s3: {
|
||||||
create_comm<i_http_comm, curl_comm, s3_config>(comm,
|
create_comm<i_http_comm, curl_comm, s3_config>(comm,
|
||||||
config.get_s3_config());
|
config.get_s3_config());
|
||||||
|
|||||||
@@ -0,0 +1,106 @@
|
|||||||
|
/*
|
||||||
|
Copyright <2018-2026> <scott.e.graves@protonmail.com>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
*/
|
||||||
|
#include "providers/sia_indexd/sia_indexd_provider.hpp"
|
||||||
|
|
||||||
|
namespace repertory {
|
||||||
|
sia_indexd_provider::sia_indexd_provider(app_config &config, i_http_comm &comm)
|
||||||
|
: base_provider(config, comm) {}
|
||||||
|
|
||||||
|
auto sia_indexd_provider::create_directory_impl(std::string_view api_path,
|
||||||
|
api_meta_map &meta)
|
||||||
|
-> api_error {
|
||||||
|
return api_error::not_implemented;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto sia_indexd_provider::get_directory_items_impl(
|
||||||
|
std::string_view api_path, directory_item_list &list) const -> api_error {
|
||||||
|
return api_error::not_implemented;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto sia_indexd_provider::remove_directory_impl(std::string_view api_path)
|
||||||
|
-> api_error {
|
||||||
|
return api_error::not_implemented;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto sia_indexd_provider::remove_file_impl(std::string_view api_path)
|
||||||
|
-> api_error {
|
||||||
|
return api_error::not_implemented;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto sia_indexd_provider::upload_file_impl(std::string_view api_path,
|
||||||
|
std::string_view source_path,
|
||||||
|
stop_type &stop_requested)
|
||||||
|
-> api_error {
|
||||||
|
return api_error::not_implemented;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto sia_indexd_provider::check_version(std::string &required_version,
|
||||||
|
std::string &returned_version) const
|
||||||
|
-> bool {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto sia_indexd_provider::get_directory_item_count(
|
||||||
|
std::string_view api_path) const -> std::uint64_t {
|
||||||
|
return 0U;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto sia_indexd_provider::get_file(std::string_view api_path,
|
||||||
|
api_file &file) const -> api_error {
|
||||||
|
return api_error::not_implemented;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto sia_indexd_provider::get_file_list(api_file_list &list,
|
||||||
|
std::string &marker) const
|
||||||
|
-> api_error {
|
||||||
|
return api_error::not_implemented;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto sia_indexd_provider::get_total_drive_space() const -> std::uint64_t {
|
||||||
|
return 0U;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto sia_indexd_provider::is_directory(std::string_view api_path,
|
||||||
|
bool &exists) const -> api_error {
|
||||||
|
return api_error::not_implemented;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto sia_indexd_provider::is_file(std::string_view api_path, bool &exists) const
|
||||||
|
-> api_error {
|
||||||
|
return api_error::not_implemented;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto sia_indexd_provider::is_online() const -> bool { return false; }
|
||||||
|
|
||||||
|
auto sia_indexd_provider::read_file_bytes(
|
||||||
|
std::string_view api_path, std::size_t size, std::uint64_t offset,
|
||||||
|
data_buffer &buffer, stop_type &stop_requested) -> api_error {
|
||||||
|
return api_error::not_implemented;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto sia_indexd_provider::start(api_item_added_callback api_item_added,
|
||||||
|
i_file_manager *mgr) -> bool {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
void sia_indexd_provider::stop() {}
|
||||||
|
} // namespace repertory
|
||||||
@@ -49,6 +49,12 @@ void clean_json_config(provider_type prov, nlohmann::json &data) {
|
|||||||
data[JSON_REMOTE_MOUNT][JSON_ENCRYPTION_TOKEN] = "";
|
data[JSON_REMOTE_MOUNT][JSON_ENCRYPTION_TOKEN] = "";
|
||||||
data[JSON_HOST_CONFIG][JSON_API_PASSWORD] = "";
|
data[JSON_HOST_CONFIG][JSON_API_PASSWORD] = "";
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case provider_type::sia_indexd:
|
||||||
|
data[JSON_REMOTE_MOUNT][JSON_ENCRYPTION_TOKEN] = "";
|
||||||
|
data[JSON_HOST_CONFIG][JSON_API_PASSWORD] = "";
|
||||||
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
@@ -264,6 +270,10 @@ auto provider_type_from_string(std::string_view type,
|
|||||||
return provider_type::sia;
|
return provider_type::sia;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (type_lower == "sia_indexd") {
|
||||||
|
return provider_type::sia_indexd;
|
||||||
|
}
|
||||||
|
|
||||||
if (type_lower == "unknown") {
|
if (type_lower == "unknown") {
|
||||||
return provider_type::unknown;
|
return provider_type::unknown;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,12 @@ if [ "${DOCKER_NAME}" == "mingw64" ]; then
|
|||||||
else
|
else
|
||||||
IS_MINGW=0
|
IS_MINGW=0
|
||||||
IS_UNIX=0
|
IS_UNIX=0
|
||||||
|
if [ "${DOCKER_NAME}" == "alpine" ]; then
|
||||||
|
. "$(dirname "${BASH_SOURCE[0]}")/versions.sh"
|
||||||
|
if [ -n "${PROJECT_VERSIONS[ICU]}" ]; then
|
||||||
|
APP_VERSION_BUILD_ARGS="--build-arg ICU_VERSION=${PROJECT_VERSIONS[ICU]}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${DOCKER_CREATE_ONLY}" != "1" ]; then
|
if [ "${DOCKER_CREATE_ONLY}" != "1" ]; then
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ if [ -f "${PROJECT_SOURCE_DIR}/web/${PROJECT_NAME}/pubspec.yaml" ]; then
|
|||||||
--build-arg UID=$(id -u) \
|
--build-arg UID=$(id -u) \
|
||||||
--build-arg GID=$(id -g) \
|
--build-arg GID=$(id -g) \
|
||||||
-t ${FLUTTER_TAG_NAME} \
|
-t ${FLUTTER_TAG_NAME} \
|
||||||
-f "${PROJECT_SOURCE_DIR}/docker/x86_64/flutter" || exit 1
|
-f "${PROJECT_SOURCE_DIR}/docker/any/flutter" || exit 1
|
||||||
|
|
||||||
docker run -td \
|
docker run -td \
|
||||||
--name ${FLUTTER_CONTAINER_NAME} \
|
--name ${FLUTTER_CONTAINER_NAME} \
|
||||||
|
|||||||
+1
-1
@@ -15,7 +15,7 @@ PROJECT_VERSIONS[EXPAT]="2.9.0"
|
|||||||
PROJECT_VERSIONS[EXPAT2]="2_9_0"
|
PROJECT_VERSIONS[EXPAT2]="2_9_0"
|
||||||
PROJECT_VERSIONS[GCC]="15.2.0"
|
PROJECT_VERSIONS[GCC]="15.2.0"
|
||||||
PROJECT_VERSIONS[GTEST]="1.18.0"
|
PROJECT_VERSIONS[GTEST]="1.18.0"
|
||||||
PROJECT_VERSIONS[ICU]="78.3"
|
PROJECT_VERSIONS[ICU]="79.1"
|
||||||
PROJECT_VERSIONS[INNOSETUP]="7.1.0"
|
PROJECT_VERSIONS[INNOSETUP]="7.1.0"
|
||||||
PROJECT_VERSIONS[INNOSETUP2]="7_1_0"
|
PROJECT_VERSIONS[INNOSETUP2]="7_1_0"
|
||||||
PROJECT_VERSIONS[JSON]="3.12.0"
|
PROJECT_VERSIONS[JSON]="3.12.0"
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if ([ "$(uname -m)" == "arm64" ] || [ "$(uname -m)" == "aarch64" ]) &&
|
if ([ "$(uname -m)" == "arm64" ] || [ "$(uname -m)" == "aarch64" ]) &&
|
||||||
[ "${PROJECT_IS_ARM64}" == "0" ]; then
|
[ "${PROJECT_IS_ARM64}" == "0" ]; then
|
||||||
HOST_CFG="--host=x86_64-apple-darwin"
|
HOST_CFG="--host=x86_64-apple-darwin"
|
||||||
export CC="clang -arch x86_64"
|
export CC="clang -arch x86_64"
|
||||||
|
|||||||
BIN
Binary file not shown.
@@ -1 +0,0 @@
|
|||||||
f06bcab72736ee9d55689033b8198a178562354128cf38edb2afc2e67e3fd931 icu-release-78.3.tar.gz
|
|
||||||
BIN
Binary file not shown.
@@ -0,0 +1 @@
|
|||||||
|
195b1dbb083321cc097e8cf88eca73de34fb41418f091748f7b6a829a4d40f1d icu-release-79.1.tar.gz
|
||||||
Reference in new issue
Block a user