applied-ai-018 commited on
Commit
aef78e7
·
verified ·
1 Parent(s): 8d593ed

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +3 -0
  2. cc-multilingual-main/cc_net/bin/lid.bin +3 -0
  3. cc-multilingual-main/cc_net/third_party/kenlm/build/bin/kenlm_benchmark +3 -0
  4. cc-multilingual-main/cc_net/third_party/kenlm/include/lm/builder/corpus_count.hh +53 -0
  5. cc-multilingual-main/cc_net/third_party/kenlm/include/lm/builder/joint_order.hh +67 -0
  6. cc-multilingual-main/cc_net/third_party/kenlm/include/lm/builder/ngram.hh +109 -0
  7. cc-multilingual-main/cc_net/third_party/kenlm/include/lm/builder/print.hh +115 -0
  8. cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/CMakeFiles/sentencepiece_train.dir/builder.cc.o +3 -0
  9. cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/libsentencepiece_train.so.0.0.0 +3 -0
  10. cc-multilingual-main/cc_net/vcpkg/ports/absent/portfile.cmake +32 -0
  11. cc-multilingual-main/cc_net/vcpkg/ports/absent/vcpkg.json +17 -0
  12. cc-multilingual-main/cc_net/vcpkg/ports/antlr4/portfile.cmake +35 -0
  13. cc-multilingual-main/cc_net/vcpkg/ports/antlr4/vcpkg.json +22 -0
  14. cc-multilingual-main/cc_net/vcpkg/ports/argh/portfile.cmake +30 -0
  15. cc-multilingual-main/cc_net/vcpkg/ports/argh/vcpkg.json +18 -0
  16. cc-multilingual-main/cc_net/vcpkg/ports/arpack-ng/portfile.cmake +35 -0
  17. cc-multilingual-main/cc_net/vcpkg/ports/arpack-ng/usage +4 -0
  18. cc-multilingual-main/cc_net/vcpkg/ports/arpack-ng/vcpkg.json +25 -0
  19. cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/.gn +1 -0
  20. cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/0001-base.patch +101 -0
  21. cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/LASTCHANGE.committime +1 -0
  22. cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/build_overrides/build.gni +16 -0
  23. cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/libxml/BUILD.gn +2 -0
  24. cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/protobuf/proto_library.gni +0 -0
  25. cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/test_fonts/BUILD.gn +1 -0
  26. cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/testing/gmock/BUILD.gn +1 -0
  27. cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/testing/gtest/BUILD.gn +1 -0
  28. cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/testing/test.gni +20 -0
  29. cc-multilingual-main/cc_net/vcpkg/ports/clipboardxx/portfile.cmake +24 -0
  30. cc-multilingual-main/cc_net/vcpkg/ports/clipboardxx/unofficial-clipboardxx-config.cmake.in +19 -0
  31. cc-multilingual-main/cc_net/vcpkg/ports/clipboardxx/vcpkg.json +18 -0
  32. cc-multilingual-main/cc_net/vcpkg/ports/faad2/fix-install.patch +13 -0
  33. cc-multilingual-main/cc_net/vcpkg/ports/faad2/portfile.cmake +29 -0
  34. cc-multilingual-main/cc_net/vcpkg/ports/faad2/vcpkg.json +13 -0
  35. cc-multilingual-main/cc_net/vcpkg/ports/fastrtps/disable-symlink.patch +16 -0
  36. cc-multilingual-main/cc_net/vcpkg/ports/fastrtps/fix-find-package-asio.patch +12 -0
  37. cc-multilingual-main/cc_net/vcpkg/ports/fastrtps/fix-xtime.patch +23 -0
  38. cc-multilingual-main/cc_net/vcpkg/ports/fastrtps/fix_thread.patch +40 -0
  39. cc-multilingual-main/cc_net/vcpkg/ports/fastrtps/portfile.cmake +86 -0
  40. cc-multilingual-main/cc_net/vcpkg/ports/fastrtps/vcpkg.json +24 -0
  41. cc-multilingual-main/cc_net/vcpkg/ports/geotrans/CMakeLists.txt +151 -0
  42. cc-multilingual-main/cc_net/vcpkg/ports/geotrans/geotrans-config.in.cmake +7 -0
  43. cc-multilingual-main/cc_net/vcpkg/ports/geotrans/portfile.cmake +36 -0
  44. cc-multilingual-main/cc_net/vcpkg/ports/geotrans/usage +11 -0
  45. cc-multilingual-main/cc_net/vcpkg/ports/geotrans/vcpkg.json +15 -0
  46. cc-multilingual-main/cc_net/vcpkg/ports/ideviceinstaller/001_fix_windows.patch +47 -0
  47. cc-multilingual-main/cc_net/vcpkg/ports/ideviceinstaller/CMakeLists.txt +46 -0
  48. cc-multilingual-main/cc_net/vcpkg/ports/ideviceinstaller/portfile.cmake +24 -0
  49. cc-multilingual-main/cc_net/vcpkg/ports/ideviceinstaller/vcpkg.json +18 -0
  50. cc-multilingual-main/cc_net/vcpkg/ports/io2d/cmake.dep.patch +62 -0
.gitattributes CHANGED
@@ -59,3 +59,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
60
  cc-multilingual-main/cc_net/third_party/kenlm/build/lib/libkenlm.a filter=lfs diff=lfs merge=lfs -text
61
  cc-multilingual-main/cc_net/third_party/kenlm/build/lib/libkenlm_builder.a filter=lfs diff=lfs merge=lfs -text
 
 
 
 
59
  *.webm filter=lfs diff=lfs merge=lfs -text
60
  cc-multilingual-main/cc_net/third_party/kenlm/build/lib/libkenlm.a filter=lfs diff=lfs merge=lfs -text
61
  cc-multilingual-main/cc_net/third_party/kenlm/build/lib/libkenlm_builder.a filter=lfs diff=lfs merge=lfs -text
