You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jianglk.darker
7ee447c011
|
4 months ago | |
---|---|---|
.. | ||
README.md | 4 months ago | |
android_apps.txt | 4 months ago | |
apex_available.txt | 4 months ago | |
libc.txt | 4 months ago | |
nocrt.txt | 4 months ago | |
run_all_queries.sh | 4 months ago |
README.md
Examples of Bazel queries in the QueryView
Warning: This feature is undergoing active development and the generated Bazel BUILD files and other user-facing APIs will change without warning. We recommend to use this feature for learning, exploration, information gathering and debugging purposes only.
Usage
Setup your AOSP product config and create the queryview directory:
source build/envsetup.sh
lunch aosp_arm # or your preferred target
m queryview
Then, run bazel query
with the queryview
config, and --query_file
pointing
to the file containing the query expression to run for the current product
configuration:
bazel query --config=queryview --query_file=build/bazel/examples/queries/android_app.txt
Alternatively, you can also write the expression directly in the command:
bazel query --config=queryview 'kind("android_app rule", //...)'
Examples
android_apps
: lists allandroid_app
modules for the current product configurationnocrt
: modules withnocrt: True
apex_available
: modules with//apex_available:platform
in theapex_available
list propertylibc_variant
: all variants forlibc