Skip to content

Commit d923913

Browse files
authored
Update tgfx to resolve build errors with the latest CMake version. (#2782)
1 parent 40c3f2c commit d923913

File tree

6 files changed

+8300
-8298
lines changed

6 files changed

+8300
-8298
lines changed

DEPS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
{
1414
"url": "${PAG_GROUP}/tgfx.git",
15-
"commit": "a10e4ad00529e9124a0594538fe9313a12f49b17",
15+
"commit": "fe9b7e978124036da10b11d294496f410ac6d39f",
1616
"dir": "third_party/tgfx"
1717
},
1818
{

android/.idea/misc.xml

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ios/PAGViewer.xcodeproj/project.pbxproj

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,6 @@
352352
TargetAttributes = {
353353
F2ED889D1FCBEDF100555707 = {
354354
CreatedOnToolsVersion = 9.1;
355-
ProvisioningStyle = Manual;
356355
};
357356
};
358357
};
@@ -611,8 +610,8 @@
611610
buildSettings = {
612611
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
613612
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO;
614-
CODE_SIGN_IDENTITY = "iPhone Developer";
615-
CODE_SIGN_STYLE = Manual;
613+
CODE_SIGN_IDENTITY = "Apple Development";
614+
CODE_SIGN_STYLE = Automatic;
616615
COMPRESS_PNG_FILES = YES;
617616
DEVELOPMENT_TEAM = 36588GHG2N;
618617
EXPORTED_SYMBOLS_FILE = "";
@@ -631,7 +630,7 @@
631630
OTHER_LDFLAGS = "$(inherited)";
632631
PRODUCT_BUNDLE_IDENTIFIER = io.pag.viewer;
633632
PRODUCT_NAME = "$(TARGET_NAME)";
634-
PROVISIONING_PROFILE_SPECIFIER = PAG_Development;
633+
PROVISIONING_PROFILE_SPECIFIER = "";
635634
STRIP_PNG_TEXT = YES;
636635
TARGETED_DEVICE_FAMILY = "1,2";
637636
USER_HEADER_SEARCH_PATHS = "";
@@ -644,8 +643,8 @@
644643
buildSettings = {
645644
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
646645
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO;
647-
CODE_SIGN_IDENTITY = "iPhone Developer";
648-
CODE_SIGN_STYLE = Manual;
646+
CODE_SIGN_IDENTITY = "Apple Development";
647+
CODE_SIGN_STYLE = Automatic;
649648
COMPRESS_PNG_FILES = YES;
650649
DEVELOPMENT_TEAM = 36588GHG2N;
651650
EXPORTED_SYMBOLS_FILE = "";
@@ -664,7 +663,7 @@
664663
OTHER_LDFLAGS = "$(inherited)";
665664
PRODUCT_BUNDLE_IDENTIFIER = io.pag.viewer;
666665
PRODUCT_NAME = "$(TARGET_NAME)";
667-
PROVISIONING_PROFILE_SPECIFIER = PAG_Development;
666+
PROVISIONING_PROFILE_SPECIFIER = "";
668667
STRIP_PNG_TEXT = YES;
669668
TARGETED_DEVICE_FAMILY = "1,2";
670669
USER_HEADER_SEARCH_PATHS = "";

src/rendering/utils/LZ4Decoder.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ class DefaultLZ4Decoder : public LZ4Decoder {
6060
size_t decode(uint8_t* dstBuffer, size_t dstSize, const uint8_t* srcBuffer,
6161
size_t srcSize) const override {
6262
return LZ4_decompress_safe(reinterpret_cast<const char*>(srcBuffer),
63-
reinterpret_cast<char*>(dstBuffer), srcSize, dstSize);
63+
reinterpret_cast<char*>(dstBuffer), static_cast<int>(srcSize),
64+
static_cast<int>(dstSize));
6465
}
6566
};
6667

src/rendering/utils/LZ4Encoder.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ class DefaultLZ4Encoder : public LZ4Encoder {
6363
size_t encode(uint8_t* dstBuffer, size_t dstSize, const uint8_t* srcBuffer,
6464
size_t srcSize) const override {
6565
return LZ4_compress_default(reinterpret_cast<const char*>(srcBuffer),
66-
reinterpret_cast<char*>(dstBuffer), srcSize, dstSize);
66+
reinterpret_cast<char*>(dstBuffer), static_cast<int>(srcSize),
67+
static_cast<int>(dstSize));
6768
}
6869
};
6970

@@ -72,7 +73,7 @@ std::unique_ptr<LZ4Encoder> LZ4Encoder::Make() {
7273
}
7374

7475
size_t LZ4Encoder::GetMaxOutputSize(size_t inputSize) {
75-
return LZ4_compressBound(inputSize);
76+
return LZ4_compressBound(static_cast<int>(inputSize));
7677
}
7778
#endif
7879
} // namespace pag

0 commit comments

Comments
 (0)