1 # Copyright 2019 Google LLC.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 def GetGNArgs(api_level, debug, arch=None, ndk=None, is_android_bp=False):
8 'is_debug': 'true' if debug else 'false',
9 'skia_enable_fontmgr_android': 'false',
10 'skia_enable_fontmgr_empty': 'true',
11 'skia_enable_pdf': 'false',
12 'skia_enable_skottie': 'false',
13 'skia_enable_skshaper': 'false',
14 'skia_enable_sksl_tracing': 'true',
15 'skia_enable_sktext': 'false',
16 'skia_enable_svg': 'false',
17 'skia_enable_tools': 'true',
18 'skia_tools_require_resources': 'true',
19 'skia_use_dng_sdk': 'false',
20 'skia_use_expat': 'true',
21 'skia_use_freetype': 'false',
22 'skia_use_icu': 'false',
23 'skia_use_libgifcodec': 'false',
24 'skia_use_libheif': 'false',
25 'skia_use_lua': 'false',
26 'skia_use_piex': 'false',
27 'skia_use_vulkan': 'true',
28 'skia_use_wuffs': 'true',
34 if is_android_bp is True:
36 'target_os': gn_quote("android"),
37 'target_cpu': gn_quote("none"),
38 'is_official_build': 'true',
42 'target_cpu': gn_quote(arch),