Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 134) sorted by relevance

123456

/ndk/build/lib/
Dbuild_support.py26 THIS_DIR = os.path.realpath(os.path.dirname(__file__))
109 top = os.path.realpath(os.path.join(THIS_DIR, '../../..'))
110 return os.path.normpath(os.path.join(top, *args))
155 path = os.path.realpath(os.getenv(env_var, default))
156 if not os.path.isdir(path):
157 os.makedirs(path)
158 return path
166 return _get_dir_from_env(os.path.join(out_dir, 'dist'), 'DIST_DIR')
194 dist_repo_prop = os.path.join(dist_dir, file_name)
197 out_file = os.path.join(out_dir, file_name)
[all …]
/ndk/sources/cxx-stl/llvm-libc++/
Dbuild.py25 THIS_DIR = os.path.realpath(os.path.dirname(__file__))
26 site.addsitedir(os.path.join(THIS_DIR, '../../../build/lib'))
51 platforms_root = os.path.join(prebuilt_ndk, 'platforms')
52 toolchains_root = os.path.join(prebuilt_ndk, 'toolchains')
54 obj_out = os.path.join(args.out_dir, 'libcxx/obj')
61 lib_out = os.path.join(libcxx_path, 'libs')
76 'APP_BUILD_SCRIPT=' + os.path.join(THIS_DIR, 'Android.mk'),
77 'NDK_APPLICATION_MK=' + os.path.join(THIS_DIR, 'Application.mk'),
93 static_lib_dir = os.path.join(obj_out, 'local', abi)
94 install_dir = os.path.join(lib_out, abi)
[all …]
/ndk/build/core/
Ddefinitions-host.mk31 host-path = $(if $(strip $1),$(call cygwin-to-host-path,$1))
33 host-path = $1
142 host-c-includes = $(patsubst %,-I%,$(call host-path,$1))
186 windows-path-is-absolute = $(if $(filter /% $(ndk-windows-drive-patterns),$(subst \,/,$1)),true)
189 host-path-is-absolute = $(call windows-path-is-absolute,$1)
191 host-path-is-absolute = $(if $(filter /%,$1),true)
194 -test-host-path-is-absolute.relative-paths = \
195 $(call test-expect,,$(call host-path-is-absolute,foo))\
196 $(call test-expect,,$(call host-path-is-absolute,foo/bar))\
197 $(call test-expect,,$(call host-path-is-absolute,.))\
[all …]
Ddefault-build-commands.mk31 $(call host-path, $1) \
33 $(call host-path, $2 $(PRIVATE_LIBGCC) $4) \
76 --sysroot=$(call host-path,$(PRIVATE_SYSROOT_LINK)) \
80 -o $(call host-path,$(LOCAL_BUILT_MODULE))
91 --sysroot=$(call host-path,$(PRIVATE_SYSROOT_LINK)) \
92 -Wl,-rpath-link=$(call host-path,$(PRIVATE_SYSROOT_LINK)/usr/lib) \
93 -Wl,-rpath-link=$(call host-path,$(TARGET_OUT)) \
97 -o $(call host-path,$(LOCAL_BUILT_MODULE))
101 $(PRIVATE_AR) $(call host-path,$(LOCAL_BUILT_MODULE)) $(PRIVATE_AR_OBJECTS)
107 cmd-strip = $(PRIVATE_STRIP) --strip-unneeded $(call host-path,$1)
[all …]
Dsetup-imports.mk33 $(call import-add-path,$(__path))\
35 $(call import-add-path-optional,$(NDK_ROOT)/sources)
36 $(call import-add-path-optional,$(NDK_ROOT)/../development/ndk/sources)
/ndk/
Dcheckbuild.py36 site.addsitedir(os.path.join(os.path.dirname(__file__), 'build/lib'))
121 script_path = os.path.join('build/tools', script)
150 test_dir = os.path.join(out_dir, 'android-ndk-{}'.format(release))
221 prefixed_files.append(os.path.join('bin', prefixed_name))
225 dir_prefixed_files.append(os.path.join(triple, 'bin', file_name))
227 ldscripts_dir = os.path.join(triple, 'lib/ldscripts')
232 src_file = os.path.join(src_dir, file_name)
233 dst_file = os.path.join(dst_dir, file_name)
236 if os.path.isdir(src_file):
238 elif os.path.islink(src_file):
[all …]
Dndk-gdb.py36 NDK_PATH = os.path.normpath(os.path.join(os.path.dirname(__file__), '../..'))
37 sys.path.append(os.path.join(NDK_PATH, "python-packages"))
185 path = os.path.join(NDK_PATH, "host-tools", "bin")
186 if not os.path.exists(path):
187 error("Failed to find ndk binary path, should be at '{}'".format(path))
189 return path
198 for path in paths:
199 if os.path.isdir(path):
201 full = path + os.sep + program + ext
202 if os.path.isfile(full):
[all …]
/ndk/build/tools/
Dpackage.py32 site.addsitedir(os.path.join(os.path.dirname(__file__), '../lib'))
36 THIS_DIR = os.path.dirname(__file__)
37 ANDROID_TOP = os.path.realpath(os.path.join(THIS_DIR, '../../..'))
151 def check_packages(path, packages): argument
154 package_path = os.path.join(path, package + '.zip')
155 if not os.path.exists(package_path):
161 components = os.path.split(f)
174 def extract_all(path, packages, out_dir): argument
178 package_path = os.path.join(path, package + '.zip')
179 install_dir = os.path.join(out_dir, extract_path)
[all …]
Dbuild-llvm.py23 site.addsitedir(os.path.join(os.path.dirname(__file__), '../lib'))
30 prebuilt_path = os.path.join(build_support.android_path(),
32 if not os.path.isdir(prebuilt_path):
62 package_path = os.path.join(package_dir, package_name)
63 if os.path.exists(package_path):
Dbuild-gcc.py23 site.addsitedir(os.path.join(os.path.dirname(__file__), '../lib'))
39 prebuilt_path = os.path.join(build_support.android_path(),
41 if not os.path.isdir(prebuilt_path):
51 package_path = os.path.join(package_dir, package_name)
52 if os.path.exists(package_path):
/ndk/sources/host-tools/make-3.81/
Dvpath.c51 static int selective_vpath_search PARAMS ((struct vpath *path, char **file, FILE_TIMESTAMP *mtime_p…
177 register struct vpath *path, *lastpath; in construct_vpath_list() local
180 path = vpaths; in construct_vpath_list()
181 while (path != 0) in construct_vpath_list()
183 struct vpath *next = path->next; in construct_vpath_list()
186 || (((percent == 0 && path->percent == 0) in construct_vpath_list()
187 || (percent - pattern == path->percent - path->pattern)) in construct_vpath_list()
188 && streq (pattern, path->pattern))) in construct_vpath_list()
192 vpaths = path->next; in construct_vpath_list()
197 free (path->pattern); in construct_vpath_list()
[all …]
/ndk/tests/
Dndk.py25 THIS_DIR = os.path.dirname(os.path.realpath(__file__))
26 NDK_ROOT = os.path.realpath(os.path.join(THIS_DIR, '..'))
36 test_path = os.path.join(os.environ['NDK'], 'prebuilt', host_tag)
37 if not os.path.exists(test_path):
48 prebuilt_path = os.path.join(os.environ['NDK'], 'prebuilt', host_tag)
49 return os.path.join(prebuilt_path, 'bin', tool) + ext
53 ndk_build_path = os.path.join(os.environ['NDK'], 'ndk-build')
Dtests.py47 path = os.path.join(suite_dir, dentry)
48 if os.path.isdir(path):
49 tests.append(test_class.from_dir(path, *args))
57 def add_suite(self, name, path, test_class, *args): argument
60 self.tests[name] = _scan_test_suite(path, test_class, *args)
236 test_name = os.path.basename(test_dir)
238 script = os.path.join(ndk.NDK_ROOT, 'build/awk', script_name)
239 if not os.path.isfile(script):
244 for test_case in glob.glob(os.path.join(test_dir, '*.in')):
246 if not os.path.isfile(golden_path):
[all …]
Dprepare-buildbot-emulators.py43 package_name = os.path.basename(url)
44 if os.path.exists(package_name):
48 if os.path.exists(sdk_dir):
57 if os.path.exists(package_name):
105 sdk_manager = os.path.join(sdk_dir, 'tools/android')
Drun-all.py174 path = os.path.join(
177 subprocess.check_call([path])
262 os.chdir(os.path.dirname(os.path.realpath(__file__)))
273 os.environ['NDK'] = os.path.dirname(os.getcwd())
284 if not os.path.exists(os.path.join('../build/tools/prebuilt-common.sh')):
289 if not os.path.isabs(out_dir):
290 out_dir = os.path.join(orig_cwd, out_dir)
291 if os.path.exists(out_dir):
/ndk/sources/host-tools/make-3.81/tests/
Dtest_driver.pl949 local ($path);
954 foreach $path (sort keys (%dirtree))
956 if ($dirtree {$path} =~ /^DIR$/)
958 mkdir ("$basedir/$path", 0777)
959 || &error ("Couldn't mkdir $basedir/$path: $!\n", 1);
961 elsif ($dirtree {$path} =~ /^FILE:(.*)$/)
963 &create_file ("$basedir/$path", $1 . "\n");
965 elsif ($dirtree {$path} =~ /^LINK:(.*)$/)
967 symlink ("$basedir/$1", "$basedir/$path")
968 || &error ("Couldn't symlink $basedir/$path -> $basedir/$1: $!\n", 1);
[all …]
/ndk/sources/third_party/googletest/googletest/test/
Dgtest_xml_outfiles_test.py71 self.output_dir_ = os.path.join(gtest_test_utils.GetTempDir(),
80 os.remove(os.path.join(self.output_dir_, GTEST_OUTPUT_1_TEST + ".xml"))
84 os.remove(os.path.join(self.output_dir_, GTEST_OUTPUT_2_TEST + ".xml"))
112 output_file1 = os.path.join(self.output_dir_, output_file_name1)
114 output_file2 = os.path.join(self.output_dir_, output_file_name2)
115 self.assert_(os.path.isfile(output_file1) or os.path.isfile(output_file2),
119 if os.path.isfile(output_file1):
Dgtest_test_utils.py66 _flag_map = {'source_dir': os.path.dirname(sys.argv[0]),
67 'build_dir': os.path.dirname(sys.argv[0])}
114 return os.path.abspath(GetFlag('source_dir'))
120 return os.path.abspath(GetFlag('build_dir'))
156 path = os.path.abspath(os.path.join(build_dir or GetBuildDir(),
158 if (IS_WINDOWS or IS_CYGWIN) and not path.endswith('.exe'):
159 path += '.exe'
161 if not os.path.exists(path):
169 return path
/ndk/sources/host-tools/make-3.81/w32/
Dpathstuff.c126 convert_path_to_nutc(char *path) in convert_path_to_nutc() argument
138 for (p = path, etok = strpbrk(p, ":;"), count = 0; in convert_path_to_nutc()
163 nutc_path_len = strlen(path) + (count*2) + 1; in convert_path_to_nutc()
173 for (p = path, etok = strpbrk(p, ":;"); in convert_path_to_nutc()
196 rval = savestring(path, strlen(path)); in convert_path_to_nutc()
219 nutc_path_len = strlen(path) + 3; in convert_path_to_nutc()
223 p = path; in convert_path_to_nutc()
237 rval = savestring(path, strlen(path)); in convert_path_to_nutc()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/
Dlit.ndk.cfg.in14 libcxx_dir = os.path.join(ndk, 'sources/cxx-stl/llvm-libc++')
15 libcxx_src_dir = os.path.join(libcxx_dir, 'libcxx')
17 config.cxx_under_test = os.path.join(
22 config.cxx_library_root = os.path.join(libcxx_dir, 'libs/%ABI%')
33 config.sysroot = os.path.join(ndk, "platforms/android-21/arch-%ARCH%/")
34 config.gcc_toolchain = os.path.join(
39 config, os.path.join(libcxx_src_dir, "test/lit.cfg"))
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/libcxx/android/test/
Dformat.py30 os.path.join(outdir, 'lib'),
31 os.path.join(outdir, 'lib64'),
52 return os.path.join(self.device_dir, file_name)
55 return os.path.join(self._working_directory(test_name), file_name)
66 exec_file = os.path.basename(exec_path)
73 src_dir = os.path.dirname(source_path)
76 df_path = os.path.join(src_dir, data_file)
84 exec_file = os.path.basename(exec_path)
Dconfig.py26 'Using compiler: {}'.format(self.cxx.path))
35 test_config_file = os.path.join(self.build_cmds_dir, 'testconfig.mk')
43 self.build_cmds_dir = os.path.join(self.libcxx_src_root, 'buildcmds')
49 cxx_under_test_file = os.path.join(self.build_cmds_dir,
53 cxx_template_file = os.path.join(self.build_cmds_dir, 'cxx.cmds')
56 link_template_file = os.path.join(self.build_cmds_dir, 'link.cmds')
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/libcxx/android/
Dbuild.py5 def mm(path, android_build_top): argument
7 env['ONE_SHOT_MAKEFILE'] = os.path.join(path, 'Android.mk')
/ndk/sources/cxx-stl/llvm-libc++abi/libcxxabi/test/libcxxabi/test/
Dconfig.py19 os.path.dirname(self.config.test_source_root))
22 os.path.join(self.libcxxabi_src_root, '/../libcxx'))
37 os.path.join(self.libcxx_src_root, '/include'))
38 if not os.path.isdir(cxx_headers):
45 os.path.join(self.libcxxabi_src_root, 'include'))
46 if not os.path.isdir(libcxxabi_headers):
/ndk/sources/cxx-stl/llvm-libc++abi/libcxxabi/test/
Dlit.cfg9 site.addsitedir(os.path.dirname(__file__))
23 # test_source_root: The root path where tests are located.
24 config.test_source_root = os.path.dirname(__file__)
31 libcxx_src_root = os.path.join(config.test_source_root, '../../libcxx')
32 libcxx_test_src_root = os.path.join(libcxx_src_root, 'test')
33 if os.path.isfile(os.path.join(libcxx_test_src_root, 'libcxx', '__init__.py')):
54 config.test_exec_root = os.path.join(obj_root, 'test')

123456