• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4
5SkqpGnArgs = {
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}
21
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
33