Home
last modified time | relevance | path

Searched refs:config (Results 1 – 25 of 123) sorted by relevance

12345

/build/lite/hb_internal/set/
Dset.py21 from hb_internal.common.config import Config
49 config = Config()
56 config.root_path = root_path
68 config = Config()
69 config.product = product_info.get('name')
70 config.product_path = product_info.get('product_path')
71 config.version = product_info.get('version')
72 config.os_level = product_info.get('os_level')
73 config.product_json = product_info.get('config')
74 config.component_type = product_info.get('component_type')
[all …]
/build/tools/component_tools/
Dkconfig15 config property$$product_name
18 config property$$version
21 config property$$type
24 config property$$ohos_version
27 config property$$board
30 config property$$kernel_type
33 config property$$kernel_version
36 config property$$device_name
39 config property$$device_company
42 config property$$target_os
[all …]
/build/lite/hb_internal/build/
Dbuild_process.py32 from hb_internal.common.config import Config
45 self.config = Config()
74 self.config.board in component_cls.adapted_board:
76 self.config.kernel in component_cls.adapted_kernel:
95 self.config.clang_path)
130 self.config.fs_attr = None
134 self.config.target_cpu = cmd_args["target_cpu"]
136 self.config.compile_config = cmd_args["compile_config"]
160 post_build = PostBuild(self.config)
164 output_part_rom_status(self.config.root_path)
[all …]
Dpatch_process.py24 from hb_internal.common.config import Config
32 self.config = Config()
34 self.patch_cfg = os.path.join(self.config.product_path, 'patch.yml')
46 patch_cfg = self.config.patch_cache
74 src_path = os.path.join(self.config.root_path, src_path)
80 patch_path = os.path.join(self.config.root_path, patch)
82 patch_path = os.path.join(self.config.root_path,
92 exec_command(cmd, log_path=self.config.log_path,
96 self.config.patch_cache = None
105 if self.config.patch_cache is not None:
[all …]
/build/lite/hb_internal/preloader/
Dpreloader.py24 from hb_internal.common.config import Config
77 config = {
84 platform_config = {'version': 2, 'platforms': {'phone': config}}
275 def _parse_config_v2(self, config): argument
278 os_level = config.get("type", "standard")
279 device_name = config.get('product_device')
280 current_product_parts = config.get("parts")
286 build_vars['product_name'] = config.get('product_name')
291 build_vars['product_company'] = config.get('product_company')
292 if 'support_jsapi' in config:
[all …]
Dparse_vendor_product_config.py108 def transform(config): argument
109 subsystems = config.get('subsystems')
111 config.pop('subsystems')
113 config['parts'] = parts
114 return config
117 def save_transformed_config(config, output_file): argument
118 new_config = json.dumps(config, indent=2, sort_keys=True)
134 config = json.load(fin)
135 if product_name == config.get('product_name'):
136 return config
[all …]
/build/lite/config/
DBUILD.gn14 config("cpu_arch") {
21 config("language_c") {
25 config("language_cpp") {
29 config("kernel_macros") {
53 config("werror") {
58 config("common") {
76 config("security") {
89 config("exceptions") {
94 config("no_exceptions") {
100 config("stack_protector") {
[all …]
DBUILDCONFIG.gn14 import("${device_path}/config.gni")
61 # Load board adapter dir from board config.
83 default_target_configs = [ "//build/lite/config:gcc_opt" ]
92 default_target_configs = [ "//build/lite/config:clang_opt" ]
118 default_target_configs = [ "//build/lite/config:ohos_clang" ]
119 default_target_configs += [ "//build/lite/config:clang_opt" ]
124 "//build/lite/config:board_config",
125 "//build/lite/config:cpu_arch",
126 "//build/lite/config:common",
127 "//build/lite/config:default_link_path",
[all …]
/build/config/linux/
DBUILD.gn5 import("//build/config/c++/c++.gni")
11 # This is included by reference in the //build/config/compiler config that
14 config("compiler") {
17 # This is included by reference in the //build/config/compiler:runtime_library
18 # config that is applied to all targets. It is here to separate out the logic
21 config("runtime_library") {
42 config("executable_config") {
48 config("x11") {
64 config("xcomposite") {
68 config("xext") {
[all …]
Dpkg_config.gni5 import("//build/config/sysroot.gni")
7 # Defines a config specifying the result of running pkg-config for the given
12 # add this to the config to pass defines that the library expects to get by
21 # You can also use "extra args" to filter out results (see pkg-config.py):
28 # A pkg-config wrapper to call instead of trying to find and call the right
29 # pkg-config directly. Wrappers like this are common in cross-compilation
31 # Leaving it blank defaults to searching PATH for 'pkg-config' and relying on
35 # A optional pkg-config wrapper to use for tools built on the host.
50 pkg_config_script = "//build/config/linux/pkg-config.py"
52 # Define the args we pass to the pkg-config script for other build files that
[all …]
/build/lite/ndk/build/config/
DBUILD.gn14 config("cpu_arch") {
33 config("base") {
61 config("exceptions") {
66 config("no_exceptions") {
72 config("stack_protector") {
77 config("static_pie_config") {
82 config("shared_library_config") {
87 config("pie_executable_config") {
91 config("clang") {
121 config("clang_release") {
[all …]
DBUILDCONFIG.gn14 import("//build/config/variable.gni")
32 default_target_configs = [ "//build/config:ohos" ]
34 set_default_toolchain("//build/config:liteos")
37 default_target_configs = [ "//build/config:ohos" ]
40 default_target_configs = [ "//build/config:ohos" ]
47 default_target_configs + [ "//build/config:shared_library_config" ]
49 default_target_configs + [ "//build/config:static_pie_config" ]
51 default_static_library_configs + [ "//build/config:pie_executable_config" ]
/build/config/security/
DBUILD.gn14 import("//build/config/security/security_config.gni")
16 config("auto_var_init_configs") {
27 # This config is applied by default to all targets. It sets the compiler flags
28 # for automatic variable initialization, or, if no config is set, does nothing.
29 config("default_security_configs") {
34 config("auto_var_pattern_init_config") {
39 # Currently, enabling the config of pattern for all components is impractical and may cause system
40 # instability. So on the premise that the system is stable, the config of zero need to be gradually…
41 # the config of pattern.
42 config("auto_var_zero_init_config") {
[all …]
Dsecurity_config.gni13 import("//build/config/clang/clang.gni")
16 # Enable the config that variables are automatically initialized by default.
43 config(target_name) {
57 configs += [ "//build/config/security:auto_var_pattern_init_config" ]
59 configs += [ "//build/config/security:auto_var_zero_init_config" ]
61 configs += [ "//build/config/security:auto_var_uninit_config" ]
64 configs += [ "//build/config/security:auto_var_zero_init_config" ]
71 config(target_name) {
82 config(target_name) {
/build/config/ohos/
DBUILD.gn5 import("//build/config/compiler/compiler.gni")
6 import("//build/config/ohos/config.gni")
8 import("//build/config/c++/c++.gni")
9 import("//build/config/sanitizers/sanitizers.gni")
13 # This is included by reference in the //build/config/compiler config that
16 config("compiler") {
54 # This is included by reference in the //build/config/compiler:runtime_library
55 # config that is applied to all targets. It is here to separate out the logic
58 config("runtime_library") {
104 config("executable_config") {
[all …]
/build/lite/hb_internal/common/
Dproduct.py23 from hb_internal.common.config import Config
31 config = Config()
33 _ext_scan_path = os.path.join(config.root_path,
50 config.root_path, info.get('product_path'))
67 for company in os.listdir(config.vendor_path):
68 company_path = os.path.join(config.vendor_path, company)
90 bip_path = config.built_in_product_path
112 config = Config()
116 device_json = os.path.join(config.built_in_device_path,
133 os.path.join(config.root_path, _board_path)):
[all …]
Ddevice.py80 def match_kernel(config, kernel, version): argument
84 with open(config, 'rt', encoding='utf-8') as config_file:
90 def get_kernel_info(config): argument
94 with open(config, 'rt', encoding='utf-8') as config_file:
112 config = os.path.join(config_path, 'config.gni')
113 if not os.path.isfile(config):
116 with open(config, 'rt', encoding='utf-8') as config_file:
/build/config/
DBUILD.gn5 import("//build/config/allocator.gni")
6 import("//build/config/c++/c++.gni")
7 import("//build/config/coverage/coverage.gni")
8 import("//build/config/features.gni")
10 import("//build/config/sanitizers/sanitizers.gni")
15 # affects the "debug" config, which is always available but applied by
44 # flags. See //build/config/BUILDCONFIG.gn for advice on where to define
46 config("feature_flags") {
104 config("debug") {
127 config("release") {
[all …]
DBUILDCONFIG.gn547 [ "${device_build_path}/config.gni" ],
550 import("${device_build_path}/config.gni")
564 # Other than the main compiler and linker configs, the only reason for a config
565 # to be in this list is if some targets need to explicitly override that config
567 # requirement and just need to add a config everywhere, reference it as a
568 # sub-config of an existing one, most commonly the main "compiler" one.
572 "//build/config:feature_flags",
573 "//build/config/compiler:afdo",
574 "//build/config/compiler:afdo_optimize_size",
575 "//build/config/compiler:compiler",
[all …]
/build/config/mac/
DBUILD.gn5 import("//build/config/c++/c++.gni")
6 import("//build/config/mac/mac_sdk.gni")
7 import("//build/config/mac/symbols.gni")
8 import("//build/config/sysroot.gni")
10 # This is included by reference in the //build/config/compiler config that
12 config("compiler") {
66 # This is included by reference in the //build/config/compiler:runtime_library
67 # config that is applied to all targets. It is here to separate out the logic
70 config("runtime_library") {
89 config("mac_dynamic_flags") {
[all …]
/build/config/sanitizers/
DBUILD.gn5 import("//build/config/clang/clang.gni")
6 import("//build/config/ohos/config.gni")
7 import("//build/config/sanitizers/sanitizers.gni")
90 config("sanitizer_options_link_helper") {
110 configs -= [ "//build/config/sanitizers:default_sanitizer_flags" ]
136 config("default_sanitizer_ldflags") {
240 config("common_sanitizer_flags") {
254 # Frame pointers are controlled in //build/config/compiler:default_stack_frames
258 config("asan_flags") {
278 config("link_executable") {
[all …]
/build/config/gcc/
DBUILD.gn5 import("//build/config/c++/c++.gni")
6 import("//build/config/compiler/compiler.gni")
7 import("//build/config/sanitizers/sanitizers.gni")
8 import("//build/config/sysroot.gni")
23 # This config causes functions not to be automatically exported from shared
29 # into its own config so such libraries can remove this config to make symbols
33 config("symbol_visibility_hidden") {
43 config("symbol_visibility_inline_hidden") {
47 # This config is usually set when :symbol_visibility_hidden is removed.
50 config("symbol_visibility_default") {
[all …]
/build/scripts/
Dbuild_js_assets.py84 def make_manifest_data(config, options, js2abc, asset_index, assets_cnt, src_path): argument
86 data['appID'] = config['app']['bundleName']
88 data['versionName'] = config['app']['versionName']
89 data['versionCode'] = config['app']['versionCode']
90 data['pages'] = config['module']['pages']
91 data['deviceType'] = config['module']['deviceTypes']
93 data['appName'] = config['module']['abilities'][asset_index].get('label')
94 data['versionName'] = config['app']['version']['name']
95 data['versionCode'] = config['app']['version']['code']
96 data['deviceType'] = config['module']['deviceType']
[all …]
/build/docs/
Dproduct-configuration.md7 产品配置文件放置在vendor目录下,具体目录为:vendor/${company}/${product_name}/config.json。
13 config.json的格式沿用轻鸿蒙的格式。
15 其中version是指config.json的版本号,目前固定为3.0。版本号主要是区别早期的配置格式。preloader解析产品配置时会使用到该版本号。
20 "version": "3.0", # config.json的版本号,固定为3.0
/build/ohos/packages/
Dfs_process.py27 from lite.hb_internal.common.config import Config
31 self.config = Config()
33 r'${product_name}': self.config.product,
34 r'${root_path}': self.config.root_path,
35 r'${out_path}': self.config.out_path
45 src_path = self.config.out_path
66 fs_path = os.path.join(self.config.out_path,
80 self.config.out_path)
180 log_path = self.config.log_path
199 if attr_key in self.config.fs_attr:
[all …]

12345