Lines Matching refs:os
21 import os
28 THIS_DIR = os.path.realpath(os.path.dirname(__file__))
29 ORIG_ENV = dict(os.environ)
33 out_dir = os.path.realpath(os.path.join(THIS_DIR, '../..', *args))
42 if not os.path.isabs(top_out):
43 top_out = os.path.realpath(top_out)
44 out_dir = os.path.join(top_out, *args)
104 install_dir = os.path.join(install_host_dir, package_name)
108 if os.path.exists(install_host_dir):
114 package_path = os.path.join(dist_dir, tarball_name) + '.tar.bz2'
143 lib_path = os.path.join(mingw_dir, 'x86_64-w64-mingw32/lib32', lib_name)
145 lib_install = os.path.join(install_dir, 'bin', lib_name)
183 dirname = os.path.dirname(built_file)
188 install_path = os.path.join(install_dir, dirname)
189 if not os.path.exists(install_path):
190 os.makedirs(install_path)
192 built_path = os.path.join(build_dir, 'host', host, built_file)
195 file_name = os.path.basename(built_file)
200 ['strip', os.path.join(install_path, file_name)])
205 if os.path.basename(path) in ('Makefile', 'CMakeLists.txt'):
207 _, ext = os.path.splitext(path)
213 headers_dst = os.path.join(
215 os.makedirs(headers_dst)
216 for header in os.listdir(headers_src):
219 install_file(os.path.join(headers_src, header), headers_dst)
248 lib_dir = os.path.join(install_dir, 'platform', arch)
249 os.makedirs(lib_dir)
254 built_lib = os.path.join(build_dir, 'host', host, 'lib64', lib_name)
256 built_lib = os.path.join(build_dir, 'host', 'linux-x86', 'lib64', lib_name)
257 install_file(built_lib, os.path.join(lib_dir, bc_lib + '.bc'))
260 product_dir = os.path.join(build_dir, 'target/product', product)
261 static_lib_dir = os.path.join(product_dir, 'obj/STATIC_LIBRARIES')
262 shared_lib_dir = os.path.join(product_dir, 'obj/SHARED_LIBRARIES')
264 built_lib = os.path.join(
267 install_file(built_lib, os.path.join(lib_dir, lib_name))
269 built_lib = os.path.join(
272 install_file(built_lib, os.path.join(lib_dir, lib_name))
275 lib_dir = os.path.join(install_dir, 'platform')
276 jar_dir = os.path.join(build_dir, 'target/common/obj/JAVA_LIBRARIES/'
278 install_file(jar_dir, os.path.join(lib_dir, 'renderscript-v8.jar'))
281 headers_dst_base = os.path.join(install_dir, 'platform', 'rs')
284 headers_dst = os.path.join(headers_dst_base, 'scriptc')
289 headers_dst = os.path.join(headers_dst_base, 'cpp/util')
292 …install_file(android_path('frameworks/rs/cpp/RenderScript.h'), os.path.join(headers_dst_base, 'cpp…
293 …install_file(android_path('frameworks/rs/cpp/rsCppStructs.h'), os.path.join(headers_dst_base, 'cpp…
309 license_pattern = os.path.join(project_path, 'MODULE_LICENSE_*')
312 with open(os.path.join(project_path, 'NOTICE')) as notice_file:
314 with open(os.path.join(install_dir, 'NOTICE'), 'w') as notice_file: