2016-01-13 18:45:19 +00:00
|
|
|
################################################################################
|
|
|
|
# Skylark macros
|
|
|
|
################################################################################
|
|
|
|
|
2020-06-02 13:12:02 +00:00
|
|
|
def skia_select(conditions, results):
|
|
|
|
"""select() for conditions provided externally.
|
2016-01-13 18:45:19 +00:00
|
|
|
|
2020-06-02 13:12:02 +00:00
|
|
|
Instead of {"conditionA": resultA, "conditionB": resultB},
|
|
|
|
this takes two arrays, ["conditionA", "conditionB"] and [resultA, resultB].
|
2018-07-31 14:31:06 +00:00
|
|
|
|
2020-06-02 13:12:02 +00:00
|
|
|
This allows the exact targets of the conditions to be provided externally while
|
|
|
|
the results can live here, hiding the structure of those conditions in Google3.
|
2016-01-13 18:45:19 +00:00
|
|
|
|
2020-06-02 13:12:02 +00:00
|
|
|
Maybe this is too much paranoia?
|
2018-07-31 14:31:06 +00:00
|
|
|
|
|
|
|
Args:
|
2020-06-02 13:12:02 +00:00
|
|
|
conditions: [CONDITION_UNIX, CONDITION_ANDROID, CONDITION_IOS, CONDITION_WASM, ...]
|
|
|
|
results: [RESULT_UNIX, RESULT_ANDROID, RESULT_IOS, RESULT_WASM, ....]
|
2018-07-31 14:31:06 +00:00
|
|
|
Returns:
|
2020-06-02 13:12:02 +00:00
|
|
|
The result matching the active condition.
|
2018-07-31 14:31:06 +00:00
|
|
|
"""
|
|
|
|
selector = {}
|
2020-06-02 13:12:02 +00:00
|
|
|
for i in range(len(conditions)):
|
2018-07-31 14:31:06 +00:00
|
|
|
selector[conditions[i]] = results[i]
|
2020-06-02 13:12:02 +00:00
|
|
|
return select(selector)
|
2016-01-13 18:45:19 +00:00
|
|
|
|
|
|
|
def skia_glob(srcs):
|
2018-07-31 14:31:06 +00:00
|
|
|
"""Replaces glob() with a version that accepts a struct.
|
|
|
|
|
|
|
|
Args:
|
|
|
|
srcs: struct(include=[], exclude=[])
|
|
|
|
Returns:
|
|
|
|
Equivalent of glob(srcs.include, exclude=srcs.exclude)
|
|
|
|
"""
|
|
|
|
if hasattr(srcs, "include"):
|
|
|
|
if hasattr(srcs, "exclude"):
|
|
|
|
return native.glob(srcs.include, exclude = srcs.exclude)
|
|
|
|
else:
|
|
|
|
return native.glob(srcs.include)
|
|
|
|
return []
|
2016-01-13 18:45:19 +00:00
|
|
|
|
2017-10-17 14:57:34 +00:00
|
|
|
################################################################################
|
|
|
|
## skia_{all,public}_hdrs()
|
|
|
|
################################################################################
|
|
|
|
def skia_all_hdrs():
|
2018-07-31 14:31:06 +00:00
|
|
|
return native.glob([
|
|
|
|
"src/**/*.h",
|
|
|
|
"include/**/*.h",
|
|
|
|
"third_party/**/*.h",
|
|
|
|
])
|
2017-10-17 14:57:34 +00:00
|
|
|
|
|
|
|
def skia_public_hdrs():
|
2018-07-31 14:31:06 +00:00
|
|
|
return native.glob(
|
|
|
|
["include/**/*.h"],
|
|
|
|
exclude = [
|
|
|
|
"include/private/**/*",
|
|
|
|
],
|
|
|
|
)
|
2017-10-17 14:57:34 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
## skia_opts_srcs()
|
|
|
|
################################################################################
|
|
|
|
# Intel
|
|
|
|
SKIA_OPTS_SSE2 = "SSE2"
|
|
|
|
|
|
|
|
SKIA_OPTS_SSSE3 = "SSSE3"
|
|
|
|
|
|
|
|
SKIA_OPTS_SSE41 = "SSE41"
|
|
|
|
|
|
|
|
SKIA_OPTS_SSE42 = "SSE42"
|
|
|
|
|
|
|
|
SKIA_OPTS_AVX = "AVX"
|
|
|
|
|
2018-02-27 18:43:53 +00:00
|
|
|
SKIA_OPTS_HSW = "HSW"
|
|
|
|
|
2017-10-17 14:57:34 +00:00
|
|
|
# Arm
|
|
|
|
SKIA_OPTS_NEON = "NEON"
|
|
|
|
|
|
|
|
SKIA_OPTS_CRC32 = "CRC32" # arm64
|
|
|
|
|
|
|
|
def opts_srcs(opts):
|
2018-07-31 14:31:06 +00:00
|
|
|
if opts == SKIA_OPTS_SSE2:
|
|
|
|
return native.glob([
|
|
|
|
"src/opts/*_SSE2.cpp",
|
|
|
|
"src/opts/*_sse2.cpp", # No matches currently.
|
|
|
|
])
|
|
|
|
elif opts == SKIA_OPTS_SSSE3:
|
|
|
|
return native.glob([
|
|
|
|
"src/opts/*_SSSE3.cpp",
|
|
|
|
"src/opts/*_ssse3.cpp",
|
|
|
|
])
|
|
|
|
elif opts == SKIA_OPTS_SSE41:
|
|
|
|
return native.glob([
|
|
|
|
"src/opts/*_sse41.cpp",
|
|
|
|
])
|
|
|
|
elif opts == SKIA_OPTS_SSE42:
|
|
|
|
return native.glob([
|
|
|
|
"src/opts/*_sse42.cpp",
|
|
|
|
])
|
|
|
|
elif opts == SKIA_OPTS_AVX:
|
|
|
|
return native.glob([
|
|
|
|
"src/opts/*_avx.cpp",
|
|
|
|
])
|
|
|
|
elif opts == SKIA_OPTS_HSW:
|
|
|
|
return native.glob([
|
|
|
|
"src/opts/*_hsw.cpp",
|
|
|
|
])
|
|
|
|
elif opts == SKIA_OPTS_NEON:
|
|
|
|
return native.glob([
|
|
|
|
"src/opts/*_neon.cpp",
|
|
|
|
])
|
|
|
|
elif opts == SKIA_OPTS_CRC32:
|
|
|
|
return native.glob([
|
|
|
|
"src/opts/*_crc32.cpp",
|
|
|
|
])
|
|
|
|
else:
|
|
|
|
fail("skia_opts_srcs parameter 'opts' must be one of SKIA_OPTS_*.")
|
2017-10-17 14:57:34 +00:00
|
|
|
|
|
|
|
def opts_cflags(opts):
|
2018-07-31 14:31:06 +00:00
|
|
|
if opts == SKIA_OPTS_SSE2:
|
|
|
|
return ["-msse2"]
|
|
|
|
elif opts == SKIA_OPTS_SSSE3:
|
|
|
|
return ["-mssse3"]
|
|
|
|
elif opts == SKIA_OPTS_SSE41:
|
|
|
|
return ["-msse4.1"]
|
|
|
|
elif opts == SKIA_OPTS_SSE42:
|
|
|
|
return ["-msse4.2"]
|
|
|
|
elif opts == SKIA_OPTS_AVX:
|
|
|
|
return ["-mavx"]
|
|
|
|
elif opts == SKIA_OPTS_HSW:
|
|
|
|
return ["-mavx2", "-mf16c", "-mfma"]
|
|
|
|
elif opts == SKIA_OPTS_NEON:
|
|
|
|
return ["-mfpu=neon"]
|
|
|
|
elif opts == SKIA_OPTS_CRC32:
|
|
|
|
# NDK r11's Clang (3.8) doesn't pass along this -march setting correctly to an external
|
|
|
|
# assembler, so we do it manually with -Wa. This is just a bug, fixed in later Clangs.
|
|
|
|
return ["-march=armv8-a+crc", "-Wa,-march=armv8-a+crc"]
|
|
|
|
else:
|
|
|
|
return []
|
2017-10-17 14:57:34 +00:00
|
|
|
|
|
|
|
SKIA_CPU_ARM = "ARM"
|
|
|
|
|
|
|
|
SKIA_CPU_ARM64 = "ARM64"
|
|
|
|
|
|
|
|
SKIA_CPU_X86 = "X86"
|
|
|
|
|
|
|
|
SKIA_CPU_OTHER = "OTHER"
|
|
|
|
|
|
|
|
def opts_rest_srcs(cpu):
|
2018-07-31 14:31:06 +00:00
|
|
|
srcs = []
|
|
|
|
if cpu == SKIA_CPU_ARM or cpu == SKIA_CPU_ARM64:
|
|
|
|
srcs += native.glob([
|
|
|
|
"src/opts/*_arm.cpp",
|
|
|
|
"src/opts/SkBitmapProcState_opts_none.cpp",
|
|
|
|
])
|
|
|
|
if cpu == SKIA_CPU_ARM64:
|
|
|
|
# NEON doesn't need special flags to compile on ARM64.
|
|
|
|
srcs += native.glob([
|
|
|
|
"src/opts/*_neon.cpp",
|
|
|
|
])
|
|
|
|
elif cpu == SKIA_CPU_X86:
|
|
|
|
srcs += native.glob([
|
|
|
|
"src/opts/*_x86.cpp",
|
|
|
|
])
|
|
|
|
elif cpu == SKIA_CPU_OTHER:
|
|
|
|
srcs += native.glob([
|
|
|
|
"src/opts/*_none.cpp",
|
|
|
|
])
|
|
|
|
else:
|
|
|
|
fail("opts_rest_srcs parameter 'cpu' must be one of " +
|
|
|
|
"SKIA_CPU_{ARM,ARM64,X86,OTHER}.")
|
|
|
|
return srcs
|
2017-10-17 14:57:34 +00:00
|
|
|
|
|
|
|
def skia_opts_deps(cpu):
|
2018-07-31 14:31:06 +00:00
|
|
|
res = [":opts_rest"]
|
2017-10-17 14:57:34 +00:00
|
|
|
|
2018-07-31 14:31:06 +00:00
|
|
|
if cpu == SKIA_CPU_ARM:
|
|
|
|
res += [":opts_neon"]
|
2017-10-17 14:57:34 +00:00
|
|
|
|
2018-07-31 14:31:06 +00:00
|
|
|
if cpu == SKIA_CPU_ARM64:
|
|
|
|
res += [":opts_crc32"]
|
2017-10-24 15:40:41 +00:00
|
|
|
|
2018-07-31 14:31:06 +00:00
|
|
|
if cpu == SKIA_CPU_X86:
|
|
|
|
res += [
|
|
|
|
":opts_sse2",
|
|
|
|
":opts_ssse3",
|
|
|
|
":opts_sse41",
|
|
|
|
":opts_sse42",
|
|
|
|
":opts_avx",
|
|
|
|
":opts_hsw",
|
|
|
|
]
|
2017-10-17 14:57:34 +00:00
|
|
|
|
2018-07-31 14:31:06 +00:00
|
|
|
return res
|
2017-10-17 14:57:34 +00:00
|
|
|
|
2016-01-13 18:45:19 +00:00
|
|
|
################################################################################
|
|
|
|
## BASE_SRCS
|
|
|
|
################################################################################
|
2015-08-17 19:58:10 +00:00
|
|
|
|
2015-11-18 21:26:10 +00:00
|
|
|
# All platform-independent SRCS.
|
2016-01-13 18:45:19 +00:00
|
|
|
BASE_SRCS_ALL = struct(
|
|
|
|
include = [
|
2017-03-16 23:15:09 +00:00
|
|
|
"include/private/**/*.h",
|
2015-10-15 15:09:44 +00:00
|
|
|
"src/**/*.h",
|
|
|
|
"src/**/*.cpp",
|
2017-03-16 23:15:09 +00:00
|
|
|
"src/**/*.inc",
|
2015-08-17 19:58:10 +00:00
|
|
|
],
|
2017-03-16 23:15:09 +00:00
|
|
|
exclude = [
|
2015-10-15 15:09:44 +00:00
|
|
|
# Exclude platform-dependent files.
|
2019-05-15 21:57:48 +00:00
|
|
|
"src/codec/*",
|
2015-10-15 15:09:44 +00:00
|
|
|
"src/device/xps/*", # Windows-only. Move to ports?
|
|
|
|
"src/doc/*_XPS.cpp", # Windows-only. Move to ports?
|
|
|
|
"src/gpu/gl/android/*",
|
2015-10-26 17:46:25 +00:00
|
|
|
"src/gpu/gl/egl/*",
|
2016-03-28 20:27:28 +00:00
|
|
|
"src/gpu/gl/glfw/*",
|
2015-10-26 17:46:25 +00:00
|
|
|
"src/gpu/gl/glx/*",
|
2015-10-15 15:09:44 +00:00
|
|
|
"src/gpu/gl/iOS/*",
|
|
|
|
"src/gpu/gl/mac/*",
|
|
|
|
"src/gpu/gl/win/*",
|
|
|
|
"src/opts/**/*",
|
|
|
|
"src/ports/**/*",
|
|
|
|
"src/utils/android/**/*",
|
|
|
|
"src/utils/mac/**/*",
|
|
|
|
"src/utils/win/**/*",
|
|
|
|
|
|
|
|
# Exclude multiple definitions.
|
2018-10-15 15:36:55 +00:00
|
|
|
"src/gpu/GrPathRendering_none.cpp",
|
2018-10-10 19:54:53 +00:00
|
|
|
"src/gpu/ccpr/GrCoverageCountingPathRenderer_none.cpp",
|
2018-10-15 15:36:55 +00:00
|
|
|
"src/gpu/gl/GrGLMakeNativeInterface_none.cpp",
|
|
|
|
"src/pdf/SkDocument_PDF_None.cpp", # We use src/pdf/SkPDFDocument.cpp.
|
2015-10-15 15:09:44 +00:00
|
|
|
|
2018-03-26 19:46:40 +00:00
|
|
|
# Exclude files that don't compile everywhere.
|
|
|
|
"src/svg/**/*", # Depends on xml, SkJpegCodec, and SkPngCodec.
|
|
|
|
"src/xml/**/*", # Avoid dragging in expat when not needed.
|
2015-10-15 15:09:44 +00:00
|
|
|
|
2020-07-10 16:17:47 +00:00
|
|
|
# Exclude all GL specific files
|
|
|
|
"src/gpu/gl/*",
|
|
|
|
"src/gpu/gl/builders/*",
|
|
|
|
|
2020-08-20 16:31:21 +00:00
|
|
|
# Exclude all WebGL specific files
|
|
|
|
"src/gpu/gl/webgl/*",
|
|
|
|
|
2016-02-22 18:07:54 +00:00
|
|
|
# Currently exclude all vulkan specific files
|
|
|
|
"src/gpu/vk/*",
|
2016-09-30 19:06:27 +00:00
|
|
|
|
2020-02-24 16:36:15 +00:00
|
|
|
# Currently exclude all Direct3D specific files
|
|
|
|
"src/gpu/d3d/*",
|
|
|
|
|
2019-07-18 15:43:45 +00:00
|
|
|
# Currently exclude all Dawn-specific files
|
|
|
|
"src/gpu/dawn/*",
|
|
|
|
|
2016-09-30 19:06:27 +00:00
|
|
|
# Defines main.
|
|
|
|
"src/sksl/SkSLMain.cpp",
|
2017-09-07 15:07:42 +00:00
|
|
|
|
|
|
|
# Only used to regenerate the lexer
|
|
|
|
"src/sksl/lex/*",
|
2015-10-15 15:09:44 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2019-11-20 21:43:54 +00:00
|
|
|
def codec_srcs(limited):
|
|
|
|
"""Sources for the codecs. Excludes Raw, and Ico, Webp, and Png if limited."""
|
|
|
|
|
2019-11-20 15:16:10 +00:00
|
|
|
exclude = ["src/codec/*Raw*.cpp"]
|
2019-11-20 21:43:54 +00:00
|
|
|
if limited:
|
|
|
|
exclude += [
|
|
|
|
"src/codec/*Ico*.cpp",
|
|
|
|
"src/codec/*Webp*.cpp",
|
|
|
|
"src/codec/*Png*",
|
|
|
|
]
|
2019-11-20 15:16:10 +00:00
|
|
|
return native.glob(["src/codec/*.cpp"], exclude = exclude)
|
2017-10-17 14:57:34 +00:00
|
|
|
|
2019-03-27 16:16:25 +00:00
|
|
|
GL_SRCS_UNIX = struct(
|
2016-01-13 18:45:19 +00:00
|
|
|
include = [
|
2020-07-10 16:17:47 +00:00
|
|
|
"src/gpu/gl/*",
|
|
|
|
"src/gpu/gl/builders/*",
|
2019-03-27 16:16:25 +00:00
|
|
|
],
|
|
|
|
exclude = [],
|
|
|
|
)
|
|
|
|
PORTS_SRCS_UNIX = struct(
|
|
|
|
include = [
|
2015-10-15 15:09:44 +00:00
|
|
|
"src/ports/**/*.cpp",
|
|
|
|
"src/ports/**/*.h",
|
|
|
|
],
|
|
|
|
exclude = [
|
2016-03-10 15:15:59 +00:00
|
|
|
"src/ports/*CG*",
|
2016-03-17 20:50:17 +00:00
|
|
|
"src/ports/*WIC*",
|
2016-03-10 16:52:05 +00:00
|
|
|
"src/ports/*android*",
|
2015-10-15 15:09:44 +00:00
|
|
|
"src/ports/*chromium*",
|
|
|
|
"src/ports/*mac*",
|
|
|
|
"src/ports/*mozalloc*",
|
|
|
|
"src/ports/*nacl*",
|
|
|
|
"src/ports/*win*",
|
2020-08-05 14:44:17 +00:00
|
|
|
"src/ports/*NDK*",
|
2015-12-01 19:12:05 +00:00
|
|
|
"src/ports/SkFontMgr_custom_directory_factory.cpp",
|
2015-10-15 15:09:44 +00:00
|
|
|
"src/ports/SkFontMgr_custom_embedded_factory.cpp",
|
2016-03-21 17:45:01 +00:00
|
|
|
"src/ports/SkFontMgr_custom_empty_factory.cpp",
|
2015-10-15 15:09:44 +00:00
|
|
|
"src/ports/SkFontMgr_empty_factory.cpp",
|
2015-12-01 19:12:05 +00:00
|
|
|
"src/ports/SkFontMgr_fontconfig_factory.cpp",
|
2018-12-01 01:42:00 +00:00
|
|
|
"src/ports/SkFontMgr_fuchsia.cpp",
|
2015-10-15 15:09:44 +00:00
|
|
|
"src/ports/SkImageGenerator_none.cpp",
|
2015-08-18 15:51:49 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2019-03-27 16:16:25 +00:00
|
|
|
GL_SRCS_ANDROID = struct(
|
2016-01-13 18:45:19 +00:00
|
|
|
include = [
|
2020-07-10 16:17:47 +00:00
|
|
|
"src/gpu/gl/*",
|
|
|
|
"src/gpu/gl/builders/*",
|
2018-08-17 13:28:53 +00:00
|
|
|
"src/gpu/gl/android/*.cpp",
|
2019-03-27 16:16:25 +00:00
|
|
|
],
|
2020-07-10 16:17:47 +00:00
|
|
|
exclude = [
|
|
|
|
"src/gpu/gl/GrGLMakeNativeInterface_none.cpp",
|
|
|
|
],
|
2019-03-27 16:16:25 +00:00
|
|
|
)
|
|
|
|
PORTS_SRCS_ANDROID = struct(
|
|
|
|
include = [
|
2015-10-26 17:46:25 +00:00
|
|
|
"src/ports/**/*.cpp",
|
|
|
|
"src/ports/**/*.h",
|
|
|
|
],
|
|
|
|
exclude = [
|
2016-03-10 15:15:59 +00:00
|
|
|
"src/ports/*CG*",
|
2016-03-10 16:52:05 +00:00
|
|
|
"src/ports/*FontConfig*",
|
2016-03-17 20:50:17 +00:00
|
|
|
"src/ports/*WIC*",
|
2015-10-26 17:46:25 +00:00
|
|
|
"src/ports/*chromium*",
|
|
|
|
"src/ports/*fontconfig*",
|
|
|
|
"src/ports/*mac*",
|
|
|
|
"src/ports/*mozalloc*",
|
|
|
|
"src/ports/*nacl*",
|
|
|
|
"src/ports/*win*",
|
2020-08-05 14:44:17 +00:00
|
|
|
"src/ports/*NDK*", # TODO (scroggo): enable NDK decoding/encoding in Google3
|
2015-10-26 17:46:25 +00:00
|
|
|
"src/ports/SkDebug_stdio.cpp",
|
|
|
|
"src/ports/SkFontMgr_custom_directory_factory.cpp",
|
|
|
|
"src/ports/SkFontMgr_custom_embedded_factory.cpp",
|
2016-03-21 17:45:01 +00:00
|
|
|
"src/ports/SkFontMgr_custom_empty_factory.cpp",
|
2015-10-26 17:46:25 +00:00
|
|
|
"src/ports/SkFontMgr_empty_factory.cpp",
|
2018-12-01 01:42:00 +00:00
|
|
|
"src/ports/SkFontMgr_fuchsia.cpp",
|
2015-10-26 17:46:25 +00:00
|
|
|
"src/ports/SkImageGenerator_none.cpp",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2019-03-27 16:16:25 +00:00
|
|
|
GL_SRCS_IOS = struct(
|
2016-01-13 18:45:19 +00:00
|
|
|
include = [
|
2020-07-10 16:17:47 +00:00
|
|
|
"src/gpu/gl/*",
|
|
|
|
"src/gpu/gl/builders/*",
|
2017-12-11 15:06:31 +00:00
|
|
|
"src/gpu/gl/iOS/GrGLMakeNativeInterface_iOS.cpp",
|
2019-03-27 16:16:25 +00:00
|
|
|
],
|
2020-07-10 16:17:47 +00:00
|
|
|
exclude = [
|
|
|
|
"src/gpu/gl/GrGLMakeNativeInterface_none.cpp",
|
|
|
|
],
|
2019-03-27 16:16:25 +00:00
|
|
|
)
|
|
|
|
PORTS_SRCS_IOS = struct(
|
|
|
|
include = [
|
2015-11-02 19:11:21 +00:00
|
|
|
"src/ports/**/*.cpp",
|
|
|
|
"src/ports/**/*.h",
|
2016-02-17 03:17:01 +00:00
|
|
|
"src/utils/mac/*.cpp",
|
2015-11-02 19:11:21 +00:00
|
|
|
],
|
|
|
|
exclude = [
|
2016-03-10 16:52:05 +00:00
|
|
|
"src/ports/*FontConfig*",
|
|
|
|
"src/ports/*FreeType*",
|
2016-03-17 20:50:17 +00:00
|
|
|
"src/ports/*WIC*",
|
2015-11-02 19:11:21 +00:00
|
|
|
"src/ports/*android*",
|
|
|
|
"src/ports/*chromium*",
|
|
|
|
"src/ports/*fontconfig*",
|
|
|
|
"src/ports/*mozalloc*",
|
|
|
|
"src/ports/*nacl*",
|
|
|
|
"src/ports/*win*",
|
2020-08-05 14:44:17 +00:00
|
|
|
"src/ports/*NDK*",
|
2015-11-02 19:11:21 +00:00
|
|
|
"src/ports/SkFontMgr_custom.cpp",
|
2017-02-08 22:29:33 +00:00
|
|
|
"src/ports/SkFontMgr_custom_directory.cpp",
|
|
|
|
"src/ports/SkFontMgr_custom_embedded.cpp",
|
|
|
|
"src/ports/SkFontMgr_custom_empty.cpp",
|
2015-11-02 19:11:21 +00:00
|
|
|
"src/ports/SkFontMgr_custom_directory_factory.cpp",
|
|
|
|
"src/ports/SkFontMgr_custom_embedded_factory.cpp",
|
2016-03-21 17:45:01 +00:00
|
|
|
"src/ports/SkFontMgr_custom_empty_factory.cpp",
|
2015-11-02 19:11:21 +00:00
|
|
|
"src/ports/SkFontMgr_empty_factory.cpp",
|
2018-12-01 01:42:00 +00:00
|
|
|
"src/ports/SkFontMgr_fuchsia.cpp",
|
2015-11-02 19:11:21 +00:00
|
|
|
"src/ports/SkImageGenerator_none.cpp",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2020-03-02 17:10:02 +00:00
|
|
|
GL_SRCS_WASM = struct(
|
|
|
|
include = [
|
2020-07-10 16:17:47 +00:00
|
|
|
"src/gpu/gl/*",
|
|
|
|
"src/gpu/gl/builders/*",
|
2021-02-18 21:23:41 +00:00
|
|
|
"src/gpu/gl/egl/GrGLMakeEGLInterface.cpp",
|
2020-03-02 17:10:02 +00:00
|
|
|
"src/gpu/gl/egl/GrGLMakeNativeInterface_egl.cpp",
|
|
|
|
],
|
2020-07-10 16:17:47 +00:00
|
|
|
exclude = [
|
|
|
|
"src/gpu/gl/GrGLMakeNativeInterface_none.cpp",
|
|
|
|
],
|
2020-03-02 17:10:02 +00:00
|
|
|
)
|
|
|
|
PORTS_SRCS_WASM = struct(
|
|
|
|
include = [
|
|
|
|
"src/ports/**/*.cpp",
|
|
|
|
"src/ports/**/*.h",
|
|
|
|
],
|
|
|
|
exclude = [
|
|
|
|
# commented lines below left in because they indicate specifically what is
|
|
|
|
# included here and not in other PORTS_SRCS lists.
|
|
|
|
"src/ports/*FontConfig*",
|
2020-09-18 19:29:12 +00:00
|
|
|
#"src/ports/*FreeType*",
|
2020-03-02 17:10:02 +00:00
|
|
|
"src/ports/*WIC*",
|
|
|
|
"src/ports/*CG*",
|
|
|
|
"src/ports/*android*",
|
|
|
|
"src/ports/*chromium*",
|
|
|
|
"src/ports/*fontconfig*",
|
|
|
|
"src/ports/*mac*",
|
|
|
|
"src/ports/*mozalloc*",
|
|
|
|
"src/ports/*nacl*",
|
|
|
|
"src/ports/*win*",
|
2020-08-05 14:44:17 +00:00
|
|
|
"src/ports/*NDK*",
|
2020-03-02 17:10:02 +00:00
|
|
|
#"src/ports/SkDebug_stdio.cpp",
|
2020-09-18 19:29:12 +00:00
|
|
|
#"src/ports/SkFontMgr_custom.cpp",
|
2020-03-02 17:10:02 +00:00
|
|
|
"src/ports/SkFontMgr_custom_directory.cpp",
|
|
|
|
"src/ports/SkFontMgr_custom_directory_factory.cpp",
|
2020-12-23 12:58:58 +00:00
|
|
|
"src/ports/SkFontMgr_custom_embedded.cpp",
|
|
|
|
"src/ports/SkFontMgr_custom_embedded_factory.cpp",
|
2020-03-02 17:10:02 +00:00
|
|
|
"src/ports/SkFontMgr_custom_empty.cpp",
|
|
|
|
"src/ports/SkFontMgr_custom_empty_factory.cpp",
|
|
|
|
# "src/ports/SkFontMgr_empty_factory.cpp",
|
|
|
|
"src/ports/SkFontMgr_fontconfig_factory.cpp",
|
|
|
|
"src/ports/SkFontMgr_fuchsia.cpp",
|
|
|
|
"src/ports/SkImageGenerator_none.cpp",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2020-06-02 14:13:01 +00:00
|
|
|
GL_SRCS_FUCHSIA = struct(
|
|
|
|
include = [
|
2020-07-10 16:17:47 +00:00
|
|
|
"src/gpu/vk/*",
|
2020-06-02 14:13:01 +00:00
|
|
|
],
|
|
|
|
exclude = [],
|
|
|
|
)
|
|
|
|
PORTS_SRCS_FUCHSIA = struct(
|
|
|
|
include = [
|
|
|
|
"src/ports/**/*.cpp",
|
|
|
|
"src/ports/**/*.h",
|
|
|
|
],
|
|
|
|
exclude = [
|
|
|
|
"src/ports/*FontConfig*",
|
|
|
|
#"src/ports/*FreeType*",
|
|
|
|
"src/ports/*WIC*",
|
|
|
|
"src/ports/*CG*",
|
|
|
|
"src/ports/*android*",
|
|
|
|
"src/ports/*chromium*",
|
|
|
|
"src/ports/*fontconfig*",
|
|
|
|
"src/ports/*mac*",
|
|
|
|
"src/ports/*mozalloc*",
|
|
|
|
"src/ports/*nacl*",
|
|
|
|
"src/ports/*win*",
|
2020-08-05 14:44:17 +00:00
|
|
|
"src/ports/*NDK*",
|
2020-06-02 14:13:01 +00:00
|
|
|
#"src/ports/SkDebug_stdio.cpp",
|
|
|
|
#"src/ports/SkFontMgr_custom.cpp",
|
|
|
|
"src/ports/SkFontMgr_custom_directory.cpp",
|
|
|
|
"src/ports/SkFontMgr_custom_directory_factory.cpp",
|
|
|
|
"src/ports/SkFontMgr_custom_embedded.cpp",
|
|
|
|
"src/ports/SkFontMgr_custom_embedded_factory.cpp",
|
|
|
|
"src/ports/SkFontMgr_custom_empty.cpp",
|
|
|
|
"src/ports/SkFontMgr_custom_empty_factory.cpp",
|
|
|
|
#"src/ports/SkFontMgr_empty_factory.cpp",
|
|
|
|
"src/ports/SkFontMgr_fontconfig_factory.cpp",
|
|
|
|
#"src/ports/SkFontMgr_fuchsia.cpp",
|
|
|
|
"src/ports/SkImageGenerator_none.cpp",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2020-07-01 18:08:16 +00:00
|
|
|
GL_SRCS_MACOS = struct(
|
|
|
|
include = [
|
2020-07-13 17:27:35 +00:00
|
|
|
"src/gpu/gl/*",
|
|
|
|
"src/gpu/gl/builders/*",
|
2020-07-01 18:08:16 +00:00
|
|
|
"src/gpu/gl/mac/GrGLMakeNativeInterface_mac.cpp",
|
|
|
|
],
|
2020-07-13 17:27:35 +00:00
|
|
|
exclude = [
|
|
|
|
"src/gpu/gl/GrGLMakeNativeInterface_none.cpp",
|
|
|
|
],
|
2020-07-01 18:08:16 +00:00
|
|
|
)
|
|
|
|
PORTS_SRCS_MACOS = PORTS_SRCS_IOS
|
|
|
|
|
2019-03-27 16:16:25 +00:00
|
|
|
def base_srcs():
|
|
|
|
return skia_glob(BASE_SRCS_ALL)
|
|
|
|
|
|
|
|
def ports_srcs(os_conditions):
|
2019-03-27 18:53:08 +00:00
|
|
|
return skia_select(
|
|
|
|
os_conditions,
|
2018-07-31 14:31:06 +00:00
|
|
|
[
|
2019-03-27 16:16:25 +00:00
|
|
|
skia_glob(PORTS_SRCS_UNIX),
|
|
|
|
skia_glob(PORTS_SRCS_ANDROID),
|
|
|
|
skia_glob(PORTS_SRCS_IOS),
|
2020-03-02 17:10:02 +00:00
|
|
|
skia_glob(PORTS_SRCS_WASM),
|
2020-06-02 14:13:01 +00:00
|
|
|
skia_glob(PORTS_SRCS_FUCHSIA),
|
2020-07-01 18:08:16 +00:00
|
|
|
skia_glob(PORTS_SRCS_MACOS),
|
2019-03-27 18:53:08 +00:00
|
|
|
],
|
|
|
|
)
|
2019-03-27 16:16:25 +00:00
|
|
|
|
|
|
|
def gl_srcs(os_conditions):
|
2019-03-27 18:53:08 +00:00
|
|
|
return skia_select(
|
|
|
|
os_conditions,
|
2019-03-27 16:16:25 +00:00
|
|
|
[
|
|
|
|
skia_glob(GL_SRCS_UNIX),
|
|
|
|
skia_glob(GL_SRCS_ANDROID),
|
|
|
|
skia_glob(GL_SRCS_IOS),
|
2020-03-02 17:10:02 +00:00
|
|
|
skia_glob(GL_SRCS_WASM),
|
2020-06-02 14:13:01 +00:00
|
|
|
skia_glob(GL_SRCS_FUCHSIA),
|
2020-07-01 18:08:16 +00:00
|
|
|
skia_glob(GL_SRCS_MACOS),
|
2019-03-27 18:53:08 +00:00
|
|
|
],
|
|
|
|
)
|
2019-03-27 16:16:25 +00:00
|
|
|
|
|
|
|
def skia_srcs(os_conditions):
|
|
|
|
return base_srcs() + ports_srcs(os_conditions) + gl_srcs(os_conditions)
|
|
|
|
|
2019-12-11 19:09:16 +00:00
|
|
|
def metal_objc_srcs():
|
|
|
|
return native.glob(
|
|
|
|
[
|
|
|
|
"include/**/*.h",
|
|
|
|
"src/**/*.h",
|
|
|
|
"src/gpu/mtl/**/*.mm",
|
|
|
|
"third_party/**/*.h",
|
2019-12-12 01:11:30 +00:00
|
|
|
],
|
2019-12-11 19:09:16 +00:00
|
|
|
) + [
|
|
|
|
"src/image/SkSurface_GpuMtl.mm",
|
|
|
|
]
|
|
|
|
|
2016-01-13 18:45:19 +00:00
|
|
|
################################################################################
|
|
|
|
## INCLUDES
|
|
|
|
################################################################################
|
2015-11-18 21:26:10 +00:00
|
|
|
|
2015-08-17 19:58:10 +00:00
|
|
|
# Includes needed by Skia implementation. Not public includes.
|
|
|
|
INCLUDES = [
|
2019-04-23 17:05:21 +00:00
|
|
|
".",
|
2015-11-13 20:27:08 +00:00
|
|
|
"include/android",
|
2015-08-17 19:58:10 +00:00
|
|
|
"include/c",
|
|
|
|
"include/codec",
|
|
|
|
"include/config",
|
|
|
|
"include/core",
|
2018-09-20 20:26:31 +00:00
|
|
|
"include/docs",
|
2015-08-17 19:58:10 +00:00
|
|
|
"include/effects",
|
2017-05-09 19:28:32 +00:00
|
|
|
"include/encode",
|
2015-08-17 19:58:10 +00:00
|
|
|
"include/gpu",
|
|
|
|
"include/pathops",
|
|
|
|
"include/ports",
|
|
|
|
"include/private",
|
2019-04-29 14:28:22 +00:00
|
|
|
"include/third_party/skcms",
|
2015-08-17 19:58:10 +00:00
|
|
|
"include/utils",
|
2015-11-02 19:11:21 +00:00
|
|
|
"include/utils/mac",
|
2015-11-13 20:27:08 +00:00
|
|
|
"src/codec",
|
2015-08-17 19:58:10 +00:00
|
|
|
"src/core",
|
|
|
|
"src/gpu",
|
|
|
|
"src/image",
|
2017-08-15 17:13:59 +00:00
|
|
|
"src/images",
|
2015-08-17 19:58:10 +00:00
|
|
|
"src/lazy",
|
|
|
|
"src/opts",
|
|
|
|
"src/pdf",
|
2018-03-26 19:46:40 +00:00
|
|
|
"src/ports",
|
2015-08-17 19:58:10 +00:00
|
|
|
"src/sfnt",
|
2017-05-30 20:39:47 +00:00
|
|
|
"src/shaders",
|
Reland "Base Gradient FP Refactor"
This reverts commit 1ea5656a285bcfef445d6f69eaab477e68595b54.
Reason for revert: Fixed google3 build failure
Original change's description:
> Revert "Base Gradient FP Refactor"
>
> This reverts commit 10f7a1e07554a362aef979d32ba288a009bdff90.
>
> Reason for revert: broke google3 roll
> Original change's description:
> > Base Gradient FP Refactor
> >
> > --
> >
> > Redefines how gradients will be written in the GPU back-end:
> >
> > They are split into three fragment processor components: master, layout, and colorizer.
> > The layout FP is responsible for converting the fragment position into an interpolant value, t.
> > Each high-level gradient--such as linear, radial, etc.--are implemented solely in a layout FP.
> > The colorizer FP is responsible for converting t into a color.
> > The master FP invokes the layout, clamps t into the proper domain, and then invokes the colorizer.
> > GrGradientShader provides factory functions to create FP graphs from SkGradientShader instances.
> > This pattern is documented in gpu/gradients/README.md.
> >
> > Goals for current CL
> > ====================
> >
> > Outline the FP components by providing .fp implementations for the simplest gradients.
> > Defines a two-color single interval colorizer and a linear gradient layout, and the master effect.
> > A MakeLinear() factory function is provided that can convert SkGradientShaders that fit these constraints.
> > SkLinearGradient first attempts to use the new system, falling back to the original GrGradientEffect.
> >
> > Future CLs
> > ==========
> >
> > To keep the CL reviews manageable, additional dependent CLs will be added that gradually replace past functionality.
> > A CL for each layout will be defined.
> > CLs for the different analytic colorizer cases and the textured gradient case will be defined.
> > Once the new system supports all current layouts and colorizer capabilities, all old GPU gradient code will be removed.
> > After this clean-up, analytic colorization can hopefully be expanded to reduce the usage of textured gradients.
> >
> > Bug: skia:
> > Change-Id: Iafe7b8b4071491a71c473babcd7bedda659150c1
> > Reviewed-on: https://skia-review.googlesource.com/148120
> > Commit-Queue: Michael Ludwig <michaelludwig@google.com>
> > Reviewed-by: Brian Salomon <bsalomon@google.com>
>
> TBR=bsalomon@google.com,michaelludwig@google.com
>
> Change-Id: Ib735e323795ac8874cb00b007a915786b50517a6
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: skia:
> Reviewed-on: https://skia-review.googlesource.com/153600
> Reviewed-by: Cary Clark <caryclark@google.com>
> Commit-Queue: Cary Clark <caryclark@google.com>
TBR=bsalomon@google.com,caryclark@google.com,michaelludwig@google.com
Change-Id: Ibf6ffbcb1af0dfbdac7317151aeb08f18f84c7fd
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: skia:
Reviewed-on: https://skia-review.googlesource.com/153887
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
2018-09-12 19:22:16 +00:00
|
|
|
"src/shaders/gradients",
|
2016-09-30 19:06:27 +00:00
|
|
|
"src/sksl",
|
2015-08-17 19:58:10 +00:00
|
|
|
"src/utils",
|
2016-10-24 18:11:12 +00:00
|
|
|
"third_party/gif",
|
2016-01-13 18:45:19 +00:00
|
|
|
]
|
2015-08-17 19:58:10 +00:00
|
|
|
|
2016-01-13 18:45:19 +00:00
|
|
|
################################################################################
|
|
|
|
## DM_SRCS
|
|
|
|
################################################################################
|
2015-10-26 17:46:25 +00:00
|
|
|
|
2016-01-13 18:45:19 +00:00
|
|
|
DM_SRCS_ALL = struct(
|
|
|
|
include = [
|
2015-10-15 15:09:44 +00:00
|
|
|
"dm/*.cpp",
|
|
|
|
"dm/*.h",
|
2018-09-21 15:19:45 +00:00
|
|
|
"experimental/pipe/*.cpp",
|
|
|
|
"experimental/pipe/*.h",
|
2015-10-15 15:09:44 +00:00
|
|
|
"gm/*.cpp",
|
|
|
|
"gm/*.h",
|
2020-02-04 21:09:08 +00:00
|
|
|
"gm/verifiers/*.cpp",
|
|
|
|
"gm/verifiers/*.h",
|
2020-10-15 22:10:29 +00:00
|
|
|
# TODO(fmalita): SVG sources should not be included here
|
|
|
|
"modules/svg/include/*.h",
|
|
|
|
"modules/svg/src/*.cpp",
|
2019-06-21 15:09:19 +00:00
|
|
|
"src/utils/SkMultiPictureDocument.cpp",
|
2018-03-26 19:46:40 +00:00
|
|
|
"src/xml/*.cpp",
|
2015-10-15 15:09:44 +00:00
|
|
|
"tests/*.cpp",
|
|
|
|
"tests/*.h",
|
2019-05-31 14:49:12 +00:00
|
|
|
"tools/AutoreleasePool.h",
|
2016-07-28 22:12:21 +00:00
|
|
|
"tools/BigPathBench.inc",
|
2019-07-15 18:01:37 +00:00
|
|
|
"tools/BinaryAsset.h",
|
2015-10-15 15:09:44 +00:00
|
|
|
"tools/CrashHandler.cpp",
|
|
|
|
"tools/CrashHandler.h",
|
2018-05-30 12:27:26 +00:00
|
|
|
"tools/DDLPromiseImageHelper.cpp",
|
|
|
|
"tools/DDLPromiseImageHelper.h",
|
|
|
|
"tools/DDLTileHelper.cpp",
|
|
|
|
"tools/DDLTileHelper.h",
|
2019-03-27 15:51:28 +00:00
|
|
|
"tools/HashAndEncode.cpp",
|
|
|
|
"tools/HashAndEncode.h",
|
2015-10-15 15:09:44 +00:00
|
|
|
"tools/ProcStats.cpp",
|
|
|
|
"tools/ProcStats.h",
|
2018-03-26 21:48:09 +00:00
|
|
|
"tools/Registry.h",
|
|
|
|
"tools/ResourceFactory.h",
|
2015-10-15 15:09:44 +00:00
|
|
|
"tools/Resources.cpp",
|
|
|
|
"tools/Resources.h",
|
2019-07-15 18:01:37 +00:00
|
|
|
"tools/SkMetaData.cpp",
|
|
|
|
"tools/SkMetaData.h",
|
|
|
|
"tools/SkSharingProc.cpp",
|
|
|
|
"tools/ToolUtils.cpp",
|
|
|
|
"tools/ToolUtils.h",
|
2016-07-28 22:12:21 +00:00
|
|
|
"tools/UrlDataManager.cpp",
|
|
|
|
"tools/UrlDataManager.h",
|
|
|
|
"tools/debugger/*.cpp",
|
|
|
|
"tools/debugger/*.h",
|
2015-10-15 15:09:44 +00:00
|
|
|
"tools/flags/*.cpp",
|
|
|
|
"tools/flags/*.h",
|
2019-03-20 16:08:46 +00:00
|
|
|
"tools/fonts/RandomScalerContext.cpp",
|
|
|
|
"tools/fonts/RandomScalerContext.h",
|
|
|
|
"tools/fonts/TestFontMgr.cpp",
|
|
|
|
"tools/fonts/TestFontMgr.h",
|
|
|
|
"tools/fonts/TestSVGTypeface.cpp",
|
|
|
|
"tools/fonts/TestSVGTypeface.h",
|
|
|
|
"tools/fonts/TestTypeface.cpp",
|
|
|
|
"tools/fonts/TestTypeface.h",
|
2019-03-20 16:12:10 +00:00
|
|
|
"tools/fonts/ToolUtilsFont.cpp",
|
2019-07-15 18:01:37 +00:00
|
|
|
"tools/fonts/test_font_index.inc",
|
2018-02-20 22:06:07 +00:00
|
|
|
"tools/fonts/test_font_monospace.inc",
|
|
|
|
"tools/fonts/test_font_sans_serif.inc",
|
|
|
|
"tools/fonts/test_font_serif.inc",
|
2016-04-01 12:00:51 +00:00
|
|
|
"tools/gpu/**/*.cpp",
|
|
|
|
"tools/gpu/**/*.h",
|
2019-07-15 18:01:37 +00:00
|
|
|
"tools/ios_utils.h",
|
2016-02-09 20:32:52 +00:00
|
|
|
"tools/random_parse_path.cpp",
|
|
|
|
"tools/random_parse_path.h",
|
2015-10-24 14:55:31 +00:00
|
|
|
"tools/timer/*.cpp",
|
|
|
|
"tools/timer/*.h",
|
2017-07-19 17:05:11 +00:00
|
|
|
"tools/trace/*.cpp",
|
|
|
|
"tools/trace/*.h",
|
2015-10-15 15:09:44 +00:00
|
|
|
],
|
|
|
|
exclude = [
|
2018-06-01 15:01:11 +00:00
|
|
|
"gm/cgms.cpp",
|
2019-08-09 14:11:35 +00:00
|
|
|
"gm/fiddle.cpp",
|
2019-05-17 20:50:51 +00:00
|
|
|
"gm/video_decoder.cpp",
|
2015-10-26 17:46:25 +00:00
|
|
|
"tests/FontMgrAndroidParserTest.cpp", # Android-only.
|
2018-06-22 21:11:00 +00:00
|
|
|
"tests/FontMgrFontConfigTest.cpp", # FontConfig-only.
|
2021-02-22 15:37:33 +00:00
|
|
|
"tests/TypefaceMacTest.cpp", # CoreText-only.
|
2019-11-08 17:58:57 +00:00
|
|
|
"tests/SkParagraphTest.cpp", # Skipping tests for now.
|
2015-10-15 15:09:44 +00:00
|
|
|
"tests/skia_test.cpp", # Old main.
|
2020-02-24 16:36:15 +00:00
|
|
|
"tools/gpu/d3d/*",
|
2019-07-18 15:43:45 +00:00
|
|
|
"tools/gpu/dawn/*",
|
2016-04-01 12:00:51 +00:00
|
|
|
"tools/gpu/gl/angle/*",
|
|
|
|
"tools/gpu/gl/egl/*",
|
|
|
|
"tools/gpu/gl/glx/*",
|
|
|
|
"tools/gpu/gl/iOS/*",
|
|
|
|
"tools/gpu/gl/mac/*",
|
|
|
|
"tools/gpu/gl/win/*",
|
2015-10-15 15:09:44 +00:00
|
|
|
"tools/timer/SysTimer_mach.cpp",
|
2015-10-26 17:46:25 +00:00
|
|
|
"tools/timer/SysTimer_windows.cpp",
|
2015-10-15 15:09:44 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2017-03-16 23:15:09 +00:00
|
|
|
################################################################################
|
|
|
|
## dm_srcs()
|
|
|
|
################################################################################
|
|
|
|
|
2017-10-17 14:57:34 +00:00
|
|
|
def dm_srcs(os_conditions):
|
2018-07-31 14:31:06 +00:00
|
|
|
"""Sources for the dm binary for the specified os."""
|
|
|
|
return skia_glob(DM_SRCS_ALL) + skia_select(
|
|
|
|
os_conditions,
|
|
|
|
[
|
2021-02-22 15:37:33 +00:00
|
|
|
["tests/FontMgrFontConfigTest.cpp"], # Unix
|
|
|
|
["tests/FontMgrAndroidParserTest.cpp"], # Android
|
|
|
|
["tests/TypefaceMacTest.cpp"], # iOS
|
2020-06-02 14:13:01 +00:00
|
|
|
[], # WASM
|
|
|
|
[], # Fuchsia
|
2021-02-22 15:37:33 +00:00
|
|
|
["tests/TypefaceMacTest.cpp"], # macOS
|
2018-07-31 14:31:06 +00:00
|
|
|
],
|
|
|
|
)
|
2016-01-13 18:45:19 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
## DM_ARGS
|
|
|
|
################################################################################
|
2016-01-12 20:00:49 +00:00
|
|
|
|
2016-11-28 20:30:37 +00:00
|
|
|
def DM_ARGS(asan):
|
2018-11-08 19:26:02 +00:00
|
|
|
source = ["gm", "image", "lottie"]
|
2018-07-31 14:31:06 +00:00
|
|
|
|
|
|
|
# TODO(benjaminwagner): f16, pic-8888, serialize-8888, and tiles_rt-8888 fail.
|
|
|
|
config = ["565", "8888", "pdf"]
|
|
|
|
match = ["~Codec_78329453"]
|
|
|
|
return (["--src"] + source + ["--config"] + config + ["--nonativeFonts"] +
|
|
|
|
["--match"] + match)
|
2016-01-13 18:45:19 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
## COPTS
|
|
|
|
################################################################################
|
2015-11-02 19:11:21 +00:00
|
|
|
|
2017-10-17 14:57:34 +00:00
|
|
|
def base_copts(os_conditions):
|
2020-06-02 14:13:01 +00:00
|
|
|
return ["-Wno-implicit-fallthrough"] + skia_select(
|
2018-07-31 14:31:06 +00:00
|
|
|
os_conditions,
|
|
|
|
[
|
|
|
|
# UNIX
|
|
|
|
[
|
|
|
|
# Internal use of deprecated methods. :(
|
|
|
|
"-Wno-deprecated-declarations",
|
|
|
|
# TODO(kjlubick)
|
|
|
|
"-Wno-self-assign", # Spurious warning in tests/PathOpsDVectorTest.cpp?
|
|
|
|
],
|
|
|
|
# ANDROID
|
|
|
|
[
|
|
|
|
# 'GrResourceCache' declared with greater visibility than the
|
|
|
|
# type of its field 'GrResourceCache::fPurgeableQueue'... bogus.
|
|
|
|
"-Wno-error=attributes",
|
|
|
|
],
|
2020-06-02 14:13:01 +00:00
|
|
|
[], # iOS
|
|
|
|
[], # wasm
|
|
|
|
[], # Fuchsia
|
2020-07-01 18:08:16 +00:00
|
|
|
[], # macOS
|
2018-07-31 14:31:06 +00:00
|
|
|
],
|
|
|
|
)
|
2016-01-13 18:45:19 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
## DEFINES
|
|
|
|
################################################################################
|
|
|
|
|
2017-10-17 14:57:34 +00:00
|
|
|
def base_defines(os_conditions):
|
2018-07-31 14:31:06 +00:00
|
|
|
return [
|
|
|
|
# Chrome DEFINES.
|
|
|
|
"SK_USE_FREETYPE_EMBOLDEN",
|
|
|
|
# Turn on a few Google3-specific build fixes.
|
|
|
|
"SK_BUILD_FOR_GOOGLE3",
|
|
|
|
# Required for building dm.
|
|
|
|
"GR_TEST_UTILS",
|
2019-05-01 14:43:56 +00:00
|
|
|
# Google3 probably doesn't want this feature yet
|
|
|
|
"SK_DISABLE_REDUCE_OPLIST_SPLITTING",
|
2018-07-31 14:31:06 +00:00
|
|
|
# Staging flags for API changes
|
2021-01-21 22:06:44 +00:00
|
|
|
"SK_PARAGRAPH_GRAPHEME_EDGES",
|
2018-07-31 14:31:06 +00:00
|
|
|
# Should remove after we update golden images
|
|
|
|
"SK_WEBP_ENCODER_USE_DEFAULT_METHOD",
|
|
|
|
# Experiment to diagnose image diffs in Google3
|
2018-10-24 10:52:35 +00:00
|
|
|
"SK_DISABLE_LOWP_RASTER_PIPELINE",
|
2018-07-31 14:31:06 +00:00
|
|
|
# JPEG is in codec_limited
|
2020-03-09 18:23:30 +00:00
|
|
|
"SK_CODEC_DECODES_JPEG",
|
|
|
|
"SK_ENCODE_JPEG",
|
Reland "SkAndroidCodec: Support decoding all frames"
This is a reland of fc4fdc5b25f448dd9c2cd4e445561a840ce8514b
Original change's description:
> SkAndroidCodec: Support decoding all frames
>
> Bug: b/160984428
> Bug: b/163595585
>
> Add support to SkAndroidCodec for decoding all frames with an
> fSampleSize, so that an entire animation can be decoded to a smaller
> size.
>
> dm/:
> - Test scaled + animated decodes
>
> SkAndroidCodec:
> - Make AndroidOptions inherit from SkCodec::Options. This allows
> SkAndroidCodec to use fFrameIndex. (It also combines the two versions
> of fSubset, which is now const for both.)
> - Respect fFrameIndex, and call SkCodec::handleFrameIndex to decode
> the required frame.
> - Disallow decoding with kRespect + fFrameIndex > 0 if there is a
> non-default orientation. As currently written (except without
> disabling this combination), SkPixmapPriv::Orient would draw the new
> portion of the frame on top of uninitialized pixels, instead of the
> prior frame. This could be fixed by
> - If SkAndroidCodec needs to decode the required frame, it could do so
> without applying the orientation, then decode fFrameIndex, and then
> apply the orientation.
> - If the client provided the required frame, SkAndroidCodec would need
> to un-apply the orientation to get the proper starting state, then
> decode and apply.
> I think it is simpler to force the client to handle the orientation
> externally.
>
> SkCodec:
> - Allow SkAndroidCodec to call its private method handleFrameIndex. This
> method handles decoding a required frame, if necessary. When called by
> SkAndroidCodec, it now uses the SkAndroidCodec to check for/decode the
> required frame, so that it will scale properly.
> - Call rewindIfNeeded inside handleFrameIndex. handleFrameIndex calls a
> virtual method which may set some state (e.g. in SkJpegCodec). Without
> this change, that state would be reset by rewindIfNeeded.
> - Simplify handling a kRestoreBGColor frame. Whether provided or not,
> take the same path to calling zero_rect.
> - Updates to zero_rect:
> - Intersect after scaling, which will also check for empty.
> - Round out instead of in - this ensures we don't under-erase
> - Use kFill_ScaleToFit, which better matches the intent.
>
> Change-Id: Ibe1951980a0dca8f5b7b1f20192432d395681683
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/333225
> Commit-Queue: Leon Scroggins <scroggo@google.com>
> Reviewed-by: Derek Sollenberger <djsollen@google.com>
Bug: b/160984428
Bug: b/163595585
Change-Id: I7c1e79e0f92c75b4840eef65c8fc2b8497189e81
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/334842
Auto-Submit: Leon Scroggins <scroggo@google.com>
Commit-Queue: Derek Sollenberger <djsollen@google.com>
Reviewed-by: Derek Sollenberger <djsollen@google.com>
2020-11-09 19:18:12 +00:00
|
|
|
"SK_HAS_ANDROID_CODEC",
|
2018-07-31 14:31:06 +00:00
|
|
|
] + skia_select(
|
|
|
|
os_conditions,
|
|
|
|
[
|
|
|
|
# UNIX
|
|
|
|
[
|
|
|
|
"PNG_SKIP_SETJMP_CHECK",
|
|
|
|
"SK_BUILD_FOR_UNIX",
|
2020-03-09 18:23:30 +00:00
|
|
|
"SK_CODEC_DECODES_PNG",
|
|
|
|
"SK_CODEC_DECODES_WEBP",
|
|
|
|
"SK_ENCODE_PNG",
|
|
|
|
"SK_ENCODE_WEBP",
|
2019-04-24 16:42:40 +00:00
|
|
|
"SK_R32_SHIFT=16",
|
2020-07-30 17:54:53 +00:00
|
|
|
"SK_GL",
|
2018-07-31 14:31:06 +00:00
|
|
|
],
|
|
|
|
# ANDROID
|
|
|
|
[
|
|
|
|
"SK_BUILD_FOR_ANDROID",
|
2020-03-09 18:23:30 +00:00
|
|
|
"SK_CODEC_DECODES_PNG",
|
|
|
|
"SK_CODEC_DECODES_WEBP",
|
|
|
|
"SK_ENCODE_PNG",
|
|
|
|
"SK_ENCODE_WEBP",
|
2020-07-30 17:54:53 +00:00
|
|
|
"SK_GL",
|
2018-07-31 14:31:06 +00:00
|
|
|
],
|
|
|
|
# IOS
|
|
|
|
[
|
|
|
|
"SK_BUILD_FOR_IOS",
|
|
|
|
"SKNX_NO_SIMD",
|
2020-03-06 18:04:33 +00:00
|
|
|
"SK_NO_COMMAND_BUFFER", # Test tools that use thread_local.
|
2020-07-30 17:54:53 +00:00
|
|
|
"SK_GL",
|
2018-07-31 14:31:06 +00:00
|
|
|
],
|
2020-03-02 17:10:02 +00:00
|
|
|
# WASM
|
|
|
|
[
|
|
|
|
"SK_DISABLE_LEGACY_SHADERCONTEXT",
|
|
|
|
"SK_DISABLE_TRACING",
|
2020-07-30 17:54:53 +00:00
|
|
|
"SK_GL",
|
2020-03-02 17:10:02 +00:00
|
|
|
"SK_SUPPORT_GPU=1",
|
|
|
|
"SK_DISABLE_AAA",
|
|
|
|
"SK_DISABLE_EFFECT_DESERIALIZATION",
|
|
|
|
"SK_FORCE_8_BYTE_ALIGNMENT",
|
|
|
|
"SKNX_NO_SIMD",
|
|
|
|
],
|
2020-06-02 14:13:01 +00:00
|
|
|
# FUCHSIA
|
|
|
|
[
|
|
|
|
"SK_BUILD_FOR_UNIX",
|
|
|
|
"SK_CODEC_DECODES_PNG",
|
|
|
|
"SK_CODEC_DECODES_WEBP",
|
|
|
|
"SK_ENCODE_PNG",
|
|
|
|
"SK_ENCODE_WEBP",
|
|
|
|
"SK_R32_SHIFT=16",
|
2020-07-30 17:54:53 +00:00
|
|
|
"SK_VULKAN",
|
2020-06-02 14:13:01 +00:00
|
|
|
],
|
2020-07-01 18:08:16 +00:00
|
|
|
# MACOS
|
|
|
|
[
|
|
|
|
"SK_BUILD_FOR_MAC",
|
2020-07-30 17:54:53 +00:00
|
|
|
"SK_GL",
|
2020-07-01 18:08:16 +00:00
|
|
|
],
|
2018-07-31 14:31:06 +00:00
|
|
|
],
|
|
|
|
)
|
2015-08-17 19:58:10 +00:00
|
|
|
|
2016-01-13 18:45:19 +00:00
|
|
|
################################################################################
|
|
|
|
## LINKOPTS
|
|
|
|
################################################################################
|
2015-10-26 17:46:25 +00:00
|
|
|
|
2017-10-17 14:57:34 +00:00
|
|
|
def base_linkopts(os_conditions):
|
2018-07-31 14:31:06 +00:00
|
|
|
return [
|
|
|
|
"-ldl",
|
|
|
|
] + skia_select(
|
|
|
|
os_conditions,
|
|
|
|
[
|
2020-06-02 14:13:01 +00:00
|
|
|
[], # Unix
|
2018-07-31 14:31:06 +00:00
|
|
|
# ANDROID
|
|
|
|
[
|
|
|
|
"-lEGL",
|
2018-08-17 13:28:53 +00:00
|
|
|
"-lGLESv2",
|
2018-07-31 14:31:06 +00:00
|
|
|
],
|
|
|
|
# IOS
|
|
|
|
[
|
|
|
|
"-framework CoreFoundation",
|
|
|
|
"-framework CoreGraphics",
|
|
|
|
"-framework CoreText",
|
|
|
|
"-framework ImageIO",
|
|
|
|
"-framework MobileCoreServices",
|
|
|
|
],
|
2020-06-02 14:13:01 +00:00
|
|
|
[], # wasm
|
|
|
|
[], # Fuchsia
|
2020-07-01 18:08:16 +00:00
|
|
|
# MACOS
|
|
|
|
[
|
|
|
|
"-framework CoreFoundation",
|
|
|
|
"-framework CoreGraphics",
|
|
|
|
"-framework CoreText",
|
|
|
|
"-framework ImageIO",
|
|
|
|
"-framework ApplicationServices",
|
|
|
|
],
|
2018-07-31 14:31:06 +00:00
|
|
|
],
|
|
|
|
)
|
2018-11-08 19:25:19 +00:00
|
|
|
|
|
|
|
################################################################################
|
2019-05-03 18:03:50 +00:00
|
|
|
## sksg_lib
|
2018-11-08 19:25:19 +00:00
|
|
|
################################################################################
|
|
|
|
|
2019-05-03 18:03:50 +00:00
|
|
|
def sksg_lib_hdrs():
|
|
|
|
return native.glob(["modules/sksg/include/*.h"])
|
|
|
|
|
|
|
|
def sksg_lib_srcs():
|
2019-07-10 17:38:48 +00:00
|
|
|
return native.glob([
|
|
|
|
"modules/sksg/src/*.cpp",
|
|
|
|
"modules/sksg/src/*.h",
|
|
|
|
])
|
2019-05-03 18:03:50 +00:00
|
|
|
|
2019-06-10 15:10:17 +00:00
|
|
|
################################################################################
|
|
|
|
## skparagraph_lib
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
def skparagraph_lib_hdrs():
|
|
|
|
return native.glob(["modules/skparagraph/include/*.h"])
|
|
|
|
|
|
|
|
def skparagraph_lib_srcs():
|
|
|
|
return native.glob(["modules/skparagraph/src/*.cpp"])
|
|
|
|
|
2019-06-11 21:20:33 +00:00
|
|
|
################################################################################
|
|
|
|
## experimental xform
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
def exp_xform_lib_hdrs():
|
|
|
|
return native.glob(["experimental/xform/*.h"])
|
|
|
|
|
|
|
|
def exp_xform_lib_srcs():
|
|
|
|
return native.glob(["experimental/xform/*.cpp"])
|
|
|
|
|
2019-12-17 15:50:26 +00:00
|
|
|
################################################################################
|
|
|
|
## skresources_lib
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
def skresources_lib_hdrs():
|
|
|
|
return ["modules/skresources/include/SkResources.h"]
|
|
|
|
|
|
|
|
def skresources_lib_srcs():
|
|
|
|
return ["modules/skresources/src/SkResources.cpp"]
|
|
|
|
|
2019-05-03 18:03:50 +00:00
|
|
|
################################################################################
|
|
|
|
## skottie_lib
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
def skottie_lib_hdrs():
|
2019-05-03 19:16:30 +00:00
|
|
|
return native.glob(["modules/skottie/include/*.h"])
|
2019-05-03 18:03:50 +00:00
|
|
|
|
|
|
|
def skottie_lib_srcs():
|
|
|
|
return native.glob(
|
|
|
|
[
|
|
|
|
"modules/skottie/src/*.cpp",
|
|
|
|
"modules/skottie/src/*.h",
|
2020-03-17 15:20:10 +00:00
|
|
|
"modules/skottie/src/animator/*.cpp",
|
|
|
|
"modules/skottie/src/animator/*.h",
|
2019-06-14 16:20:10 +00:00
|
|
|
"modules/skottie/src/effects/*.cpp",
|
|
|
|
"modules/skottie/src/effects/*.h",
|
2019-07-01 17:57:43 +00:00
|
|
|
"modules/skottie/src/layers/*.cpp",
|
|
|
|
"modules/skottie/src/layers/*.h",
|
2020-01-22 19:22:21 +00:00
|
|
|
"modules/skottie/src/layers/shapelayer/*.cpp",
|
|
|
|
"modules/skottie/src/layers/shapelayer/*.h",
|
2019-05-08 14:04:09 +00:00
|
|
|
"modules/skottie/src/text/*.cpp",
|
|
|
|
"modules/skottie/src/text/*.h",
|
2019-05-03 18:03:50 +00:00
|
|
|
],
|
|
|
|
exclude = [
|
|
|
|
"modules/skottie/src/SkottieTest.cpp",
|
|
|
|
"modules/skottie/src/SkottieTool.cpp",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2020-06-23 14:26:56 +00:00
|
|
|
################################################################################
|
|
|
|
## skottie_utils
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
SKOTTIE_UTILS_HDRS = [
|
|
|
|
"modules/skottie/utils/SkottieUtils.h",
|
|
|
|
]
|
|
|
|
|
|
|
|
SKOTTIE_UTILS_SRCS = [
|
|
|
|
"modules/skottie/utils/SkottieUtils.cpp",
|
|
|
|
]
|
|
|
|
|
2019-05-03 18:03:50 +00:00
|
|
|
################################################################################
|
|
|
|
## skottie_shaper
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
SKOTTIE_SHAPER_HDRS = [
|
2019-05-08 14:04:09 +00:00
|
|
|
"modules/skottie/src/text/SkottieShaper.h",
|
2018-11-08 19:25:19 +00:00
|
|
|
]
|
|
|
|
|
2019-05-03 18:03:50 +00:00
|
|
|
SKOTTIE_SHAPER_SRCS = [
|
2019-05-08 14:04:09 +00:00
|
|
|
"modules/skottie/src/text/SkottieShaper.cpp",
|
2019-05-03 18:03:50 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
## skottie_tool
|
|
|
|
################################################################################
|
|
|
|
|
2018-11-08 19:25:19 +00:00
|
|
|
SKOTTIE_TOOL_SRCS = [
|
|
|
|
"modules/skottie/src/SkottieTool.cpp",
|
2019-11-26 13:58:26 +00:00
|
|
|
"modules/skresources/src/SkResources.cpp",
|
|
|
|
"modules/skresources/include/SkResources.h",
|
2018-11-08 19:25:19 +00:00
|
|
|
# TODO(benjaminwagner): Add "flags" target.
|
2019-03-20 15:50:33 +00:00
|
|
|
"tools/flags/CommandLineFlags.cpp",
|
|
|
|
"tools/flags/CommandLineFlags.h",
|
2018-11-08 19:25:19 +00:00
|
|
|
]
|
2019-01-17 21:42:15 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
## SkShaper
|
|
|
|
################################################################################
|
|
|
|
|
2019-01-21 16:55:51 +00:00
|
|
|
SKSHAPER_HARFBUZZ_SRCS = [
|
2019-01-17 21:42:15 +00:00
|
|
|
"modules/skshaper/include/SkShaper.h",
|
|
|
|
"modules/skshaper/src/SkShaper.cpp",
|
|
|
|
"modules/skshaper/src/SkShaper_harfbuzz.cpp",
|
2019-02-22 20:23:45 +00:00
|
|
|
"modules/skshaper/src/SkShaper_primitive.cpp",
|
Reland #3 "ICU API: only in SkParagraph, simplified."
This is the fix for google3 failure.
This reverts commit e36a4667237dd4672f68cd4cb411d41881cd4be2.
Reason for revert: Trying to fix google3 build brake
Original change's description:
> Revert "Reland "ICU API: only in SkParagraph, simplified (relanding reverted).""
>
> This reverts commit 16fbc2477205aa06efb03e9bdaa0e4a5e94ee865.
>
> Reason for revert: Checking to see if this is blocking the G3 roll
>
> Original change's description:
> > Reland "ICU API: only in SkParagraph, simplified (relanding reverted)."
> >
> > This reverts commit a30095d17c879f0af0bfa799b25c97bcacd0b4fc.
> >
> > Reason for revert: Fixing the build
> >
> > Original change's description:
> > > Revert "ICU API: only in SkParagraph, simplified (relanding reverted)."
> > >
> > > This reverts commit 7479eda3b6d2884c089b62d9fc489574716ab3b7.
> > >
> > > Reason for revert: Breaking build
> > >
> > > Original change's description:
> > > > ICU API: only in SkParagraph, simplified (relanding reverted).
> > > >
> > > > Reverted commit: https://skia-review.googlesource.com/c/skia/+/296128/
> > > >
> > > > Change-Id: Iaf793bff94a6060579c7d6176d477e598c047be6
> > > > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/303261
> > > > Reviewed-by: Mike Reed <reed@google.com>
> > > > Commit-Queue: Julia Lavrova <jlavrova@google.com>
> > >
> > > TBR=reed@google.com,jlavrova@google.com
> > >
> > > Change-Id: Idd4c41e22aa59e24bdbd07f2fa5e9258c1bbb7a7
> > > No-Presubmit: true
> > > No-Tree-Checks: true
> > > No-Try: true
> > > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/303358
> > > Reviewed-by: Julia Lavrova <jlavrova@google.com>
> > > Commit-Queue: Julia Lavrova <jlavrova@google.com>
> >
> > TBR=reed@google.com,jlavrova@google.com
> >
> > Change-Id: Iea5da4535ea2e388e8e632e6c556b66c8781631a
> > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/303377
> > Reviewed-by: Ben Wagner <bungeman@google.com>
> > Reviewed-by: Julia Lavrova <jlavrova@google.com>
> > Commit-Queue: Julia Lavrova <jlavrova@google.com>
>
> TBR=bungeman@google.com,reed@google.com,jlavrova@google.com
>
> Change-Id: I1edfecc56add670b251adf44892265088fd32c42
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/304058
> Reviewed-by: Robert Phillips <robertphillips@google.com>
> Commit-Queue: Robert Phillips <robertphillips@google.com>
TBR=bungeman@google.com,robertphillips@google.com,reed@google.com,jlavrova@google.com
Change-Id: Ife73aa21539e870d69bda6b5892979646732d778
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/304060
Commit-Queue: Julia Lavrova <jlavrova@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
2020-07-20 17:32:03 +00:00
|
|
|
"modules/skshaper/src/SkUnicode.h",
|
|
|
|
"modules/skshaper/src/SkUnicode_icu.cpp",
|
2019-01-17 21:42:15 +00:00
|
|
|
]
|
2019-01-21 16:55:51 +00:00
|
|
|
|
|
|
|
SKSHAPER_PRIMITIVE_SRCS = [
|
|
|
|
"modules/skshaper/include/SkShaper.h",
|
|
|
|
"modules/skshaper/src/SkShaper.cpp",
|
|
|
|
"modules/skshaper/src/SkShaper_primitive.cpp",
|
|
|
|
]
|
2019-12-19 14:48:28 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
## skottie_ios_lib
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
SKOTTIE_IOS_LIB_SRCS = [
|
2019-12-18 21:26:19 +00:00
|
|
|
"tools/skottie_ios_app/SkiaContext.mm",
|
|
|
|
"tools/skottie_ios_app/SkiaUIContext.mm",
|
|
|
|
"tools/skottie_ios_app/SkiaViewController.mm",
|
|
|
|
"tools/skottie_ios_app/SkottieViewController.mm",
|
2019-12-19 14:48:28 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
SKOTTIE_IOS_LIB_HDRS = [
|
2019-12-18 21:26:19 +00:00
|
|
|
"tools/skottie_ios_app/SkiaContext.h",
|
|
|
|
"tools/skottie_ios_app/SkiaViewController.h",
|
|
|
|
"tools/skottie_ios_app/SkottieViewController.h",
|
2019-12-19 14:48:28 +00:00
|
|
|
]
|
2020-01-07 17:39:13 +00:00
|
|
|
|
|
|
|
SKOTTIE_IOS_LIB_SDK_FRAMEWORKS = [
|
|
|
|
"Foundation",
|
|
|
|
"UIKit",
|
|
|
|
]
|
2020-10-12 14:31:12 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
## svg_lib
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
def svg_lib_hdrs():
|
2020-10-16 14:53:27 +00:00
|
|
|
return native.glob(["modules/svg/include/*.h"])
|
2020-10-12 14:31:12 +00:00
|
|
|
|
|
|
|
def svg_lib_srcs():
|
2020-10-15 22:10:29 +00:00
|
|
|
return native.glob(["modules/svg/src/*.cpp"])
|
2020-10-12 15:26:56 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
## svg_tool
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
SVG_TOOL_SRCS = [
|
2020-10-15 22:10:29 +00:00
|
|
|
"modules/svg/utils/SvgTool.cpp",
|
2020-10-12 15:26:56 +00:00
|
|
|
# TODO(benjaminwagner): Add "flags" target.
|
|
|
|
"tools/flags/CommandLineFlags.cpp",
|
|
|
|
"tools/flags/CommandLineFlags.h",
|
|
|
|
]
|