Loading tools/check-flagged-apis/check-flagged-apis.sh +15 −6 Original line number Diff line number Diff line Loading @@ -20,18 +20,27 @@ source $(cd $(dirname $BASH_SOURCE) &> /dev/null && pwd)/../../shell_utils.sh require_top PUBLIC_XML_VERSIONS=out/target/common/obj/PACKAGING/api_versions_public_generated-api-versions.xml SYSTEM_XML_VERSIONS=out/target/common/obj/PACKAGING/api_versions_system_generated-api-versions.xml SYSTEM_SERVER_XML_VERSONS=out/target/common/obj/PACKAGING/api_versions_system_server_generated-api-versions.xml MODULE_LIB_XML_VERSIONS=out/target/common/obj/PACKAGING/api_versions_module_lib_generated-api-versions.xml function m() { $(gettop)/build/soong/soong_ui.bash --build-mode --all-modules --dir="$(pwd)" "$@" } function build() { m sdk dist && m \ m \ check-flagged-apis \ all_aconfig_declarations \ frameworks-base-api-current.txt \ frameworks-base-api-system-current.txt \ frameworks-base-api-system-server-current.txt \ frameworks-base-api-module-lib-current.txt frameworks-base-api-module-lib-current.txt \ $PUBLIC_XML_VERSIONS \ $SYSTEM_XML_VERSIONS \ $SYSTEM_SERVER_XML_VERSONS \ $MODULE_LIB_XML_VERSIONS } function aninja() { Loading @@ -50,7 +59,7 @@ function run() { check-flagged-apis \ --api-signature $(path_to_api_signature_file "frameworks-base-api-current.txt") \ --flag-values $(gettop)/out/soong/.intermediates/all_aconfig_declarations.pb \ --api-versions $(gettop)/out/dist/data/api-versions.xml --api-versions $PUBLIC_XML_VERSIONS (( errors += $? )) echo Loading @@ -58,7 +67,7 @@ function run() { check-flagged-apis \ --api-signature $(path_to_api_signature_file "frameworks-base-api-system-current.txt") \ --flag-values $(gettop)/out/soong/.intermediates/all_aconfig_declarations.pb \ --api-versions $(gettop)/out/dist/system-data/api-versions.xml --api-versions $SYSTEM_XML_VERSIONS (( errors += $? )) echo Loading @@ -66,7 +75,7 @@ function run() { check-flagged-apis \ --api-signature $(path_to_api_signature_file "frameworks-base-api-system-server-current.txt") \ --flag-values $(gettop)/out/soong/.intermediates/all_aconfig_declarations.pb \ --api-versions $(gettop)/out/dist/system-server-data/api-versions.xml --api-versions $SYSTEM_SERVER_XML_VERSONS (( errors += $? )) echo Loading @@ -74,7 +83,7 @@ function run() { check-flagged-apis \ --api-signature $(path_to_api_signature_file "frameworks-base-api-module-lib-current.txt") \ --flag-values $(gettop)/out/soong/.intermediates/all_aconfig_declarations.pb \ --api-versions $(gettop)/out/dist/module-lib-data/api-versions.xml --api-versions $MODULE_LIB_XML_VERSIONS (( errors += $? )) return $errors Loading Loading
tools/check-flagged-apis/check-flagged-apis.sh +15 −6 Original line number Diff line number Diff line Loading @@ -20,18 +20,27 @@ source $(cd $(dirname $BASH_SOURCE) &> /dev/null && pwd)/../../shell_utils.sh require_top PUBLIC_XML_VERSIONS=out/target/common/obj/PACKAGING/api_versions_public_generated-api-versions.xml SYSTEM_XML_VERSIONS=out/target/common/obj/PACKAGING/api_versions_system_generated-api-versions.xml SYSTEM_SERVER_XML_VERSONS=out/target/common/obj/PACKAGING/api_versions_system_server_generated-api-versions.xml MODULE_LIB_XML_VERSIONS=out/target/common/obj/PACKAGING/api_versions_module_lib_generated-api-versions.xml function m() { $(gettop)/build/soong/soong_ui.bash --build-mode --all-modules --dir="$(pwd)" "$@" } function build() { m sdk dist && m \ m \ check-flagged-apis \ all_aconfig_declarations \ frameworks-base-api-current.txt \ frameworks-base-api-system-current.txt \ frameworks-base-api-system-server-current.txt \ frameworks-base-api-module-lib-current.txt frameworks-base-api-module-lib-current.txt \ $PUBLIC_XML_VERSIONS \ $SYSTEM_XML_VERSIONS \ $SYSTEM_SERVER_XML_VERSONS \ $MODULE_LIB_XML_VERSIONS } function aninja() { Loading @@ -50,7 +59,7 @@ function run() { check-flagged-apis \ --api-signature $(path_to_api_signature_file "frameworks-base-api-current.txt") \ --flag-values $(gettop)/out/soong/.intermediates/all_aconfig_declarations.pb \ --api-versions $(gettop)/out/dist/data/api-versions.xml --api-versions $PUBLIC_XML_VERSIONS (( errors += $? )) echo Loading @@ -58,7 +67,7 @@ function run() { check-flagged-apis \ --api-signature $(path_to_api_signature_file "frameworks-base-api-system-current.txt") \ --flag-values $(gettop)/out/soong/.intermediates/all_aconfig_declarations.pb \ --api-versions $(gettop)/out/dist/system-data/api-versions.xml --api-versions $SYSTEM_XML_VERSIONS (( errors += $? )) echo Loading @@ -66,7 +75,7 @@ function run() { check-flagged-apis \ --api-signature $(path_to_api_signature_file "frameworks-base-api-system-server-current.txt") \ --flag-values $(gettop)/out/soong/.intermediates/all_aconfig_declarations.pb \ --api-versions $(gettop)/out/dist/system-server-data/api-versions.xml --api-versions $SYSTEM_SERVER_XML_VERSONS (( errors += $? )) echo Loading @@ -74,7 +83,7 @@ function run() { check-flagged-apis \ --api-signature $(path_to_api_signature_file "frameworks-base-api-module-lib-current.txt") \ --flag-values $(gettop)/out/soong/.intermediates/all_aconfig_declarations.pb \ --api-versions $(gettop)/out/dist/module-lib-data/api-versions.xml --api-versions $MODULE_LIB_XML_VERSIONS (( errors += $? )) return $errors Loading