2022-04-19 02:57:45 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-06-02 19:21:30 +02:00
|
|
|
set -ex
|
2022-04-19 02:57:45 +02:00
|
|
|
|
2022-06-02 19:21:30 +02:00
|
|
|
function finalize_main() {
|
|
|
|
local top="$(dirname "$0")"/../..
|
2022-04-19 02:57:45 +02:00
|
|
|
|
2022-06-02 19:21:30 +02:00
|
|
|
# default target to modify tree and build SDK
|
|
|
|
local m="$top/build/soong/soong_ui.bash --make-mode TARGET_PRODUCT=aosp_arm64 TARGET_BUILD_VARIANT=userdebug"
|
2022-04-19 02:57:45 +02:00
|
|
|
|
2022-09-22 20:30:53 +02:00
|
|
|
# Build finalization artifacts.
|
|
|
|
source $top/build/make/finalize-aidl-vndk-sdk-resources.sh
|
2022-09-16 18:33:33 +02:00
|
|
|
|
2022-07-08 06:09:10 +02:00
|
|
|
# This command tests:
|
|
|
|
# The release state for AIDL.
|
|
|
|
# ABI difference between user and userdebug builds.
|
2022-09-16 18:33:33 +02:00
|
|
|
# Resource/SDK finalization.
|
2022-07-08 06:09:10 +02:00
|
|
|
# In the future, we would want to actually turn the branch into the REL
|
|
|
|
# state and test with that.
|
2022-11-08 22:32:26 +01:00
|
|
|
AIDL_FROZEN_REL=true $m
|
2022-04-23 00:07:27 +02:00
|
|
|
|
2022-06-02 19:21:30 +02:00
|
|
|
# Build SDK (TODO)
|
|
|
|
# lunch sdk...
|
|
|
|
# m ...
|
|
|
|
}
|
2022-04-19 02:57:45 +02:00
|
|
|
|
2022-06-02 19:21:30 +02:00
|
|
|
finalize_main
|
2022-09-16 18:33:33 +02:00
|
|
|
|