diff --git a/.gitattributes b/.gitattributes index 0bbbc042c6a71a43e53c0ea846e3585adcb34c87..50807a71abf3a3ae8651b5da13c8bf0bd9d68316 100644 --- a/.gitattributes +++ b/.gitattributes @@ -59,3 +59,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text *.webm filter=lfs diff=lfs merge=lfs -text cc-multilingual-main/cc_net/third_party/kenlm/build/lib/libkenlm.a filter=lfs diff=lfs merge=lfs -text cc-multilingual-main/cc_net/third_party/kenlm/build/lib/libkenlm_builder.a filter=lfs diff=lfs merge=lfs -text +cc-multilingual-main/cc_net/third_party/kenlm/build/bin/kenlm_benchmark filter=lfs diff=lfs merge=lfs -text +cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/libsentencepiece_train.so.0.0.0 filter=lfs diff=lfs merge=lfs -text +cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/CMakeFiles/sentencepiece_train.dir/builder.cc.o filter=lfs diff=lfs merge=lfs -text diff --git a/cc-multilingual-main/cc_net/bin/lid.bin b/cc-multilingual-main/cc_net/bin/lid.bin new file mode 100644 index 0000000000000000000000000000000000000000..f8707035ea3cc86ac248a4e31fa6368cd845476a --- /dev/null +++ b/cc-multilingual-main/cc_net/bin/lid.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7e69ec5451bc261cc7844e49e4792a85d7f09c06789ec800fc4a44aec362764e +size 131266198 diff --git a/cc-multilingual-main/cc_net/third_party/kenlm/build/bin/kenlm_benchmark b/cc-multilingual-main/cc_net/third_party/kenlm/build/bin/kenlm_benchmark new file mode 100644 index 0000000000000000000000000000000000000000..627e3d72f766d9d74170b188abb95df3cd25bd3c --- /dev/null +++ b/cc-multilingual-main/cc_net/third_party/kenlm/build/bin/kenlm_benchmark @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dea74ed9e31a0a593b6e48f118406f8892958cce0f52981326f76c2674c3e359 +size 1157104 diff --git a/cc-multilingual-main/cc_net/third_party/kenlm/include/lm/builder/corpus_count.hh b/cc-multilingual-main/cc_net/third_party/kenlm/include/lm/builder/corpus_count.hh new file mode 100644 index 0000000000000000000000000000000000000000..d3121ca45fd0e8481d036497925f005baa6cdf87 --- /dev/null +++ b/cc-multilingual-main/cc_net/third_party/kenlm/include/lm/builder/corpus_count.hh @@ -0,0 +1,53 @@ +#ifndef LM_BUILDER_CORPUS_COUNT_H +#define LM_BUILDER_CORPUS_COUNT_H + +#include "lm/lm_exception.hh" +#include "lm/word_index.hh" +#include "util/scoped.hh" + +#include +#include +#include +#include + +namespace util { +class FilePiece; +namespace stream { +class ChainPosition; +} // namespace stream +} // namespace util + +namespace lm { +namespace builder { + +class CorpusCount { + public: + // Memory usage will be DedupeMultipler(order) * block_size + total_chain_size + unknown vocab_hash_size + static float DedupeMultiplier(std::size_t order); + + // How much memory vocabulary will use based on estimated size of the vocab. + static std::size_t VocabUsage(std::size_t vocab_estimate); + + // token_count: out. + // type_count aka vocabulary size. Initialize to an estimate. It is set to the exact value. + CorpusCount(util::FilePiece &from, int vocab_write, uint64_t &token_count, WordIndex &type_count, std::vector &prune_words, const std::string& prune_vocab_filename, std::size_t entries_per_block, WarningAction disallowed_symbol); + + void Run(const util::stream::ChainPosition &position); + + private: + util::FilePiece &from_; + int vocab_write_; + uint64_t &token_count_; + WordIndex &type_count_; + std::vector& prune_words_; + const std::string& prune_vocab_filename_; + + std::size_t dedupe_mem_size_; + util::scoped_malloc dedupe_mem_; + + WarningAction disallowed_symbol_action_; +}; + +} // namespace builder +} // namespace lm +#endif // LM_BUILDER_CORPUS_COUNT_H diff --git a/cc-multilingual-main/cc_net/third_party/kenlm/include/lm/builder/joint_order.hh b/cc-multilingual-main/cc_net/third_party/kenlm/include/lm/builder/joint_order.hh new file mode 100644 index 0000000000000000000000000000000000000000..9ed89097ac14798d765f337a1a84a6547f2df701 --- /dev/null +++ b/cc-multilingual-main/cc_net/third_party/kenlm/include/lm/builder/joint_order.hh @@ -0,0 +1,67 @@ +#ifndef LM_BUILDER_JOINT_ORDER_H +#define LM_BUILDER_JOINT_ORDER_H + +#include "lm/builder/ngram_stream.hh" +#include "lm/lm_exception.hh" + +#ifdef DEBUG +#include "util/fixed_array.hh" +#include +#endif + +#include + +namespace lm { namespace builder { + +template void JointOrder(const util::stream::ChainPositions &positions, Callback &callback) { + // Allow matching to reference streams[-1]. + NGramStreams streams_with_dummy; + streams_with_dummy.InitWithDummy(positions); + NGramStream *streams = streams_with_dummy.begin() + 1; + + unsigned int order; + for (order = 0; order < positions.size() && streams[order]; ++order) {} + assert(order); // should always have . + + // Debugging only: call comparison function to sanity check order. +#ifdef DEBUG + util::FixedArray less_compare(order); + for (unsigned i = 0; i < order; ++i) + less_compare.push_back(i + 1); +#endif // DEBUG + + unsigned int current = 0; + while (true) { + // Does the context match the lower one? + if (!memcmp(streams[static_cast(current) - 1]->begin(), streams[current]->begin() + Compare::kMatchOffset, sizeof(WordIndex) * current)) { + callback.Enter(current, *streams[current]); + // Transition to looking for extensions. + if (++current < order) continue; + } +#ifdef DEBUG + // match_check[current - 1] matches current-grams + // The lower-order stream (which skips fewer current-grams) should always be <= the higher order-stream (which can skip current-grams). + else if (!less_compare[current - 1](streams[static_cast(current) - 1]->begin(), streams[current]->begin() + Compare::kMatchOffset)) { + std::cerr << "Stream out of order detected" << std::endl; + abort(); + } +#endif // DEBUG + // No extension left. + while(true) { + assert(current > 0); + --current; + callback.Exit(current, *streams[current]); + + if (++streams[current]) break; + + UTIL_THROW_IF(order != current + 1, FormatLoadException, "Detected n-gram without matching suffix"); + + order = current; + if (!order) return; + } + } +} + +}} // namespaces + +#endif // LM_BUILDER_JOINT_ORDER_H diff --git a/cc-multilingual-main/cc_net/third_party/kenlm/include/lm/builder/ngram.hh b/cc-multilingual-main/cc_net/third_party/kenlm/include/lm/builder/ngram.hh new file mode 100644 index 0000000000000000000000000000000000000000..0472bcb155e530346548786ba70f77874121b1cb --- /dev/null +++ b/cc-multilingual-main/cc_net/third_party/kenlm/include/lm/builder/ngram.hh @@ -0,0 +1,109 @@ +#ifndef LM_BUILDER_NGRAM_H +#define LM_BUILDER_NGRAM_H + +#include "lm/weights.hh" +#include "lm/word_index.hh" + +#include + +#include +#include +#include + +namespace lm { +namespace builder { + +struct Uninterpolated { + float prob; // Uninterpolated probability. + float gamma; // Interpolation weight for lower order. +}; + +union Payload { + uint64_t count; + Uninterpolated uninterp; + ProbBackoff complete; +}; + +class NGram { + public: + NGram(void *begin, std::size_t order) + : begin_(static_cast(begin)), end_(begin_ + order) {} + + const uint8_t *Base() const { return reinterpret_cast(begin_); } + uint8_t *Base() { return reinterpret_cast(begin_); } + + void ReBase(void *to) { + std::size_t difference = end_ - begin_; + begin_ = reinterpret_cast(to); + end_ = begin_ + difference; + } + + // Would do operator++ but that can get confusing for a stream. + void NextInMemory() { + ReBase(&Value() + 1); + } + + // Lower-case in deference to STL. + const WordIndex *begin() const { return begin_; } + WordIndex *begin() { return begin_; } + const WordIndex *end() const { return end_; } + WordIndex *end() { return end_; } + + const Payload &Value() const { return *reinterpret_cast(end_); } + Payload &Value() { return *reinterpret_cast(end_); } + + uint64_t &Count() { return Value().count; } + uint64_t Count() const { return Value().count; } + + std::size_t Order() const { return end_ - begin_; } + + static std::size_t TotalSize(std::size_t order) { + return order * sizeof(WordIndex) + sizeof(Payload); + } + std::size_t TotalSize() const { + // Compiler should optimize this. + return TotalSize(Order()); + } + static std::size_t OrderFromSize(std::size_t size) { + std::size_t ret = (size - sizeof(Payload)) / sizeof(WordIndex); + assert(size == TotalSize(ret)); + return ret; + } + + // manipulate msb to signal that ngram can be pruned + /*mjd**********************************************************************/ + + bool IsMarked() const { + return Value().count >> (sizeof(Value().count) * 8 - 1); + } + + void Mark() { + Value().count |= (1ul << (sizeof(Value().count) * 8 - 1)); + } + + void Unmark() { + Value().count &= ~(1ul << (sizeof(Value().count) * 8 - 1)); + } + + uint64_t UnmarkedCount() const { + return Value().count & ~(1ul << (sizeof(Value().count) * 8 - 1)); + } + + uint64_t CutoffCount() const { + return IsMarked() ? 0 : UnmarkedCount(); + } + + /*mjd**********************************************************************/ + + private: + WordIndex *begin_, *end_; +}; + +const WordIndex kUNK = 0; +const WordIndex kBOS = 1; +const WordIndex kEOS = 2; + +} // namespace builder +} // namespace lm + +#endif // LM_BUILDER_NGRAM_H diff --git a/cc-multilingual-main/cc_net/third_party/kenlm/include/lm/builder/print.hh b/cc-multilingual-main/cc_net/third_party/kenlm/include/lm/builder/print.hh new file mode 100644 index 0000000000000000000000000000000000000000..ba57f060a4a1fa55366696fcb1941cda0935b2a2 --- /dev/null +++ b/cc-multilingual-main/cc_net/third_party/kenlm/include/lm/builder/print.hh @@ -0,0 +1,115 @@ +#ifndef LM_BUILDER_PRINT_H +#define LM_BUILDER_PRINT_H + +#include "lm/builder/ngram.hh" +#include "lm/builder/ngram_stream.hh" +#include "lm/builder/output.hh" +#include "util/fake_ofstream.hh" +#include "util/file.hh" +#include "util/mmap.hh" +#include "util/string_piece.hh" + +#include + +#include + +// Warning: print routines read all unigrams before all bigrams before all +// trigrams etc. So if other parts of the chain move jointly, you'll have to +// buffer. + +namespace lm { namespace builder { + +class VocabReconstitute { + public: + // fd must be alive for life of this object; does not take ownership. + explicit VocabReconstitute(int fd); + + const char *Lookup(WordIndex index) const { + assert(index < map_.size() - 1); + return map_[index]; + } + + StringPiece LookupPiece(WordIndex index) const { + return StringPiece(map_[index], map_[index + 1] - 1 - map_[index]); + } + + std::size_t Size() const { + // There's an extra entry to support StringPiece lengths. + return map_.size() - 1; + } + + private: + util::scoped_memory memory_; + std::vector map_; +}; + +// Not defined, only specialized. +template void PrintPayload(util::FakeOFStream &to, const Payload &payload); +template <> inline void PrintPayload(util::FakeOFStream &to, const Payload &payload) { + // TODO slow + to << boost::lexical_cast(payload.count); +} +template <> inline void PrintPayload(util::FakeOFStream &to, const Payload &payload) { + to << log10(payload.uninterp.prob) << ' ' << log10(payload.uninterp.gamma); +} +template <> inline void PrintPayload(util::FakeOFStream &to, const Payload &payload) { + to << payload.complete.prob << ' ' << payload.complete.backoff; +} + +// template parameter is the type stored. +template class Print { + public: + static void DumpSeparateFiles(const VocabReconstitute &vocab, const std::string &file_base, util::stream::Chains &chains) { + for (unsigned int i = 0; i < chains.size(); ++i) { + std::string file(file_base + boost::lexical_cast(i)); + chains[i] >> Print(vocab, util::CreateOrThrow(file.c_str())); + } + } + + explicit Print(const VocabReconstitute &vocab, int fd) : vocab_(vocab), to_(fd) {} + + void Run(const util::stream::ChainPositions &chains) { + util::scoped_fd fd(to_); + util::FakeOFStream out(to_); + NGramStreams streams(chains); + for (NGramStream *s = streams.begin(); s != streams.end(); ++s) { + DumpStream(*s, out); + } + } + + void Run(const util::stream::ChainPosition &position) { + util::scoped_fd fd(to_); + util::FakeOFStream out(to_); + NGramStream stream(position); + DumpStream(stream, out); + } + + private: + void DumpStream(NGramStream &stream, util::FakeOFStream &to) { + for (; stream; ++stream) { + PrintPayload(to, stream->Value()); + for (const WordIndex *w = stream->begin(); w != stream->end(); ++w) { + to << ' ' << vocab_.Lookup(*w) << '=' << *w; + } + to << '\n'; + } + } + + const VocabReconstitute &vocab_; + int to_; +}; + +class PrintARPA : public OutputHook { + public: + explicit PrintARPA(int fd, bool verbose_header) + : OutputHook(PROB_SEQUENTIAL_HOOK), out_fd_(fd), verbose_header_(verbose_header) {} + + void Run(const util::stream::ChainPositions &positions); + + private: + util::scoped_fd out_fd_; + bool verbose_header_; +}; + +}} // namespaces +#endif // LM_BUILDER_PRINT_H diff --git a/cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/CMakeFiles/sentencepiece_train.dir/builder.cc.o b/cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/CMakeFiles/sentencepiece_train.dir/builder.cc.o new file mode 100644 index 0000000000000000000000000000000000000000..bcf75b3e0f33927dd6e01a40b31d87c3c27517f6 --- /dev/null +++ b/cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/CMakeFiles/sentencepiece_train.dir/builder.cc.o @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:976b84fde8bfb7971b25df0fc93e046d5ffd234aac0b2863eb43a0dab4307d8f +size 1117264 diff --git a/cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/libsentencepiece_train.so.0.0.0 b/cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/libsentencepiece_train.so.0.0.0 new file mode 100644 index 0000000000000000000000000000000000000000..5de230cd2ecfef5d4812e0afcdb9ba3b753869ab --- /dev/null +++ b/cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/libsentencepiece_train.so.0.0.0 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2ec684eaf2a6f1d19285c97f5d3a0382c4a983fa08d78aeede21d6cf2563ff4d +size 1544648 diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/absent/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/absent/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..d0a4eb31bb4e15913b5c624152bd427b96cebce1 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/absent/portfile.cmake @@ -0,0 +1,32 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO rvarago/absent + REF 0.3.1 + SHA512 c7b7d29422ef8afc48e3093496e1dd055cfe9969ae037c2b06ea70fe4283e7a7e9129171efaa257e909c535e24df5861b992b24b00ec03f965730e6a22e13015 +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DBUILD_TESTS=OFF +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup( + CONFIG_PATH lib/cmake/${PORT} +) + +file(REMOVE_RECURSE + "${CURRENT_PACKAGES_DIR}/debug" + "${CURRENT_PACKAGES_DIR}/lib" +) + +file(INSTALL + "${SOURCE_PATH}/README.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" +) + +file(INSTALL + "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright +) + diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/absent/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/absent/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..3034fe368eb853032da5fa018ea55ce06b601296 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/absent/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "absent", + "version": "0.3.1", + "port-version": 3, + "description": "A small C++17 library meant to simplify the composition of nullable types in a generic, type-safe, and declarative way", + "homepage": "https://github.com/rvarago/absent", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/antlr4/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/antlr4/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..80d1e857b0755fdaf342beef183d8c7b0d79fb32 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/antlr4/portfile.cmake @@ -0,0 +1,35 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO antlr/antlr4 + HEAD_REF dev + REF "${VERSION}" + SHA512 79ac3cdfc8f2368c647d06aec85d87507629a75527205ff2cbf7d9802989b0c6e6a8fac76148ad101f539c9ef922e431e22ba489f899f847ccc3d3d889bb2b70 + PATCHES + set-export-macro-define-as-private.patch +) + +set(RUNTIME_PATH "${SOURCE_PATH}/runtime/Cpp") + +message(INFO "Configure at '${RUNTIME_PATH}'") + +string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC) +string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED) + +vcpkg_cmake_configure( + SOURCE_PATH "${RUNTIME_PATH}" + OPTIONS + -DANTLR_BUILD_STATIC=${BUILD_STATIC} + -DANTLR_BUILD_SHARED=${BUILD_SHARED} + -DANTLR4_INSTALL=ON + -DANTLR_BUILD_CPP_TESTS=OFF +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(PACKAGE_NAME antlr4-generator CONFIG_PATH lib/cmake/antlr4-generator DO_NOT_DELETE_PARENT_CONFIG_PATH) +vcpkg_cmake_config_fixup(PACKAGE_NAME antlr4-runtime CONFIG_PATH lib/cmake/antlr4-runtime) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share") + +vcpkg_copy_pdbs() + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/antlr4/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/antlr4/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..b41d9908052c44d69868d5ebb051fda00b7b33f2 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/antlr4/vcpkg.json @@ -0,0 +1,22 @@ +{ + "name": "antlr4", + "version": "4.13.1", + "description": "ANother Tool for Language Recognition", + "homepage": "https://www.antlr.org", + "license": "BSD-3-Clause", + "supports": "!uwp", + "dependencies": [ + { + "name": "libuuid", + "platform": "!uwp & !windows & !osx" + }, + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/argh/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/argh/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..25df241ce74e6829f5e97ed9da64368967a08eb5 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/argh/portfile.cmake @@ -0,0 +1,30 @@ +# header-only library + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO adishavit/argh + REF "v${VERSION}" + SHA512 66073718ef1fc31fbd0feb9daf366a2e28c759de44fb1882dc46a6d10f7a44635ae1155882dff916f55c51fad88bedebdfe361418f7669fac241feead68f2b5b + HEAD_REF master +) + +set(VCPKG_BUILD_TYPE release) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DBUILD_TESTS=OFF + -DBUILD_EXAMPLES=OFF +) + +vcpkg_cmake_install() + +set(CONFIG_PATH lib/cmake/argh) +if(EXISTS "${CURRENT_PACKAGES_DIR}/cmake") + set(CONFIG_PATH cmake) +endif() +vcpkg_cmake_config_fixup(CONFIG_PATH "${CONFIG_PATH}") + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc" "${CURRENT_PACKAGES_DIR}/lib") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/argh/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/argh/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..5dea74d0682c0ed2110416fa8ba0a3215bebd48c --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/argh/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "argh", + "version": "1.3.2", + "port-version": 1, + "description": "Argh! A minimalist argument handler.", + "homepage": "https://github.com/adishavit/argh", + "license": "BSD-3-Clause", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/arpack-ng/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/arpack-ng/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..1c303dcf8a50571bc8953420acb6cf8cf05acb25 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/arpack-ng/portfile.cmake @@ -0,0 +1,35 @@ +include(vcpkg_find_fortran) +vcpkg_find_fortran(FORTRAN_CMAKE) +set(VCPKG_POLICY_ALLOW_OBSOLETE_MSVCRT enabled) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO opencollab/arpack-ng + REF ${VERSION} + SHA512 fbcaa2179dd1aa5a39fc3e7d80f377ec90ddf16ef93184a88e6ecfc464ed97e5659f2cf578294ac3e0b0c0da6408c86acf5bbdce533e1e9d2a3121848340d282 + HEAD_REF master +) + +if(NOT VCPKG_TARGET_IS_WINDOWS) + set(ENV{FFLAGS} "$ENV{FFLAGS} -fPIC") +endif() + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + ${FORTRAN_CMAKE} + -DMPI=OFF + -DICB=ON + -DICBEXMM=OFF + -DEXAMPLES=OFF + -DTESTS=OFF +) + +vcpkg_cmake_install() +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +vcpkg_cmake_config_fixup(PACKAGE_NAME arpackng CONFIG_PATH lib/cmake/arpackng) +vcpkg_fixup_pkgconfig() + +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") +file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/arpack-ng/usage b/cc-multilingual-main/cc_net/vcpkg/ports/arpack-ng/usage new file mode 100644 index 0000000000000000000000000000000000000000..c8cd3f01ea45cdfa63aa6a4cf6b554ad40019731 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/arpack-ng/usage @@ -0,0 +1,4 @@ +The package arpack-ng provides CMake targets: + + find_package(arpackng CONFIG REQUIRED) + target_link_libraries(main PRIVATE ARPACK::ARPACK) \ No newline at end of file diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/arpack-ng/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/arpack-ng/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..952af1d3f5cb7638ac800a960d9fe4c24397bf11 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/arpack-ng/vcpkg.json @@ -0,0 +1,25 @@ +{ + "name": "arpack-ng", + "version": "3.9.0", + "port-version": 1, + "description": "ARPACK-NG is a collection of Fortran77 subroutines designed to solve large scale eigenvalue problems.", + "homepage": "https://github.com/opencollab/arpack-ng", + "license": "BSD-3-Clause", + "supports": "!uwp", + "dependencies": [ + "blas", + "lapack", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + }, + { + "name": "vcpkg-gfortran", + "platform": "windows" + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/.gn b/cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/.gn new file mode 100644 index 0000000000000000000000000000000000000000..4fcb7c405ff334c8b7950525ad9ff501857f5214 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/.gn @@ -0,0 +1 @@ +buildconfig = "//build/config/BUILDCONFIG.gn" \ No newline at end of file diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/0001-base.patch b/cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/0001-base.patch new file mode 100644 index 0000000000000000000000000000000000000000..ca8c059756d80f2e1195dd4daa4eb2ab19ac4d2a --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/0001-base.patch @@ -0,0 +1,101 @@ +diff --git a/BUILD.gn b/BUILD.gn +index 7b7cd51..2961688 100644 +--- a/BUILD.gn ++++ b/BUILD.gn +@@ -155,6 +155,7 @@ if (is_android) { + # test code (test support and anything in the test directory) which should use + # source_set as is recommended for GN targets). + jumbo_component("base") { ++ output_name = "chromium_base" + if (is_nacl || is_ios) { + # Link errors related to malloc functions if libbase for nacl is + # compiled with jumbo: https://crbug.com/775959. +@@ -162,6 +163,11 @@ jumbo_component("base") { + never_build_jumbo = true + } + ++ if (!is_component_build) { ++ complete_static_lib = true ++ configs -= [ "//build/config/compiler:thin_archive" ] ++ } ++ + sources = [ + "allocator/allocator_check.cc", + "allocator/allocator_check.h", +@@ -1638,7 +1644,7 @@ jumbo_component("base") { + "hash/md5_constexpr_internal.h", + "hash/sha1.h", + ] +- if (is_nacl) { ++ if (true) { + sources += [ + "hash/md5_nacl.cc", + "hash/md5_nacl.h", +@@ -2298,6 +2304,7 @@ buildflag_header("tracing_buildflags") { + # library. Note that this library cannot depend on base because base depends on + # base_static. + static_library("base_static") { ++ output_name = "chromium_base_static" + sources = [ + "base_switches.cc", + "base_switches.h", +@@ -2325,7 +2332,7 @@ static_library("base_static") { + } + + component("i18n") { +- output_name = "base_i18n" ++ output_name = "chromium_base_i18n" + sources = [ + "i18n/base_i18n_export.h", + "i18n/base_i18n_switches.cc", +diff --git a/gtest_prod_util.h b/gtest_prod_util.h +index 2ca267e..0a0b6df 100644 +--- a/gtest_prod_util.h ++++ b/gtest_prod_util.h +@@ -5,7 +5,8 @@ + #ifndef BASE_GTEST_PROD_UTIL_H_ + #define BASE_GTEST_PROD_UTIL_H_ + +-#include "testing/gtest/include/gtest/gtest_prod.h" // nogncheck ++#define FRIEND_TEST(test_case_name, test_name)\ ++friend class test_case_name##_##test_name##_Test + + // This is a wrapper for gtest's FRIEND_TEST macro that friends + // test with all possible prefixes. This is very helpful when changing the test +diff --git a/hash/md5.h b/hash/md5.h +index 8a49f08..24acdab 100644 +--- a/hash/md5.h ++++ b/hash/md5.h +@@ -11,7 +11,7 @@ + #include "base/strings/string_piece.h" + #include "build/build_config.h" + +-#if defined(OS_NACL) ++#if true + #include "base/hash/md5_nacl.h" + #else + #include "base/hash/md5_boringssl.h" +diff --git a/hash/md5_nacl.cc b/hash/md5_nacl.cc +index 827bbbd..4b22c59 100644 +--- a/hash/md5_nacl.cc ++++ b/hash/md5_nacl.cc +@@ -22,6 +22,7 @@ + */ + + #include ++#include + + #include "base/hash/md5.h" + +diff --git a/profiler/stack_copier_signal.cc b/profiler/stack_copier_signal.cc +index 5a7d8b9..f959f2f 100644 +--- a/profiler/stack_copier_signal.cc ++++ b/profiler/stack_copier_signal.cc +@@ -6,6 +6,7 @@ + + #include + #include ++#include + #include + #include + diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/LASTCHANGE.committime b/cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/LASTCHANGE.committime new file mode 100644 index 0000000000000000000000000000000000000000..6acbbf6910963edb9fc6df16e0680a2dab9289c0 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/LASTCHANGE.committime @@ -0,0 +1 @@ +1594430814 \ No newline at end of file diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/build_overrides/build.gni b/cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/build_overrides/build.gni new file mode 100644 index 0000000000000000000000000000000000000000..47ac036443fb644f362d556f14d3a9993b853dd0 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/build_overrides/build.gni @@ -0,0 +1,16 @@ +import("//build/config/gclient_args.gni") + +# Some non-Chromium builds don't support building java targets. +enable_java_templates = true + +# Don't use Chromium's third_party/binutils. +linux_use_bundled_binutils_override = false + +# Tracing requires //third_party/perfetto. +enable_base_tracing = false + +# Skip assertions about 4GiB file size limit. See https://crbug.com/648948. +ignore_elf32_limitations = false + +# Use the system install of Xcode for tools like ibtool, libtool, etc. +use_system_xcode = true diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/libxml/BUILD.gn b/cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/libxml/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..b48056ab882c4f52cbec7e2de3b0acc84971b7d8 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/libxml/BUILD.gn @@ -0,0 +1,2 @@ +component("libxml_utils") {} +component("xml_reader") {} \ No newline at end of file diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/protobuf/proto_library.gni b/cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/protobuf/proto_library.gni new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/test_fonts/BUILD.gn b/cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/test_fonts/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..b95c104e1f372a69c5f6d413c93870d59dc24717 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/test_fonts/BUILD.gn @@ -0,0 +1 @@ +component("test_fonts") {} \ No newline at end of file diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/testing/gmock/BUILD.gn b/cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/testing/gmock/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..acd0ec30c0963d49b5e071530b7c72c979b235c3 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/testing/gmock/BUILD.gn @@ -0,0 +1 @@ +component("gmock") {} \ No newline at end of file diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/testing/gtest/BUILD.gn b/cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/testing/gtest/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..2463cc7c0d82d3d83ec192902393fc30ad2abbb0 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/testing/gtest/BUILD.gn @@ -0,0 +1 @@ +component("gtest") {} \ No newline at end of file diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/testing/test.gni b/cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/testing/test.gni new file mode 100644 index 0000000000000000000000000000000000000000..2d6f8c103525588b24d0d4e9eced305282457535 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/testing/test.gni @@ -0,0 +1,20 @@ +template("test") { + not_needed(invoker, "*") + not_needed("*") +} + +set_defaults("test") { + configs = [ + "//build/config/compiler:chromium_code" + ] +} + +template("fuzzer_test") { + not_needed(invoker, "*") + not_needed("*") +} + +template("protoc_convert") { + not_needed(invoker, "*") + not_needed("*") +} \ No newline at end of file diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/clipboardxx/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/clipboardxx/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..fa06e40cf4c0ecda408587d318fbad7ce3f73a71 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/clipboardxx/portfile.cmake @@ -0,0 +1,24 @@ +# Download the code from GitHub +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO Arian8j2/ClipboardXX + REF d404c39ba384f8e16555610b3633cd7b58d84c59 + SHA512 503bc78cd9fd6096fa92524973d19cbc9169fca91450837a2af7f1518eb928dce10c01e446de1ab76ae0dc366b26831df403f021118fe5c3c2eaeb4d752f638f + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" +) + +vcpkg_cmake_install() +vcpkg_copy_pdbs() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug") + +configure_file( + "${CMAKE_CURRENT_LIST_DIR}/unofficial-clipboardxx-config.cmake.in" + "${CURRENT_PACKAGES_DIR}/share/unofficial-clipboardxx/unofficial-clipboardxx-config.cmake" + @ONLY +) +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/clipboardxx/unofficial-clipboardxx-config.cmake.in b/cc-multilingual-main/cc_net/vcpkg/ports/clipboardxx/unofficial-clipboardxx-config.cmake.in new file mode 100644 index 0000000000000000000000000000000000000000..80e258e85dfdf8421e2480b8d9eea544aa42a9fe --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/clipboardxx/unofficial-clipboardxx-config.cmake.in @@ -0,0 +1,19 @@ +get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH) +get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) +get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) +if(_IMPORT_PREFIX STREQUAL "/") + set(_IMPORT_PREFIX "") +endif() + +add_library(unofficial::ClipboardXX INTERFACE IMPORTED) +set_target_properties(unofficial::ClipboardXX PROPERTIES + INTERFACE_INCLUDE_DIRECTORIES "${PACKAGE_PREFIX_DIR}/include" +) + +if("@VCPKG_TARGET_IS_LINUX@") + set_target_properties(unofficial::ClipboardXX PROPERTIES + INTERFACE_LINK_LIBRARIES "xcb;pthread" + ) +endif() + +unset(_IMPORT_PREFIX) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/clipboardxx/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/clipboardxx/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..d274c9070a70bedb9f9a3ecd44fbb2ae187b856b --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/clipboardxx/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "clipboardxx", + "version-date": "2022-02-04", + "description": "Header only, lightweight and cross platform C++ library for copy and paste text from clipboard.", + "homepage": "https://github.com/Arian8j2/ClipboardXX", + "license": "MIT", + "supports": "!osx", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/faad2/fix-install.patch b/cc-multilingual-main/cc_net/vcpkg/ports/faad2/fix-install.patch new file mode 100644 index 0000000000000000000000000000000000000000..fc44506997323ffd1b9f29ea722d9a56de454782 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/faad2/fix-install.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 5c0aeff..9614c19 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -261,7 +261,7 @@ endif() + + # Installation + +-if(NOT FAAD_BUNDLED_MODE AND NOT MSVC) ++if(1) + install(FILES "${CMAKE_CURRENT_BINARY_DIR}/faad2.pc" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig") + diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/faad2/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/faad2/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..a8e9dad9b53e840590fd9ac710e0f47bfa4eb646 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/faad2/portfile.cmake @@ -0,0 +1,29 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO knik0/faad2 + REF "${VERSION}" + SHA512 b8f17680610b2f47344ea52b54412a02810a85eaf9d4c91b97ca09b2c6415c62d4af1b0771bfcacb9dfee400ed34504c0bd3c28369921c0392b3809e7de46ec5 + HEAD_REF master + PATCHES + fix-install.patch +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" +) + +vcpkg_cmake_install() + +vcpkg_copy_pdbs() +vcpkg_fixup_pkgconfig() + +if(VCPKG_TARGET_IS_WINDOWS) + vcpkg_copy_tools(TOOL_NAMES faad_cli AUTO_CLEAN) +else() + vcpkg_copy_tools(TOOL_NAMES faad AUTO_CLEAN) +endif() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/faad2/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/faad2/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..1d2dd484beb6be7e2cbf2ca5dd6ae84ad5b9e521 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/faad2/vcpkg.json @@ -0,0 +1,13 @@ +{ + "name": "faad2", + "version": "2.11.1", + "description": "Freeware Advanced Audio (AAC) Decoder", + "homepage": "https://sourceforge.net/projects/faac/", + "license": "GPL-2.0-or-later", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/fastrtps/disable-symlink.patch b/cc-multilingual-main/cc_net/vcpkg/ports/fastrtps/disable-symlink.patch new file mode 100644 index 0000000000000000000000000000000000000000..d9584c81efbdff92619b910e49374c5cdf2a51f6 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/fastrtps/disable-symlink.patch @@ -0,0 +1,16 @@ +Normally, the build script attempts to create a symlink to fast-discovery-server on Windows +and only falls back to a batch file if the necessary administrator privileges are not available. +Since symlinks do not work well with vcpkg binary caching, +we force the build script to create a batch file in any case. +diff --git a/tools/fds/CMakeLists.txt b/tools/fds/CMakeLists.txt +--- a/tools/fds/CMakeLists.txt ++++ b/tools/fds/CMakeLists.txt +@@ -116,7 +116,7 @@ # - on windows privileges to create symlinks (a .bat file is provided on unprivileged installations) + if( WIN32 ) + # Use powershell to generate the link + install( +- CODE "execute_process( COMMAND PowerShell -Command \"if( test-path ${PROJECT_NAME}.exe -PathType Leaf ) { rm ${PROJECT_NAME}.exe } ; New-Item -ItemType SymbolicLink -Target $ -Path ${PROJECT_NAME}.exe \" ERROR_QUIET RESULTS_VARIABLE SYMLINK_FAILED WORKING_DIRECTORY \"${CMAKE_INSTALL_PREFIX}/${BIN_INSTALL_DIR}\") \n if( SYMLINK_FAILED ) \n message(STATUS \"Windows requires admin installation rights to create symlinks. A bat script will be provided instead.\") \n set(FAST_SERVER_BINARY_NAME $) \n configure_file(${CMAKE_CURRENT_LIST_DIR}/fast-discovery-server.bat.in ${CMAKE_INSTALL_PREFIX}/${BIN_INSTALL_DIR}${MSVCARCH_DIR_EXTENSION}/${PROJECT_NAME}.bat @ONLY) \n endif()" ++ CODE "set(FAST_SERVER_BINARY_NAME $) \n configure_file(${CMAKE_CURRENT_LIST_DIR}/fast-discovery-server.bat.in ${CMAKE_INSTALL_PREFIX}/${BIN_INSTALL_DIR}${MSVCARCH_DIR_EXTENSION}/${PROJECT_NAME}.bat @ONLY) \n" + COMPONENT discovery) + else() + # Use ln to create the symbolic link. We remove the version from the file name but keep the debug suffix diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/fastrtps/fix-find-package-asio.patch b/cc-multilingual-main/cc_net/vcpkg/ports/fastrtps/fix-find-package-asio.patch new file mode 100644 index 0000000000000000000000000000000000000000..4592311e2a55aae9d7f38c24eb41e0b0c7183416 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/fastrtps/fix-find-package-asio.patch @@ -0,0 +1,12 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -141,7 +141,7 @@ if(NOT BUILD_SHARED_LIBS) + endif() + + eprosima_find_package(fastcdr REQUIRED) +-eprosima_find_thirdparty(Asio asio VERSION 1.10.8) ++find_package(asio CONFIG REQUIRED) + eprosima_find_thirdparty(TinyXML2 tinyxml2) + + find_package(foonathan_memory REQUIRED) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/fastrtps/fix-xtime.patch b/cc-multilingual-main/cc_net/vcpkg/ports/fastrtps/fix-xtime.patch new file mode 100644 index 0000000000000000000000000000000000000000..586233d02b1d05abb5133c1927e99ff430c3fcd3 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/fastrtps/fix-xtime.patch @@ -0,0 +1,23 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 7ca47ae..632c38b 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -42,6 +42,18 @@ message(STATUS "Version: ${PROJECT_VERSION}") + ############################################################################### + option(EPROSIMA_BUILD "Activate internal building" OFF) + ++############################################################################### ++# Replace xtime with _timespec64. As a workround of the unreleased version of ++# MSVC, it will be deleted after release. ++############################################################################### ++if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC") ++ if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "19.37.32705.0") ++ file(READ "${PROJECT_SOURCE_DIR}/include/fastrtps/utils/TimedMutex.hpp" _contents) ++ string(REPLACE "xtime*" "_timespec64*" _contents "${_contents}") ++ file(WRITE "${PROJECT_SOURCE_DIR}/include/fastrtps/utils/TimedMutex.hpp" "${_contents}") ++ endif() ++endif() ++ + ############################################################################### + # Warning level + ############################################################################### diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/fastrtps/fix_thread.patch b/cc-multilingual-main/cc_net/vcpkg/ports/fastrtps/fix_thread.patch new file mode 100644 index 0000000000000000000000000000000000000000..075a940cfd42765b8395cb812b05cadf2391fbb4 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/fastrtps/fix_thread.patch @@ -0,0 +1,40 @@ +diff --git a/include/fastrtps/utils/TimedMutex.hpp b/include/fastrtps/utils/TimedMutex.hpp +index 8d5d968..7ba3e00 100644 +--- a/include/fastrtps/utils/TimedMutex.hpp ++++ b/include/fastrtps/utils/TimedMutex.hpp +@@ -23,10 +23,14 @@ + #include + + #if defined(_WIN32) ++#if defined(_MSC_FULL_VER) && _MSC_FULL_VER >= 193632528 ++#include ++#else + #include + extern int clock_gettime( + int, + struct timespec* tv); ++#endif // if defined(_MSC_FULL_VER) && _MSC_FULL_VER >= 193632528 + #elif _GTHREAD_USE_MUTEX_TIMEDLOCK + #include + #else +@@ -37,6 +41,11 @@ namespace eprosima { + namespace fastrtps { + + #if defined(_WIN32) ++ ++#if defined(_MSC_FULL_VER) && _MSC_FULL_VER >= 193632528 ++using TimedMutex = std::timed_mutex; ++using RecursiveTimedMutex = std::recursive_timed_mutex; ++#else + class TimedMutex + { + public: +@@ -182,6 +191,8 @@ private: + + _Mtx_t mutex_; + }; ++#endif // if defined(_MSC_FULL_VER) && _MSC_FULL_VER >= 193632528 ++ + #elif _GTHREAD_USE_MUTEX_TIMEDLOCK || !defined(__unix__) + using TimedMutex = std::timed_mutex; + using RecursiveTimedMutex = std::recursive_timed_mutex; diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/fastrtps/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/fastrtps/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..5a600f9eb6e8557bb511eb3f834cd68348a544ba --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/fastrtps/portfile.cmake @@ -0,0 +1,86 @@ +# https://github.com/eProsima/Fast-DDS/pull/3983 +# Could remove after 2.6.6/2.10.2/2.11.2, other minor versions not applied +# Could remove after 2.13 released, or any newer mijor versions +vcpkg_download_distfile( + PR_3983_PATCH + URLS https://github.com/eProsima/Fast-DDS/commit/2601e95429f5676c47c25200e995fb93157e7815.patch?full_index=1 + SHA512 440ee6a918d7085b6520613fad1482a9b833ee259e64c8919bdeb43277f3685362e6314380bafc6c51dad46fd16a9b415343e9db28f157d13f76b9af0cb21e8d + FILENAME fastrtps-2601e95429f5676c47c25200e995fb93157e7815.patch +) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO eProsima/Fast-DDS + REF v2.7.0 + SHA512 289c94fb177209ffc80e93ae61822c83e7cb74ba7682f05a921c50ce048498bd811c19825d1fdb8af39b29a64904e96d87c5c59468139f0d8bb528549b80c94a + HEAD_REF master + PATCHES + fix-find-package-asio.patch + disable-symlink.patch + fix-xtime.patch + fix_thread.patch #https://github.com/eProsima/Fast-DDS/pull/3904 + "${PR_3983_PATCH}" +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + DISABLE_PARALLEL_CONFIGURE # due to fix-xtime.patch +) + +vcpkg_cmake_install() +vcpkg_copy_pdbs() + +vcpkg_cmake_config_fixup(CONFIG_PATH share/fastrtps/cmake) + +if(VCPKG_TARGET_IS_WINDOWS) + # copy tools from "bin" to "tools" folder + foreach(TOOL "fast-discovery-server-1.0.0.exe" "fast-discovery-server.bat" "fastdds.bat" "ros-discovery.bat") + file(INSTALL "${CURRENT_PACKAGES_DIR}/bin/${TOOL}" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}") + file(REMOVE "${CURRENT_PACKAGES_DIR}/bin/${TOOL}") + endforeach() + + # remove tools from debug builds + foreach(TOOL "fast-discovery-serverd-1.0.0.exe" "fast-discovery-server.bat" "fastdds.bat" "ros-discovery.bat") + if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/bin/${TOOL}") + file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/bin/${TOOL}") + endif() + endforeach() + + # adjust paths in batch files + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/fastdds.bat" "%dir%\\..\\tools\\fastdds\\fastdds.py" "%dir%\\..\\fastdds\\fastdds.py") + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/ros-discovery.bat" "%dir%\\..\\tools\\fastdds\\fastdds.py" "%dir%\\..\\fastdds\\fastdds.py") + + vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/${PORT}") +elseif(VCPKG_TARGET_IS_LINUX) + # copy tools from "bin" to "tools" folder + foreach(TOOL "fast-discovery-server-1.0.0" "fast-discovery-server" "fastdds" "ros-discovery") + file(INSTALL "${CURRENT_PACKAGES_DIR}/bin/${TOOL}" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}") + file(REMOVE "${CURRENT_PACKAGES_DIR}/bin/${TOOL}") + endforeach() + + # replace symlink by a copy because symlinks do not work well together with vcpkg binary caching + file(REMOVE "${CURRENT_PACKAGES_DIR}/tools/${PORT}/fast-discovery-server") + file(INSTALL "${CURRENT_PACKAGES_DIR}/tools/${PORT}/fast-discovery-server-1.0.0" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}" RENAME "fast-discovery-server") + + # remove tools from debug builds + foreach(TOOL "fast-discovery-serverd-1.0.0" "fast-discovery-server" "fastdds" "ros-discovery") + file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/bin/${TOOL}") + endforeach() + + # adjust paths in batch files + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/fastdds" "$dir/../tools/fastdds/fastdds.py" "$dir/../fastdds/fastdds.py") + vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/ros-discovery" "$dir/../tools/fastdds/fastdds.py" "$dir/../fastdds/fastdds.py") +endif() + +vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/fastdds/discovery/parser.py" "tool_path / '../../../bin'" "tool_path / '../../${PORT}'") + +if(VCPKG_LIBRARY_LINKAGE STREQUAL "static" OR NOT VCPKG_TARGET_IS_WINDOWS) + file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin") + file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin") +endif() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/tools") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/fastrtps/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/fastrtps/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..32c8bf71443714704684a3d7ee3b65ead1418aba --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/fastrtps/vcpkg.json @@ -0,0 +1,24 @@ +{ + "name": "fastrtps", + "version": "2.7.0", + "port-version": 5, + "description": "Eprosima Fast RTPS is a C++ implementation of the RTPS (Real Time Publish Subscribe) protocol, which provides publisher-subscriber communications over unreliable transports such as UDP, as defined and maintained by the Object Management Group (OMG) consortium.", + "homepage": "https://www.eprosima.com/", + "license": "Apache-2.0", + "supports": "!uwp", + "dependencies": [ + "asio", + "fastcdr", + "foonathan-memory", + "openssl", + "tinyxml2", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/geotrans/CMakeLists.txt b/cc-multilingual-main/cc_net/vcpkg/ports/geotrans/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..f2deeda14050dfe1342979ee6e26d4c967dea545 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/geotrans/CMakeLists.txt @@ -0,0 +1,151 @@ +cmake_minimum_required(VERSION 3.10) +project(geotrans CXX) + +file(GLOB_RECURSE DTCC_CPP CCS/src/dtcc/*.cpp) +include_directories( +CCS/src/CoordinateConversion +CCS/src/dtcc +CCS/src/dtcc/CoordinateSystemParameters +CCS/src/dtcc/CoordinateSystems +CCS/src/dtcc/CoordinateSystems/albers +CCS/src/dtcc/CoordinateSystems/azeq +CCS/src/dtcc/CoordinateSystems/bng +CCS/src/dtcc/CoordinateSystems/bonne +CCS/src/dtcc/CoordinateSystems/cassini +CCS/src/dtcc/CoordinateSystems/cyleqa +CCS/src/dtcc/CoordinateSystems/datum +CCS/src/dtcc/CoordinateSystems/eckert4 +CCS/src/dtcc/CoordinateSystems/eckert6 +CCS/src/dtcc/CoordinateSystems/ellipse +CCS/src/dtcc/CoordinateSystems/eqdcyl +CCS/src/dtcc/CoordinateSystems/gars +CCS/src/dtcc/CoordinateSystems/geocent +CCS/src/dtcc/CoordinateSystems/georef +CCS/src/dtcc/CoordinateSystems/gnomonic +CCS/src/dtcc/CoordinateSystems/grinten +CCS/src/dtcc/CoordinateSystems/lambert +CCS/src/dtcc/CoordinateSystems/loccart +CCS/src/dtcc/CoordinateSystems/locspher +CCS/src/dtcc/CoordinateSystems/mercator +CCS/src/dtcc/CoordinateSystems/mgrs +CCS/src/dtcc/CoordinateSystems/miller +CCS/src/dtcc/CoordinateSystems/misc +CCS/src/dtcc/CoordinateSystems/mollweid +CCS/src/dtcc/CoordinateSystems/neys +CCS/src/dtcc/CoordinateSystems/nzmg +CCS/src/dtcc/CoordinateSystems/omerc +CCS/src/dtcc/CoordinateSystems/orthogr +CCS/src/dtcc/CoordinateSystems/polarst +CCS/src/dtcc/CoordinateSystems/polycon +CCS/src/dtcc/CoordinateSystems/sinusoid +CCS/src/dtcc/CoordinateSystems/spherical +CCS/src/dtcc/CoordinateSystems/stereogr +CCS/src/dtcc/CoordinateSystems/threads +CCS/src/dtcc/CoordinateSystems/tranmerc +CCS/src/dtcc/CoordinateSystems/trcyleqa +CCS/src/dtcc/CoordinateSystems/ups +CCS/src/dtcc/CoordinateSystems/usng +CCS/src/dtcc/CoordinateSystems/utm +CCS/src/dtcc/CoordinateSystems/webmerc +CCS/src/dtcc/CoordinateTuples +CCS/src/dtcc/Enumerations +CCS/src/dtcc/Exception +) +set(DTCC_INCLUDES +include/CoordinateConversion +include/dtcc/ +include/dtcc/CoordinateSystemParameters +include/dtcc/CoordinateSystems +include/dtcc/CoordinateSystems/albers +include/dtcc/CoordinateSystems/azeq +include/dtcc/CoordinateSystems/bng +include/dtcc/CoordinateSystems/bonne +include/dtcc/CoordinateSystems/cassini +include/dtcc/CoordinateSystems/cyleqa +include/dtcc/CoordinateSystems/datum +include/dtcc/CoordinateSystems/eckert4 +include/dtcc/CoordinateSystems/eckert6 +include/dtcc/CoordinateSystems/ellipse +include/dtcc/CoordinateSystems/eqdcyl +include/dtcc/CoordinateSystems/gars +include/dtcc/CoordinateSystems/geocent +include/dtcc/CoordinateSystems/georef +include/dtcc/CoordinateSystems/gnomonic +include/dtcc/CoordinateSystems/grinten +include/dtcc/CoordinateSystems/lambert +include/dtcc/CoordinateSystems/loccart +include/dtcc/CoordinateSystems/locspher +include/dtcc/CoordinateSystems/mercator +include/dtcc/CoordinateSystems/mgrs +include/dtcc/CoordinateSystems/miller +include/dtcc/CoordinateSystems/misc +include/dtcc/CoordinateSystems/mollweid +include/dtcc/CoordinateSystems/neys +include/dtcc/CoordinateSystems/nzmg +include/dtcc/CoordinateSystems/omerc +include/dtcc/CoordinateSystems/orthogr +include/dtcc/CoordinateSystems/polarst +include/dtcc/CoordinateSystems/polycon +include/dtcc/CoordinateSystems/sinusoid +include/dtcc/CoordinateSystems/spherical +include/dtcc/CoordinateSystems/stereogr +include/dtcc/CoordinateSystems/threads +include/dtcc/CoordinateSystems/tranmerc +include/dtcc/CoordinateSystems/trcyleqa +include/dtcc/CoordinateSystems/ups +include/dtcc/CoordinateSystems/usng +include/dtcc/CoordinateSystems/utm +include/dtcc/CoordinateSystems/webmerc +include/dtcc/CoordinateTuples +include/dtcc/Enumerations +include/dtcc/Exception +) + +if(WIN32) + add_definitions(-DLITTLE_ENDIAN) +endif() + +add_library(MSPdtcc ${DTCC_CPP}) +add_library(MSPCoordinateConversionService CCS/src/CoordinateConversion/CoordinateConversionService.cpp ${DTCC_CPP}) + +target_include_directories(MSPdtcc INTERFACE "$") +target_include_directories(MSPCoordinateConversionService INTERFACE $) + +if(WIN32) + if (BUILD_SHARED_LIBS) + add_definitions( + -DMSP_CCS_EXPORTS + -D_USRDLL + ) + endif() + add_definitions(-D_CRT_SECURE_NO_WARNINGS) +else() + find_package(Threads REQUIRED) + target_link_libraries(MSPdtcc PRIVATE Threads::Threads ${CMAKE_DL_LIBS}) +endif() + + +install( + TARGETS MSPdtcc + EXPORT geotrans + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +) + +install( + TARGETS MSPCoordinateConversionService + EXPORT geotrans + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +) + +install(DIRECTORY "${CMAKE_SOURCE_DIR}/CCS/src/" + DESTINATION "include" + CONFIGURATIONS Release + FILES_MATCHING + PATTERN "*.h" +) + +install(EXPORT geotrans NAMESPACE geotrans:: DESTINATION share/geotrans CONFIGURATIONS Release) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/geotrans/geotrans-config.in.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/geotrans/geotrans-config.in.cmake new file mode 100644 index 0000000000000000000000000000000000000000..f25224c0b278a0969dc11b2eb58239ed261a1300 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/geotrans/geotrans-config.in.cmake @@ -0,0 +1,7 @@ + +if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static" AND NOT WIN32) + include(CMakeFindDependencyMacro) + find_dependency(Threads) +endif() + +include(${CMAKE_CURRENT_LIST_DIR}/geotrans.cmake) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/geotrans/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/geotrans/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..1c38a8dabd5839f41d79702662d09dcde67c16c5 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/geotrans/portfile.cmake @@ -0,0 +1,36 @@ +set(VCPKG_LIBRARY_LINKAGE "dynamic") + +# We specify the Linux URL, but the only difference between the Windows/Linux packages are the included libraries +# which we re-build anyway. There is no source only package provided or it would be preferred (and smaller). +vcpkg_download_distfile(ARCHIVE + URLS "https://earth-info.nga.mil/php/download.php?file=wgs-mastertgz" + FILENAME "geotrans-3.9-master-adf1935.tgz" + SHA512 adf19357edc62681a2515e7210a752b0e09214b6ce69024e60150e0780059c08a9ab5a162a0562dbc37127438783a24bcde1adb88b559bc95ff9a5bea0eb8b39 +) + +vcpkg_extract_source_archive( + SOURCE_PATH + ARCHIVE "${ARCHIVE}" +) + +file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}") + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" +) + +vcpkg_cmake_install() + +configure_file( + "${CMAKE_CURRENT_LIST_DIR}/geotrans-config.in.cmake" + "${CURRENT_PACKAGES_DIR}/share/${PORT}/geotrans-config.cmake" + @ONLY +) + +configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}" @ONLY) + +# Handle copyright +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/GEOTRANS3/docs/MSP_Geotrans_Terms_Of_Use.txt") + +# Install the geo model data +file(COPY "${SOURCE_PATH}/data" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/geotrans/usage b/cc-multilingual-main/cc_net/vcpkg/ports/geotrans/usage new file mode 100644 index 0000000000000000000000000000000000000000..13533b44052496a3611ec67571a343afab64992d --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/geotrans/usage @@ -0,0 +1,11 @@ +The package geotrans provides CMake targets: + + find_package(geotrans CONFIG REQUIRED) + target_link_libraries(main PRIVATE geotrans::MSPdtcc geotrans::MSPCoordinateConversionService) + + +The geotrans library depends on being able to read it's model data so you'll need to +set an environment variable to let geotrans know where the models are installed: + +export MSPCCS_DATA=/share/@PORT@/data + diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/geotrans/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/geotrans/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..61212b5f03d6cab39f3190f0cd0f34a3e8047eda --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/geotrans/vcpkg.json @@ -0,0 +1,15 @@ +{ + "name": "geotrans", + "version": "3.9", + "port-version": 1, + "description": "GEOTRANS is an application that allows you to convert geographic coordinates among a wide variety of coordinate systems, map projections, grids, and datums. GEOTRANS runs in Microsoft Windows and LINUX environments.", + "homepage": "https://earth-info.nga.mil/GandG/update/index.php?action=home", + "license": null, + "supports": "!uwp", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/ideviceinstaller/001_fix_windows.patch b/cc-multilingual-main/cc_net/vcpkg/ports/ideviceinstaller/001_fix_windows.patch new file mode 100644 index 0000000000000000000000000000000000000000..16f1149ffd220601ab12b65dae78fb609186efa8 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/ideviceinstaller/001_fix_windows.patch @@ -0,0 +1,47 @@ +diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c +index c50bacf..e4a8c3d 100644 +--- a/src/ideviceinstaller.c ++++ b/src/ideviceinstaller.c +@@ -32,7 +32,9 @@ + #include + #include + #include ++#ifndef _MSC_VER + #include ++#endif + #include + #include + #include +@@ -87,6 +89,32 @@ static int asprintf(char **PTR, const char *TEMPLATE, ...) + } + #endif + ++#ifdef _MSC_VER ++#ifndef ISSLASH ++#define ISSLASH(C) ((C) == '/' || (C) == '\\') ++#endif ++char *basename(char const *name) { ++ char const *base = name; ++ char const *p; ++ for (p = base; *p; p++) { ++ if (ISSLASH(*p)) { ++ do p++; ++ while (ISSLASH(*p)); ++ ++ if (!*p) { ++ if (ISSLASH(*base)) ++ base = p - 1; ++ break; ++ } ++ ++ base = p; ++ } ++ } ++ ++ return (char *) base; ++} ++#endif ++ + #define ITUNES_METADATA_PLIST_FILENAME "iTunesMetadata.plist" + + const char PKG_PATH[] = "PublicStaging"; diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/ideviceinstaller/CMakeLists.txt b/cc-multilingual-main/cc_net/vcpkg/ports/ideviceinstaller/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..e1923497f6d7ec9d9aea7b564761695dff2b97db --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/ideviceinstaller/CMakeLists.txt @@ -0,0 +1,46 @@ +cmake_minimum_required(VERSION 3.15) +project(ideviceinstaller C) + +include(GNUInstallDirs) + +file(GLOB_RECURSE IDEVICEINSTALLER_SOURCE src/*.c src/*.h) + +set(DEFINITIONS) + +list(APPEND DEFINITIONS -DPACKAGE_NAME="ideviceinstaller") +list(APPEND DEFINITIONS -DPACKAGE_VERSION="1.1.1") +list(APPEND DEFINITIONS -DPACKAGE_URL="https://github.com/libimobiledevice/ideviceinstaller") +list(APPEND DEFINITIONS -DPACKAGE_BUGREPORT="https://github.com/libimobiledevice/ideviceinstaller/issues") + +if(UNIX) + list(APPEND DEFINITIONS -DHAVE_VASPRINTF) + list(APPEND DEFINITIONS -DHAVE_ASPRINTF) + list(APPEND DEFINITIONS -DHAVE_UNISTD_H) +endif() + +if(WIN32) + list(APPEND DEFINITIONS -D_CRT_SECURE_NO_WARNINGS) + list(APPEND DEFINITIONS -DWIN32) +endif() + +find_package(unofficial-libimobiledevice CONFIG REQUIRED) +find_package(libzip CONFIG REQUIRED) +find_path(DIRENT_INCLUDE_DIR dirent.h REQUIRED) + +add_executable(ideviceinstaller ${IDEVICEINSTALLER_SOURCE}) +target_include_directories(ideviceinstaller PRIVATE + ${DIRENT_INCLUDE_DIR} +) +target_compile_definitions(ideviceinstaller PRIVATE ${DEFINITIONS}) +target_link_libraries(ideviceinstaller PRIVATE + unofficial::libimobiledevice::libimobiledevice + libzip::zip +) + +if(WIN32) + find_package(unofficial-getopt-win32 REQUIRED) + target_link_libraries(ideviceinstaller PRIVATE unofficial::getopt-win32::getopt) +endif() + +install(TARGETS ideviceinstaller + RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/ideviceinstaller/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/ideviceinstaller/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..6f96b2edff0fbb71ab39896c5ad6df1511fbc31e --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/ideviceinstaller/portfile.cmake @@ -0,0 +1,24 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO libimobiledevice/ideviceinstaller + REF b9cfe0b264f66eab9ad88e11eb6b0523cb1de911 # commits on 2023-07-21 + SHA512 a78418001109593f2d704d91aff8df009e15c504c2139ca606c9719b70868466ef73778d52670468a4b7bf758ec65435c1b981c27809a2e22737f7587ad51c7d + HEAD_REF master + PATCHES + 001_fix_windows.patch +) + +file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}") + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" +) + +vcpkg_cmake_install() +vcpkg_copy_tools(TOOL_NAMES ideviceinstaller AUTO_CLEAN) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING") + +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/ideviceinstaller/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/ideviceinstaller/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..0f4071af11ef9ed65a90b62369d664c19eb4c233 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/ideviceinstaller/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "ideviceinstaller", + "version-date": "2023-07-21", + "description": "Manage apps of iOS devices", + "homepage": "https://libimobiledevice.org/", + "license": "LGPL-2.0-or-later", + "supports": "!uwp & !android & !ios & !xbox", + "dependencies": [ + "dirent", + "getopt", + "libimobiledevice", + "libzip", + { + "name": "vcpkg-cmake", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/io2d/cmake.dep.patch b/cc-multilingual-main/cc_net/vcpkg/ports/io2d/cmake.dep.patch new file mode 100644 index 0000000000000000000000000000000000000000..bcc7ea2a2580dbac21f005be3905db9f8112609e --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/io2d/cmake.dep.patch @@ -0,0 +1,62 @@ +diff --git a/P0267_RefImpl/P0267_RefImpl/cairo/CMakeLists.txt b/P0267_RefImpl/P0267_RefImpl/cairo/CMakeLists.txt +index 5ebeb6afa..702864667 100644 +--- a/P0267_RefImpl/P0267_RefImpl/cairo/CMakeLists.txt ++++ b/P0267_RefImpl/P0267_RefImpl/cairo/CMakeLists.txt +@@ -2,8 +2,8 @@ cmake_minimum_required(VERSION 3.8) + + project(io2d CXX) + +-find_package(Cairo REQUIRED) +-find_package(GraphicsMagick REQUIRED) ++find_package(Cairo REQUIRED) ++find_package(unofficial-GraphicsMagick REQUIRED) + + add_library(io2d_cairo + cairo_renderer-graphicsmagickinit.cpp +@@ -24,7 +24,7 @@ target_include_directories(io2d_cairo PUBLIC + + target_compile_features(io2d_cairo PUBLIC cxx_std_17) + +-target_link_libraries(io2d_cairo PUBLIC io2d_core Cairo::Cairo GraphicsMagick::GraphicsMagick) ++target_link_libraries(io2d_cairo PUBLIC io2d_core Cairo::Cairo unofficial::graphicsmagick::graphicsmagick) + + install( + TARGETS io2d_cairo EXPORT io2d_targets +diff --git a/P0267_RefImpl/P0267_RefImpl/cairo/win32/CMakeLists.txt b/P0267_RefImpl/P0267_RefImpl/cairo/win32/CMakeLists.txt +index abb150113..75d8c654d 100644 +--- a/P0267_RefImpl/P0267_RefImpl/cairo/win32/CMakeLists.txt ++++ b/P0267_RefImpl/P0267_RefImpl/cairo/win32/CMakeLists.txt +@@ -27,15 +27,24 @@ if(MSVC) + target_compile_definitions(io2d_cairo_win32 PUBLIC -DUNICODE -D_UNICODE -D_CRT_SECURE_NO_WARNINGS) + + find_library(PIXMAN_LIB pixman-1) +- find_library(FREETYPE_LIB freetype) +- find_library(FONTCONFIG_LIB fontconfig) +- find_library(BZ_LIB bz2) +- find_library(JPEG_LIB jpeg) +- find_library(TIFF_LIB tiff) +- find_library(EXPAT_LIB expat) +- find_library(LZMA_LIB lzma) +- find_library(ICONV_LIB libiconv) +- find_library(CHARSET_LIB libcharset) ++ find_package(FreeType REQUIRED) ++ set(FREETYPE_LIB ${FREETYPE_LIBRARIES}) # I dont use targets here since this means I have to correct the config.cmake too ++ find_package(Fontconfig REQUIRED) ++ set(FONTCONFIG_LIB ${Fontconfig_LIBRARIES}) ++ find_package(BZip2 REQUIRED) ++ set(BZ_LIB ${BZIP2_LIBRARIES}) ++ find_package(JPEG REQUIRED) ++ set(JPEG_LIB ${JPEG_LIBRARIES}) ++ find_package(TIFF REQUIRED) ++ set(TIFF_LIB ${TIFF_LIBRARIES}) ++ find_package(EXPAT REQUIRED) ++ set(EXPAT_LIB ${EXPAT_LIBRARIES}) ++ find_package(LibLZMA REQUIRED) ++ set(LZMA_LIB ${LIBLZMA_LIBRARIES}) ++ find_package(Iconv REQUIRED) ++ if(NOT Iconv_IS_BUILT_IN) ++ set(ICONV_LIB ${Iconv_LIBRARIES}) ++ endif() + + target_link_libraries(io2d_cairo_win32 PUBLIC ${PIXMAN_LIB} ${FREETYPE_LIB} ${FONTCONFIG_LIB} ${BZ_LIB} ${JPEG_LIB} ${TIFF_LIB} ${EXPAT_LIB} ${LZMA_LIB} ${ICONV_LIB} ${CHARSET_LIB}) + endif() diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/io2d/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/io2d/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..16edd25ede580ced2c6d6243023091fccbb60aa2 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/io2d/portfile.cmake @@ -0,0 +1,43 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO cpp-io2d/P0267_RefImpl + REF caa0ba0cb5a421a38bc26afaf3505bee206c44dd # accessed on 2020-09-14 + SHA512 f8e5a708f6cbda913a0492a843e1502b8d3cc615a6abda50e850be944e1484ec9087b787c54cc25d513172a7d5ab789be41a761c97df94266df4d1bcf14db17c + HEAD_REF master + PATCHES + cmake.dep.patch +) + +if (VCPKG_TARGET_IS_OSX) + set(IO2D_DEFAULT_OPTION "-DIO2D_DEFAULT=COREGRAPHICS_MAC") +endif() + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DIO2D_WITHOUT_SAMPLES=1 + -DIO2D_WITHOUT_TESTS=1 + -DCMAKE_INSTALL_INCLUDEDIR:STRING=include + ${IO2D_DEFAULT_OPTION} +) + +vcpkg_cmake_install() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/io2d) + +if (NOT VCPKG_TARGET_IS_OSX) + file(RENAME "${CURRENT_PACKAGES_DIR}/share/io2d/io2dConfig.cmake" "${CURRENT_PACKAGES_DIR}/share/io2d/io2dTargets.cmake") + file(WRITE "${CURRENT_PACKAGES_DIR}/share/io2d/io2dConfig.cmake" " + include(CMakeFindDependencyMacro) + find_dependency(unofficial-cairo CONFIG) + find_dependency(unofficial-graphicsmagick CONFIG) + + include(\${CMAKE_CURRENT_LIST_DIR}/io2dTargets.cmake) + ") +endif() + +file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) \ No newline at end of file diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/io2d/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/io2d/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..dc654153725e5b076fb3c2c3a1b371f7bb35327a --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/io2d/vcpkg.json @@ -0,0 +1,31 @@ +{ + "name": "io2d", + "version-date": "2020-09-14", + "port-version": 5, + "description": "a lightweight, cross platform drawing library", + "dependencies": [ + { + "name": "cairo", + "features": [ + "x11" + ], + "platform": "linux" + }, + { + "name": "cairo", + "platform": "!osx" + }, + { + "name": "graphicsmagick", + "platform": "!osx" + }, + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/kf5windowsystem/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/kf5windowsystem/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..6e643da9916e0909c0d134bd2023e4721dabd958 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/kf5windowsystem/portfile.cmake @@ -0,0 +1,37 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO KDE/kwindowsystem + REF v5.98.0 + SHA512 839d9fcd805fe14aa13cf0cc39f12aa412f19309698c062c14a7d35db4e6fd3af6f46908c13d76a8234ba9f2067b9a67e0426b265d334be3e805daf5a6cd0afb +) + +if (VCPKG_TARGET_IS_LINUX) + message(WARNING "${PORT} currently requires the following libraries from the system package manager:\n libxcb-res0-dev\n\nThese can be installed on Ubuntu systems via apt-get install libxcb-res0-dev") +endif() + +# Prevent KDEClangFormat from writing to source effectively blocking parallel configure +file(WRITE "${SOURCE_PATH}/.clang-format" "DisableFormat: true\nSortIncludes: false\n") + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DBUILD_TESTING=OFF + -DKDE_INSTALL_PLUGINDIR=plugins +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(PACKAGE_NAME KF5WindowSystem CONFIG_PATH lib/cmake/KF5WindowSystem) +vcpkg_copy_pdbs() + +if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") + file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin") +endif() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/KF5/KWindowSystem/config-kwindowsystem.h" "${CURRENT_PACKAGES_DIR}/" "") + +file(GLOB LICENSE_FILES "${SOURCE_PATH}/LICENSES/*") +vcpkg_install_copyright(FILE_LIST ${LICENSE_FILES}) + diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/kf5windowsystem/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/kf5windowsystem/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..c0e76182ebd5efb7196bdbcace091e1a2819e828 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/kf5windowsystem/vcpkg.json @@ -0,0 +1,26 @@ +{ + "name": "kf5windowsystem", + "version": "5.98.0", + "description": "Access to the windowing system", + "homepage": "https://api.kde.org/frameworks/kwindowsystem/html/", + "dependencies": [ + "ecm", + "qt5-tools", + { + "name": "qt5-winextras", + "platform": "windows" + }, + { + "name": "qt5-x11extras", + "platform": "linux" + }, + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libcroco/CMakeLists.txt b/cc-multilingual-main/cc_net/vcpkg/ports/libcroco/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..20d7872683ac335b982930f7b5223e6084f519d2 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libcroco/CMakeLists.txt @@ -0,0 +1,118 @@ +cmake_minimum_required(VERSION 3.11) +project(libcroco C) + +find_package(PkgConfig REQUIRED) +set(libcroco_pc_requires glib-2.0 libxml-2.0) +pkg_check_modules(LIBCROCO_LINK_PUBLIC ${libcroco_pc_requires} IMPORTED_TARGET REQUIRED) + +file(GLOB SOURCES + src/cr-utils.c + src/cr-utils.h + src/cr-input.c + src/cr-input.h + src/cr-enc-handler.c + src/cr-enc-handler.h + src/cr-num.c + src/cr-num.h + src/cr-rgb.c + src/cr-rgb.h + src/cr-token.c + src/cr-token.h + src/cr-tknzr.c + src/cr-tknzr.h + src/cr-term.c + src/cr-term.h + src/cr-attr-sel.c + src/cr-attr-sel.h + src/cr-pseudo.c + src/cr-pseudo.h + src/cr-additional-sel.c + src/cr-additional-sel.h + src/cr-simple-sel.c + src/cr-simple-sel.h + src/cr-selector.c + src/cr-selector.h + src/cr-doc-handler.c + src/cr-doc-handler.h + src/cr-parser.c + src/cr-parser.h + src/cr-declaration.c + src/cr-declaration.h + src/cr-statement.c + src/cr-statement.h + src/cr-stylesheet.c + src/cr-stylesheet.h + src/cr-cascade.c + src/cr-cascade.h + src/cr-om-parser.c + src/cr-om-parser.h + src/cr-style.c + src/cr-style.h + src/cr-sel-eng.c + src/cr-sel-eng.h + src/cr-fonts.c + src/cr-fonts.h + src/cr-prop-list.c + src/cr-prop-list.h + src/cr-parsing-location.c + src/cr-parsing-location.h + src/cr-string.c + src/cr-string.h + src/libcroco.def +) + +add_library(croco-0.6 ${SOURCES}) +target_link_libraries(croco-0.6 PRIVATE PkgConfig::LIBCROCO_LINK_PUBLIC) + +install(TARGETS croco-0.6 + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib +) + +install(FILES + src/libcroco.h + src/cr-additional-sel.h + src/cr-attr-sel.h + src/cr-cascade.h + src/cr-declaration.h + src/cr-doc-handler.h + src/cr-enc-handler.h + src/cr-input.h + src/cr-num.h + src/cr-om-parser.h + src/cr-parser.h + src/cr-pseudo.h + src/cr-rgb.h + src/cr-selector.h + src/cr-simple-sel.h + src/cr-statement.h + src/cr-stylesheet.h + src/cr-term.h + src/cr-tknzr.h + src/cr-token.h + src/cr-utils.h + src/cr-fonts.h + src/cr-sel-eng.h + src/cr-style.h + src/cr-prop-list.h + src/cr-parsing-location.h + src/cr-string.h + src/libcroco-config.h + DESTINATION include/libcroco-0.6/libcroco +) + +string(REGEX MATCH "^([0-9]*)[.]([0-9]*)[.].*" unused "${VERSION}" ) +set(LIBCROCO_MAJOR_VERSION "${CMAKE_MATCH_1}") +set(LIBCROCO_MINOR_VERSION "${CMAKE_MATCH_2}") + +set(prefix "${CMAKE_INSTALL_PREFIX}") +set(exec_prefix "\${prefix}") +set(libdir "\${prefix}/lib") +set(includedir "\${prefix}/include") + +configure_file("${CMAKE_CURRENT_SOURCE_DIR}/libcroco.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/libcroco.pc" @ONLY) +install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libcroco.pc" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig" + RENAME "libcroco-${LIBCROCO_MAJOR_VERSION}.${LIBCROCO_MINOR_VERSION}.pc" +) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libcroco/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/libcroco/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..170201b129b499f6d3dcb2a0a44810cbc64c9794 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libcroco/portfile.cmake @@ -0,0 +1,33 @@ +vcpkg_download_distfile(ARCHIVE + URLS "https://download.gnome.org/sources/libcroco/0.6/libcroco-0.6.13.tar.xz" + FILENAME "libcroco-0.6.13.tar.xz" + SHA512 038a3ac9d160a8cf86a8a88c34367e154ef26ede289c93349332b7bc449a5199b51ea3611cebf3a2416ae23b9e45ecf8f9c6b24ea6d16a5519b796d3c7e272d4 +) + +vcpkg_extract_source_archive( + SOURCE_PATH + ARCHIVE "${ARCHIVE}" +) + +file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}") +configure_file("${SOURCE_PATH}/config.h.win32" "${SOURCE_PATH}/src/config.h" COPYONLY) +file(READ "${SOURCE_PATH}/src/libcroco.symbols" SYMBOLS) +string(REGEX REPLACE ";[^\n]*\n" "" DEF "EXPORTS\n${SYMBOLS}") +file(WRITE "${SOURCE_PATH}/src/libcroco.def" "${DEF}") + +vcpkg_find_acquire_program(PKGCONFIG) +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + "-DVERSION=${VERSION}" + "-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}" +) +vcpkg_cmake_install() +vcpkg_copy_pdbs() +vcpkg_fixup_pkgconfig() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +file(COPY "${CURRENT_PORT_DIR}/unofficial-libcroco-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/unofficial-libcroco") +file(COPY "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libcroco/unofficial-libcroco-config.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/libcroco/unofficial-libcroco-config.cmake new file mode 100644 index 0000000000000000000000000000000000000000..a116ae8d8ac2e9b1d89410f3cf0342265a219342 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libcroco/unofficial-libcroco-config.cmake @@ -0,0 +1,14 @@ +file(READ "${CMAKE_CURRENT_LIST_DIR}/../libcroco/usage" usage) +message(WARNING "find_package(unofficial-libcroco) is deprecated.\n${usage}") + +include(CMakeFindDependencyMacro) +find_dependency(PkgConfig) +pkg_check_modules(VCPKG_LIBCROCO libcroco-0.6 IMPORTED_TARGET) +if(NOT VCPKG_LIBCROCO_FOUND) + set(${CMAKE_FIND_PACKAGE_NAME}_FOUND 0) +elseif(NOT TARGET unofficial::libcroco::croco-0.6) + add_library(unofficial::libcroco::croco-0.6 INTERFACE IMPORTED) + set_target_properties(unofficial::libcroco::croco-0.6 PROPERTIES + INTERFACE_LINK_LIBRARIES PkgConfig::VCPKG_LIBCROCO + ) +endif() diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libcroco/usage b/cc-multilingual-main/cc_net/vcpkg/ports/libcroco/usage new file mode 100644 index 0000000000000000000000000000000000000000..cee11583dfcc611ada2d2e3b0e990664f0f61c7f --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libcroco/usage @@ -0,0 +1,5 @@ +libcroco can be imported via CMake FindPkgConfig module: + + find_package(PkgConfig REQUIRED) + pkg_check_modules(LIBCROCO libcroco-0.6 IMPORTED_TARGET REQUIRED) + target_link_libraries(main PRIVATE PkgConfig::LIBCROCO) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libcroco/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/libcroco/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..a92872f944978b2abb4cbddd484a2f0b24ef1df8 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libcroco/vcpkg.json @@ -0,0 +1,15 @@ +{ + "name": "libcroco", + "version": "0.6.13", + "port-version": 6, + "description": "A standalone css2 parsing and manipulation library", + "license": "LGPL-2.0-only", + "dependencies": [ + "glib", + "libxml2", + { + "name": "vcpkg-cmake", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libdjinterop/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/libdjinterop/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..323e33cee094dad4078ab865fdc389a9e3fd55a2 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libdjinterop/portfile.cmake @@ -0,0 +1,22 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO xsco/libdjinterop + REF "${VERSION}" + SHA512 591cbf8102e16b11337ec25ad90ef035bf65dbbd18591802d959044874f36bb61bce3d5db974b00ecee14b45c7ea2488542b226d823d9087c92a0b452d804ff3 + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DCMAKE_DISABLE_FIND_PACKAGE_Boost=ON + ) +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(PACKAGE_NAME djinterop CONFIG_PATH lib/cmake/DjInterop) +vcpkg_fixup_pkgconfig() +vcpkg_copy_pdbs() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libdjinterop/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/libdjinterop/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..1cf12d41ac7201ef0d6219521382db31e310d9b1 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libdjinterop/vcpkg.json @@ -0,0 +1,20 @@ +{ + "name": "libdjinterop", + "version": "0.20.2", + "description": "C++ library for access to DJ record libraries. Currently only supports Denon Engine Prime databases", + "homepage": "https://github.com/xsco/libdjinterop", + "license": "LGPL-3.0-or-later", + "supports": "!xbox", + "dependencies": [ + "sqlite3", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + }, + "zlib" + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libzippp/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/libzippp/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..de3f0daada57b8f5810b5111cd51bfa236d29e86 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libzippp/portfile.cmake @@ -0,0 +1,35 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO ctabin/libzippp + REF 7e65f6cd173da8f20393d331ceb697482b206edf #v7.1-1.10.1 with CXX std version c++11 + SHA512 0076e39f6c1375d61e70dedc5132c48a8191534f2e6aeb042fe0f80c2aa068112e709446b29f84e513bf40ad532816c07155c2bc8ff86114e9c2f45b3f514fc0 + HEAD_REF master +) + +vcpkg_check_features( + OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + encryption LIBZIPPP_ENABLE_ENCRYPTION) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + ${FEATURE_OPTIONS} + -DLIBZIPPP_BUILD_TESTS=OFF + OPTIONS_DEBUG + -DLIBZIPPP_INSTALL_HEADERS=OFF +) + +vcpkg_cmake_install() +vcpkg_copy_pdbs() + +if(VCPKG_TARGET_IS_WINDOWS) + vcpkg_cmake_config_fixup(CONFIG_PATH "cmake/libzippp") +else() + vcpkg_cmake_config_fixup(CONFIG_PATH "share/libzippp") +endif() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +# Handle copyright +file(INSTALL ${SOURCE_PATH}/LICENCE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/libzippp/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/libzippp/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..84cc33d77f0b37f1af9ab86e22ae9279416c47a2 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/libzippp/vcpkg.json @@ -0,0 +1,30 @@ +{ + "name": "libzippp", + "version": "7.1-1.10.1", + "description": "Simple basic C++ wrapper around the libzip library. It is meant to be a portable and easy-to-use library for ZIP handling", + "homepage": "https://github.com/ctabin/libzippp", + "license": "BSD-3-Clause", + "dependencies": [ + { + "name": "libzip", + "default-features": false, + "features": [ + "bzip2" + ] + }, + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + }, + "zlib" + ], + "features": { + "encryption": { + "description": "Support encryption" + } + } +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/mapbox-geometry/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/mapbox-geometry/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..9ee4065e927e0d27b47a5dfb6d10157a354322de --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/mapbox-geometry/portfile.cmake @@ -0,0 +1,15 @@ +#header-only library + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO mapbox/geometry.hpp + REF v2.0.3 + SHA512 76c10578e1fba44430786fb5e043dbc063aa251f62396701a509f7fa1e2e5c351fa0fe041d16be84bda9816ec5df3342cd9890da6fe99d78d6fb26e0a3b2485b + HEAD_REF master +) + +# Copy header files +file(COPY ${SOURCE_PATH}/include/mapbox/ DESTINATION ${CURRENT_PACKAGES_DIR}/include/mapbox FILES_MATCHING PATTERN "*.hpp") + +# Handle copyright +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/mapbox-geometry/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/mapbox-geometry/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..bcde9b38a666c7c2d7e68b22309e066b114edc6a --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/mapbox-geometry/vcpkg.json @@ -0,0 +1,6 @@ +{ + "name": "mapbox-geometry", + "version-semver": "2.0.3", + "description": "C++ geometry types", + "homepage": "https://github.com/mapbox/geometry.hpp" +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/nanoflann/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/nanoflann/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..0fea664f07318130e6f1ccbe4d1d6c20773e2df5 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/nanoflann/portfile.cmake @@ -0,0 +1,30 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO jlblancoc/nanoflann + REF "v${VERSION}" + SHA512 bc4cdb285708f605ac202af41a66140d49b0fb54a96ce19642ab18e22ee0ffea6374ad1de08988ad4cef6aae8a65aad2a824b95b1c03fc0d762ccc783732b2ee + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DNANOFLANN_BUILD_EXAMPLES=OFF + -DNANOFLANN_BUILD_TESTS=OFF +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH "share/${PORT}/cmake") +vcpkg_fixup_pkgconfig() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +file(READ "${CURRENT_PACKAGES_DIR}/share/nanoflann/nanoflannConfig.cmake" _contents) +file(WRITE "${CURRENT_PACKAGES_DIR}/share/nanoflann/nanoflannConfig.cmake" " +include(CMakeFindDependencyMacro) +find_dependency(Threads) +${_contents}") + +# Handle copyright +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING") + diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/nanoflann/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/nanoflann/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..30879ab853e9760cc1ba90dbab77ac0fef7fad1b --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/nanoflann/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "nanoflann", + "version": "1.5.1", + "description": "nanoflann is a C++11 header-only library for building KD-Trees of datasets with different topologies: R2, R3 (point clouds), SO(2) and SO(3) (2D and 3D rotation groups).", + "homepage": "https://github.com/jlblancoc/nanoflann", + "license": "BSD-3-Clause", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/polyhook2/fix-dep.patch b/cc-multilingual-main/cc_net/vcpkg/ports/polyhook2/fix-dep.patch new file mode 100644 index 0000000000000000000000000000000000000000..cd24ccaf100f8829bb39295a2a5def4aa75fc518 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/polyhook2/fix-dep.patch @@ -0,0 +1,62 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index a91480445..c3d432e0b 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -211,14 +211,8 @@ endif() + + #DisAsm/Zydis + if (POLYHOOK_USE_EXTERNAL_ZYDIS) +- find_library(ZYDIS_LIBRARY NAMES zydis) +- find_library(ZYCORE_LIBRARY NAMES zycore) +- find_path(ZYDIS_INCLUDE_DIR NAMES zydis/zydis.h) +- find_path(ZYCORE_INCLUDE_DIR NAMES zycore/zycore.h) +- target_link_libraries(${PROJECT_NAME} PUBLIC ${ZYDIS_LIBRARY}) +- target_link_libraries(${PROJECT_NAME} PUBLIC ${ZYCORE_LIBRARY}) +- target_include_directories(${PROJECT_NAME} PUBLIC ${ZYDIS_INCLUDE_DIR}) +- target_include_directories(${PROJECT_NAME} PUBLIC ${ZYCORE_INCLUDE_DIR}) ++ find_package(zydis REQUIRED) ++ target_link_libraries(${PROJECT_NAME} PUBLIC Zydis::Zydis) + else() + target_link_libraries(${PROJECT_NAME} PUBLIC $) + target_include_directories(${PROJECT_NAME} PUBLIC $) +@@ -231,10 +225,8 @@ install(FILES ${PROJECT_SOURCE_DIR}/polyhook2/ZydisDisassembler.hpp DESTINATION + + function(link_asmjit) + if (POLYHOOK_USE_EXTERNAL_ASMJIT) +- find_library(ASMJIT_LIBRARY NAMES asmjit) +- find_path(ASMJIT_INCLUDE_DIR NAMES asmjit/asmjit.h) +- target_link_libraries(${PROJECT_NAME} PRIVATE ${ASMJIT_LIBRARY}) +- target_include_directories(${PROJECT_NAME} PUBLIC ${ASMJIT_INCLUDE_DIR}) ++ find_package(asmjit REQUIRED) ++ target_link_libraries(${PROJECT_NAME} PRIVATE asmjit::asmjit) + else() + target_link_libraries(${PROJECT_NAME} PRIVATE $) + target_include_directories(${PROJECT_NAME} PUBLIC "$") +@@ -238,10 +238,8 @@ if(POLYHOOK_FEATURE_DETOURS) + link_asmjit() + + if (POLYHOOK_USE_EXTERNAL_ASMTK) +- find_library(ASMTK_LIBRARY NAMES asmtk) +- find_path(ASMTK_INCLUDE_DIR NAMES asmtk/asmtk.h) +- target_link_libraries(${PROJECT_NAME} PUBLIC ${ASMTK_LIBRARY}) +- target_include_directories(${PROJECT_NAME} PUBLIC ${ASMTK_INCLUDE_DIR}) ++ find_package(asmtk REQUIRED) ++ target_link_libraries(${PROJECT_NAME} PRIVATE asmjit::asmtk) + else() + target_link_libraries(${PROJECT_NAME} PUBLIC $) + target_include_directories(${PROJECT_NAME} PUBLIC "$") +diff --git a/PolyHook_2-config.cmake.in b/PolyHook_2-config.cmake.in +index 709f8b5d9..3add035e3 100644 +--- a/PolyHook_2-config.cmake.in ++++ b/PolyHook_2-config.cmake.in +@@ -10,5 +10,10 @@ set(POLYHOOK_FEATURE_INLINENTD @POLYHOOK_FEATURE_INLINENTD@) + set(POLYHOOK_FEATURE_PE @POLYHOOK_FEATURE_PE@) + set(POLYHOOK_FEATURE_VIRTUALS @POLYHOOK_FEATURE_VIRTUALS@) + ++include(CMakeFindDependencyMacro) ++find_dependency(Zydis) ++find_dependency(asmjit) ++find_dependency(asmtk) ++ + get_filename_component(POLYHOOK_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) + include("${POLYHOOK_CMAKE_DIR}/PolyHook_2-targets.cmake") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/polyhook2/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/polyhook2/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..852673df4b779d75d2fbe8f081a13a8bb11f4284 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/polyhook2/portfile.cmake @@ -0,0 +1,45 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO stevemk14ebr/PolyHook_2_0 + REF 71553ebf0d197e73c49365cc3ab2a6aa326b3c37 + SHA512 f8daaa0307f07990b10a6487e1b0f2719e7442fcaeff5878eae9c22a741f27b1dfa7a292b91dcf7e2039029dd7dce71083ab2288e9d84de1bc20be7567a858c8 + HEAD_REF master + PATCHES fix-dep.patch +) + +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + exception POLYHOOK_FEATURE_EXCEPTION + detours POLYHOOK_FEATURE_DETOURS + inlinentd POLYHOOK_FEATURE_INLINENTD + pe POLYHOOK_FEATURE_PE + virtuals POLYHOOK_FEATURE_VIRTUALS +) + +string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED_LIB) + +if (VCPKG_CRT_LINKAGE STREQUAL "static") + set(BUILD_STATIC_RUNTIME ON) +else() + set(BUILD_STATIC_RUNTIME OFF) +endif() + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS ${FEATURE_OPTIONS} + -DPOLYHOOK_BUILD_SHARED_LIB=${BUILD_SHARED_LIB} + -DPOLYHOOK_BUILD_STATIC_RUNTIME=${BUILD_STATIC_RUNTIME} + -DPOLYHOOK_USE_EXTERNAL_ASMJIT=ON + -DPOLYHOOK_USE_EXTERNAL_ASMTK=ON + -DPOLYHOOK_USE_EXTERNAL_ZYDIS=ON +) + +vcpkg_cmake_install() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +vcpkg_copy_pdbs() +vcpkg_cmake_config_fixup(PACKAGE_NAME PolyHook_2 CONFIG_PATH lib/PolyHook_2) + +# Handle copyright +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/polyhook2/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/polyhook2/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..3c0e272d780a43f72968cacf6447932bffc9a1d4 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/polyhook2/vcpkg.json @@ -0,0 +1,50 @@ +{ + "name": "polyhook2", + "version-date": "2023-08-11", + "description": "C++17, x86/x64 Hooking Library v2.0", + "homepage": "https://github.com/stevemk14ebr/PolyHook_2_0", + "license": "MIT", + "supports": "!(arm | uwp | linux | osx)", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + }, + "zydis" + ], + "default-features": [ + "detours", + "exception", + "inlinentd", + "pe", + "virtuals" + ], + "features": { + "detours": { + "description": "Implement detour functionality", + "dependencies": [ + "asmjit", + "asmtk" + ] + }, + "exception": { + "description": "Implement all exception hooking functionality" + }, + "inlinentd": { + "description": "Support inline hooks without specifying typedefs by generating callback stubs at runtime with AsmJit", + "dependencies": [ + "asmjit" + ] + }, + "pe": { + "description": "Implement all win pe hooking functionality" + }, + "virtuals": { + "description": "Implement all virtual table hooking functionality" + } + } +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/psimd/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/psimd/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..1b86b3fce40fb6cf69e526584a855cbf6d87f441 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/psimd/portfile.cmake @@ -0,0 +1,16 @@ + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO Maratyszcza/psimd + REF 072586a71b55b7f8c584153d223e95687148a900 + SHA512 a18faea093423dd9fe19ece8b228e011dccce0a2a22222f777ea19b023a13173966d4a8aea01147e8fc58de5d39cffcedeb2221a1572ae52bd5aba1295f86a94 +) +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" +) +vcpkg_cmake_install() + +vcpkg_copy_pdbs() + +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/psimd/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/psimd/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..44ba8f56594e63a8786c00712514aba20468ac99 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/psimd/vcpkg.json @@ -0,0 +1,13 @@ +{ + "name": "psimd", + "version-date": "2021-02-21", + "port-version": 2, + "description": "Portable 128-bit SIMD intrinsics", + "homepage": "https://github.com/Maratyszcza/psimd", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/soem/disable-werror.patch b/cc-multilingual-main/cc_net/vcpkg/ports/soem/disable-werror.patch new file mode 100644 index 0000000000000000000000000000000000000000..18a664f5308f0dc837bb44b82955e4d78103f53c --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/soem/disable-werror.patch @@ -0,0 +1,28 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 7fa930c..e14b1bd 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -31,12 +31,10 @@ if(WIN32) + set(OS_LIBS ${winpcap_LIBRARY} ${packet_LIBRARY} Ws2_32.lib Winmm.lib) + elseif(UNIX AND NOT APPLE) + set(OS "linux") +- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Werror") + set(OS_LIBS pthread rt) + elseif(APPLE) + # This must come *before* linux or MacOSX will identify as Unix. + set(OS "macosx") +- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Werror") + set(OS_LIBS pthread pcap) + elseif(${CMAKE_SYSTEM_NAME} MATCHES "rt-kernel") + set(OS "rtk") +@@ -45,10 +43,6 @@ elseif(${CMAKE_SYSTEM_NAME} MATCHES "rt-kernel") + include_directories(oshw/${OS}/${ARCH}) + file(GLOB OSHW_EXTRA_SOURCES oshw/${OS}/${ARCH}/*.c) + set(OSHW_SOURCES "${OS_HW_SOURCES} ${OSHW_ARCHSOURCES}") +- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Werror") +- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-but-set-variable") +- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-function") +- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-format") + set(OS_LIBS "-Wl,--start-group -l${BSP} -l${ARCH} -lkern -ldev -lsio -lblock -lfs -lusb -llwip -leth -li2c -lrtc -lcan -lnand -lspi -lnor -lpwm -ladc -ltrace -lc -lm -Wl,--end-group") + elseif(${CMAKE_SYSTEM_NAME} MATCHES "rtems") + message(STATUS "Building for RTEMS") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/soem/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/soem/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..fa83adcf1b01864b9c1dd98e1f94ab0340468243 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/soem/portfile.cmake @@ -0,0 +1,33 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO OpenEtherCATsociety/SOEM + REF a901500618405760a564e64a6816705e29f50f9f + SHA512 d554bc1c3780b1a81402a7fda490f516caba6bd943a28482740b5c9d97e4273a11546e79c92796487ee9901f568cbf1b329d4e1c1d32602fdce0088a77c82443 + HEAD_REF master + PATCHES + winpcap.patch + disable-werror.patch +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DBUILD_TESTS=OFF +) + +vcpkg_cmake_install() +vcpkg_copy_pdbs() + +vcpkg_cmake_config_fixup(CONFIG_PATH "share/soem/cmake") + +file(REMOVE_RECURSE + "${CURRENT_PACKAGES_DIR}/bin" + "${CURRENT_PACKAGES_DIR}/debug/bin" + "${CURRENT_PACKAGES_DIR}/debug/include" + "${CURRENT_PACKAGES_DIR}/debug/share" +) + +# Handle copyright +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/soem/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/soem/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..6915b4c80c15bfb18a9c891be1d47fe3b8225b52 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/soem/vcpkg.json @@ -0,0 +1,22 @@ +{ + "name": "soem", + "version-date": "2023-06-09", + "port-version": 1, + "description": "Simple Open Source EtherCAT Master", + "homepage": "https://github.com/OpenEtherCATsociety/SOEM", + "supports": "!uwp", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + }, + { + "name": "winpcap", + "platform": "windows" + } + ] +} diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/soem/winpcap.patch b/cc-multilingual-main/cc_net/vcpkg/ports/soem/winpcap.patch new file mode 100644 index 0000000000000000000000000000000000000000..ca795f1fc07afae2a5cf24460efe50c12ee4ba14 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/soem/winpcap.patch @@ -0,0 +1,25 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index baf26bd..7fa930c 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -22,15 +22,13 @@ endif() + + if(WIN32) + set(OS "win32") +- include_directories(oshw/win32/wpcap/Include) +- if(CMAKE_SIZEOF_VOID_P EQUAL 8) +- link_directories(${CMAKE_CURRENT_LIST_DIR}/oshw/win32/wpcap/Lib/x64) +- elseif(CMAKE_SIZEOF_VOID_P EQUAL 4) +- link_directories(${CMAKE_CURRENT_LIST_DIR}/oshw/win32/wpcap/Lib) +- endif() ++ find_path(winpcap_INCLUDE_DIRS NAMES pcap.h) ++ find_library(winpcap_LIBRARY NAMES wpcap) ++ find_library(packet_LIBRARY NAMES packet) ++ include_directories(${winpcap_INCLUDE_DIRS}) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /D _CRT_SECURE_NO_WARNINGS") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX") +- set(OS_LIBS wpcap.lib Packet.lib Ws2_32.lib Winmm.lib) ++ set(OS_LIBS ${winpcap_LIBRARY} ${packet_LIBRARY} Ws2_32.lib Winmm.lib) + elseif(UNIX AND NOT APPLE) + set(OS "linux") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Werror") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/velodyne-decoder/0001-fix-msvc-flags.patch b/cc-multilingual-main/cc_net/vcpkg/ports/velodyne-decoder/0001-fix-msvc-flags.patch new file mode 100644 index 0000000000000000000000000000000000000000..c66eb6f122e1a41a2b83eef1c605d5bc41162d3b --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/velodyne-decoder/0001-fix-msvc-flags.patch @@ -0,0 +1,17 @@ +Backport of https://github.com/valgur/velodyne_decoder/commit/22809df3a4d550c3746b17aaca1d6c20692730c4 + +--- CMakeLists.txt ++++ CMakeLists.txt +@@ -17,7 +17,11 @@ + set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) + + if(MSVC) +- add_compile_options(/W4 /O2) ++ add_compile_options( ++ "$<$:/O2>" ++ "$<$:/O2>" ++ /W4 ++ ) + else() + add_compile_options( + "$<$:-ggdb3;-Og>" diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/velodyne-decoder/portfile.cmake b/cc-multilingual-main/cc_net/vcpkg/ports/velodyne-decoder/portfile.cmake new file mode 100644 index 0000000000000000000000000000000000000000..aea2eea95bb26dac03f86b30b85cd7abc7a1881c --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/velodyne-decoder/portfile.cmake @@ -0,0 +1,27 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO valgur/velodyne_decoder + REF "v${VERSION}" + SHA512 f09dd173cdea6b651a023d799bed7047ee2ac8518446d57e289a6eed9a92ff1ec2644ec49b78bd29ecfebb2046cb89455910bcb476db852a14e42e106b9881ce + HEAD_REF develop + PATCHES + 0001-fix-msvc-flags.patch +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DINSTALL_THIRD_PARTY=FALSE +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup( + PACKAGE_NAME "velodyne_decoder" + CONFIG_PATH lib/cmake/velodyne_decoder +) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/velodyne-decoder/usage b/cc-multilingual-main/cc_net/vcpkg/ports/velodyne-decoder/usage new file mode 100644 index 0000000000000000000000000000000000000000..8b00429b715c9de37af8db529601300b53105959 --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/velodyne-decoder/usage @@ -0,0 +1,4 @@ +velodyne-decoder provides CMake targets: + +find_package(velodyne_decoder CONFIG REQUIRED) +target_link_libraries(main PRIVATE velodyne_decoder::velodyne_decoder) diff --git a/cc-multilingual-main/cc_net/vcpkg/ports/velodyne-decoder/vcpkg.json b/cc-multilingual-main/cc_net/vcpkg/ports/velodyne-decoder/vcpkg.json new file mode 100644 index 0000000000000000000000000000000000000000..95de2e5a1bad6db0e2eb8babc1c2026cd0851a9e --- /dev/null +++ b/cc-multilingual-main/cc_net/vcpkg/ports/velodyne-decoder/vcpkg.json @@ -0,0 +1,23 @@ +{ + "name": "velodyne-decoder", + "version": "3.0.0", + "port-version": 1, + "description": "A decoder library for raw Velodyne data and telemetry info", + "homepage": "https://github.com/valgur/velodyne_decoder", + "license": "BSD-3-Clause", + "dependencies": [ + "ms-gsl", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + }, + { + "name": "yaml-cpp", + "version>=": "0.7.0" + } + ] +}