Update rive-cpp to 2.0 version
[platform/core/uifw/rive-tizen.git] / submodule / skia / gn / skqp_gn_args.py
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
5 def GetGNArgs(api_level, debug, arch=None, ndk=None, is_android_bp=False):
6     gn_args = {
7         'ndk_api':                          api_level,
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',
29     }
30
31     def gn_quote(s):
32         return '"%s"' % s
33
34     if is_android_bp is True:
35         gn_args.update({
36             'target_os':          gn_quote("android"),
37             'target_cpu':         gn_quote("none"),
38             'is_official_build':  'true',
39         })
40     else:
41         gn_args.update({
42             'target_cpu':  gn_quote(arch),
43             'ndk':         gn_quote(ndk),
44         })
45     return gn_args