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)
95 install_dir = os.path.join(install_host_dir, package_name)
99 if os.path.exists(install_host_dir):
105 package_path = os.path.join(dist_dir, tarball_name) + '.tar.bz2'
133 lib_path = os.path.join(mingw_dir, 'x86_64-w64-mingw32/lib32', lib_name)
135 lib_install = os.path.join(install_dir, 'bin', lib_name)
173 dirname = os.path.dirname(built_file)
178 install_path = os.path.join(install_dir, dirname)
179 if not os.path.exists(install_path):
180 os.makedirs(install_path)
182 built_path = os.path.join(build_dir, 'host', host, built_file)
185 file_name = os.path.basename(built_file)
190 ['strip', os.path.join(install_path, file_name)])
195 if os.path.basename(path) in ('Makefile', 'CMakeLists.txt'):
197 _, ext = os.path.splitext(path)
203 headers_dst = os.path.join(
205 os.makedirs(headers_dst)
206 for header in os.listdir(headers_src):
209 install_file(os.path.join(headers_src, header), headers_dst)
238 lib_dir = os.path.join(install_dir, 'platform', arch)
239 os.makedirs(lib_dir)
244 built_lib = os.path.join(build_dir, 'host', host, 'lib64', lib_name)
246 built_lib = os.path.join(build_dir, 'host', 'linux-x86', 'lib64', lib_name)
247 install_file(built_lib, os.path.join(lib_dir, bc_lib + '.bc'))
250 product_dir = os.path.join(build_dir, 'target/product', product)
251 static_lib_dir = os.path.join(product_dir, 'obj/STATIC_LIBRARIES')
252 shared_lib_dir = os.path.join(product_dir, 'obj/SHARED_LIBRARIES')
254 built_lib = os.path.join(
257 install_file(built_lib, os.path.join(lib_dir, lib_name))
259 built_lib = os.path.join(
262 install_file(built_lib, os.path.join(lib_dir, lib_name))
265 lib_dir = os.path.join(install_dir, 'platform')
266 jar_dir = os.path.join(build_dir, 'target/common/obj/JAVA_LIBRARIES/'
268 install_file(jar_dir, os.path.join(lib_dir, 'renderscript-v8.jar'))
271 headers_dst_base = os.path.join(install_dir, 'platform', 'rs')
274 headers_dst = os.path.join(headers_dst_base, 'scriptc')
279 headers_dst = os.path.join(headers_dst_base, 'cpp/util')
282 …install_file(android_path('frameworks/rs/cpp/RenderScript.h'), os.path.join(headers_dst_base, 'cpp…
283 …install_file(android_path('frameworks/rs/cpp/rsCppStructs.h'), os.path.join(headers_dst_base, 'cpp…
299 license_pattern = os.path.join(project_path, 'MODULE_LICENSE_*')
302 with open(os.path.join(project_path, 'NOTICE')) as notice_file:
304 with open(os.path.join(install_dir, 'NOTICE'), 'w') as notice_file: