Skip to content

Commit

Permalink
Remove the externals/harfbuzz submodule (#1599)
Browse files Browse the repository at this point in the history
Use the gn targets in skia to do all the work.
  • Loading branch information
mattleibow authored Feb 1, 2021
1 parent c78aae3 commit 7d087c9
Show file tree
Hide file tree
Showing 12 changed files with 610 additions and 615 deletions.
4 changes: 0 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
path = externals/depot_tools
url = https://chromium.googlesource.com/chromium/tools/depot_tools.git
branch = master
[submodule "externals/harfbuzz"]
path = externals/harfbuzz
url = https://github.com/harfbuzz/harfbuzz.git
branch = 2.6.1
[submodule "docs"]
path = docs
url = https://github.com/mono/SkiaSharp-API-docs
Expand Down
2 changes: 1 addition & 1 deletion cake/native-shared.cake
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if (!string.IsNullOrEmpty(PYTHON_EXE) && FileExists(PYTHON_EXE)) {

DirectoryPath DEPOT_PATH = MakeAbsolute(ROOT_PATH.Combine("externals/depot_tools"));
DirectoryPath SKIA_PATH = MakeAbsolute(ROOT_PATH.Combine("externals/skia"));
DirectoryPath HARFBUZZ_PATH = MakeAbsolute(ROOT_PATH.Combine("externals/harfbuzz"));
DirectoryPath HARFBUZZ_PATH = MakeAbsolute(ROOT_PATH.Combine("externals/skia/third_party/externals/harfbuzz"));

var EXE_EXTENSION = IsRunningOnWindows() ? ".exe" : "";
var GN_EXE = Argument("gn", EnvironmentVariable("GN_EXE") ?? SKIA_PATH.CombineWithFilePath($"bin/gn{EXE_EXTENSION}").FullPath);
Expand Down
1 change: 0 additions & 1 deletion externals/harfbuzz
Submodule harfbuzz deleted from be97e9
2 changes: 1 addition & 1 deletion native/android/libHarfBuzzSharp/jni/HarfBuzzSharp.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ include $(CLEAR_VARS)

cmd-strip = $(PRIVATE_STRIP) --strip-all $(call host-path,$1)

src_root = ../../../../externals/harfbuzz/src
src_root = ../../../../externals/skia/third_party/externals/harfbuzz/src

LOCAL_MODULE := HarfBuzzSharp

Expand Down
112 changes: 56 additions & 56 deletions native/ios/libHarfBuzzSharp/libHarfBuzzSharp.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion native/tizen/libHarfBuzzSharp/project_def.prop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
type = sharedLib
profile = mobile-4.0

harfbuzz_root = ../../../externals/harfbuzz
harfbuzz_root = ../../../externals/skia/third_party/externals/harfbuzz

APPNAME = HarfBuzzSharp

Expand Down

Large diffs are not rendered by default.

382 changes: 191 additions & 191 deletions native/uwp/libHarfBuzzSharp/libHarfBuzzSharp.vcxproj

Large diffs are not rendered by default.

Large diffs are not rendered by default.

382 changes: 191 additions & 191 deletions native/windows/libHarfBuzzSharp/libHarfBuzzSharp.vcxproj

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion utils/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dotnet run --project=utils/SkiaSharpGenerator/SkiaSharpGenerator.csproj -- gener
Or:

```pwsh
dotnet run --project=utils/SkiaSharpGenerator/SkiaSharpGenerator.csproj -- generate --config binding/libHarfBuzzSharp.json --skia externals/harfbuzz --output binding/HarfBuzzSharp.Shared/HarfBuzzApi.generated.cs
dotnet run --project=utils/SkiaSharpGenerator/SkiaSharpGenerator.csproj -- generate --config binding/libHarfBuzzSharp.json --skia externals/skia/third_party/externals/harfbuzz --output binding/HarfBuzzSharp.Shared/HarfBuzzApi.generated.cs
```

* `--config binding/libSkiaSharp.json`
Expand Down

0 comments on commit 7d087c9

Please sign in to comment.