Lines Matching +full:android +full:- +full:variables
2 # Use of this source code is governed by a BSD-style license that can be
5 import("//build/config/android/abi.gni")
6 import("//build/config/android/copy_ex.gni")
19 …_path/lib/clang/$clang_version/lib/linux/libclang_rt.ubsan_standalone-$sanitizer_arch-android.so" ]
22 …"$clang_base_path/lib/clang/$clang_version/lib/linux/libclang_rt.asan-$sanitizer_arch-android.so" ]
35 # Variables
84 "--clear",
85 "--files=@FileArg($_rebased_libraries_list)",
86 "--files=$_rebased_binaries_list",
90 args += [ "--files=$_rebased_extra_files" ]
97 "--depfile",
99 "--stamp",
111 import("//build/config/android/config.gni")
112 import("//build/config/android/internal_rules.gni")
123 # Declare a target for c-preprocessor-generated java files
128 # This target generates java files using the host C pre-processor. Each file in
129 # sources will be compiled using the C pre-processor. If include_path is
130 # specified, it will be passed (with --I) to the pre-processor.
136 # Variables
137 # sources: list of files to be processed by the C pre-processor. For each
141 # inputs: additional compile-time dependencies. Any files
142 # `#include`-ed in the templates should be listed here.
143 # defines: List of -D arguments for the preprocessor.
148 # "android/java/templates/Foo.template",
151 # "android/java/templates/native_foo_header.h",
166 script = "//build/android/gyp/gcc_preprocess.py"
175 "--include-dirs=$_rebased_include_dirs",
176 "--output",
182 "--define",
199 # Variables
216 script = "//build/android/gyp/java_cpp_enum.py"
222 args = [ "--srcjar=$_rebased_srcjar_path" ] + _rebased_sources
234 # Variables
249 # const char kASwitch = "a-switch";
254 # // Use of this source code is governed by a BSD-style license that can be
280 script = "//build/android/gyp/java_cpp_strings.py"
288 "--srcjar=$_rebased_srcjar_path",
289 "--template=$_rebased_template",
305 # Variables
327 # // Use of this source code is governed by a BSD-style license that can be
353 script = "//build/android/gyp/java_cpp_features.py"
361 "--srcjar=$_rebased_srcjar_path",
362 "--template=$_rebased_template",
373 # Variables
377 # variables: (Optional) A list of variables to make available to the template
392 script = "//build/android/gyp/jinja_template.py"
397 "--loader-base-dir",
399 "--inputs",
401 "--output",
403 "--check-includes",
407 args += [ "--includes=$_rebased_includes" ]
409 if (defined(invoker.variables)) {
410 args += [ "--variables=${invoker.variables}" ]
421 # Variables:
428 # variables must not be set.
445 script = "//build/android/gyp/write_native_libraries_java.py"
448 "--output",
450 "--cpu-family",
456 args += [ "--final" ]
460 "--native-libraries-list",
462 "--depfile",
468 args += [ "--enable-chromium-linker" ]
471 args += [ "--native-lib-32-bit" ]
474 args += [ "--native-lib-64-bit" ]
480 # Declare a target for a set of Android resources generated at build
482 # should match the layout of a regular Android res/ folder (but the
483 # archive should not include a top-level res/ directory).
488 # Variables:
493 # deps: Specifies the dependencies of this target. Any Android resources
507 # "--depfile", rebase_path(_depfile, root_build_dir),
508 # "--output-zip", rebase_path(_zip_archive, root_build_dir),
543 script = "//build/android/gyp/create_r_txt.py"
545 "--resources-zip-path",
547 "--rtxt-path",
553 # Declare a target for processing Android resources as Jinja templates.
555 # This takes an Android resource directory where each resource is a Jinja
557 # which can be consumed by an android resources, library, or apk target.
559 # If this target is included in the deps of an android resources/library/apk,
562 # Variables
565 # variables: (Optional) A list of variables to make available to the template
572 # variables = ["color=red"]
581 script = "//build/android/gyp/jinja_template.py"
587 "--inputs=${_rebased_resources}",
588 "--inputs-base-dir",
590 "--outputs-zip",
592 "--check-includes",
594 if (defined(invoker.variables)) {
595 variables = invoker.variables
596 args += [ "--variables=${variables}" ]
611 # Declare a prebuilt android native library.
617 # same locations non-prebuilt libraries are output.
619 # Variables
635 script = "//build/android/gyp/process_native_prebuilt.py"
656 rebase_path("//buildtools/third_party/eu-strip/bin/eu-strip",
660 "--strip-path=$_strip_tool_path",
661 "--input-path=$_rebased_lib_path",
662 "--stripped-output-path=$_rebased_stripped_ouput_path",
663 "--unstripped-output-path=$_rebased_unstripped_ouput_path",
668 # Declare an Android resources target
670 # This creates a resources zip file that will be used when building an Android
677 # Variables
679 # deps: Specifies the dependencies of this target. Any Android resources
682 # alternative_android_sdk_dep: Optional. Alternative Android system
683 # android java target to use.
698 # r_text_file: (optional) path to pre-generated R.txt to be used when
699 # generating R.java instead of resource-based aapt-generated one.
786 # but keeping for backwards-compatibility.
803 # Since java library targets depend directly on sub-targets rather than
804 # top-level targets, public_deps are not properly propagated, at least
812 # Depend on non-library deps and on __assetres subtargets of library deps.
815 # Expand //foo/java -> //foo/java:java
832 # Declare an Android assets target.
839 # Variables
840 # deps: Specifies the dependencies of this target. Any Android assets
932 script = "//build/android/gyp/validate_inputs.py"
936 "--stamp",
984 _other_deps = _invoker_deps_minus_assetres - _lib_deps
1039 # Supports all variables of java_library(), plus:
1068 # Supports all variables of java_library(), plus:
1071 # main_class: The fully-quallified class name of the processor's entry
1104 # Supports all variables of java_binary().
1120 "//testing/android/junit:junit_test_support",
1148 input_manifest = "//build/android/AndroidManifest.xml"
1182 # apkbuilder step needed only to add android assets to the .ap_ file.
1264 # As of April 2021, adding -XX:TieredStopAtLevel=1 does not affect the
1279 "//build/android:build_config_for_robolectric_srcjar",
1310 # Add non-libary deps, since the __host target does not depend on them.
1322 # Variables
1337 # in the compile-time classpath. These are in addition to library .jars
1347 # included. When specified, all non-matching .class files are stripped.
1362 # supports_android: If true, Android targets (android_library, android_apk)
1364 # subset of Java available on Android.
1365 # bypass_platform_checks: Disables checks about cross-platform (Java/Android)
1373 # into the output jar. Pass a list of length-2 lists with format:
1408 # Supports all variables of java_library().
1428 # Variables:
1468 # if we are java-like and have renaming rules, the main target is the
1478 # target or the java_library_impl if we are java-like.
1491 # If we have a java-like target name we need to provide the expected
1529 script = "//build/android/gyp/zip.py"
1539 # Expand //foo/java -> //foo/java:java
1553 "--depfile",
1555 "--output",
1557 "--no-compress",
1558 "--input-zips=@FileArg($_rebased_build_config:dist_jar:jars)",
1566 # Turbine adds files like: META-INF/TRANSITIVE/.../Foo.class
1568 _excludes += [ "META-INF/*" ]
1571 _excludes += [ "META-INF/*.MF" ]
1574 args += [ "--input-zips-excluded-globs=$_excludes" ]
1590 # Variables:
1644 # per-target dex steps are emitted here since this is using jar files
1655 # Creates an Android .aar library.
1668 # See: https://developer.android.com/studio/projects/android-library.html#aar-contents
1670 # Variables:
1722 script = "//build/android/gyp/dist_aar.py"
1736 "--depfile",
1738 "--output",
1740 "--dependencies-res-zips=@FileArg($_rebased_build_config:deps_info:dependency_zips)",
1741 "--r-text-files=@FileArg($_rebased_build_config:deps_info:dependency_r_txt_files)",
1742 "--proguard-configs=@FileArg($_rebased_build_config:deps_info:proguard_all_configs)",
1745 args += [ "--jars=@FileArg($_rebased_build_config:javac:classpath)" ]
1748 "--jars=@FileArg($_rebased_build_config:deps_info:device_classpath)",
1754 "--android-manifest",
1764 "--native-libraries=$_rebased_native_libraries",
1765 "--abi=$android_app_abi",
1769 args += [ "--jar-excluded-globs=${invoker.jar_excluded_patterns}" ]
1772 args += [ "--jar-included-globs=${invoker.jar_included_patterns}" ]
1776 "--resource-included-globs=${invoker.resource_included_patterns}",
1781 "--resource-excluded-globs=${invoker.resource_excluded_patterns}",
1787 # Declare an Android library target
1789 # This target creates an Android library containing java code and Android
1792 # Supports all variables of java_library(), plus:
1796 # in place of the default android.jar.
1801 # "android/org/chromium/foo/Foo.java",
1802 # "android/org/chromium/foo/FooInterface.java",
1803 # "android/org/chromium/foo/FooService.java",
1836 # Declare an Android robolectric library target
1838 # This target creates an Android library containing java code and Android
1841 # Supports all variables of java_library(), plus:
1848 # "android/org/chromium/foo/FooTest.java",
1849 # "android/org/chromium/foo/FooTestUtils.java",
1850 # "android/org/chromium/foo/FooMock.java",
1892 # Declare an Android library target for a prebuilt jar
1894 # This target creates an Android library containing java code and Android
1897 # Supports all variables of android_library().
1931 sources = [ "//build/android/java/templates/BuildConfig.template" ]
2009 # Creates ProductConfig.java, a file containing product-specific configuration.
2014 # Variables:
2028 sources = [ "//build/android/java/templates/ProductConfig.template" ]
2043 # Declare an Android app module target, which is used as the basis for an
2044 # Android APK or an Android app bundle module.
2046 # Supports all variables of android_library(), plus:
2048 # not contain a <uses-sdk> element. Use [min|target|max]_sdk_version
2051 # png_to_webp: If true, pngs (with the exception of 9-patch) are
2056 # * they are not side-loaded when incremental_install=true.
2074 # is true when building with Chromium for non-test APKs.
2107 # that tags resources with acceptable/non-acceptable optimizations.
2115 # overlay_resources=true. This check is on for non-test targets and
2119 # min_sdk_version: The minimum Android SDK version this target supports.
2121 # target_sdk_version: The target Android SDK version for this target.
2123 # max_sdk_version: The maximum Android SDK version this target supports.
2130 # enable_proguard_checks: Turns on -checkdiscard directives and missing
2146 # suffix_apk_assets_used_by: Prefixes android assets used by the given apk
2190 # Non-base bundle modules create only proto resources.
2195 # Path to the intermediate proto-format resources zip file.
2382 "//build/android/incremental_install/generate_android_manifest.py"
2387 "--disable-isolated-processes",
2388 "--src-manifest",
2390 "--dst-manifest",
2469 # Passing in the --emit-ids mapping will cause aapt2 to assign resources
2499 # (i.e. are non-final and with package ID 0).
2687 [ "$root_gen_dir/build/android/generate_wrap_sh/wrap.sh" ]
2688 _sanitizer_deps += [ "//build/android:generate_wrap_sh" ]
2892 # Injected JaCoCo code causes -checkdiscards to fail.
2895 "//build/android/dcheck_is_off.flags",
2906 # Pure dex-merge.
2916 # per-target dex steps are emitted here since this may use jar files
2970 # Generate size-info/*.jar.info files.
3031 _dex_target = "//build/android/incremental_install:apk_dex"
3046 # All native libraries are side-loaded, so use a placeholder to force
3088 script = "//build/android/incremental_install/write_installer_json.py"
3100 "--apk-path=$_rebased_incremental_apk_path",
3101 "--output-path=$_rebased_incremental_install_json_path",
3102 "--dex-file=@FileArg($_rebased_build_config:deps_info:all_dex_files)",
3105 args += [ "--show-proguard-warning" ]
3108 args += [ "--native-libs=$_native_libs_filearg" ]
3114 args += [ "--native-libs=$_rebased_loadable_modules" ]
3138 script = "//build/android/gyp/create_apk_operations_script.py"
3141 "--script-output-path",
3143 "--target-cpu=$target_cpu",
3147 "--command-line-flags-file",
3153 "--incremental-install-json-path",
3158 "--apk-path",
3169 "--additional-apk",
3175 "//build/android:apk_operations_py",
3176 "//build/android:stack_tools",
3181 data_deps += [ "//build/android/stacktrace:java_deobfuscate" ]
3184 "--proguard-mapping-path",
3206 # This will use library subtargets under-the-hood
3265 # Declare an Android APK target
3267 # This target creates an Android APK containing java code, resources, assets,
3270 # Supports all variables of android_apk_or_module(), plus:
3278 # "android/org/chromium/foo/FooApplication.java",
3279 # "android/org/chromium/foo/FooActivity.java",
3404 # TODO(smaier) - there were some remaining usages of this in angle. Once
3410 # Declare an Android app bundle module target.
3414 # Supports all variables of android_library(), plus:
3419 # added to (optional). Can only be specified for non-base modules.
3541 # Declare an Android instrumentation test runner.
3543 # This target creates a wrapper script to run Android instrumentation tests.
3552 # data_deps: List of non-linked dependencies.
3557 # only be used if |apk_under_test| is an Android app bundle.
3590 script = "//build/android/gyp/create_test_apk_wrapper_script.py"
3599 "--script-output-path",
3601 "--package-name",
3607 "--test-apk-incremental-install-json",
3612 "--test-apk",
3618 "--proguard-mapping-path",
3639 "--additional-apk",
3651 "--additional-apk",
3690 # Declare an Android instrumentation test apk
3692 # This target creates an Android instrumentation test apk.
3694 # Supports all variables of android_apk(), plus:
3703 # "android/org/chromium/foo/FooTestCase.java",
3704 # "android/org/chromium/foo/FooExampleTest.java",
3720 data = [ "$root_build_dir/size-info/${invoker.apk_name}.apk.jar.info" ]
3726 deps = [ "//testing/android/instrumentation:test_runner_java" ]
3770 "//testing/android/proguard_for_test.flags",
3800 # Declare an Android instrumentation test apk with wrapper script.
3802 # This target creates an Android instrumentation test apk with wrapper script
3805 # Supports all variables of android_test_apk.
3837 # Declare an Android gtest apk
3839 # This target creates an Android apk for running gtest-based unittests.
3841 # Variables
3879 "//testing/android/native_test/java/AndroidManifest.xml.jinja2"
3882 variables = [
3905 final_apk_path = "$root_build_dir/${apk_name}_apk/${apk_name}-debug.apk"
3909 "//build/android/gtest_apk:native_test_instrumentation_test_runner_java",
3910 "//testing/android/native_test:native_test_java",
3926 # Variables
3944 script = "//build/android/gyp/aidl.py"
3962 "--aidl-path",
3964 "--imports=$_rebased_imports",
3965 "--srcjar",
3967 "--depfile",
3977 args += [ "--includes=$_rebased_import_paths" ]
3985 # This generates java files from protocol buffers and creates an Android library
3988 # Variables
4037 "--depfile",
4039 "--protoc",
4041 "--proto-path",
4043 "--srcjar",
4060 "--plugin",
4072 "--import-dir",
4092 # This generates java files from flat buffers and creates an Android library
4095 # Variables
4125 script = "//build/android/gyp/flatc_java.py"
4136 "--flatc",
4138 "--import-dir",
4140 "--srcjar",
4147 "--import-dir",
4165 # Declare an Android library target for a prebuilt AAR.
4167 # This target creates an Android library containing java code and Android
4175 # Variables
4187 # strip_resources: Whether to ignore android resources found in the .aar.
4194 # Android related targets.
4208 # need to be replaced by non-empty strings to avoid duplicate targets. (e.g.
4238 _aar_common_args += [ "--ignore-resources" ]
4242 [ "--resource-exclusion-globs=${invoker.resource_exclusion_globs}" ]
4249 exec_script("//build/android/gyp/aar.py",
4252 "--output",
4259 # gn gen --args='target_os="android" update_android_aar_prebuilts=true' out/tmp
4260 # rm -r out/tmp
4296 script = "//build/android/gyp/aar.py" # Unzips the AAR
4299 "--output-dir",
4301 "--assert-info-file",
4434 output_name = "${invoker.target_name}-$_base_output_name"
4514 # Create an Android application bundle from one base android_apk target,
4517 # Variables:
4544 # command_line_flags_file: Optional. If provided, named of the on-device
4545 # file that will be used to store command-line arguments. The default
4548 # APKs use 'chrome-command-line', the WebView one uses
4549 # 'webview-command-line').
4585 # add trace events to all Android views contained in the bundle. It also
4590 # base_module_target = "//chrome/android:chrome_public_apk"
4732 "//build/android/bytecode:trace_event_adder"
4737 script = "//build/android/gyp/trace_event_bytecode_rewriter.py"
4745 "--stamp",
4747 "--depfile",
4749 "--script",
4751 "--classpath",
4752 "@FileArg($_rebased_build_config:android:sdk_jars)",
4753 "--input-jars",
4755 "--output-jars",
4795 # Injected JaCoCo code causes -checkdiscards to fail.
4798 "//build/android/dcheck_is_off.flags",
4824 # This will be a pure dex-merge.
4947 script = "//build/android/gyp/create_app_bundle.py"
4953 "--out-bundle=$_rebased_bundle_path",
4954 "--rtxt-out-path=$_rebased_bundle_path.R.txt",
4955 "--pathmap-out-path=$_rebased_bundle_path.pathmap.txt",
4956 "--module-zips=$_all_rebased_module_zip_paths",
4959 args += [ "--split-dimensions=$_split_dimensions" ]
4962 # Android P+ support loading from stored dex.
4964 args += [ "--compress-dex" ]
4969 "--rotation-config",
4975 args += [ "--warnings-as-errors" ]
4979 …args += [ "--base-allowlist-rtxt-path=@FileArg($_rebased_base_module_build_config:deps_info:base_a…
4988 [ "--base-module-rtxt-path=$_rebased_unused_resources_r_txt_out" ]
4990 …args += [ "--base-module-rtxt-path=@FileArg($_rebased_base_module_build_config:deps_info:r_text_pa…
4994 args += [ "--validate-services" ]
5001 "--uncompressed-assets=@FileArg(" +
5003 "--rtxt-in-paths=@FileArg(" +
5005 "--pathmap-in-paths=@FileArg(" +
5007 "--module-name=" + _module.name,
5013 pool = "//build/config/android:java_cmd_pool($default_toolchain)"
5052 script = "//build/android/gyp/create_bundle_wrapper_script.py"
5064 "//build/android:apk_operations_py",
5065 "//build/android:stack_tools",
5070 "--script-output-path",
5072 "--package-name=@FileArg($_rebased_base_module_build_config:deps_info:package_name)",
5073 "--aapt2",
5075 "--bundle-path",
5077 "--bundle-apks-path",
5079 "--target-cpu=$target_cpu",
5080 "--keystore-path",
5082 "--keystore-password",
5084 "--key-name",
5088 args += [ "--default-modules" ] + invoker.default_modules_for_testing
5092 "--system-image-locales=${invoker.system_image_locale_allowlist}",
5097 "--command-line-flags-file",
5108 "--additional-apk",
5115 "--proguard-mapping-path",
5120 data_deps += [ "//build/android/stacktrace:java_deobfuscate" ]
5124 args += [ "--is-official-build" ]
5181 script = "//build/android/gyp/create_app_bundle_apks.py"
5189 "--bundle",
5191 "--output",
5193 "--aapt2-path",
5195 "--keystore-path",
5197 "--keystore-name",
5199 "--keystore-password",
5203 args += [ "--local-testing" ]
5215 pool = "//build/config/android:java_cmd_pool($default_toolchain)"
5226 # Variables:
5239 script = "//build/android/gyp/create_app_bundle_apks.py"
5246 "--bundle",
5248 "--output",
5250 "--aapt2-path",
5252 "--keystore-path",
5254 "--keystore-name",
5256 "--keystore-password",
5258 "--minimal",
5277 # Generate an Android resources target that contains localized strings
5278 # describing the current locale used by the Android framework to display
5282 # Variables:
5292 script = "//build/android/gyp/create_ui_locale_resources.py"
5295 "--locale-list=${invoker.ui_locales}",
5296 "--output-zip",