Home
last modified time | relevance | path

Searched full:build (Results 1 – 25 of 653) sorted by relevance

12345678910>>...27

/build/make/tools/
Dbuildinfo.sh3 echo "# begin build properties"
6 # The ro.build.id will be set dynamically by init, by appending the unique vbmeta digest.
8 echo "ro.build.legacy.id=$BUILD_ID"
10 echo "ro.build.id=$BUILD_ID"
12 echo "ro.build.display.id=$BUILD_DISPLAY_ID"
13 echo "ro.build.version.incremental=$BUILD_NUMBER"
14 echo "ro.build.version.sdk=$PLATFORM_SDK_VERSION"
15 echo "ro.build.version.preview_sdk=$PLATFORM_PREVIEW_SDK_VERSION"
16 echo "ro.build.version.preview_sdk_fingerprint=$PLATFORM_PREVIEW_SDK_FINGERPRINT"
17 echo "ro.build.version.codename=$PLATFORM_VERSION_CODENAME"
[all …]
Dexercise_compare_builds4 # build/make/tools/exercise_compare_builds
6 HIDE_BUILD_OUTPUT=--hide-build-output
15 echo ./build/make/tools/compare_builds.py $HIDE_BUILD_OUTPUT --target incidentd $@
17 time ./build/make/tools/compare_builds.py $HIDE_BUILD_OUTPUT --target incidentd $@
24 run "Incremental build, Separate work dirs (invalid flag combo, should error out)" \
29 # Each grouping starts with a build, and the following ones use --no-build to save time
33 --no-build --subdirs
35 --no-build --subdirs system
40 --no-build --no-check-out-dir --subdirs
42 --no-build --no-check-out-dir --subdirs system
[all …]
/build/blueprint/tests/
Dtest_tree_tests.sh32 #confirm no build.ninja file is rebuilt when no change happens
35 OLDTIME_BOOTSTRAP=$(mtime .bootstrap/build.ninja)
36 OLDTIME=$(mtime build.ninja)
41 if [ ${OLDTIME} != $(mtime build.ninja) ]; then
42 echo "unnecessary build.ninja regeneration for null build" >&2
46 if [ ${OLDTIME_BOOTSTRAP} != $(mtime .bootstrap/build.ninja) ]; then
47 echo "unnecessary .bootstrap/build.ninja regeneration for null build" >&2
51 #confirm no build.ninja file is rebuilt when a new directory is created
57 if [ ${OLDTIME} != $(mtime build.ninja) ]; then
58 echo "unnecessary build.ninja regeneration for new empty directory" >&2
[all …]
/build/bazel/docs/
Dconcepts.md1 # Android Build System Concepts
4 build system components and concepts of the Android build system and Bazel,
10 Android Platform build system, and how each component maps to a concept in
13 |Android build system component|Description|Mapping to Bazel concepts|
15build logic in `.mk` scripts. Declares buildable units in `Android.mk`. Generates Ninja file direc…
16 |Blueprint|Build definition syntax. Build syntax parser. Internal data structures like Modules/Vari…
17build logic in Go. Declares build units in `Android.bp`, parsed by Blueprint. Uses Blueprint to ge…
20 …t + Kati + Soong + Ninja + atest|The entire build pipeline for Android.|Conceptually similar to `b…
22 …er in use. Entire build system, replaced by the tools above.|Loading, analysis, execution phases. …
23 |`Android.bp`|Build definition file for Soong.|`BUILD.bazel` or `BUILD`.|
[all …]
/build/bazel/
Dcommon.bazelrc4 build --platforms //build/bazel/platforms:android_x86_64
7 build --incompatible_enable_cc_toolchain_resolution
10 build --tool_java_runtime_version=local_jdk
13 build --experimental_strict_action_env
16 build --experimental_allow_unresolved_symlinks
18 # Enable usage of cc_shared_library build APIs
19 build --experimental_cc_shared_library
24 build --features no_copts_tokenization
27 build --noexperimental_enable_aggregating_middleman
30 build --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
[all …]
/build/soong/tests/
Dbootstrap_test.sh5 # This test exercises the bootstrapping process of the build system
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
42 local mtime2=$(stat -c "%y" out/soong/.bootstrap/build.ninja)
[all …]
Dbp2build_bazel_test.sh43 if [[ ! -f "./out/soong/workspace/foo/convertible_soong_module/BUILD" ]]; then
44 fail "./out/soong/workspace/foo/convertible_soong_module/BUILD was not generated"
47 if [[ ! -f "./out/soong/workspace/foo/unconvertible_soong_module/BUILD" ]]; then
48 fail "./out/soong/workspace/foo/unconvertible_soong_module/BUILD was not generated"
51 if ! grep "the_answer" "./out/soong/workspace/foo/convertible_soong_module/BUILD"; then
52 fail "missing BUILD target the_answer in convertible_soong_module/BUILD"
55 if grep "not_the_answer" "./out/soong/workspace/foo/unconvertible_soong_module/BUILD"; then
56 fail "found unexpected BUILD target not_the_answer in unconvertible_soong_module/BUILD"
59 if ! grep "filegroup" "./out/soong/workspace/foo/unconvertible_soong_module/BUILD"; then
60 fail "missing filegroup in unconvertible_soong_module/BUILD"
[all …]
/build/bazel/platforms/
DBUILD.bazel12 # These model after the arch and OS definitions in build/soong/android/arch.go.
21 "//build/bazel/platforms/arch:x86",
22 "//build/bazel/platforms/os:linux",
29 "//build/bazel/platforms/arch:x86_64",
30 "//build/bazel/platforms/os:linux",
39 "//build/bazel/platforms/arch:arm64",
40 "//build/bazel/platforms/os:linux_bionic",
47 "//build/bazel/platforms/arch:x86_64",
48 "//build/bazel/platforms/os:linux_bionic",
56 "//build/bazel/platforms/arch:x86_64",
[all …]
/build/blueprint/bootstrap/
Ddoc.go17 // such a build are:
27 // Blueprint library and the build logic specific to the source tree. It is
28 // used to generate the Ninja file that describes how to build the entire source
34 // sets primaryBuilder to true the build will fail.
46 // "my/custom/build/logic"
57 // // Create the build context.
77 // the build bootstrapping:
81 // 3. The build wrapper script
85 // Blueprint library and the custom build logic for the source tree. It should
89 // The bootstrap script is a small script to setup the build directory, writing
[all …]
/build/bazel/scripts/milestone-2/
Ddemo.sh19 # buildable Bazel BUILD targets. Run "./demo help" for more info.
26 A demo script for the Android.bp to BUILD file converter.
30 ./demo.sh generate -- runs the bp2build converter to generate BUILD files from Android.bp files.
32 ./demo.sh build -- runs the bazel build command for all targets in //bionic/libc, recursively.
33 ./demo.sh full -- runs the generate, query and build steps in sequence.
39 # We're in <root>/build/bazel/scripts/milestone-2
61 # Run the bp2build converter to generate BUILD files into out/soong/bp2build.
64 …GENERATE_BAZEL_FILES=true "${AOSP_ROOT}/build/soong/soong_ui.bash" --make-mode nothing --skip-soon…
65 log "Successfully generated BUILD files in out/soong/bp2build."
74 # Use bazel to build the generated targets in the //bionic/libc package.
[all …]
/build/make/tools/releasetools/
Dtest_non_ab_ota.py82 'build.prop': common.PartitionBuildProps.FromDictionary(
85 'ro.build.fingerprint': 'build-fingerprint-target',
86 'ro.build.version.incremental': 'build-version-incremental-target',
87 'ro.build.version.sdk': '27',
88 'ro.build.version.security_patch': '2017-12-01',
89 'ro.build.date.utc': '1500000000'}
93 'build.prop': common.PartitionBuildProps.FromDictionary(
96 'ro.build.thumbprint': 'build-thumbprint',
97 'ro.build.bar': 'build-bar'}
99 'vendor.build.prop': common.PartitionBuildProps.FromDictionary(
[all …]
Dtest_sign_target_files_apks.py43 …package.pem" container_certificate="build/make/target/product/security/testkey.x509.pem" container…
44 …ckage_2.pem" container_certificate="build/make/target/product/security/testkey.x509.pem" container…
63 ('--prop com.android.build.boot.os_version:R '
64 '--prop com.android.build.boot.security_patch:2019-09-05'),
66 ('--prop com.android.build.system.os_version:R '
67 '--prop com.android.build.system.security_patch:2019-09-05 '
68 '--prop com.android.build.system.fingerprint:'
71 ('--prop com.android.build.vendor.os_version:R '
72 '--prop com.android.build.vendor.security_patch:2019-09-05 '
73 '--prop com.android.build.vendor.fingerprint:'
[all …]
Dtest_ota_from_target_files.py111 'ro.build.index={}\ndef=2\nxyz=foo\na.b.c=bar\n'.format(i))
120 self.assertEqual('{}'.format(i), oem_dict['ro.build.index'])
125 'build.prop': common.PartitionBuildProps.FromDictionary(
128 'ro.build.fingerprint': 'build-fingerprint-target',
129 'ro.build.version.incremental': 'build-version-incremental-target',
130 'ro.build.version.sdk': '27',
131 'ro.build.version.security_patch': '2017-12-01',
132 'ro.build.date.utc': '1500000000'}
137 'build.prop': common.PartitionBuildProps.FromDictionary(
140 'ro.build.fingerprint': 'build-fingerprint-source',
[all …]
/build/soong/tradefed/
Dconfig.go26 pctx.SourcePathVariable("AutoGenTestConfigScript", "build/make/tools/auto_gen_test_config.py")
27 …pctx.SourcePathVariable("InstrumentationTestConfigTemplate", "build/make/core/instrumentation_test…
28 pctx.SourcePathVariable("JavaTestConfigTemplate", "build/make/core/java_test_config_template.xml")
29 …pctx.SourcePathVariable("JavaHostTestConfigTemplate", "build/make/core/java_host_test_config_templ…
30 …pctx.SourcePathVariable("JavaHostUnitTestConfigTemplate", "build/make/core/java_host_unit_test_con…
31 …pctx.SourcePathVariable("NativeBenchmarkTestConfigTemplate", "build/make/core/native_benchmark_tes…
32 …pctx.SourcePathVariable("NativeHostTestConfigTemplate", "build/make/core/native_host_test_config_t…
33 …pctx.SourcePathVariable("NativeTestConfigTemplate", "build/make/core/native_test_config_template.x…
34 …pctx.SourcePathVariable("PythonBinaryHostTestConfigTemplate", "build/make/core/python_binary_host_…
35 …pctx.SourcePathVariable("RustDeviceTestConfigTemplate", "build/make/core/rust_device_test_config_t…
[all …]
/build/make/
Dhelp.sh9 message='The basic Android build process is:
12 source build/envsetup.sh # Add "lunch" (and other utilities and variables)
15 m [<goals>] # Execute the configured build.
18 See '"${SCRIPT_DIR}"'/Usage.txt for more info about build usage and concepts.
20 The parallelism of the build can be set with a -jN argument to "m". If you
21 don'\''t provide a -j argument, the build system automatically selects a parallel
27 checkbuild Build every module defined in the source tree
29 nothing Do not build anything, just parse and validate the build structure
31 java Build all the java code in the source tree
32 native Build all the native code in the source tree
[all …]
DUsage.txt1 Android build system usage:
6 Ways to specify what to build:
7 The common way to specify what to build is to set that information in the
11 source build/envsetup.sh # Run "hmm" after sourcing for more info
15 # Invoke the configured build.
26 If no targets are specified, the build system will build the images
43 During a build, a few log files are generated in ${OUT} (or ${DIST_DIR}/logs
50 list of actions that failed during the build, and their outputs.
55 (after running the build once), split among these two files:
57 ${OUT}/build-<product>*.ninja
[all …]
DREADME.md1 # Android Make Build System
3 This is the Makefile-based portion of the Android Build System.
5 For documentation on how to run a build, see [Usage.txt](Usage.txt)
11 [build-system.html](/core/build-system.html). Our Android.mk files look similar,
12 but are entirely different from the Android.mk files used by the NDK build
14 platform build system -- most are not.
17 new build system written in Go. During the transition, all of these makefiles
19 directly. That's combined with a ninja file read by Soong so that the build
23 [Soong]: https://android.googlesource.com/platform/build/soong/+/master
/build/soong/cmd/soong_ui/
Dmain.go30 "android/soong/ui/build"
43 // A command represents an operation to be executed in the soong build
52 // Stream the build status output into the simple terminal mode.
58 // Creates the build configuration based on the args and build context.
59 config func(ctx build.Context, args ...string) build.Config
65 run func(ctx build.Context, config build.Config, args []string, logsDir string)
72 description: "build the modules by the target name (i.e. soong_docs)",
73 config: func(ctx build.Context, args ...string) build.Config {
74 return build.NewConfig(ctx, args...)
95 flag: "--build-mode",
[all …]
/build/make/tools/docker/
DREADME.md1 The Dockerfile in this directory sets up an Ubuntu Trusty image ready to build
2 a variety of Android branches (>= Lollipop). It's particulary useful to build
5 First, build the image:
9 $ docker build --build-arg userid=$(id -u) --build-arg groupid=$(id -g) --build-arg username=$(id -…
14 $ docker run -it --rm -v $ANDROID_BUILD_TOP:/src android-build-trusty
15 > cd /src; source build/envsetup.sh
/build/soong/cmd/diff_target_files/
Dprops.whitelist2 // Ignore date, version and hostname properties in build.prop and prop.default files.
5 "**/build.prop",
9 "ro\\..*build\\.date=.*",
10 "ro\\..*build\\.date\\.utc=.*",
11 "ro\\..*build\\.version\\.incremental=.*",
12 "ro\\..*build\\.fingerprint=.*",
13 "ro\\.build\\.display\\.id=.*",
14 "ro\\.build\\.description=.*",
15 "ro\\.build\\.host=.*"
/build/soong/scripts/
Dsetup-android-build.sh3 # Sets the current directory as Android build output directory for a
5 # by this script are executed in the Android build environment. E.g.,
10 # mount --bind <build dir> out
11 # . build/envsetup.sh
21 # ~/aosp/build/soong/scripts/setup-android-build.sh aosp_blueline-userdebug
23 # ~/aosp/build/soong/scripts/setup-android-build.sh aosp_cf_arm64_phone-userdebug
24 # sets up build directories in /sdx/blueline and /sdx/cuttlefish respectively.
27 # to build blueline image, and issue
38 # build/ subdirectory.
41 declare -r source="${mydir%/build/soong/scripts}"
[all …]
/build/bazel/ci/
Dbp2build.sh2 # Verifies that bp2build-generated BUILD files for bionic (and its dependencies)
12 # Generate BUILD files into out/soong/bp2build
14 GENERATE_BAZEL_FILES=true "${AOSP_ROOT}/build/soong/soong_ui.bash" --make-mode nothing --skip-soong…
16 …build output marker file to communicate to buildbot that this is not a regular Ninja build, and its
36 # Build targets for various architectures.
44 tools/bazel --max_idle_secs=5 build ${BUILD_FLAGS} --platforms //build/bazel/platforms:android_x86 …
45 tools/bazel --max_idle_secs=5 build ${BUILD_FLAGS} --platforms //build/bazel/platforms:android_x86_…
46 tools/bazel --max_idle_secs=5 build ${BUILD_FLAGS} --platforms //build/bazel/platforms:android_arm …
47 tools/bazel --max_idle_secs=5 build ${BUILD_FLAGS} --platforms //build/bazel/platforms:android_arm6…
50 tools/bazel --max_idle_secs=5 test ${BUILD_FLAGS} ${TEST_FLAGS} //build/bazel/tests/...
/build/bazel/bazel_skylib/rules/
Dcommon_settings.bzl15 """Common build setting rules
16 These rules return a BuildSettingInfo with the value of the build setting.
18 More documentation on how to use build settings at
19 https://docs.bazel.build/versions/master/skylark/config.html#user-defined-build-settings
23 doc = "A singleton provider that contains the raw value of a build setting",
25 "value": "The value of the build setting in the current configuration. " +
27 "or else it will be the build setting's default.",
37 doc = "An int-typed build setting that can be set on the command line",
43 doc = "An int-typed build setting that cannot be set on the command line",
49 doc = "A bool-typed build setting that can be set on the command line",
[all …]
/build/soong/android/
Ddepset_test.go26 a := NewDepSetBuilder(POSTORDER).Direct(PathForTesting("a")).Build()
27 b := NewDepSetBuilder(POSTORDER).Direct(PathForTesting("b")).Transitive(a).Build()
28 c := NewDepSetBuilder(POSTORDER).Direct(PathForTesting("c")).Transitive(a).Build()
29 d := NewDepSetBuilder(POSTORDER).Direct(PathForTesting("d")).Transitive(b, c).Build()
36 a := NewDepSetBuilder(PREORDER).Direct(PathForTesting("a")).Build()
37 b := NewDepSetBuilder(PREORDER).Direct(PathForTesting("b")).Transitive(a).Build()
38 c := NewDepSetBuilder(PREORDER).Direct(PathForTesting("c")).Transitive(a).Build()
39 d := NewDepSetBuilder(PREORDER).Direct(PathForTesting("d")).Transitive(b, c).Build()
46 a := NewDepSetBuilder(TOPOLOGICAL).Direct(PathForTesting("a")).Build()
47 b := NewDepSetBuilder(TOPOLOGICAL).Direct(PathForTesting("b")).Transitive(a).Build()
[all …]
/build/blueprint/
DREADME.md1 Blueprint Build System
14 Whereas there are no meta-build systems one can use as a drop-in replacement for
15 Blueprint, there are a number of build systems that can be used:
17 * [Bazel](https://bazel.build), Google's multi-language build tool to build and
19 * [Soong](https://source.android.com/setup/build), for building the Android
22 designed to build, test and package software
23 * [Buck](https://buck.build), a fast build system that encourages the creation

12345678910>>...27