Home
last modified time | relevance | path

Searched refs:dir (Results 1 – 25 of 170) sorted by relevance

1234567

/build/soong/cc/
Dinstaller.go38 func NewBaseInstaller(dir, dir64 string, location installLocation) *baseInstaller { argument
40 dir: dir,
49 dir string member
65 dir := installer.dir
67 dir = installer.dir64
70 dir = filepath.Join(dir, ctx.Target().NativeBridgeRelativePath)
72 dir = filepath.Join(dir, ctx.Arch().ArchType.String())
76 dir = filepath.Join(dir, "product")
78 dir = filepath.Join(dir, "vendor")
81 return android.PathForModuleInstall(ctx, dir, installer.subDir,
/build/blueprint/microfactory/
Dmicrofactory_test.go100 setupDir(t, func(config *Config, dir string, loadPkg loadPkgFunc) {
102 out := filepath.Join(dir, "out", "test")
106 if err := pkg.Compile(config, filepath.Join(dir, "out")); err != nil {
125 modify func(config *Config, dir string, loadPkg loadPkgFunc),
130 setupDir(t, func(config *Config, dir string, loadPkg loadPkgFunc) {
132 out := filepath.Join(dir, "out", "test")
136 if err := pkg.Compile(config, filepath.Join(dir, "out")); err != nil {
158 modify(config, dir, loadPkg)
162 if err := pkg.Compile(config, filepath.Join(dir, "out")); err != nil {
211 …testBuildAgain(t, false, false, func(config *Config, dir string, loadPkg loadPkgFunc) {}, func(pkg…
[all …]
/build/soong/python/
Dinstaller.go32 dir string member
41 func NewPythonInstaller(dir, dir64 string) *pythonInstaller { argument
43 dir: dir,
51 dir := installer.dir
53 dir = installer.dir64
56 dir = filepath.Join(dir, ctx.Arch().ArchType.String())
58 return android.PathForModuleInstall(ctx, dir, installer.relative)
/build/soong/java/
Djava_resources.go43 for _, dir := range dirs {
44 excludeDirs = append(excludeDirs, dir.String())
45 excludeFiles = append(excludeFiles, dir.(android.SourcePath).Join(ctx, "**/*").String())
56 for _, dir := range dirs {
57 files := ctx.GlobFiles(filepath.Join(dir.String(), "**/*"), excludeFiles)
62 args = append(args, "-C", dir.String())
66 if !strings.HasPrefix(path, dir.String()) {
67 panic(fmt.Errorf("path %q does not start with %q", path, dir))
108 dir := filepath.Clean(strings.TrimSuffix(path, rel))
109 if i == 0 || dir != lastDir {
[all …]
Dandroid_resources.go40 func androidResourceGlob(ctx android.ModuleContext, dir android.Path) android.Paths {
41 return ctx.GlobFiles(filepath.Join(dir.String(), "**/*"), androidResourceIgnoreFilenames)
57 dir string member
65 dir android.Path member
69 func overlayResourceGlob(ctx android.ModuleContext, dir android.Path) (res []globbedResourceDir,
78 files := data.paths.PathsInDirectory(filepath.Join(data.dir, dir.String()))
80 overlayModuleDir := android.PathForSource(ctx, data.dir, dir.String())
89 dir: overlayModuleDir,
114 result.dir = overlay
Dsupport_libraries.go32 dir := ctx.ModuleDir(module)
34 case strings.HasPrefix(dir, "prebuilts/sdk/current/extras"),
35 dir == "prebuilts/sdk/current/androidx",
36 dir == "prebuilts/sdk/current/car",
37 dir == "prebuilts/sdk/current/optional",
38 dir == "prebuilts/sdk/current/support":
/build/blueprint/pathtools/
Dfs.go56 dir := filepath.Dir(f)
57 for dir != "." && dir != "/" {
58 fs.dirs[dir] = true
59 dir = filepath.Dir(dir)
61 fs.dirs[dir] = true
221 dir, err := os.Open(fs.toAbs(name))
225 defer dir.Close()
227 contents, err := dir.Readdirnames(-1)
248 dir, file := saneSplit(name)
249 if dir != "." && dir != "/" {
[all …]
Dglob.go133 dir, file := saneSplit(pattern)
144 dirMatches, dirs, err := glob(fs, dir, hasRecursive, follow)
187 func saneSplit(path string) (dir, file string) {
191 dir, file = filepath.Split(path)
192 switch dir {
194 dir = "."
198 dir = dir[:len(dir)-1]
200 return dir, file
382 dir := filepath.Dir(filename)
383 err := os.MkdirAll(dir, 0777)
Dfs_test.go106 func runTestFs(t *testing.T, f func(t *testing.T, fs FileSystem, dir string)) {
189 runTestFs(t, func(t *testing.T, fs FileSystem, dir string) {
192 got, err := fs.IsDir(filepath.Join(dir, test.name))
231 runTestFs(t, func(t *testing.T, fs FileSystem, dir string) {
234 got, err := fs.ListDirsRecursive(filepath.Join(dir, test.name), FollowSymlinks)
238 want[i] = filepath.Join(dir, want[i])
277 runTestFs(t, func(t *testing.T, fs FileSystem, dir string) {
280 got, err := fs.ListDirsRecursive(filepath.Join(dir, test.name), DontFollowSymlinks)
284 want[i] = filepath.Join(dir, want[i])
340 runTestFs(t, func(t *testing.T, fs FileSystem, dir string) {
[all …]
/build/soong/cc/libbuildversion/tests/
DAndroid.bp11 dir: "android/arm",
16 dir: "android/arm64",
21 dir: "android/x86",
26 dir: "android/x86_64",
31 dir: "host/",
36 dir: "host32/",
41 dir: "host/",
/build/make/core/tasks/
Dtest_mapping.mk21 intermediates := $(call intermediates-dir-for,PACKAGING,test_mapping)
30 rm -rf $@ $(dir $@)/disabled-presubmit-tests
31 …echo $(sort $(PRIVATE_all_disabled_presubmit_tests)) | tr " " "\n" > $(dir $@)/disabled-presubmit-…
33 $(SOONG_ZIP) -o $@ -C . -l $@.list -C $(dir $@) -f $(dir $@)/disabled-presubmit-tests
34 rm -f $@.list $(dir $@)/disabled-presubmit-tests
Dtradefed-tests-list.mk19 $(foreach dir, $(COMPATIBILITY.tradefed_tests_dir), \
20 $(eval tradefed_tests += $(shell find $(dir) -type f -name "*.xml")))
21 tradefed_tests_list_intermediates := $(call intermediates-dir-for,PACKAGING,tradefed_tests_list,HOS…
31 $(hide) rm -rf $(dir $@) && mkdir -p $(dir $@)
33 $(hide) $(SOONG_ZIP) -d -o $@ -C $(dir $@) -f $(PRIVATE_tradefed_tests_list)
/build/soong/ui/build/
Dconfig_test.go245 dir := filepath.Join(rootDir, buildRootDir)
246 if err := os.MkdirAll(dir, 0755); err != nil {
247 t.Errorf("failed to create %s directory: %v", dir, err)
256 dir := rootDir
258 dir = filepath.Join(dir, tt.path)
259 if err := os.MkdirAll(dir, 0755); err != nil {
260 t.Errorf("failed to create %s directory: %v", dir, err)
269 if err := os.Chdir(dir); err != nil {
270 t.Fatalf("failed to change directory to %s: %v", dir, err)
286 dir string
[all …]
Dcleanbuild_test.go30 dir, err := ioutil.TempDir("", "testcleanoldfiles")
34 defer os.RemoveAll(dir)
42 if f, err := os.Create(filepath.Join(dir, name)); err != nil {
51 if err := ioutil.WriteFile(filepath.Join(dir, ".installed"), data, 0666); err != nil {
55 cleanOldFiles(ctx, dir, ".installed")
64 if foundFiles, err := ioutil.ReadDir(dir); err == nil {
Dconfig.go273 func NewBuildActionConfig(action BuildAction, dir string, ctx Context, args ...string) Config {
274 return NewConfig(ctx, getConfigArgs(action, dir, ctx, args)...)
279 func getConfigArgs(action BuildAction, dir string, ctx Context, args []string) []string {
288 dir, err = filepath.EvalSymlinks(dir)
290 ctx.Fatalf("Unable to evaluate symlink of %s: %v", dir, err)
292 dir, err = filepath.Abs(dir)
294 ctx.Fatalf("Unable to find absolute path %s: %v", dir, err)
296 relDir, err := filepath.Rel(topDir, dir)
302 ctx.Fatalf("Directory %s is not under the source tree %s", dir, topDir)
323 if topDir == dir {
[all …]
Dutil.go63 for _, dir := range dirs {
64 err := os.MkdirAll(dir, 0777)
66 ctx.Fatalf("Error creating %s: %q\n", dir, err)
74 for _, dir := range dirs {
77 err := os.RemoveAll(dir)
83 dir == pathErr.Path || seenErr[pathErr.Path] {
85 ctx.Fatalf("Error removing %s: %q\n", dir, err)
/build/make/core/
Dstatic_java_library.mk27 intermediates.COMMON := $(call local-intermediates-dir,COMMON)
51 $(foreach dir, $(LOCAL_RESOURCE_DIR), \
52 $(addprefix $(dir)/, \
54 $(call find-subdir-assets,$(dir)) \
119 $(call intermediates-dir-for,APPS,framework-res,,COMMON)/package-export.apk
124 $(call intermediates-dir-for,JAVA_LIBRARIES,$(l),,COMMON)/export_proguard_flags))
202 $(hide) rm -rf $(dir $@)aar && mkdir -p $(dir $@)aar/res
203 $(hide) cp $(PRIVATE_ANDROID_MANIFEST) $(dir $@)aar/AndroidManifest.xml
204 $(hide) cp $(PRIVATE_CLASSES_JAR) $(dir $@)aar/classes.jar
206 $(hide) $(foreach res,$(PRIVATE_RESOURCE_DIR),cp -Rfn $(res)/* $(dir $@)aar/res;)
[all …]
Ddefinitions.mk165 define my-dir
169 $(error my-dir must be called before including any other makefile.) \
171 $(patsubst %/,%,$(dir $(LOCAL_MODULE_MAKEFILE))) \
194 --mindepth=2 $(addprefix --dir=,$(1)) Android.mk)
203 $(call all-makefiles-under,$(call my-dir))
214 $(wildcard $(addsuffix /Android.mk, $(addprefix $(call my-dir)/,$(1))))
488 $(call find-parent-file,$(patsubst %/,%,$(dir $(1))),$(2)) \
563 define intermediates-dir-for
567 $(error $(LOCAL_PATH): Class not defined in call to intermediates-dir-for)) \
570 $(error $(LOCAL_PATH): Name not defined in call to intermediates-dir-for)) \
[all …]
/build/make/tools/droiddoc/templates-ndk/assets/css/
Dfullscreen.css54 [dir='rtl'] .col-1, [dir='rtl'] .col-2, [dir='rtl'] .col-3, [dir='rtl'] .col-4, [dir='rtl'] .col-5, selector
55 [dir='rtl'] .col-6, [dir='rtl'] .col-7, [dir='rtl'] .col-8, [dir='rtl'] .col-9, [dir='rtl'] .col-10, selector
56 [dir='rtl'] .col-11, [dir='rtl'] .col-12 { selector
/build/soong/scripts/
Dsetup_go_workspace_for_soong.sh55 local dir
56 if ! dir="$("${readlink}" -e $(dirname "$0"))"; then
60 dir=${dir}/../../..
61 if ! dir="$("${readlink}" -e "${dir}")"; then
65 echo "${dir}"
/build/blueprint/bootstrap/
Dcleanup.go123 for _, dir := range under {
124 if strings.HasPrefix(filePath, dir) {
162 for dir := filepath.Dir(path); dir != cwd; dir = filepath.Dir(dir) {
163 err = os.Remove(dir)
/build/soong/rust/
Dcompiler.go35 func NewBaseCompiler(dir, dir64 string, location installLocation) *baseCompiler { argument
38 dir: dir,
111 dir string member
219 dir := compiler.dir
221 dir = compiler.dir64
224 dir = filepath.Join(dir, ctx.Target().NativeBridgeRelativePath)
227 dir = filepath.Join(dir, ctx.Arch().ArchType.String())
229 return android.PathForModuleInstall(ctx, dir, compiler.subDir,
/build/soong/
Dbuild_kzip.bash24 build/soong/soong_ui.bash --build-mode --all-modules --dir=$PWD -k merge_zips xref_cxx xref_java
32 for dir in blueprint soong; do
33 (cd "build/$dir";
35 --canonicalize_package_corpus --output "${abspath_out}/soong/build_${dir}.go.kzip" ./...
/build/make/tools/fs_config/
DAndroid.mk15 LOCAL_PATH := $(call my-dir)
99 @mkdir -p $(dir $@)
124 @mkdir -p $(dir $@)
150 @mkdir -p $(dir $@)
174 @mkdir -p $(dir $@)
201 @mkdir -p $(dir $@)
225 @mkdir -p $(dir $@)
252 @mkdir -p $(dir $@)
276 @mkdir -p $(dir $@)
303 @mkdir -p $(dir $@)
[all …]
/build/soong/rust/config/
Dlints.go133 func ClippyLintsForDir(dir string) (bool, string) {
135 if strings.HasPrefix(dir, pathCheck.PathPrefix) {
143 func RustcLintsForDir(dir string) string {
145 if strings.HasPrefix(dir, pathCheck.PathPrefix) {

1234567