62
+ cc-multilingual-main/cc_net/third_party/kenlm/build/bin/kenlm_benchmark filter=lfs diff=lfs merge=lfs -text
63
+ cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/libsentencepiece_train.so.0.0.0 filter=lfs diff=lfs merge=lfs -text
64
+ cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/CMakeFiles/sentencepiece_train.dir/builder.cc.o filter=lfs diff=lfs merge=lfs -text
cc-multilingual-main/cc_net/bin/lid.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e69ec5451bc261cc7844e49e4792a85d7f09c06789ec800fc4a44aec362764e
3
+ size 131266198
cc-multilingual-main/cc_net/third_party/kenlm/build/bin/kenlm_benchmark ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dea74ed9e31a0a593b6e48f118406f8892958cce0f52981326f76c2674c3e359
3
+ size 1157104
cc-multilingual-main/cc_net/third_party/kenlm/include/lm/builder/corpus_count.hh ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef LM_BUILDER_CORPUS_COUNT_H
2
+ #define LM_BUILDER_CORPUS_COUNT_H
3
+
4
+ #include "lm/lm_exception.hh"
5
+ #include "lm/word_index.hh"
6
+ #include "util/scoped.hh"
7
+
8
+ #include <cstddef>
9
+ #include <string>
10
+ #include <stdint.h>
11
+ #include <vector>
12
+
13
+ namespace util {
14
+ class FilePiece;
15
+ namespace stream {
16
+ class ChainPosition;
17
+ } // namespace stream
18
+ } // namespace util
19
+
20
+ namespace lm {
21
+ namespace builder {
22
+
23
+ class CorpusCount {
24
+ public:
25
+ // Memory usage will be DedupeMultipler(order) * block_size + total_chain_size + unknown vocab_hash_size
26
+ static float DedupeMultiplier(std::size_t order);
27
+
28
+ // How much memory vocabulary will use based on estimated size of the vocab.
29
+ static std::size_t VocabUsage(std::size_t vocab_estimate);
30
+
31
+ // token_count: out.
32
+ // type_count aka vocabulary size. Initialize to an estimate. It is set to the exact value.
33
+ CorpusCount(util::FilePiece &from, int vocab_write, uint64_t &token_count, WordIndex &type_count, std::vector<bool> &prune_words, const std::string& prune_vocab_filename, std::size_t entries_per_block, WarningAction disallowed_symbol);
34
+
35
+ void Run(const util::stream::ChainPosition &position);
36
+
37
+ private:
38
+ util::FilePiece &from_;
39
+ int vocab_write_;
40
+ uint64_t &token_count_;
41
+ WordIndex &type_count_;
42
+ std::vector<bool>& prune_words_;
43
+ const std::string& prune_vocab_filename_;
44
+
45
+ std::size_t dedupe_mem_size_;
46
+ util::scoped_malloc dedupe_mem_;
47
+
48
+ WarningAction disallowed_symbol_action_;
49
+ };
50
+
51
+ } // namespace builder
52
+ } // namespace lm
53
+ #endif // LM_BUILDER_CORPUS_COUNT_H
cc-multilingual-main/cc_net/third_party/kenlm/include/lm/builder/joint_order.hh ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef LM_BUILDER_JOINT_ORDER_H
2
+ #define LM_BUILDER_JOINT_ORDER_H
3
+
4
+ #include "lm/builder/ngram_stream.hh"
5
+ #include "lm/lm_exception.hh"
6
+
7
+ #ifdef DEBUG
8
+ #include "util/fixed_array.hh"
9
+ #include <iostream>
10
+ #endif
11
+
12
+ #include <string.h>
13
+
14
+ namespace lm { namespace builder {
15
+
16
+ template <class Callback, class Compare> void JointOrder(const util::stream::ChainPositions &positions, Callback &callback) {
17
+ // Allow matching to reference streams[-1].
18
+ NGramStreams streams_with_dummy;
19
+ streams_with_dummy.InitWithDummy(positions);
20
+ NGramStream *streams = streams_with_dummy.begin() + 1;
21
+
22
+ unsigned int order;
23
+ for (order = 0; order < positions.size() && streams[order]; ++order) {}
24
+ assert(order); // should always have <unk>.
25
+
26
+ // Debugging only: call comparison function to sanity check order.
27
+ #ifdef DEBUG
28
+ util::FixedArray<Compare> less_compare(order);
29
+ for (unsigned i = 0; i < order; ++i)
30
+ less_compare.push_back(i + 1);
31
+ #endif // DEBUG
32
+
33
+ unsigned int current = 0;
34
+ while (true) {
35
+ // Does the context match the lower one?
36
+ if (!memcmp(streams[static_cast<int>(current) - 1]->begin(), streams[current]->begin() + Compare::kMatchOffset, sizeof(WordIndex) * current)) {
37
+ callback.Enter(current, *streams[current]);
38
+ // Transition to looking for extensions.
39
+ if (++current < order) continue;
40
+ }
41
+ #ifdef DEBUG
42
+ // match_check[current - 1] matches current-grams
43
+ // The lower-order stream (which skips fewer current-grams) should always be <= the higher order-stream (which can skip current-grams).
44
+ else if (!less_compare[current - 1](streams[static_cast<int>(current) - 1]->begin(), streams[current]->begin() + Compare::kMatchOffset)) {
45
+ std::cerr << "Stream out of order detected" << std::endl;
46
+ abort();
47
+ }
48
+ #endif // DEBUG
49
+ // No extension left.
50
+ while(true) {
51
+ assert(current > 0);
52
+ --current;
53
+ callback.Exit(current, *streams[current]);
54
+
55
+ if (++streams[current]) break;
56
+
57
+ UTIL_THROW_IF(order != current + 1, FormatLoadException, "Detected n-gram without matching suffix");
58
+
59
+ order = current;
60
+ if (!order) return;
61
+ }
62
+ }
63
+ }
64
+
65
+ }} // namespaces
66
+
67
+ #endif // LM_BUILDER_JOINT_ORDER_H
cc-multilingual-main/cc_net/third_party/kenlm/include/lm/builder/ngram.hh ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef LM_BUILDER_NGRAM_H
2
+ #define LM_BUILDER_NGRAM_H
3
+
4
+ #include "lm/weights.hh"
5
+ #include "lm/word_index.hh"
6
+
7
+ #include <cstddef>
8
+
9
+ #include <assert.h>
10
+ #include <stdint.h>
11
+ #include <string.h>
12
+
13
+ namespace lm {
14
+ namespace builder {
15
+
16
+ struct Uninterpolated {
17
+ float prob; // Uninterpolated probability.
18
+ float gamma; // Interpolation weight for lower order.
19
+ };
20
+
21
+ union Payload {
22
+ uint64_t count;
23
+ Uninterpolated uninterp;
24
+ ProbBackoff complete;
25
+ };
26
+
27
+ class NGram {
28
+ public:
29
+ NGram(void *begin, std::size_t order)
30
+ : begin_(static_cast<WordIndex*>(begin)), end_(begin_ + order) {}
31
+
32
+ const uint8_t *Base() const { return reinterpret_cast<const uint8_t*>(begin_); }
33
+ uint8_t *Base() { return reinterpret_cast<uint8_t*>(begin_); }
34
+
35
+ void ReBase(void *to) {
36
+ std::size_t difference = end_ - begin_;
37
+ begin_ = reinterpret_cast<WordIndex*>(to);
38
+ end_ = begin_ + difference;
39
+ }
40
+
41
+ // Would do operator++ but that can get confusing for a stream.
42
+ void NextInMemory() {
43
+ ReBase(&Value() + 1);
44
+ }
45
+
46
+ // Lower-case in deference to STL.
47
+ const WordIndex *begin() const { return begin_; }
48
+ WordIndex *begin() { return begin_; }
49
+ const WordIndex *end() const { return end_; }
50
+ WordIndex *end() { return end_; }
51
+
52
+ const Payload &Value() const { return *reinterpret_cast<const Payload *>(end_); }
53
+ Payload &Value() { return *reinterpret_cast<Payload *>(end_); }
54
+
55
+ uint64_t &Count() { return Value().count; }
56
+ uint64_t Count() const { return Value().count; }
57
+
58
+ std::size_t Order() const { return end_ - begin_; }
59
+
60
+ static std::size_t TotalSize(std::size_t order) {
61
+ return order * sizeof(WordIndex) + sizeof(Payload);
62
+ }
63
+ std::size_t TotalSize() const {
64
+ // Compiler should optimize this.
65
+ return TotalSize(Order());
66
+ }
67
+ static std::size_t OrderFromSize(std::size_t size) {
68
+ std::size_t ret = (size - sizeof(Payload)) / sizeof(WordIndex);
69
+ assert(size == TotalSize(ret));
70
+ return ret;
71
+ }
72
+
73
+ // manipulate msb to signal that ngram can be pruned
74
+ /*mjd**********************************************************************/
75
+
76
+ bool IsMarked() const {
77
+ return Value().count >> (sizeof(Value().count) * 8 - 1);
78
+ }
79
+
80
+ void Mark() {
81
+ Value().count |= (1ul << (sizeof(Value().count) * 8 - 1));
82
+ }
83
+
84
+ void Unmark() {
85
+ Value().count &= ~(1ul << (sizeof(Value().count) * 8 - 1));
86
+ }
87
+
88
+ uint64_t UnmarkedCount() const {
89
+ return Value().count & ~(1ul << (sizeof(Value().count) * 8 - 1));
90
+ }
91
+
92
+ uint64_t CutoffCount() const {
93
+ return IsMarked() ? 0 : UnmarkedCount();
94
+ }
95
+
96
+ /*mjd**********************************************************************/
97
+
98
+ private:
99
+ WordIndex *begin_, *end_;
100
+ };
101
+
102
+ const WordIndex kUNK = 0;
103
+ const WordIndex kBOS = 1;
104
+ const WordIndex kEOS = 2;
105
+
106
+ } // namespace builder
107
+ } // namespace lm
108
+
109
+ #endif // LM_BUILDER_NGRAM_H
cc-multilingual-main/cc_net/third_party/kenlm/include/lm/builder/print.hh ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifndef LM_BUILDER_PRINT_H
2
+ #define LM_BUILDER_PRINT_H
3
+
4
+ #include "lm/builder/ngram.hh"
5
+ #include "lm/builder/ngram_stream.hh"
6
+ #include "lm/builder/output.hh"
7
+ #include "util/fake_ofstream.hh"
8
+ #include "util/file.hh"
9
+ #include "util/mmap.hh"
10
+ #include "util/string_piece.hh"
11
+
12
+ #include <ostream>
13
+
14
+ #include <assert.h>
15
+
16
+ // Warning: print routines read all unigrams before all bigrams before all
17
+ // trigrams etc. So if other parts of the chain move jointly, you'll have to
18
+ // buffer.
19
+
20
+ namespace lm { namespace builder {
21
+
22
+ class VocabReconstitute {
23
+ public:
24
+ // fd must be alive for life of this object; does not take ownership.
25
+ explicit VocabReconstitute(int fd);
26
+
27
+ const char *Lookup(WordIndex index) const {
28
+ assert(index < map_.size() - 1);
29
+ return map_[index];
30
+ }
31
+
32
+ StringPiece LookupPiece(WordIndex index) const {
33
+ return StringPiece(map_[index], map_[index + 1] - 1 - map_[index]);
34
+ }
35
+
36
+ std::size_t Size() const {
37
+ // There's an extra entry to support StringPiece lengths.
38
+ return map_.size() - 1;
39
+ }
40
+
41
+ private:
42
+ util::scoped_memory memory_;
43
+ std::vector<const char*> map_;
44
+ };
45
+
46
+ // Not defined, only specialized.
47
+ template <class T> void PrintPayload(util::FakeOFStream &to, const Payload &payload);
48
+ template <> inline void PrintPayload<uint64_t>(util::FakeOFStream &to, const Payload &payload) {
49
+ // TODO slow
50
+ to << boost::lexical_cast<std::string>(payload.count);
51
+ }
52
+ template <> inline void PrintPayload<Uninterpolated>(util::FakeOFStream &to, const Payload &payload) {
53
+ to << log10(payload.uninterp.prob) << ' ' << log10(payload.uninterp.gamma);
54
+ }
55
+ template <> inline void PrintPayload<ProbBackoff>(util::FakeOFStream &to, const Payload &payload) {
56
+ to << payload.complete.prob << ' ' << payload.complete.backoff;
57
+ }
58
+
59
+ // template parameter is the type stored.
60
+ template <class V> class Print {
61
+ public:
62
+ static void DumpSeparateFiles(const VocabReconstitute &vocab, const std::string &file_base, util::stream::Chains &chains) {
63
+ for (unsigned int i = 0; i < chains.size(); ++i) {
64
+ std::string file(file_base + boost::lexical_cast<std::string>(i));
65
+ chains[i] >> Print(vocab, util::CreateOrThrow(file.c_str()));
66
+ }
67
+ }
68
+
69
+ explicit Print(const VocabReconstitute &vocab, int fd) : vocab_(vocab), to_(fd) {}
70
+
71
+ void Run(const util::stream::ChainPositions &chains) {
72
+ util::scoped_fd fd(to_);
73
+ util::FakeOFStream out(to_);
74
+ NGramStreams streams(chains);
75
+ for (NGramStream *s = streams.begin(); s != streams.end(); ++s) {
76
+ DumpStream(*s, out);
77
+ }
78
+ }
79
+
80
+ void Run(const util::stream::ChainPosition &position) {
81
+ util::scoped_fd fd(to_);
82
+ util::FakeOFStream out(to_);
83
+ NGramStream stream(position);
84
+ DumpStream(stream, out);
85
+ }
86
+
87
+ private:
88
+ void DumpStream(NGramStream &stream, util::FakeOFStream &to) {
89
+ for (; stream; ++stream) {
90
+ PrintPayload<V>(to, stream->Value());
91
+ for (const WordIndex *w = stream->begin(); w != stream->end(); ++w) {
92
+ to << ' ' << vocab_.Lookup(*w) << '=' << *w;
93
+ }
94
+ to << '\n';
95
+ }
96
+ }
97
+
98
+ const VocabReconstitute &vocab_;
99
+ int to_;
100
+ };
101
+
102
+ class PrintARPA : public OutputHook {
103
+ public:
104
+ explicit PrintARPA(int fd, bool verbose_header)
105
+ : OutputHook(PROB_SEQUENTIAL_HOOK), out_fd_(fd), verbose_header_(verbose_header) {}
106
+
107
+ void Run(const util::stream::ChainPositions &positions);
108
+
109
+ private:
110
+ util::scoped_fd out_fd_;
111
+ bool verbose_header_;
112
+ };
113
+
114
+ }} // namespaces
115
+ #endif // LM_BUILDER_PRINT_H
cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/CMakeFiles/sentencepiece_train.dir/builder.cc.o ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:976b84fde8bfb7971b25df0fc93e046d5ffd234aac0b2863eb43a0dab4307d8f
3
+ size 1117264
cc-multilingual-main/cc_net/third_party/sentencepiece/build/src/libsentencepiece_train.so.0.0.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ec684eaf2a6f1d19285c97f5d3a0382c4a983fa08d78aeede21d6cf2563ff4d
3
+ size 1544648
cc-multilingual-main/cc_net/vcpkg/ports/absent/portfile.cmake ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO rvarago/absent
4
+ REF 0.3.1
5
+ SHA512 c7b7d29422ef8afc48e3093496e1dd055cfe9969ae037c2b06ea70fe4283e7a7e9129171efaa257e909c535e24df5861b992b24b00ec03f965730e6a22e13015
6
+ )
7
+
8
+ vcpkg_cmake_configure(
9
+ SOURCE_PATH "${SOURCE_PATH}"
10
+ OPTIONS
11
+ -DBUILD_TESTS=OFF
12
+ )
13
+
14
+ vcpkg_cmake_install()
15
+
16
+ vcpkg_cmake_config_fixup(
17
+ CONFIG_PATH lib/cmake/${PORT}
18
+ )
19
+
20
+ file(REMOVE_RECURSE
21
+ "${CURRENT_PACKAGES_DIR}/debug"
22
+ "${CURRENT_PACKAGES_DIR}/lib"
23
+ )
24
+
25
+ file(INSTALL
26
+ "${SOURCE_PATH}/README.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
27
+ )
28
+
29
+ file(INSTALL
30
+ "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright
31
+ )
32
+
cc-multilingual-main/cc_net/vcpkg/ports/absent/vcpkg.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "absent",
3
+ "version": "0.3.1",
4
+ "port-version": 3,
5
+ "description": "A small C++17 library meant to simplify the composition of nullable types in a generic, type-safe, and declarative way",
6
+ "homepage": "https://github.com/rvarago/absent",
7
+ "dependencies": [
8
+ {
9
+ "name": "vcpkg-cmake",
10
+ "host": true
11
+ },
12
+ {
13
+ "name": "vcpkg-cmake-config",
14
+ "host": true
15
+ }
16
+ ]
17
+ }
cc-multilingual-main/cc_net/vcpkg/ports/antlr4/portfile.cmake ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO antlr/antlr4
4
+ HEAD_REF dev
5
+ REF "${VERSION}"
6
+ SHA512 79ac3cdfc8f2368c647d06aec85d87507629a75527205ff2cbf7d9802989b0c6e6a8fac76148ad101f539c9ef922e431e22ba489f899f847ccc3d3d889bb2b70
7
+ PATCHES
8
+ set-export-macro-define-as-private.patch
9
+ )
10
+
11
+ set(RUNTIME_PATH "${SOURCE_PATH}/runtime/Cpp")
12
+
13
+ message(INFO "Configure at '${RUNTIME_PATH}'")
14
+
15
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC)
16
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
17
+
18
+ vcpkg_cmake_configure(
19
+ SOURCE_PATH "${RUNTIME_PATH}"
20
+ OPTIONS
21
+ -DANTLR_BUILD_STATIC=${BUILD_STATIC}
22
+ -DANTLR_BUILD_SHARED=${BUILD_SHARED}
23
+ -DANTLR4_INSTALL=ON
24
+ -DANTLR_BUILD_CPP_TESTS=OFF
25
+ )
26
+
27
+ vcpkg_cmake_install()
28
+ vcpkg_cmake_config_fixup(PACKAGE_NAME antlr4-generator CONFIG_PATH lib/cmake/antlr4-generator DO_NOT_DELETE_PARENT_CONFIG_PATH)
29
+ vcpkg_cmake_config_fixup(PACKAGE_NAME antlr4-runtime CONFIG_PATH lib/cmake/antlr4-runtime)
30
+
31
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
32
+
33
+ vcpkg_copy_pdbs()
34
+
35
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
cc-multilingual-main/cc_net/vcpkg/ports/antlr4/vcpkg.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "antlr4",
3
+ "version": "4.13.1",
4
+ "description": "ANother Tool for Language Recognition",
5
+ "homepage": "https://www.antlr.org",
6
+ "license": "BSD-3-Clause",
7
+ "supports": "!uwp",
8
+ "dependencies": [
9
+ {
10
+ "name": "libuuid",
11
+ "platform": "!uwp & !windows & !osx"
12
+ },
13
+ {
14
+ "name": "vcpkg-cmake",
15
+ "host": true
16
+ },
17
+ {
18
+ "name": "vcpkg-cmake-config",
19
+ "host": true
20
+ }
21
+ ]
22
+ }
cc-multilingual-main/cc_net/vcpkg/ports/argh/portfile.cmake ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # header-only library
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO adishavit/argh
6
+ REF "v${VERSION}"
7
+ SHA512 66073718ef1fc31fbd0feb9daf366a2e28c759de44fb1882dc46a6d10f7a44635ae1155882dff916f55c51fad88bedebdfe361418f7669fac241feead68f2b5b
8
+ HEAD_REF master
9
+ )
10
+
11
+ set(VCPKG_BUILD_TYPE release)
12
+
13
+ vcpkg_cmake_configure(
14
+ SOURCE_PATH "${SOURCE_PATH}"
15
+ OPTIONS
16
+ -DBUILD_TESTS=OFF
17
+ -DBUILD_EXAMPLES=OFF
18
+ )
19
+
20
+ vcpkg_cmake_install()
21
+
22
+ set(CONFIG_PATH lib/cmake/argh)
23
+ if(EXISTS "${CURRENT_PACKAGES_DIR}/cmake")
24
+ set(CONFIG_PATH cmake)
25
+ endif()
26
+ vcpkg_cmake_config_fixup(CONFIG_PATH "${CONFIG_PATH}")
27
+
28
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc" "${CURRENT_PACKAGES_DIR}/lib")
29
+
30
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
cc-multilingual-main/cc_net/vcpkg/ports/argh/vcpkg.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "argh",
3
+ "version": "1.3.2",
4
+ "port-version": 1,
5
+ "description": "Argh! A minimalist argument handler.",
6
+ "homepage": "https://github.com/adishavit/argh",
7
+ "license": "BSD-3-Clause",
8
+ "dependencies": [
9
+ {
10
+ "name": "vcpkg-cmake",
11
+ "host": true
12
+ },
13
+ {
14
+ "name": "vcpkg-cmake-config",
15
+ "host": true
16
+ }
17
+ ]
18
+ }
cc-multilingual-main/cc_net/vcpkg/ports/arpack-ng/portfile.cmake ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ include(vcpkg_find_fortran)
2
+ vcpkg_find_fortran(FORTRAN_CMAKE)
3
+ set(VCPKG_POLICY_ALLOW_OBSOLETE_MSVCRT enabled)
4
+
5
+ vcpkg_from_github(
6
+ OUT_SOURCE_PATH SOURCE_PATH
7
+ REPO opencollab/arpack-ng
8
+ REF ${VERSION}
9
+ SHA512 fbcaa2179dd1aa5a39fc3e7d80f377ec90ddf16ef93184a88e6ecfc464ed97e5659f2cf578294ac3e0b0c0da6408c86acf5bbdce533e1e9d2a3121848340d282
10
+ HEAD_REF master
11
+ )
12
+
13
+ if(NOT VCPKG_TARGET_IS_WINDOWS)
14
+ set(ENV{FFLAGS} "$ENV{FFLAGS} -fPIC")
15
+ endif()
16
+
17
+ vcpkg_cmake_configure(
18
+ SOURCE_PATH "${SOURCE_PATH}"
19
+ OPTIONS
20
+ ${FORTRAN_CMAKE}
21
+ -DMPI=OFF
22
+ -DICB=ON
23
+ -DICBEXMM=OFF
24
+ -DEXAMPLES=OFF
25
+ -DTESTS=OFF
26
+ )
27
+
28
+ vcpkg_cmake_install()
29
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
30
+
31
+ vcpkg_cmake_config_fixup(PACKAGE_NAME arpackng CONFIG_PATH lib/cmake/arpackng)
32
+ vcpkg_fixup_pkgconfig()
33
+
34
+ file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
35
+ file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
cc-multilingual-main/cc_net/vcpkg/ports/arpack-ng/usage ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ The package arpack-ng provides CMake targets:
2
+
3
+ find_package(arpackng CONFIG REQUIRED)
4
+ target_link_libraries(main PRIVATE ARPACK::ARPACK)
cc-multilingual-main/cc_net/vcpkg/ports/arpack-ng/vcpkg.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "arpack-ng",
3
+ "version": "3.9.0",
4
+ "port-version": 1,
5
+ "description": "ARPACK-NG is a collection of Fortran77 subroutines designed to solve large scale eigenvalue problems.",
6
+ "homepage": "https://github.com/opencollab/arpack-ng",
7
+ "license": "BSD-3-Clause",
8
+ "supports": "!uwp",
9
+ "dependencies": [
10
+ "blas",
11
+ "lapack",
12
+ {
13
+ "name": "vcpkg-cmake",
14
+ "host": true
15
+ },
16
+ {
17
+ "name": "vcpkg-cmake-config",
18
+ "host": true
19
+ },
20
+ {
21
+ "name": "vcpkg-gfortran",
22
+ "platform": "windows"
23
+ }
24
+ ]
25
+ }
cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/.gn ADDED
@@ -0,0 +1 @@
 
 
1
+ buildconfig = "//build/config/BUILDCONFIG.gn"
cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/0001-base.patch ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/BUILD.gn b/BUILD.gn
2
+ index 7b7cd51..2961688 100644
3
+ --- a/BUILD.gn
4
+ +++ b/BUILD.gn
5
+ @@ -155,6 +155,7 @@ if (is_android) {
6
+ # test code (test support and anything in the test directory) which should use
7
+ # source_set as is recommended for GN targets).
8
+ jumbo_component("base") {
9
+ + output_name = "chromium_base"
10
+ if (is_nacl || is_ios) {
11
+ # Link errors related to malloc functions if libbase for nacl is
12
+ # compiled with jumbo: https://crbug.com/775959.
13
+ @@ -162,6 +163,11 @@ jumbo_component("base") {
14
+ never_build_jumbo = true
15
+ }
16
+
17
+ + if (!is_component_build) {
18
+ + complete_static_lib = true
19
+ + configs -= [ "//build/config/compiler:thin_archive" ]
20
+ + }
21
+ +
22
+ sources = [
23
+ "allocator/allocator_check.cc",
24
+ "allocator/allocator_check.h",
25
+ @@ -1638,7 +1644,7 @@ jumbo_component("base") {
26
+ "hash/md5_constexpr_internal.h",
27
+ "hash/sha1.h",
28
+ ]
29
+ - if (is_nacl) {
30
+ + if (true) {
31
+ sources += [
32
+ "hash/md5_nacl.cc",
33
+ "hash/md5_nacl.h",
34
+ @@ -2298,6 +2304,7 @@ buildflag_header("tracing_buildflags") {
35
+ # library. Note that this library cannot depend on base because base depends on
36
+ # base_static.
37
+ static_library("base_static") {
38
+ + output_name = "chromium_base_static"
39
+ sources = [
40
+ "base_switches.cc",
41
+ "base_switches.h",
42
+ @@ -2325,7 +2332,7 @@ static_library("base_static") {
43
+ }
44
+
45
+ component("i18n") {
46
+ - output_name = "base_i18n"
47
+ + output_name = "chromium_base_i18n"
48
+ sources = [
49
+ "i18n/base_i18n_export.h",
50
+ "i18n/base_i18n_switches.cc",
51
+ diff --git a/gtest_prod_util.h b/gtest_prod_util.h
52
+ index 2ca267e..0a0b6df 100644
53
+ --- a/gtest_prod_util.h
54
+ +++ b/gtest_prod_util.h
55
+ @@ -5,7 +5,8 @@
56
+ #ifndef BASE_GTEST_PROD_UTIL_H_
57
+ #define BASE_GTEST_PROD_UTIL_H_
58
+
59
+ -#include "testing/gtest/include/gtest/gtest_prod.h" // nogncheck
60
+ +#define FRIEND_TEST(test_case_name, test_name)\
61
+ +friend class test_case_name##_##test_name##_Test
62
+
63
+ // This is a wrapper for gtest's FRIEND_TEST macro that friends
64
+ // test with all possible prefixes. This is very helpful when changing the test
65
+ diff --git a/hash/md5.h b/hash/md5.h
66
+ index 8a49f08..24acdab 100644
67
+ --- a/hash/md5.h
68
+ +++ b/hash/md5.h
69
+ @@ -11,7 +11,7 @@
70
+ #include "base/strings/string_piece.h"
71
+ #include "build/build_config.h"
72
+
73
+ -#if defined(OS_NACL)
74
+ +#if true
75
+ #include "base/hash/md5_nacl.h"
76
+ #else
77
+ #include "base/hash/md5_boringssl.h"
78
+ diff --git a/hash/md5_nacl.cc b/hash/md5_nacl.cc
79
+ index 827bbbd..4b22c59 100644
80
+ --- a/hash/md5_nacl.cc
81
+ +++ b/hash/md5_nacl.cc
82
+ @@ -22,6 +22,7 @@
83
+ */
84
+
85
+ #include <stddef.h>
86
+ +#include <string.h>
87
+
88
+ #include "base/hash/md5.h"
89
+
90
+ diff --git a/profiler/stack_copier_signal.cc b/profiler/stack_copier_signal.cc
91
+ index 5a7d8b9..f959f2f 100644
92
+ --- a/profiler/stack_copier_signal.cc
93
+ +++ b/profiler/stack_copier_signal.cc
94
+ @@ -6,6 +6,7 @@
95
+
96
+ #include <linux/futex.h>
97
+ #include <signal.h>
98
+ +#include <string.h>
99
+ #include <sys/ucontext.h>
100
+ #include <syscall.h>
101
+
cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/LASTCHANGE.committime ADDED
@@ -0,0 +1 @@
 
 
1
+ 1594430814
cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/build_overrides/build.gni ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import("//build/config/gclient_args.gni")
2
+
3
+ # Some non-Chromium builds don't support building java targets.
4
+ enable_java_templates = true
5
+
6
+ # Don't use Chromium's third_party/binutils.
7
+ linux_use_bundled_binutils_override = false
8
+
9
+ # Tracing requires //third_party/perfetto.
10
+ enable_base_tracing = false
11
+
12
+ # Skip assertions about 4GiB file size limit. See https://crbug.com/648948.
13
+ ignore_elf32_limitations = false
14
+
15
+ # Use the system install of Xcode for tools like ibtool, libtool, etc.
16
+ use_system_xcode = true
cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/libxml/BUILD.gn ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ component("libxml_utils") {}
2
+ component("xml_reader") {}
cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/protobuf/proto_library.gni ADDED
File without changes
cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/test_fonts/BUILD.gn ADDED
@@ -0,0 +1 @@
 
 
1
+ component("test_fonts") {}
cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/testing/gmock/BUILD.gn ADDED
@@ -0,0 +1 @@
 
 
1
+ component("gmock") {}
cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/testing/gtest/BUILD.gn ADDED
@@ -0,0 +1 @@
 
 
1
+ component("gtest") {}
cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/testing/test.gni ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ template("test") {
2
+ not_needed(invoker, "*")
3
+ not_needed("*")
4
+ }
5
+
6
+ set_defaults("test") {
7
+ configs = [
8
+ "//build/config/compiler:chromium_code"
9
+ ]
10
+ }
11
+
12
+ template("fuzzer_test") {
13
+ not_needed(invoker, "*")
14
+ not_needed("*")
15
+ }
16
+
17
+ template("protoc_convert") {
18
+ not_needed(invoker, "*")
19
+ not_needed("*")
20
+ }
cc-multilingual-main/cc_net/vcpkg/ports/clipboardxx/portfile.cmake ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Download the code from GitHub
2
+ vcpkg_from_github(
3
+ OUT_SOURCE_PATH SOURCE_PATH
4
+ REPO Arian8j2/ClipboardXX
5
+ REF d404c39ba384f8e16555610b3633cd7b58d84c59
6
+ SHA512 503bc78cd9fd6096fa92524973d19cbc9169fca91450837a2af7f1518eb928dce10c01e446de1ab76ae0dc366b26831df403f021118fe5c3c2eaeb4d752f638f
7
+ HEAD_REF master
8
+ )
9
+
10
+ vcpkg_cmake_configure(
11
+ SOURCE_PATH "${SOURCE_PATH}"
12
+ )
13
+
14
+ vcpkg_cmake_install()
15
+ vcpkg_copy_pdbs()
16
+
17
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
18
+
19
+ configure_file(
20
+ "${CMAKE_CURRENT_LIST_DIR}/unofficial-clipboardxx-config.cmake.in"
21
+ "${CURRENT_PACKAGES_DIR}/share/unofficial-clipboardxx/unofficial-clipboardxx-config.cmake"
22
+ @ONLY
23
+ )
24
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
cc-multilingual-main/cc_net/vcpkg/ports/clipboardxx/unofficial-clipboardxx-config.cmake.in ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
2
+ get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
3
+ get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
4
+ if(_IMPORT_PREFIX STREQUAL "/")
5
+ set(_IMPORT_PREFIX "")
6
+ endif()
7
+
8
+ add_library(unofficial::ClipboardXX INTERFACE IMPORTED)
9
+ set_target_properties(unofficial::ClipboardXX PROPERTIES
10
+ INTERFACE_INCLUDE_DIRECTORIES "${PACKAGE_PREFIX_DIR}/include"
11
+ )
12
+
13
+ if("@VCPKG_TARGET_IS_LINUX@")
14
+ set_target_properties(unofficial::ClipboardXX PROPERTIES
15
+ INTERFACE_LINK_LIBRARIES "xcb;pthread"
16
+ )
17
+ endif()
18
+
19
+ unset(_IMPORT_PREFIX)
cc-multilingual-main/cc_net/vcpkg/ports/clipboardxx/vcpkg.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "clipboardxx",
3
+ "version-date": "2022-02-04",
4
+ "description": "Header only, lightweight and cross platform C++ library for copy and paste text from clipboard.",
5
+ "homepage": "https://github.com/Arian8j2/ClipboardXX",
6
+ "license": "MIT",
7
+ "supports": "!osx",
8
+ "dependencies": [
9
+ {
10
+ "name": "vcpkg-cmake",
11
+ "host": true
12
+ },
13
+ {
14
+ "name": "vcpkg-cmake-config",
15
+ "host": true
16
+ }
17
+ ]
18
+ }
cc-multilingual-main/cc_net/vcpkg/ports/faad2/fix-install.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 5c0aeff..9614c19 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -261,7 +261,7 @@ endif()
6
+
7
+ # Installation
8
+
9
+ -if(NOT FAAD_BUNDLED_MODE AND NOT MSVC)
10
+ +if(1)
11
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/faad2.pc"
12
+ DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
13
+
cc-multilingual-main/cc_net/vcpkg/ports/faad2/portfile.cmake ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO knik0/faad2
4
+ REF "${VERSION}"
5
+ SHA512 b8f17680610b2f47344ea52b54412a02810a85eaf9d4c91b97ca09b2c6415c62d4af1b0771bfcacb9dfee400ed34504c0bd3c28369921c0392b3809e7de46ec5
6
+ HEAD_REF master
7
+ PATCHES
8
+ fix-install.patch
9
+ )
10
+
11
+ vcpkg_cmake_configure(
12
+ SOURCE_PATH "${SOURCE_PATH}"
13
+ )
14
+
15
+ vcpkg_cmake_install()
16
+
17
+ vcpkg_copy_pdbs()
18
+ vcpkg_fixup_pkgconfig()
19
+
20
+ if(VCPKG_TARGET_IS_WINDOWS)
21
+ vcpkg_copy_tools(TOOL_NAMES faad_cli AUTO_CLEAN)
22
+ else()
23
+ vcpkg_copy_tools(TOOL_NAMES faad AUTO_CLEAN)
24
+ endif()
25
+
26
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
27
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
28
+
29
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
cc-multilingual-main/cc_net/vcpkg/ports/faad2/vcpkg.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "faad2",
3
+ "version": "2.11.1",
4
+ "description": "Freeware Advanced Audio (AAC) Decoder",
5
+ "homepage": "https://sourceforge.net/projects/faac/",
6
+ "license": "GPL-2.0-or-later",
7
+ "dependencies": [
8
+ {
9
+ "name": "vcpkg-cmake",
10
+ "host": true
11
+ }
12
+ ]
13
+ }
cc-multilingual-main/cc_net/vcpkg/ports/fastrtps/disable-symlink.patch ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Normally, the build script attempts to create a symlink to fast-discovery-server on Windows
2
+ and only falls back to a batch file if the necessary administrator privileges are not available.
3
+ Since symlinks do not work well with vcpkg binary caching,
4
+ we force the build script to create a batch file in any case.
5
+ diff --git a/tools/fds/CMakeLists.txt b/tools/fds/CMakeLists.txt
6
+ --- a/tools/fds/CMakeLists.txt
7
+ +++ b/tools/fds/CMakeLists.txt
8
+ @@ -116,7 +116,7 @@ # - on windows privileges to create symlinks (a .bat file is provided on unprivileged installations)
9
+ if( WIN32 )
10
+ # Use powershell to generate the link
11
+ install(
12
+ - CODE "execute_process( COMMAND PowerShell -Command \"if( test-path ${PROJECT_NAME}.exe -PathType Leaf ) { rm ${PROJECT_NAME}.exe } ; New-Item -ItemType SymbolicLink -Target $<TARGET_FILE_NAME:${PROJECT_NAME}> -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 $<TARGET_FILE_NAME:${PROJECT_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()"
13
+ + CODE "set(FAST_SERVER_BINARY_NAME $<TARGET_FILE_NAME:${PROJECT_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"
14
+ COMPONENT discovery)
15
+ else()
16
+ # Use ln to create the symbolic link. We remove the version from the file name but keep the debug suffix
cc-multilingual-main/cc_net/vcpkg/ports/fastrtps/fix-find-package-asio.patch ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ --- a/CMakeLists.txt
3
+ +++ b/CMakeLists.txt
4
+ @@ -141,7 +141,7 @@ if(NOT BUILD_SHARED_LIBS)
5
+ endif()
6
+
7
+ eprosima_find_package(fastcdr REQUIRED)
8
+ -eprosima_find_thirdparty(Asio asio VERSION 1.10.8)
9
+ +find_package(asio CONFIG REQUIRED)
10
+ eprosima_find_thirdparty(TinyXML2 tinyxml2)
11
+
12
+ find_package(foonathan_memory REQUIRED)
cc-multilingual-main/cc_net/vcpkg/ports/fastrtps/fix-xtime.patch ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 7ca47ae..632c38b 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -42,6 +42,18 @@ message(STATUS "Version: ${PROJECT_VERSION}")
6
+ ###############################################################################
7
+ option(EPROSIMA_BUILD "Activate internal building" OFF)
8
+
9
+ +###############################################################################
10
+ +# Replace xtime with _timespec64. As a workround of the unreleased version of
11
+ +# MSVC, it will be deleted after release.
12
+ +###############################################################################
13
+ +if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
14
+ + if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "19.37.32705.0")
15
+ + file(READ "${PROJECT_SOURCE_DIR}/include/fastrtps/utils/TimedMutex.hpp" _contents)
16
+ + string(REPLACE "xtime*" "_timespec64*" _contents "${_contents}")
17
+ + file(WRITE "${PROJECT_SOURCE_DIR}/include/fastrtps/utils/TimedMutex.hpp" "${_contents}")
18
+ + endif()
19
+ +endif()
20
+ +
21
+ ###############################################################################
22
+ # Warning level
23
+ ###############################################################################
cc-multilingual-main/cc_net/vcpkg/ports/fastrtps/fix_thread.patch ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/include/fastrtps/utils/TimedMutex.hpp b/include/fastrtps/utils/TimedMutex.hpp
2
+ index 8d5d968..7ba3e00 100644
3
+ --- a/include/fastrtps/utils/TimedMutex.hpp
4
+ +++ b/include/fastrtps/utils/TimedMutex.hpp
5
+ @@ -23,10 +23,14 @@
6
+ #include <iostream>
7
+
8
+ #if defined(_WIN32)
9
+ +#if defined(_MSC_FULL_VER) && _MSC_FULL_VER >= 193632528
10
+ +#include <mutex>
11
+ +#else
12
+ #include <thread>
13
+ extern int clock_gettime(
14
+ int,
15
+ struct timespec* tv);
16
+ +#endif // if defined(_MSC_FULL_VER) && _MSC_FULL_VER >= 193632528
17
+ #elif _GTHREAD_USE_MUTEX_TIMEDLOCK
18
+ #include <mutex>
19
+ #else
20
+ @@ -37,6 +41,11 @@ namespace eprosima {
21
+ namespace fastrtps {
22
+
23
+ #if defined(_WIN32)
24
+ +
25
+ +#if defined(_MSC_FULL_VER) && _MSC_FULL_VER >= 193632528
26
+ +using TimedMutex = std::timed_mutex;
27
+ +using RecursiveTimedMutex = std::recursive_timed_mutex;
28
+ +#else
29
+ class TimedMutex
30
+ {
31
+ public:
32
+ @@ -182,6 +191,8 @@ private:
33
+
34
+ _Mtx_t mutex_;
35
+ };
36
+ +#endif // if defined(_MSC_FULL_VER) && _MSC_FULL_VER >= 193632528
37
+ +
38
+ #elif _GTHREAD_USE_MUTEX_TIMEDLOCK || !defined(__unix__)
39
+ using TimedMutex = std::timed_mutex;
40
+ using RecursiveTimedMutex = std::recursive_timed_mutex;
cc-multilingual-main/cc_net/vcpkg/ports/fastrtps/portfile.cmake ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # https://github.com/eProsima/Fast-DDS/pull/3983
2
+ # Could remove after 2.6.6/2.10.2/2.11.2, other minor versions not applied
3
+ # Could remove after 2.13 released, or any newer mijor versions
4
+ vcpkg_download_distfile(
5
+ PR_3983_PATCH
6
+ URLS https://github.com/eProsima/Fast-DDS/commit/2601e95429f5676c47c25200e995fb93157e7815.patch?full_index=1
7
+ SHA512 440ee6a918d7085b6520613fad1482a9b833ee259e64c8919bdeb43277f3685362e6314380bafc6c51dad46fd16a9b415343e9db28f157d13f76b9af0cb21e8d
8
+ FILENAME fastrtps-2601e95429f5676c47c25200e995fb93157e7815.patch
9
+ )
10
+
11
+ vcpkg_from_github(
12
+ OUT_SOURCE_PATH SOURCE_PATH
13
+ REPO eProsima/Fast-DDS
14
+ REF v2.7.0
15
+ SHA512 289c94fb177209ffc80e93ae61822c83e7cb74ba7682f05a921c50ce048498bd811c19825d1fdb8af39b29a64904e96d87c5c59468139f0d8bb528549b80c94a
16
+ HEAD_REF master
17
+ PATCHES
18
+ fix-find-package-asio.patch
19
+ disable-symlink.patch
20
+ fix-xtime.patch
21
+ fix_thread.patch #https://github.com/eProsima/Fast-DDS/pull/3904
22
+ "${PR_3983_PATCH}"
23
+ )
24
+
25
+ vcpkg_cmake_configure(
26
+ SOURCE_PATH "${SOURCE_PATH}"
27
+ DISABLE_PARALLEL_CONFIGURE # due to fix-xtime.patch
28
+ )
29
+
30
+ vcpkg_cmake_install()
31
+ vcpkg_copy_pdbs()
32
+
33
+ vcpkg_cmake_config_fixup(CONFIG_PATH share/fastrtps/cmake)
34
+
35
+ if(VCPKG_TARGET_IS_WINDOWS)
36
+ # copy tools from "bin" to "tools" folder
37
+ foreach(TOOL "fast-discovery-server-1.0.0.exe" "fast-discovery-server.bat" "fastdds.bat" "ros-discovery.bat")
38
+ file(INSTALL "${CURRENT_PACKAGES_DIR}/bin/${TOOL}" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
39
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/bin/${TOOL}")
40
+ endforeach()
41
+
42
+ # remove tools from debug builds
43
+ foreach(TOOL "fast-discovery-serverd-1.0.0.exe" "fast-discovery-server.bat" "fastdds.bat" "ros-discovery.bat")
44
+ if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/bin/${TOOL}")
45
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/bin/${TOOL}")
46
+ endif()
47
+ endforeach()
48
+
49
+ # adjust paths in batch files
50
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/fastdds.bat" "%dir%\\..\\tools\\fastdds\\fastdds.py" "%dir%\\..\\fastdds\\fastdds.py")
51
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/ros-discovery.bat" "%dir%\\..\\tools\\fastdds\\fastdds.py" "%dir%\\..\\fastdds\\fastdds.py")
52
+
53
+ vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/${PORT}")
54
+ elseif(VCPKG_TARGET_IS_LINUX)
55
+ # copy tools from "bin" to "tools" folder
56
+ foreach(TOOL "fast-discovery-server-1.0.0" "fast-discovery-server" "fastdds" "ros-discovery")
57
+ file(INSTALL "${CURRENT_PACKAGES_DIR}/bin/${TOOL}" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
58
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/bin/${TOOL}")
59
+ endforeach()
60
+
61
+ # replace symlink by a copy because symlinks do not work well together with vcpkg binary caching
62
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/tools/${PORT}/fast-discovery-server")
63
+ file(INSTALL "${CURRENT_PACKAGES_DIR}/tools/${PORT}/fast-discovery-server-1.0.0" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}" RENAME "fast-discovery-server")
64
+
65
+ # remove tools from debug builds
66
+ foreach(TOOL "fast-discovery-serverd-1.0.0" "fast-discovery-server" "fastdds" "ros-discovery")
67
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/bin/${TOOL}")
68
+ endforeach()
69
+
70
+ # adjust paths in batch files
71
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/fastdds" "$dir/../tools/fastdds/fastdds.py" "$dir/../fastdds/fastdds.py")
72
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/ros-discovery" "$dir/../tools/fastdds/fastdds.py" "$dir/../fastdds/fastdds.py")
73
+ endif()
74
+
75
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/fastdds/discovery/parser.py" "tool_path / '../../../bin'" "tool_path / '../../${PORT}'")
76
+
77
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static" OR NOT VCPKG_TARGET_IS_WINDOWS)
78
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin")
79
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")
80
+ endif()
81
+
82
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
83
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
84
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/tools")
85
+
86
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
cc-multilingual-main/cc_net/vcpkg/ports/fastrtps/vcpkg.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "fastrtps",
3
+ "version": "2.7.0",
4
+ "port-version": 5,
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.",
6
+ "homepage": "https://www.eprosima.com/",
7
+ "license": "Apache-2.0",
8
+ "supports": "!uwp",
9
+ "dependencies": [
10
+ "asio",
11
+ "fastcdr",
12
+ "foonathan-memory",
13
+ "openssl",
14
+ "tinyxml2",
15
+ {
16
+ "name": "vcpkg-cmake",
17
+ "host": true
18
+ },
19
+ {
20
+ "name": "vcpkg-cmake-config",
21
+ "host": true
22
+ }
23
+ ]
24
+ }
cc-multilingual-main/cc_net/vcpkg/ports/geotrans/CMakeLists.txt ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.10)
2
+ project(geotrans CXX)
3
+
4
+ file(GLOB_RECURSE DTCC_CPP CCS/src/dtcc/*.cpp)
5
+ include_directories(
6
+ CCS/src/CoordinateConversion
7
+ CCS/src/dtcc
8
+ CCS/src/dtcc/CoordinateSystemParameters
9
+ CCS/src/dtcc/CoordinateSystems
10
+ CCS/src/dtcc/CoordinateSystems/albers
11
+ CCS/src/dtcc/CoordinateSystems/azeq
12
+ CCS/src/dtcc/CoordinateSystems/bng
13
+ CCS/src/dtcc/CoordinateSystems/bonne
14
+ CCS/src/dtcc/CoordinateSystems/cassini
15
+ CCS/src/dtcc/CoordinateSystems/cyleqa
16
+ CCS/src/dtcc/CoordinateSystems/datum
17
+ CCS/src/dtcc/CoordinateSystems/eckert4
18
+ CCS/src/dtcc/CoordinateSystems/eckert6
19
+ CCS/src/dtcc/CoordinateSystems/ellipse
20
+ CCS/src/dtcc/CoordinateSystems/eqdcyl
21
+ CCS/src/dtcc/CoordinateSystems/gars
22
+ CCS/src/dtcc/CoordinateSystems/geocent
23
+ CCS/src/dtcc/CoordinateSystems/georef
24
+ CCS/src/dtcc/CoordinateSystems/gnomonic
25
+ CCS/src/dtcc/CoordinateSystems/grinten
26
+ CCS/src/dtcc/CoordinateSystems/lambert
27
+ CCS/src/dtcc/CoordinateSystems/loccart
28
+ CCS/src/dtcc/CoordinateSystems/locspher
29
+ CCS/src/dtcc/CoordinateSystems/mercator
30
+ CCS/src/dtcc/CoordinateSystems/mgrs
31
+ CCS/src/dtcc/CoordinateSystems/miller
32
+ CCS/src/dtcc/CoordinateSystems/misc
33
+ CCS/src/dtcc/CoordinateSystems/mollweid
34
+ CCS/src/dtcc/CoordinateSystems/neys
35
+ CCS/src/dtcc/CoordinateSystems/nzmg
36
+ CCS/src/dtcc/CoordinateSystems/omerc
37
+ CCS/src/dtcc/CoordinateSystems/orthogr
38
+ CCS/src/dtcc/CoordinateSystems/polarst
39
+ CCS/src/dtcc/CoordinateSystems/polycon
40
+ CCS/src/dtcc/CoordinateSystems/sinusoid
41
+ CCS/src/dtcc/CoordinateSystems/spherical
42
+ CCS/src/dtcc/CoordinateSystems/stereogr
43
+ CCS/src/dtcc/CoordinateSystems/threads
44
+ CCS/src/dtcc/CoordinateSystems/tranmerc
45
+ CCS/src/dtcc/CoordinateSystems/trcyleqa
46
+ CCS/src/dtcc/CoordinateSystems/ups
47
+ CCS/src/dtcc/CoordinateSystems/usng
48
+ CCS/src/dtcc/CoordinateSystems/utm
49
+ CCS/src/dtcc/CoordinateSystems/webmerc
50
+ CCS/src/dtcc/CoordinateTuples
51
+ CCS/src/dtcc/Enumerations
52
+ CCS/src/dtcc/Exception
53
+ )
54
+ set(DTCC_INCLUDES
55
+ include/CoordinateConversion
56
+ include/dtcc/
57
+ include/dtcc/CoordinateSystemParameters
58
+ include/dtcc/CoordinateSystems
59
+ include/dtcc/CoordinateSystems/albers
60
+ include/dtcc/CoordinateSystems/azeq
61
+ include/dtcc/CoordinateSystems/bng
62
+ include/dtcc/CoordinateSystems/bonne
63
+ include/dtcc/CoordinateSystems/cassini
64
+ include/dtcc/CoordinateSystems/cyleqa
65
+ include/dtcc/CoordinateSystems/datum
66
+ include/dtcc/CoordinateSystems/eckert4
67
+ include/dtcc/CoordinateSystems/eckert6
68
+ include/dtcc/CoordinateSystems/ellipse
69
+ include/dtcc/CoordinateSystems/eqdcyl
70
+ include/dtcc/CoordinateSystems/gars
71
+ include/dtcc/CoordinateSystems/geocent
72
+ include/dtcc/CoordinateSystems/georef
73
+ include/dtcc/CoordinateSystems/gnomonic
74
+ include/dtcc/CoordinateSystems/grinten
75
+ include/dtcc/CoordinateSystems/lambert
76
+ include/dtcc/CoordinateSystems/loccart
77
+ include/dtcc/CoordinateSystems/locspher
78
+ include/dtcc/CoordinateSystems/mercator
79
+ include/dtcc/CoordinateSystems/mgrs
80
+ include/dtcc/CoordinateSystems/miller
81
+ include/dtcc/CoordinateSystems/misc
82
+ include/dtcc/CoordinateSystems/mollweid
83
+ include/dtcc/CoordinateSystems/neys
84
+ include/dtcc/CoordinateSystems/nzmg
85
+ include/dtcc/CoordinateSystems/omerc
86
+ include/dtcc/CoordinateSystems/orthogr
87
+ include/dtcc/CoordinateSystems/polarst
88
+ include/dtcc/CoordinateSystems/polycon
89
+ include/dtcc/CoordinateSystems/sinusoid
90
+ include/dtcc/CoordinateSystems/spherical
91
+ include/dtcc/CoordinateSystems/stereogr
92
+ include/dtcc/CoordinateSystems/threads
93
+ include/dtcc/CoordinateSystems/tranmerc
94
+ include/dtcc/CoordinateSystems/trcyleqa
95
+ include/dtcc/CoordinateSystems/ups
96
+ include/dtcc/CoordinateSystems/usng
97
+ include/dtcc/CoordinateSystems/utm
98
+ include/dtcc/CoordinateSystems/webmerc
99
+ include/dtcc/CoordinateTuples
100
+ include/dtcc/Enumerations
101
+ include/dtcc/Exception
102
+ )
103
+
104
+ if(WIN32)
105
+ add_definitions(-DLITTLE_ENDIAN)
106
+ endif()
107
+
108
+ add_library(MSPdtcc ${DTCC_CPP})
109
+ add_library(MSPCoordinateConversionService CCS/src/CoordinateConversion/CoordinateConversionService.cpp ${DTCC_CPP})
110
+
111
+ target_include_directories(MSPdtcc INTERFACE "$<INSTALL_INTERFACE:${DTCC_INCLUDES}>")
112
+ target_include_directories(MSPCoordinateConversionService INTERFACE $<INSTALL_INTERFACE:include/CoordinateConversion>)
113
+
114
+ if(WIN32)
115
+ if (BUILD_SHARED_LIBS)
116
+ add_definitions(
117
+ -DMSP_CCS_EXPORTS
118
+ -D_USRDLL
119
+ )
120
+ endif()
121
+ add_definitions(-D_CRT_SECURE_NO_WARNINGS)
122
+ else()
123
+ find_package(Threads REQUIRED)
124
+ target_link_libraries(MSPdtcc PRIVATE Threads::Threads ${CMAKE_DL_LIBS})
125
+ endif()
126
+
127
+
128
+ install(
129
+ TARGETS MSPdtcc
130
+ EXPORT geotrans
131
+ RUNTIME DESTINATION bin
132
+ LIBRARY DESTINATION lib
133
+ ARCHIVE DESTINATION lib
134
+ )
135
+
136
+ install(
137
+ TARGETS MSPCoordinateConversionService
138
+ EXPORT geotrans
139
+ RUNTIME DESTINATION bin
140
+ LIBRARY DESTINATION lib
141
+ ARCHIVE DESTINATION lib
142
+ )
143
+
144
+ install(DIRECTORY "${CMAKE_SOURCE_DIR}/CCS/src/"
145
+ DESTINATION "include"
146
+ CONFIGURATIONS Release
147
+ FILES_MATCHING
148
+ PATTERN "*.h"
149
+ )
150
+
151
+ install(EXPORT geotrans NAMESPACE geotrans:: DESTINATION share/geotrans CONFIGURATIONS Release)
cc-multilingual-main/cc_net/vcpkg/ports/geotrans/geotrans-config.in.cmake ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+
2
+ if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static" AND NOT WIN32)
3
+ include(CMakeFindDependencyMacro)
4
+ find_dependency(Threads)
5
+ endif()
6
+
7
+ include(${CMAKE_CURRENT_LIST_DIR}/geotrans.cmake)
cc-multilingual-main/cc_net/vcpkg/ports/geotrans/portfile.cmake ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(VCPKG_LIBRARY_LINKAGE "dynamic")
2
+
3
+ # We specify the Linux URL, but the only difference between the Windows/Linux packages are the included libraries
4
+ # which we re-build anyway. There is no source only package provided or it would be preferred (and smaller).
5
+ vcpkg_download_distfile(ARCHIVE
6
+ URLS "https://earth-info.nga.mil/php/download.php?file=wgs-mastertgz"
7
+ FILENAME "geotrans-3.9-master-adf1935.tgz"
8
+ SHA512 adf19357edc62681a2515e7210a752b0e09214b6ce69024e60150e0780059c08a9ab5a162a0562dbc37127438783a24bcde1adb88b559bc95ff9a5bea0eb8b39
9
+ )
10
+
11
+ vcpkg_extract_source_archive(
12
+ SOURCE_PATH
13
+ ARCHIVE "${ARCHIVE}"
14
+ )
15
+
16
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
17
+
18
+ vcpkg_cmake_configure(
19
+ SOURCE_PATH "${SOURCE_PATH}"
20
+ )
21
+
22
+ vcpkg_cmake_install()
23
+
24
+ configure_file(
25
+ "${CMAKE_CURRENT_LIST_DIR}/geotrans-config.in.cmake"
26
+ "${CURRENT_PACKAGES_DIR}/share/${PORT}/geotrans-config.cmake"
27
+ @ONLY
28
+ )
29
+
30
+ configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}" @ONLY)
31
+
32
+ # Handle copyright
33
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/GEOTRANS3/docs/MSP_Geotrans_Terms_Of_Use.txt")
34
+
35
+ # Install the geo model data
36
+ file(COPY "${SOURCE_PATH}/data" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
cc-multilingual-main/cc_net/vcpkg/ports/geotrans/usage ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ The package geotrans provides CMake targets:
2
+
3
+ find_package(geotrans CONFIG REQUIRED)
4
+ target_link_libraries(main PRIVATE geotrans::MSPdtcc geotrans::MSPCoordinateConversionService)
5
+
6
+
7
+ The geotrans library depends on being able to read it's model data so you'll need to
8
+ set an environment variable to let geotrans know where the models are installed:
9
+
10
+ export MSPCCS_DATA=<path_to_vcpkg_installed>/share/@PORT@/data
11
+
cc-multilingual-main/cc_net/vcpkg/ports/geotrans/vcpkg.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "geotrans",
3
+ "version": "3.9",
4
+ "port-version": 1,
5
+ "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.",
6
+ "homepage": "https://earth-info.nga.mil/GandG/update/index.php?action=home",
7
+ "license": null,
8
+ "supports": "!uwp",
9
+ "dependencies": [
10
+ {
11
+ "name": "vcpkg-cmake",
12
+ "host": true
13
+ }
14
+ ]
15
+ }
cc-multilingual-main/cc_net/vcpkg/ports/ideviceinstaller/001_fix_windows.patch ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c
2
+ index c50bacf..e4a8c3d 100644
3
+ --- a/src/ideviceinstaller.c
4
+ +++ b/src/ideviceinstaller.c
5
+ @@ -32,7 +32,9 @@
6
+ #include <getopt.h>
7
+ #include <errno.h>
8
+ #include <time.h>
9
+ +#ifndef _MSC_VER
10
+ #include <libgen.h>
11
+ +#endif
12
+ #include <inttypes.h>
13
+ #include <limits.h>
14
+ #include <sys/stat.h>
15
+ @@ -87,6 +89,32 @@ static int asprintf(char **PTR, const char *TEMPLATE, ...)
16
+ }
17
+ #endif
18
+
19
+ +#ifdef _MSC_VER
20
+ +#ifndef ISSLASH
21
+ +#define ISSLASH(C) ((C) == '/' || (C) == '\\')
22
+ +#endif
23
+ +char *basename(char const *name) {
24
+ + char const *base = name;
25
+ + char const *p;
26
+ + for (p = base; *p; p++) {
27
+ + if (ISSLASH(*p)) {
28
+ + do p++;
29
+ + while (ISSLASH(*p));
30
+ +
31
+ + if (!*p) {
32
+ + if (ISSLASH(*base))
33
+ + base = p - 1;
34
+ + break;
35
+ + }
36
+ +
37
+ + base = p;
38
+ + }
39
+ + }
40
+ +
41
+ + return (char *) base;
42
+ +}
43
+ +#endif
44
+ +
45
+ #define ITUNES_METADATA_PLIST_FILENAME "iTunesMetadata.plist"
46
+
47
+ const char PKG_PATH[] = "PublicStaging";
cc-multilingual-main/cc_net/vcpkg/ports/ideviceinstaller/CMakeLists.txt ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.15)
2
+ project(ideviceinstaller C)
3
+
4
+ include(GNUInstallDirs)
5
+
6
+ file(GLOB_RECURSE IDEVICEINSTALLER_SOURCE src/*.c src/*.h)
7
+
8
+ set(DEFINITIONS)
9
+
10
+ list(APPEND DEFINITIONS -DPACKAGE_NAME="ideviceinstaller")
11
+ list(APPEND DEFINITIONS -DPACKAGE_VERSION="1.1.1")
12
+ list(APPEND DEFINITIONS -DPACKAGE_URL="https://github.com/libimobiledevice/ideviceinstaller")
13
+ list(APPEND DEFINITIONS -DPACKAGE_BUGREPORT="https://github.com/libimobiledevice/ideviceinstaller/issues")
14
+
15
+ if(UNIX)
16
+ list(APPEND DEFINITIONS -DHAVE_VASPRINTF)
17
+ list(APPEND DEFINITIONS -DHAVE_ASPRINTF)
18
+ list(APPEND DEFINITIONS -DHAVE_UNISTD_H)
19
+ endif()
20
+
21
+ if(WIN32)
22
+ list(APPEND DEFINITIONS -D_CRT_SECURE_NO_WARNINGS)
23
+ list(APPEND DEFINITIONS -DWIN32)
24
+ endif()
25
+
26
+ find_package(unofficial-libimobiledevice CONFIG REQUIRED)
27
+ find_package(libzip CONFIG REQUIRED)
28
+ find_path(DIRENT_INCLUDE_DIR dirent.h REQUIRED)
29
+
30
+ add_executable(ideviceinstaller ${IDEVICEINSTALLER_SOURCE})
31
+ target_include_directories(ideviceinstaller PRIVATE
32
+ ${DIRENT_INCLUDE_DIR}
33
+ )
34
+ target_compile_definitions(ideviceinstaller PRIVATE ${DEFINITIONS})
35
+ target_link_libraries(ideviceinstaller PRIVATE
36
+ unofficial::libimobiledevice::libimobiledevice
37
+ libzip::zip
38
+ )
39
+
40
+ if(WIN32)
41
+ find_package(unofficial-getopt-win32 REQUIRED)
42
+ target_link_libraries(ideviceinstaller PRIVATE unofficial::getopt-win32::getopt)
43
+ endif()
44
+
45
+ install(TARGETS ideviceinstaller
46
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
cc-multilingual-main/cc_net/vcpkg/ports/ideviceinstaller/portfile.cmake ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO libimobiledevice/ideviceinstaller
4
+ REF b9cfe0b264f66eab9ad88e11eb6b0523cb1de911 # commits on 2023-07-21
5
+ SHA512 a78418001109593f2d704d91aff8df009e15c504c2139ca606c9719b70868466ef73778d52670468a4b7bf758ec65435c1b981c27809a2e22737f7587ad51c7d
6
+ HEAD_REF master
7
+ PATCHES
8
+ 001_fix_windows.patch
9
+ )
10
+
11
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
12
+
13
+ vcpkg_cmake_configure(
14
+ SOURCE_PATH "${SOURCE_PATH}"
15
+ )
16
+
17
+ vcpkg_cmake_install()
18
+ vcpkg_copy_tools(TOOL_NAMES ideviceinstaller AUTO_CLEAN)
19
+
20
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
21
+
22
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
23
+
24
+ set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
cc-multilingual-main/cc_net/vcpkg/ports/ideviceinstaller/vcpkg.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "ideviceinstaller",
3
+ "version-date": "2023-07-21",
4
+ "description": "Manage apps of iOS devices",
5
+ "homepage": "https://libimobiledevice.org/",
6
+ "license": "LGPL-2.0-or-later",
7
+ "supports": "!uwp & !android & !ios & !xbox",
8
+ "dependencies": [
9
+ "dirent",
10
+ "getopt",
11
+ "libimobiledevice",
12
+ "libzip",
13
+ {
14
+ "name": "vcpkg-cmake",
15
+ "host": true
16
+ }
17
+ ]
18
+ }
cc-multilingual-main/cc_net/vcpkg/ports/io2d/cmake.dep.patch ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/P0267_RefImpl/P0267_RefImpl/cairo/CMakeLists.txt b/P0267_RefImpl/P0267_RefImpl/cairo/CMakeLists.txt
2
+ index 5ebeb6afa..702864667 100644
3
+ --- a/P0267_RefImpl/P0267_RefImpl/cairo/CMakeLists.txt
4
+ +++ b/P0267_RefImpl/P0267_RefImpl/cairo/CMakeLists.txt
5
+ @@ -2,8 +2,8 @@ cmake_minimum_required(VERSION 3.8)
6
+
7
+ project(io2d CXX)
8
+
9
+ -find_package(Cairo REQUIRED)
10
+ -find_package(GraphicsMagick REQUIRED)
11
+ +find_package(Cairo REQUIRED)
12
+ +find_package(unofficial-GraphicsMagick REQUIRED)
13
+
14
+ add_library(io2d_cairo
15
+ cairo_renderer-graphicsmagickinit.cpp
16
+ @@ -24,7 +24,7 @@ target_include_directories(io2d_cairo PUBLIC
17
+
18
+ target_compile_features(io2d_cairo PUBLIC cxx_std_17)
19
+
20
+ -target_link_libraries(io2d_cairo PUBLIC io2d_core Cairo::Cairo GraphicsMagick::GraphicsMagick)
21
+ +target_link_libraries(io2d_cairo PUBLIC io2d_core Cairo::Cairo unofficial::graphicsmagick::graphicsmagick)
22
+
23
+ install(
24
+ TARGETS io2d_cairo EXPORT io2d_targets
25
+ diff --git a/P0267_RefImpl/P0267_RefImpl/cairo/win32/CMakeLists.txt b/P0267_RefImpl/P0267_RefImpl/cairo/win32/CMakeLists.txt
26
+ index abb150113..75d8c654d 100644
27
+ --- a/P0267_RefImpl/P0267_RefImpl/cairo/win32/CMakeLists.txt
28
+ +++ b/P0267_RefImpl/P0267_RefImpl/cairo/win32/CMakeLists.txt
29
+ @@ -27,15 +27,24 @@ if(MSVC)
30
+ target_compile_definitions(io2d_cairo_win32 PUBLIC -DUNICODE -D_UNICODE -D_CRT_SECURE_NO_WARNINGS)
31
+
32
+ find_library(PIXMAN_LIB pixman-1)
33
+ - find_library(FREETYPE_LIB freetype)
34
+ - find_library(FONTCONFIG_LIB fontconfig)
35
+ - find_library(BZ_LIB bz2)
36
+ - find_library(JPEG_LIB jpeg)
37
+ - find_library(TIFF_LIB tiff)
38
+ - find_library(EXPAT_LIB expat)
39
+ - find_library(LZMA_LIB lzma)
40
+ - find_library(ICONV_LIB libiconv)
41
+ - find_library(CHARSET_LIB libcharset)
42
+ + find_package(FreeType REQUIRED)
43
+ + set(FREETYPE_LIB ${FREETYPE_LIBRARIES}) # I dont use targets here since this means I have to correct the config.cmake too
44
+ + find_package(Fontconfig REQUIRED)
45
+ + set(FONTCONFIG_LIB ${Fontconfig_LIBRARIES})
46
+ + find_package(BZip2 REQUIRED)
47
+ + set(BZ_LIB ${BZIP2_LIBRARIES})
48
+ + find_package(JPEG REQUIRED)
49
+ + set(JPEG_LIB ${JPEG_LIBRARIES})
50
+ + find_package(TIFF REQUIRED)
51
+ + set(TIFF_LIB ${TIFF_LIBRARIES})
52
+ + find_package(EXPAT REQUIRED)
53
+ + set(EXPAT_LIB ${EXPAT_LIBRARIES})
54
+ + find_package(LibLZMA REQUIRED)
55
+ + set(LZMA_LIB ${LIBLZMA_LIBRARIES})
56
+ + find_package(Iconv REQUIRED)
57
+ + if(NOT Iconv_IS_BUILT_IN)
58
+ + set(ICONV_LIB ${Iconv_LIBRARIES})
59
+ + endif()
60
+
61
+ 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})
62
+ endif()