Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[email protected] #1780

Merged
merged 1 commit into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions modules/freetype/2.9/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module(
name = "freetype",
version = "2.9",
)
97 changes: 97 additions & 0 deletions modules/freetype/2.9/patches/add_build_file.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
--- /dev/null
+++ BUILD.bazel
@@ -0,0 +1,94 @@
+licenses(["notice"])
+
+cc_library(
+ name = "freetype",
+ srcs = [
+ "src/autofit/afangles.c",
+ "src/autofit/afblue.c",
+ "src/autofit/afcjk.c",
+ "src/autofit/afdummy.c",
+ "src/autofit/afglobal.c",
+ "src/autofit/afhints.c",
+ "src/autofit/afindic.c",
+ "src/autofit/aflatin.c",
+ "src/autofit/afloader.c",
+ "src/autofit/afmodule.c",
+ "src/autofit/afpic.c",
+ "src/autofit/afranges.c",
+ "src/autofit/afshaper.c",
+ "src/autofit/afwarp.c",
+ "src/base/basepic.c",
+ "src/base/ftadvanc.c",
+ "src/base/ftapi.c",
+ "src/base/ftbbox.c",
+ "src/base/ftbdf.c",
+ "src/base/ftbitmap.c",
+ "src/base/ftcalc.c",
+ "src/base/ftcid.c",
+ "src/base/ftdbgmem.c",
+ "src/base/ftdebug.c",
+ "src/base/ftfntfmt.c",
+ "src/base/ftfstype.c",
+ "src/base/ftgasp.c",
+ "src/base/ftgloadr.c",
+ "src/base/ftglyph.c",
+ "src/base/ftgxval.c",
+ "src/base/fthash.c",
+ "src/base/ftinit.c",
+ "src/base/ftlcdfil.c",
+ "src/base/ftmm.c",
+ "src/base/ftobjs.c",
+ "src/base/ftotval.c",
+ "src/base/ftoutln.c",
+ "src/base/ftpatent.c",
+ "src/base/ftpfr.c",
+ "src/base/ftpic.c",
+ "src/base/ftrfork.c",
+ "src/base/ftsnames.c",
+ "src/base/ftstream.c",
+ "src/base/ftstroke.c",
+ "src/base/ftsynth.c",
+ "src/base/ftsystem.c",
+ "src/base/fttrigon.c",
+ "src/base/fttype1.c",
+ "src/base/ftutil.c",
+ "src/base/ftwinfnt.c",
+ "src/gzip/ftgzip.c",
+ "src/raster/ftraster.c",
+ "src/raster/ftrend1.c",
+ "src/raster/rastpic.c",
+ "src/sfnt/pngshim.c",
+ "src/sfnt/sfdriver.c",
+ "src/sfnt/sfntpic.c",
+ "src/sfnt/sfobjs.c",
+ "src/sfnt/ttbdf.c",
+ "src/sfnt/ttcmap.c",
+ "src/sfnt/ttkern.c",
+ "src/sfnt/ttload.c",
+ "src/sfnt/ttmtx.c",
+ "src/sfnt/ttpost.c",
+ "src/sfnt/ttsbit.c",
+ "src/smooth/ftgrays.c",
+ "src/smooth/ftsmooth.c",
+ "src/smooth/ftspic.c",
+ "src/truetype/ttdriver.c",
+ "src/truetype/ttgload.c",
+ "src/truetype/ttgxvar.c",
+ "src/truetype/ttinterp.c",
+ "src/truetype/ttobjs.c",
+ "src/truetype/ttpic.c",
+ "src/truetype/ttpload.c",
+ "src/truetype/ttsubpix.c",
+ ],
+ hdrs = glob([
+ "src/**/*.h",
+ "include/**/*.h",
+ ]),
+ copts = [
+ "-DFT2_BUILD_LIBRARY",
+ "-UDEBUG",
+ ],
+ includes = ["include"],
+ textual_hdrs = glob(["src/**/*.c"]),
+ visibility = ["//visibility:public"],
+)
7 changes: 7 additions & 0 deletions modules/freetype/2.9/patches/module_dot_bazel.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
--- MODULE.bazel
+++ MODULE.bazel
@@ -0,0 +1,4 @@
+module(
+ name = "freetype",
+ version = "2.9",
+)
17 changes: 17 additions & 0 deletions modules/freetype/2.9/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
matrix:
platform:
- debian10
- ubuntu2004
- macos
- macos_arm64
- windows
bazel:
- 7.x
- 6.x
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_targets:
- '@freetype//...'
10 changes: 10 additions & 0 deletions modules/freetype/2.9/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"url": "https://download.savannah.gnu.org/releases/freetype/freetype-2.9.tar.gz",
"integrity": "sha256-vzgOTXxPO1scGnsr86u5Z72l6atIDQ32VuDgjFAZxeY=",
"strip_prefix": "freetype-2.9",
"patches": {
"add_build_file.patch": "sha256-wYf/d2HSVSt5mwiFdaOtYtsLe81YYJxnW16AFAgVYJk=",
"module_dot_bazel.patch": "sha256-ZLsAaH0i0tmnWzNG8HbpRJ7MuDrKohr7LBKzgzYxgnI="
},
"patch_strip": 0
}
14 changes: 14 additions & 0 deletions modules/freetype/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"homepage": "https://freetype.org/",
"maintainers": [
{
"email": "[email protected]",
"name": "No Maintainer Specified"
}
],
"repository": [],
"versions": [
"2.9"
],
"yanked_versions": {}
}
Loading