Flutter Engine
The Flutter Engine
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

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

Variables

 gn.gn_to_bp.bp = string.Template()
 
def gn.gn_to_bp.gn_args = generate_args('"android"', True)
 
def gn.gn_to_bp.gn_args_linux = generate_args('"linux"', False)
 
def gn.gn_to_bp.gn_args_mac = generate_args('"mac"', False)
 
def gn.gn_to_bp.gn_args_win = generate_args('"win"', False)
 
def gn.gn_to_bp.gn_args_renderengine = generate_args('"android"', True, True)
 
 gn.gn_to_bp.js = gn_to_bp_utils.GenerateJSONFromGN(gn_args)
 
def gn.gn_to_bp.android_srcs = strip_slashes(js['targets']['//:skia']['sources'])
 
def gn.gn_to_bp.cflags = strip_slashes(js['targets']['//:skia']['cflags'])
 
def gn.gn_to_bp.cflags_cc = strip_slashes(js['targets']['//:skia']['cflags_cc'])
 
def gn.gn_to_bp.local_includes = strip_slashes(js['targets']['//:skia']['include_dirs'])
 
def gn.gn_to_bp.export_includes = strip_slashes(js['targets']['//:public']['include_dirs'])
 
def gn.gn_to_bp.gm_srcs = strip_slashes(js['targets']['//:gm']['sources'])
 
def gn.gn_to_bp.gm_includes = strip_slashes(js['targets']['//:gm']['include_dirs'])
 
def gn.gn_to_bp.test_srcs = strip_slashes(js['targets']['//:tests']['sources'])
 
def gn.gn_to_bp.test_includes = strip_slashes(js['targets']['//:tests']['include_dirs'])
 
def gn.gn_to_bp.dm_srcs = strip_slashes(js['targets']['//:dm']['sources'])
 
def gn.gn_to_bp.dm_includes = strip_slashes(js['targets']['//:dm']['include_dirs'])
 
 gn.gn_to_bp.nanobench_target = js['targets']['//:nanobench']
 
def gn.gn_to_bp.nanobench_srcs = strip_slashes(nanobench_target['sources'])
 
def gn.gn_to_bp.nanobench_includes = strip_slashes(nanobench_target['include_dirs'])
 
string 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)
 
def 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)
 
def 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)
 
def gn.gn_to_bp.win_srcs = strip_slashes(js_win['targets']['//:skia']['sources'])
 
def gn.gn_to_bp.srcs = android_srcs.intersection(linux_srcs).intersection(mac_srcs)
 
def gn.gn_to_bp.test_minus_gm_includes = test_includes.difference(gm_includes)
 
def 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)
 
def gn.gn_to_bp.renderengine_srcs
 
int gn.gn_to_bp.skqp_sdk_version = 26
 
 gn.gn_to_bp.js_skqp
 
def gn.gn_to_bp.skqp_srcs = strip_slashes(js_skqp['targets']['//:libskqp_jni']['sources'])
 
def gn.gn_to_bp.skqp_includes = strip_slashes(js_skqp['targets']['//:libskqp_jni']['include_dirs'])
 
def gn.gn_to_bp.skqp_cflags = strip_slashes(js_skqp['targets']['//:libskqp_jni']['cflags'])
 
def gn.gn_to_bp.skqp_cflags_cc = strip_slashes(js_skqp['targets']['//:libskqp_jni']['cflags_cc'])
 
def 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'))
 
def gn.gn_to_bp.android_defines = get_defines(js)
 
def gn.gn_to_bp.linux_defines = get_defines(js_linux)
 
def gn.gn_to_bp.mac_defines = get_defines(js_mac)
 
def gn.gn_to_bp.win_defines = get_defines(js_win)
 
def gn.gn_to_bp.renderengine_defines = get_defines(js_renderengine)
 
dictionary gn.gn_to_bp.platforms = { 'IOS', 'MAC', 'WIN', 'ANDROID', 'UNIX' }
 
 gn.gn_to_bp.file