Lines Matching refs:os
18 import os
65 dependences_path = os.path.join(_path, 'dependences.json')
72 dependences_json[part_name]['installPath'] + os.sep + 'bundle.json')
78 for root, dirs, files in os.walk(source_code_path):
81 bundle_paths.append(os.path.join(root, file))
86 if os.path.exists(dest_dir) and os.path.islink(dest_dir):
87 os.unlink(dest_dir)
88 if os.path.exists(dest_dir) and dest_dir != src_dir:
89 if os.path.isdir(dest_dir):
92 os.remove(dest_dir)
93 os.symlink(src_dir, dest_dir)
98 link_path = os.path.join("binarys", path)
99 if not os.path.isdir(link_path):
101 os.remove(link_path)
104 os.makedirs(link_path, exist_ok=True)
111 config_path = os.path.join(code_path, "binarys", "variants", "variants_" + variants, "config", "build_config.json")
123 musl_include_link_path = os.path.join("out", variants, "obj/binarys/third_party/musl/usr/include", target_path)
124 musl_lib_link_path = os.path.join("out", variants, "obj/binarys/third_party/musl/usr/lib", target_path)
125 os.makedirs(musl_include_link_path, exist_ok=True)
126 os.makedirs(musl_lib_link_path, exist_ok=True)
127 _symlink_src2dest(os.path.join(musl_real_path, 'innerapis', 'includes'), musl_include_link_path)
128 _symlink_src2dest(os.path.join(musl_real_path, 'innerapis', 'libs'), musl_lib_link_path)
131 kernel_link_path = os.path.join("kernel", "linux")
132 if not os.path.isdir(kernel_link_path):
134 os.remove(kernel_link_path)
137 os.makedirs(kernel_link_path, exist_ok=True)
138 os.makedirs(kernel_link_path, exist_ok=True)
139 _symlink_src2dest(os.path.join(kernel_real_path, "innerapis"), kernel_link_path)
145 googletest_link_path = os.path.join("out", variants, "obj/binarys/third_party/googletest")
146 os.makedirs(googletest_link_path, exist_ok=True)
147 shutil.copytree(os.path.join(googletest_real_path, 'innerapis'),
148 os.path.join(googletest_link_path, 'innerapis'))
166 innerapi_label = "{}:{}".format(os.path.join("//binarys", path), innerapi_name)
170 innerapi_label = "{}:{}".format(os.path.join("//binarys", path, "innerapis", innerapi_name), innerapi_name)
175 innerapi_label = "{}:{}".format(os.path.join("//binarys", path, "innerapis",
234 utils.get_json(os.path.join(root_path, "build", "bundle.json")),
248 file_name = os.path.join(output_path, "components.json")
249 flags = os.O_WRONLY | os.O_CREAT
251 with os.fdopen(os.open(file_name, flags, modes), 'w') as f:
256 platforms_list_gni_file = os.path.join(output_path, "platforms_list.gni")
261 flags = os.O_WRONLY | os.O_CREAT
263 with os.fdopen(os.open(platforms_list_gni_file, flags, modes), 'w') as f:
268 toolchain_json = os.path.join(_path, 'build', 'indep_configs', 'variants', 'common', 'toolchain.json')
275 binarys_path = os.path.join(hpm_cache_path, 'binarys')
278 for root, dirs, files in os.walk(binarys_path, topdown=False, followlinks=True):
280 _part_name = root.split(os.sep)[-1]
297 project_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
298 output_part_path = os.path.join(project_path, 'out', variants, 'build_configs', 'parts_info')
299 output_config_path = os.path.join(project_path, 'out', variants, 'build_configs')