forked from Chlumsky/msdf-atlas-gen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
112 lines (109 loc) · 2.82 KB
/
BUILD
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
101
102
103
104
105
106
107
108
109
110
111
112
cc_library(
name = "freetype",
hdrs = glob([
"freetype/include/freetype/*.h",
"freetype/include/freetype/config/**/*.h",
"freetype/include/freetype/internal/**/*.h",
"freetype/src/**/*.h",
]) + ["freetype/include/ft2build.h"],
srcs = [
"freetype/src/autofit/autofit.c",
"freetype/src/base/ftbase.c",
"freetype/src/base/ftbbox.c",
"freetype/src/base/ftbdf.c",
"freetype/src/base/ftbitmap.c",
"freetype/src/base/ftcid.c",
"freetype/src/base/ftdebug.c",
"freetype/src/base/ftfstype.c",
"freetype/src/base/ftgasp.c",
"freetype/src/base/ftglyph.c",
"freetype/src/base/ftgxval.c",
"freetype/src/base/ftinit.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/ftsystem.c",
"freetype/src/base/fttype1.c",
"freetype/src/base/ftwinfnt.c",
"freetype/src/bdf/bdf.c",
"freetype/src/bzip2/ftbzip2.c",
"freetype/src/cache/ftcache.c",
"freetype/src/cff/cff.c",
"freetype/src/cff/cffcmap.c",
"freetype/src/cid/type1cid.c",
"freetype/src/gzip/ftgzip.c",
"freetype/src/lzw/ftlzw.c",
"freetype/src/pcf/pcf.c",
"freetype/src/pcf/pcfdrivr.c",
"freetype/src/pfr/pfr.c",
"freetype/src/psaux/psaux.c",
"freetype/src/pshinter/pshinter.c",
"freetype/src/psnames/psnames.c",
"freetype/src/raster/raster.c",
"freetype/src/sdf/sdf.c",
"freetype/src/sfnt/sfnt.c",
"freetype/src/smooth/smooth.c",
"freetype/src/truetype/truetype.c",
"freetype/src/type1/type1.c",
"freetype/src/type42/type42.c",
"freetype/src/type42/t42drivr.c",
"freetype/src/winfonts/winfnt.c"
],
includes = ["freetype/include"],
defines = [
"FT2_BUILD_LIBRARY=1",
"_CRT_SECURE_NO_WARNINGS=1",
"_CRT_NONSTDC_NO_WARNINGS=1"
],
textual_hdrs = glob([
"freetype/src/**/*.c"
])
)
cc_library(
name = "tinyxml",
hdrs = ["tinyxml/tinyxml2.h"],
srcs = ["tinyxml/tinyxml2.cpp"],
includes = ["tinyxml"]
)
cc_library(
name = "MSDFGen",
deps = [
":freetype",
":tinyxml"
],
hdrs = glob([
"msdfgen/core/*.hpp",
"msdfgen/core/*.h",
"msdfgen/ext/*.h",
"msdfgen/*.h"
], exclude = ["msdfgen/resource.h"]),
srcs = glob([
"msdfgen/**/*.cpp"
]),
includes = ["msdfgen"],
defines = [
"MSDFGEN_USE_CPP11"
]
)
cc_library(
name = "MSDFAtlasGen",
copts = [
"-Wunused-function"
],
defines = [
"_CRT_SECURE_NO_WARNINGS=1",
],
deps = [":MSDFGen"],
hdrs = glob([
"msdf-atlas-gen/*.h",
"msdf-atlas-gen/*.hpp"
]),
includes = ["msdf-atlas-gen"],
srcs = glob([
"msdf-atlas-gen/*.cpp"
]),
visibility = ["//visibility:public"],
)