Home
last modified time | relevance | path

Searched +full:ninja +full:- +full:linux (Results 1 – 20 of 20) sorted by relevance

/build/soong/makedeps/
Ddeps_test.go7 // http://www.apache.org/licenses/LICENSE-2.0
32 // These come from the ninja test suite
35 input: "build/ninja.o: ninja.cc ninja.h eval_env.h manifest_parser.h",
37 Output: "build/ninja.o",
39 "ninja.cc",
40 "ninja.h",
108 // Ninja includes a number of '=', but our parser can't handle that,
119 en@quot.header~ t+t-x!1 \
126 "t+t-x!1",
132 // Ninja's UnifyMultipleOutputs and RejectMultipleDifferentOutputs tests have been omitted,
[all …]
/build/blueprint/.github/workflows/
Dbuild.yml12 runs-on: ubuntu-latest
19 - name: Set up Go ${{ matrix.go }}
20 uses: actions/setup-go@v2
22 go-version: ${{ matrix.go }}
25 - name: Check out code
28 - name: Install ninja
30 mkdir -p ${GITHUB_WORKSPACE}/ninja-bin; cd ${GITHUB_WORKSPACE}/ninja-bin
31 wget https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-linux.zip
32 unzip ninja-linux.zip
33 rm ninja-linux.zip
[all …]
/build/soong/ui/build/
Dninja.go7 // http://www.apache.org/licenses/LICENSE-2.0
30 // Constructs and runs the Ninja command line with a restricted set of
31 // environment variables. It's important to restrict the environment Ninja runs
34 ctx.BeginTrace(metrics.PrimaryNinja, "ninja")
37 // Sets up the FIFO status updater that reads the Ninja protobuf output, and
38 // translates it to the soong_ui status output, displaying real-time
44 executable := config.PrebuiltBuildTool("ninja")
46 "-d", "keepdepfile",
47 "-d", "keeprsp",
48 "-d", "stats",
[all …]
DAndroid.bp7 // http://www.apache.org/licenses/LICENSE-2.0
16 default_applicable_licenses: ["Android-Apache-2.0"],
20 name: "soong-ui-build-paths",
32 name: "soong-ui-build",
36 "blueprint-bootstrap",
37 "soong-ui-build-paths",
38 "soong-ui-logger",
39 "soong-ui-metrics",
40 "soong-ui-status",
41 "soong-ui-terminal",
[all …]
Dconfig.go7 // http://www.apache.org/licenses/LICENSE-2.0
102 // Bazel-related build modes.
130 // Default matching ninja
223 // Always set ASAN_SYMBOLIZER_PATH so that ASAN-based tools can symbolize any crashes
225 "llvm-binutils-stable/llvm-symbolizer")
255 // Configure Java-related variables, including adding it to $PATH
383 // If the arguments contains GET-INSTALL-PATH, change the target name prefix from MODULES-IN- to
384 // GET-INSTALL-PATH-IN- to extract the installation path instead of building the modules.
385 targetNamePrefix := "MODULES-IN-"
386 if inList("GET-INSTALL-PATH", configArgs) {
[all …]
/build/blueprint/bootstrap/
Dbootstrap.go7 // http://www.apache.org/licenses/LICENSE-2.0
51 return fmt.Sprintf("-c %d", numCpu)
59 Command: "GOROOT='$goRoot' $compileCmd $parallelCompile -o $out.tmp " +
60 "$debugFlags -p $pkgPath -complete $incFlags -pack $in && " +
61 "if cmp --quiet $out.tmp $out; then rm $out.tmp; else mv -f $out.tmp $out; fi",
70 Command: "GOROOT='$goRoot' $linkCmd -o $out.tmp $libDirFlags $in && " +
71 "if cmp --quiet $out.tmp $out; then rm $out.tmp; else mv -f $out.tmp $out; fi",
80 Command: "$goTestMainCmd -o $out -pkg $pkg $in",
88 Command: "$pluginGenSrcCmd -o $out -p $pkg $plugins",
96 Command: "$goTestRunnerCmd -p $pkgSrcDir -f $out -- $in -test.short",
[all …]
/build/soong/docs/
Dperf.md35 0:01 Installed file list: out/target/product/generic_arm64/installed-files.txt
39 …/product/generic_arm64/obj/PACKAGING/target_files_intermediates/aosp_arm64-target_files-6663974.zip
40 0:01 Package: out/target/product/generic_arm64/aosp_arm64-img-6663974.zip
41 …0:01 Dist: /buildbot/dist_dirs/aosp-master-linux-aosp_arm64-userdebug/6663974/aosp_arm64-img-66639…
53 the `-cpuprofile`, `-trace`, and `-memprofile` command line arguments, but we
60 important for the fast-path (detecting whether it needs to regenerate the ninja
61 file) to be fast however. And it shouldn't hit the slow path too often -- so
67 In most cases, we've found that the fast-path is slow because all of the
68 `$(shell)` commands need to be re-executed to determine if their output changed.
75 … 1 mkdir -p out/target/product/generic && echo Android/aosp_arm/generic:R/AOSP.MASTER/$(date -d @$…
[all …]
/build/make/
DUsage.txt3 m [-j] [<targets>] [<variable>=<value>...]
14 lunch [<product>-<variant>] # Selects the device and variant to target.
29 A target may be a file path. For example, out/host/linux-x86/bin/adb .
57 ${OUT}/build-<product>*.ninja
58 ${OUT}/soong/build.ninja
69 -j <N> Run <N> processes at once
70 -j Autodetect the number of processes to run at once,
75 passed as command-line arguments. For example:
83 OUT_DIR The directory in which to place non-distribution
Denvsetup.sh7 - lunch: lunch <product_name>-<build_variant>
11 - tapas: tapas [<App1> <App2> ...] [arm|x86|arm64|x86_64] [eng|userdebug|user]
13 - banchan: banchan <module1> [<module2> ...] [arm|x86|arm64|x86_64] [eng|userdebug|user]
15 - croot: Changes directory to the top of the tree, or a subdirectory thereof.
16 - m: Makes from the top of the tree.
17 - mm: Builds and installs all of the modules in the current directory, and their
19 - mmm: Builds and installs all of the modules in the supplied directories, and their
22 - mma: Same as 'mm'
23 - mmma: Same as 'mmm'
24 - provision: Flash device with all required partitions. Options will be passed on to fastboot.
[all …]
DCleanSpec.mk7 # http://www.apache.org/licenses/LICENSE-2.0
22 # $(call add-clean-step, touch -c external/sqlite/sqlite3.h)
23 # $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES/libz_intermediates)
25 # Always use "touch -c" and "rm -f" or "rm -rf" to gracefully deal with
31 # If you need to re-do something that's already mentioned, just copy
42 #$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/AndroidTests_intermediates)
43 #$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/core_intermediates)
44 #$(call add-clean-step, find $(OUT_DIR) -type f -name "IGTalkSession*" -print0 | xargs -0 rm -f)
45 #$(call add-clean-step, rm -rf $(PRODUCT_OUT)/data/*)
47 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS)
[all …]
/build/soong/scripts/
Dreverse-deps.sh3 set -eu
11 # http://www.apache.org/licenses/LICENSE-2.0
19 # Tool to evaluate the transitive closure of the ninja dependency graph of the
28 Evaluate the reverse transitive closure of ninja targets depending on one or
33 -(no)quiet Suppresses progress output to stderr and interactive
34 alias -(no)q prompts. By default, when stderr is a tty, progress gets
39 -sep=<delim> Use 'delim' as output field separator between notice
43 -csv Shorthand for -sep=','
49 to setup the build environment, choose a target platform, and build the ninja
53 function die() { echo -e "${*}" >&2; exit 2; }
[all …]
Dtransitive-deps.sh3 set -eu
11 # http://www.apache.org/licenses/LICENSE-2.0
19 # Tool to evaluate the transitive closure of the ninja dependency graph of the
28 Evaluate the transitive closure of files and ninja targets that one or more
33 -(no)order_deps Whether to include order-only dependencies. (Default false)
34 -(no)implicit Whether to include implicit dependencies. (Default true)
35 -(no)explicit Whether to include regular / explicit deps. (Default true)
37 -nofollow Unanchored regular expression. Matching paths and targets
41 e.g. -nofollow='*.so' not -nofollow='.so$'
42 -nofollow='*.so|*.dex' or -nofollow='*.so' -nofollow='.dex'
[all …]
/build/soong/tests/
Dbootstrap_test.sh1 #!/bin/bash -eu
3 set -o pipefail
18 local bootstrap_mtime1=$(stat -c "%y" out/soong/.bootstrap/build.ninja)
19 local output_mtime1=$(stat -c "%y" out/soong/build.ninja)
21 local bootstrap_mtime2=$(stat -c "%y" out/soong/.bootstrap/build.ninja)
22 local output_mtime2=$(stat -c "%y" out/soong/build.ninja)
26 fail "Bootstrap Ninja file did not change on null build"
30 fail "Output Ninja file changed on null build"
37 local mtime1=$(stat -c "%y" out/soong/.bootstrap/build.ninja)
39 sed -i 's/pluginGenSrcCmd/pluginGenSrcCmd2/g' build/blueprint/bootstrap/bootstrap.go
[all …]
/build/soong/ui/metrics/metrics_proto/
Dmetrics.proto7 // http://www.apache.org/licenses/LICENSE-2.0
51 // The target arch variant information, eg. armv7-a-neon.
63 // The host os information, eg. linux.
66 // The host os extra information, eg. Linux-4.17.0-3rodete2-amd64-x86_64-Debian-GNU.
90 // The metrics for calling Ninja.
Dmetrics.pb.go1 // Code generated by protoc-gen-go. DO NOT EDIT.
17 // This is a compile-time assertion to ensure that this generated file
171 // The target arch variant information, eg. armv7-a-neon.
179 // The host os information, eg. linux.
181 // The host os extra information, eg. Linux-4.17.0-3rodete2-amd64-x86_64-Debian-GNU.
197 // The metrics for calling Ninja.
211 XXX_NoUnkeyedLiteral struct{} `json:"-"`
212 XXX_unrecognized []byte `json:"-"`
213 XXX_sizecache int32 `json:"-"`
439 XXX_NoUnkeyedLiteral struct{} `json:"-"`
[all …]
/build/soong/cc/config/
Dglobal.go7 // http://www.apache.org/licenses/LICENSE-2.0
26 // will save bytes in build.ninja so they aren't repeated for every file
28 "-DANDROID",
29 "-fmessage-length=0",
30 "-W",
31 "-Wall",
32 "-Wno-unused",
33 "-Winit-self",
34 "-Wpointer-arith",
35 "-Wunreachable-code-loop-increment",
[all …]
/build/soong/android/
Dbazel_handler.go7 // http://www.apache.org/licenses/LICENSE-2.0
44 // all request-relevant information about a target and returns a string containing
47 // - `target` is the only parameter to this function (a configured target).
48 // - The return value must be a string.
49 // - The function body should not be indented outside of its own scope.
68 // TODO(cparsons): Other cquery-related methods should be added here.
324 cmdFlags := []string{"--output_base=" + absolutePath(paths.outputBase), command.command}
326 cmdFlags = append(cmdFlags, "--profile="+shared.BazelMetricsFilename(paths, runName))
330 // non-canonicalized to @sourceroot labels, and thus be invalid when
336 fmt.Sprintf("--platforms=%s", "//build/bazel/platforms:android_x86_64"))
[all …]
Dpaths.go7 // http://www.apache.org/licenses/LICENSE-2.0
186 // out/ - make install files go here.
187 // out/soong - this is the buildDir passed to NewTestConfig()
188 // ... - the source files
358 // omitted from the list, and dependencies are added so that we're re-run when they are added.
738 for i := len(list) - 1; i >= totalSkip; i-- {
740 for j := i - 1; j >= totalSkip; j-- {
759 ret[i] = list[len(list)-1-i]
771 return -1
775 return indexPathList(p, list) != -1
[all …]
/build/make/core/
Ddefinitions.mk8 # http://www.apache.org/licenses/LICENSE-2.0
37 # sub-variables.
51 # of all targets for a particular tag. The top-level variable
55 # its sub-variables.)
62 # These all have an order-only dependency on the copied headers
133 define print-vars
148 define true-or-empty
155 define gcno-touch-rule
157 touch -c $$@
168 define my-dir
[all …]
Dmain.mk3 $(warning Either use 'envsetup.sh; m' or 'build/soong/soong_ui.bash --make-mode')
11 # the top of the source tree, for example when "make -C" is used in m/mm/mmm.
36 YACC :=$= $(BISON) -d
42 # when using ninja.
43 $(shell mkdir -p $(SOONG_OUT_DIR) && \
44 echo -n $(BUILD_NUMBER) > $(SOONG_OUT_DIR)/build_number.tmp; \
45 if ! cmp -s $(SOONG_OUT_DIR)/build_number.tmp $(SOONG_OUT_DIR)/build_number.txt; then \
56 DATE_FROM_FILE := date -d @$(BUILD_DATETIME_FROM_FILE)
71 $(shell mkdir -p $(EMPTY_DIRECTORY) && rm -rf $(EMPTY_DIRECTORY)/*)
73 # CTS-specific config.
[all …]