Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Namespaces | Functions | Variables
gn_to_bp.py File Reference

Go to the source code of this file.

Namespaces

namespace  gn
 
namespace  gn.gn_to_bp
 

Functions

 gn.gn_to_bp.generate_args (target_os, enable_gpu, renderengine=False)
 
 gn.gn_to_bp.strip_slashes (lst)
 
 gn.gn_to_bp.strip_non_srcs (sources)
 
 gn.gn_to_bp.get_defines (json)
 
 gn.gn_to_bp.mkdir_if_not_exists (path)
 
 gn.gn_to_bp.disallow_platforms (config, desired)
 
 gn.gn_to_bp.append_to_file (config, s)
 
 gn.gn_to_bp.write_android_config (config_path, defines, isNDKConfig=False)
 
 gn.gn_to_bp.write_config (config_path, defines, platform)
 
 gn.gn_to_bp.bpfmt (indent, lst, sort=True)
 

Variables

 gn.gn_to_bp.bp = string.Template()
 
 gn.gn_to_bp.gn_args = generate_args('"android"', True)
 
 gn.gn_to_bp.gn_args_linux = generate_args('"linux"', False)
 
 gn.gn_to_bp.gn_args_mac = generate_args('"mac"', False)
 
 gn.gn_to_bp.gn_args_win = generate_args('"win"', False)
 
 gn.gn_to_bp.gn_args_renderengine = generate_args('"android"', True, True)
 
 gn.gn_to_bp.js = gn_to_bp_utils.GenerateJSONFromGN(gn_args)
 
 gn.gn_to_bp.android_srcs = strip_slashes(js['targets']['//:skia']['sources'])
 
 gn.gn_to_bp.cflags = strip_slashes(js['targets']['//:skia']['cflags'])
 
 gn.gn_to_bp.cflags_cc = strip_slashes(js['targets']['//:skia']['cflags_cc'])
 
 gn.gn_to_bp.local_includes = strip_slashes(js['targets']['//:skia']['include_dirs'])
 
 gn.gn_to_bp.export_includes = strip_slashes(js['targets']['//:public']['include_dirs'])
 
 gn.gn_to_bp.gm_srcs = strip_slashes(js['targets']['//:gm']['sources'])
 
 gn.gn_to_bp.gm_includes = strip_slashes(js['targets']['//:gm']['include_dirs'])
 
 gn.gn_to_bp.test_srcs = strip_slashes(js['targets']['//:tests']['sources'])
 
 gn.gn_to_bp.test_includes = strip_slashes(js['targets']['//:tests']['include_dirs'])
 
 gn.gn_to_bp.dm_srcs = strip_slashes(js['targets']['//:dm']['sources'])
 
 gn.gn_to_bp.dm_includes = strip_slashes(js['targets']['//:dm']['include_dirs'])
 
 gn.gn_to_bp.nanobench_target = js['targets']['//:nanobench']
 
 gn.gn_to_bp.nanobench_srcs = strip_slashes(nanobench_target['sources'])
 
 gn.gn_to_bp.nanobench_includes = strip_slashes(nanobench_target['include_dirs'])
 
str gn.gn_to_bp.VMA_DEP = "//src/gpu/vk/vulkanmemoryallocator:vulkanmemoryallocator"
 
 gn.gn_to_bp.js_linux = gn_to_bp_utils.GenerateJSONFromGN(gn_args_linux)
 
 gn.gn_to_bp.linux_srcs = strip_slashes(js_linux['targets']['//:skia']['sources'])
 
 gn.gn_to_bp.js_mac = gn_to_bp_utils.GenerateJSONFromGN(gn_args_mac)
 
 gn.gn_to_bp.mac_srcs = strip_slashes(js_mac['targets']['//:skia']['sources'])
 
 gn.gn_to_bp.js_win = gn_to_bp_utils.GenerateJSONFromGN(gn_args_win)
 
 gn.gn_to_bp.win_srcs = strip_slashes(js_win['targets']['//:skia']['sources'])
 
 gn.gn_to_bp.srcs = android_srcs.intersection(linux_srcs).intersection(mac_srcs)
 
 gn.gn_to_bp.test_minus_gm_includes = test_includes.difference(gm_includes)
 
 gn.gn_to_bp.test_minus_gm_srcs = test_srcs.difference(gm_srcs)
 
 gn.gn_to_bp.js_renderengine = gn_to_bp_utils.GenerateJSONFromGN(gn_args_renderengine)
 
 gn.gn_to_bp.renderengine_srcs
 
int gn.gn_to_bp.skqp_sdk_version = 26
 
 gn.gn_to_bp.js_skqp
 
 gn.gn_to_bp.skqp_srcs = strip_slashes(js_skqp['targets']['//:libskqp_jni']['sources'])
 
 gn.gn_to_bp.skqp_includes = strip_slashes(js_skqp['targets']['//:libskqp_jni']['include_dirs'])
 
 gn.gn_to_bp.skqp_cflags = strip_slashes(js_skqp['targets']['//:libskqp_jni']['cflags'])
 
 gn.gn_to_bp.skqp_cflags_cc = strip_slashes(js_skqp['targets']['//:libskqp_jni']['cflags_cc'])
 
 gn.gn_to_bp.skqp_defines = strip_slashes(js_skqp['targets']['//:libskqp_jni']['defines'])
 
 gn.gn_to_bp.here = os.path.dirname(__file__)
 
 gn.gn_to_bp.defs = gn_to_bp_utils.GetArchSources(os.path.join(here, 'opts.gni'))
 
 gn.gn_to_bp.android_defines = get_defines(js)
 
 gn.gn_to_bp.linux_defines = get_defines(js_linux)
 
 gn.gn_to_bp.mac_defines = get_defines(js_mac)
 
 gn.gn_to_bp.win_defines = get_defines(js_win)
 
 gn.gn_to_bp.renderengine_defines = get_defines(js_renderengine)
 
dict gn.gn_to_bp.platforms = { 'IOS', 'MAC', 'WIN', 'ANDROID', 'UNIX' }
 
 gn.gn_to_bp.file