-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
/
build.gradle
100 lines (95 loc) · 2.98 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/*******************************************************************************
* Copyright 2011 See AUTHORS file.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
dependencies {
api project(":gdx")
}
apply plugin: "com.badlogicgames.gdx.gdx-jnigen"
jnigen {
sharedLibName = "gdx-freetype"
all {
headerDirs = ["freetype/include"]
cIncludes = [
// BASE
"freetype/src/base/ftsystem.c",
"freetype/src/base/ftinit.c",
"freetype/src/base/ftdebug.c",
"freetype/src/base/ftbase.c",
"freetype/src/base/ftbbox.c",
"freetype/src/base/ftglyph.c",
"freetype/src/base/ftbdf.c",
"freetype/src/base/ftbitmap.c",
"freetype/src/base/ftcid.c",
"freetype/src/base/ftfstype.c",
"freetype/src/base/ftgasp.c",
"freetype/src/base/ftgxval.c",
"freetype/src/base/ftmm.c",
"freetype/src/base/ftotval.c",
"freetype/src/base/ftpatent.c",
"freetype/src/base/ftpfr.c",
"freetype/src/base/ftstroke.c",
"freetype/src/base/ftsynth.c",
"freetype/src/base/fttype1.c",
"freetype/src/base/ftwinfnt.c",
"freetype/src/base/ftxf86.c",
// "freetype/src/base/ftmac.c",
// DRIVERS
"freetype/src/bdf/bdf.c",
"freetype/src/cff/cff.c",
"freetype/src/cid/type1cid.c",
"freetype/src/pcf/pcf.c",
"freetype/src/pfr/pfr.c",
"freetype/src/sdf/sdf.c",
"freetype/src/sfnt/sfnt.c",
"freetype/src/truetype/truetype.c",
"freetype/src/type1/type1.c",
"freetype/src/type42/type42.c",
"freetype/src/winfonts/winfnt.c",
// RASTERIZERS
"freetype/src/raster/raster.c",
"freetype/src/smooth/smooth.c",
// AUX
"freetype/src/autofit/autofit.c",
"freetype/src/cache/ftcache.c",
"freetype/src/gzip/ftgzip.c",
"freetype/src/lzw/ftlzw.c",
"freetype/src/bzip2/ftbzip2.c",
"freetype/src/gxvalid/gxvalid.c",
"freetype/src/otvalid/otvalid.c",
"freetype/src/psaux/psaux.c",
"freetype/src/pshinter/pshinter.c",
"freetype/src/psnames/psnames.c"
]
cppExcludes = ["freetype/subprojects/"]
cFlags += " -DFT2_BUILD_LIBRARY "
cFlags += System.getenv("CC_FLAGS") ?: ""
cppFlags += " -DFT2_BUILD_LIBRARY "
cppFlags += System.getenv("CPP_FLAGS") ?: ""
}
add(Windows, x32)
add(Windows, x64)
add(Linux, x64)
add(Linux, x32, ARM)
add(Linux, x64, ARM)
add(Linux, x64, RISCV)
add(MacOsX, x64) {
linkerFlags += " -framework CoreServices -framework Carbon"
}
add(MacOsX, x64, ARM) {
linkerFlags += " -framework CoreServices -framework Carbon"
}
add(Android)
add(IOS)
}