blob: 1f1f05205056d2852a99e8c9b786021c1fd46593 [file] [log] [blame]
Hal Canarye6752602019-03-04 17:28:22 -05001# 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.
Hal Canary82e3afa2019-08-19 15:04:24 -04004
Hal Canarye6752602019-03-04 17:28:22 -05005SkqpGnArgs = {
6 'extra_cflags': '[ "-DSK_ENABLE_DUMP_GPU", "-DSK_BUILD_FOR_SKQP" ]',
7 'skia_enable_fontmgr_android': 'false',
8 'skia_enable_fontmgr_empty': 'true',
9 'skia_enable_pdf': 'false',
10 'skia_enable_skottie': 'false',
11 'skia_skqp_global_error_tolerance': '8',
12 'skia_tools_require_resources': 'true',
13 'skia_use_dng_sdk': 'false',
14 'skia_use_expat': 'true',
15 'skia_use_icu': 'false',
16 'skia_use_libheif': 'false',
17 'skia_use_lua': 'false',
18 'skia_use_piex': 'false',
19 'skia_use_vulkan': 'true',
20}
Hal Canary82e3afa2019-08-19 15:04:24 -040021
22def GetGNArgs(arch, android_ndk, debug, api_level):
23 def gn_quote(s):
24 return '"%s"' % s
25 gn_args = {
26 'target_cpu': gn_quote(arch),
27 'ndk': gn_quote(android_ndk),
28 'is_debug': 'true' if debug else 'false',
29 'ndk_api': api_level,
30 }
31 gn_args.update(SkqpGnArgs)
32 return gn_args