Skip to content

Commit 3ee9e01

Browse files
committed
m116-f44dbc40d8
1 parent 48b6820 commit 3ee9e01

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
default: 'false'
1515

1616
env:
17-
version: m109-664500fa93
17+
version: m116-f44dbc40d8
1818

1919
jobs:
2020
macos:
@@ -52,7 +52,9 @@ jobs:
5252
steps:
5353
- uses: actions/checkout@v2
5454
- run: sudo ./script/prepare_linux.sh
55-
- run: sudo apt-get install g++-9-aarch64-linux-gnu -y
55+
- run: |
56+
sudo apt-get update
57+
sudo apt-get --yes install g\+\+-9-aarch64-linux-gnu
5658
if: ${{ matrix.target_machine == 'arm64' }}
5759
- run: python3 script/check_release.py --version ${{ env.version }} --build-type ${{ matrix.build_type }} --machine ${{ matrix.target_machine }}
5860
if: ${{ github.event.inputs.skip_release != 'true' }}

patches/11081_SkLoadICU.cpp.patch

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ index 5b3b153336..8696aaf927 100644
1010

1111
#include "unicode/udata.h"
1212

13-
-static void* win_mmap(const char* dataFile) {
13+
-static void* win_mmap(const wchar_t* dataFile) {
1414
- if (!dataFile) {
1515
- return nullptr;
1616
- }
17-
+static void* win_mmap(const std::string& dataFile, std::ostringstream& buffer) {
17+
+static void* win_mmap(const std::wstring& dataFile, std::ostringstream& buffer) {
1818
struct FCloseWrapper { void operator()(FILE* f) { fclose(f); } };
19-
- std::unique_ptr<FILE, FCloseWrapper> stream(fopen(dataFile, "rb"));
20-
+ std::unique_ptr<FILE, FCloseWrapper> stream(fopen(dataFile.c_str(), "rb"));
19+
- std::unique_ptr<FILE, FCloseWrapper> stream(_wfopen(dataFile, L"rb"));
20+
+ std::unique_ptr<FILE, FCloseWrapper> stream(_wfopen(dataFile, L"rb"));
2121
if (!stream) {
22-
- fprintf(stderr, "SkIcuLoader: datafile missing: %s.\n", dataFile);
22+
- fprintf(stderr, "SkIcuLoader: datafile missing: %ls.\n", dataFile);
2323
+ buffer << "SkLoadICU: datafile '" << dataFile << "' is missing" << std::endl;
2424
return nullptr;
2525
}
@@ -51,11 +51,11 @@ index 5b3b153336..8696aaf927 100644
5151
}
5252
return addr;
5353
@@ -86,23 +84,20 @@ static std::string executable_directory() {
54-
return end ? std::string(path, end - path) : std::string();
54+
return get_module_path(hModule);
5555
}
5656

57-
-static bool load_from(const std::string& dir) {
58-
- auto sPath = dir + "\\icudtl.dat";
57+
-static bool load_from(const std::wstring& dir) {
58+
- auto sPath = dir + L"\\icudtl.dat";
5959
- if (void* addr = win_mmap(sPath.c_str())) {
6060
- if (init_icu(addr)) {
6161
- return true;
@@ -71,9 +71,9 @@ index 5b3b153336..8696aaf927 100644
7171
std::call_once(flag, []() {
7272
- good = load_from(executable_directory()) || load_from(library_directory());
7373
+ std::ostringstream buffer;
74-
+ void* addr = win_mmap(library_directory() + "\\icudtl.dat", buffer);
74+
+ void* addr = win_mmap(library_directory() + L"\\icudtl.dat", buffer);
7575
+ if (addr == nullptr)
76-
+ addr = win_mmap(executable_directory() + "\\icudtl.dat", buffer);
76+
+ addr = win_mmap(executable_directory() + L"\\icudtl.dat", buffer);
7777
+ if (addr == nullptr)
7878
+ fputs(buffer.str().c_str(), stderr);
7979
+ if (addr)

script/archive.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def main():
3939
'modules/sksg/include/*.h',
4040
'modules/skshaper/include/*.h',
4141
'modules/skshaper/src/*.h',
42+
'modules/skunicode/include/*.h',
4243
'modules/svg/include/*.h',
4344
'src/**/*.h',
4445
'third_party/externals/angle2/LICENSE',

script/build.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ def main():
3838
args += [
3939
'skia_use_system_freetype2=false',
4040
# 'skia_enable_gpu=true',
41-
# 'skia_use_gl=true',
4241
'skia_use_metal=true',
4342
'extra_cflags_cc=["-frtti"]'
4443
]
@@ -50,7 +49,6 @@ def main():
5049
args += [
5150
'skia_use_system_freetype2=true',
5251
# 'skia_enable_gpu=true',
53-
# 'skia_use_gl=true',
5452
'extra_cflags_cc=["-frtti"]',
5553
]
5654

0 commit comments

Comments
 (0)