blob: 9e9d6a188f8c51b8f623d7e87407412f4854b991 [file] [log] [blame]
Steven Moreland35496592022-04-19 00:57:45 +00001#!/bin/bash
2
Steven Moreland4d4b5802022-06-02 17:21:30 +00003set -ex
Steven Moreland35496592022-04-19 00:57:45 +00004
Steven Moreland4d4b5802022-06-02 17:21:30 +00005function finalize_main() {
6 local top="$(dirname "$0")"/../..
Steven Moreland35496592022-04-19 00:57:45 +00007
Steven Moreland4d4b5802022-06-02 17:21:30 +00008 # default target to modify tree and build SDK
9 local m="$top/build/soong/soong_ui.bash --make-mode TARGET_PRODUCT=aosp_arm64 TARGET_BUILD_VARIANT=userdebug"
Steven Moreland35496592022-04-19 00:57:45 +000010
Alex Buynytskyy3bd1b912022-09-22 11:30:53 -070011 # Build finalization artifacts.
12 source $top/build/make/finalize-aidl-vndk-sdk-resources.sh
Alex Buynytskyy0842d212022-09-16 09:33:33 -070013
Hsin-Yi Chen6c2353d2022-07-08 12:09:10 +080014 # This command tests:
15 # The release state for AIDL.
16 # ABI difference between user and userdebug builds.
Alex Buynytskyy0842d212022-09-16 09:33:33 -070017 # Resource/SDK finalization.
Hsin-Yi Chen6c2353d2022-07-08 12:09:10 +080018 # In the future, we would want to actually turn the branch into the REL
19 # state and test with that.
Devin Mooree3118802022-11-08 21:32:26 +000020 AIDL_FROZEN_REL=true $m
Steven Moreland392499b2022-04-22 22:07:27 +000021
Steven Moreland4d4b5802022-06-02 17:21:30 +000022 # Build SDK (TODO)
23 # lunch sdk...
24 # m ...
25}
Steven Moreland35496592022-04-19 00:57:45 +000026
Steven Moreland4d4b5802022-06-02 17:21:30 +000027finalize_main
Alex Buynytskyy0842d212022-09-16 09:33:33 -070028