Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c4dc1f69 authored by Jihoon Kang's avatar Jihoon Kang
Browse files

Disable WITHOUT_CHECK_API for SDK products

SDK products, which are required to build the SDK, require checkapi
to run in order to generate the exportable artifacts, which are copied
to the dist directory. Thus, this change adds a conditional to emit an
error when WITHOUT_CHECK_API environment variable is set when the target
product is a SDK variant.

Test: lunch sdk-trunk_staging-eng && m WITHOUT_CHECK_API=true and observe the expected error being emitted
Bug: 329374072
Change-Id: I0dc628742c49845792b03f9af1ea60cd9eb4b8c3
parent a0a131aa
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -30,3 +30,7 @@ PRODUCT_BRAND := Android
PRODUCT_DEVICE := mainline_x86

PRODUCT_BUILD_FROM_SOURCE_STUB := true

ifeq ($(WITHOUT_CHECK_API),true)
  $(error WITHOUT_CHECK_API cannot be set to true for SDK product builds)
endif