Loading android/config.go +4 −0 Original line number Diff line number Diff line Loading @@ -900,6 +900,10 @@ func (c *config) NdkAbis() bool { return Bool(c.productVariables.Ndk_abis) } func (c *config) ExcludeDraftNdkApis() bool { return Bool(c.productVariables.Exclude_draft_ndk_apis) } func (c *config) FlattenApex() bool { return Bool(c.productVariables.FlattenApex) } Loading android/variable.go +2 −1 Original line number Diff line number Diff line Loading @@ -259,6 +259,7 @@ type productVariables struct { VendorVars map[string]map[string]string `json:",omitempty"` Ndk_abis *bool `json:",omitempty"` Exclude_draft_ndk_apis *bool `json:",omitempty"` FlattenApex *bool `json:",omitempty"` } Loading cc/ndk_headers.go +15 −0 Original line number Diff line number Diff line Loading @@ -77,6 +77,11 @@ type headerProperties struct { // Path to the NOTICE file associated with the headers. License *string // True if this API is not yet ready to be shipped in the NDK. It will be // available in the platform for testing, but will be excluded from the // sysroot provided to the NDK proper. Draft bool } type headerModule struct { Loading Loading @@ -182,6 +187,11 @@ type versionedHeaderProperties struct { // Path to the NOTICE file associated with the headers. License *string // True if this API is not yet ready to be shipped in the NDK. It will be // available in the platform for testing, but will be excluded from the // sysroot provided to the NDK proper. Draft bool } // Like ndk_headers, but preprocesses the headers with the bionic versioner: Loading Loading @@ -309,6 +319,11 @@ type preprocessedHeadersProperties struct { // Path to the NOTICE file associated with the headers. License *string // True if this API is not yet ready to be shipped in the NDK. It will be // available in the platform for testing, but will be excluded from the // sysroot provided to the NDK proper. Draft bool } type preprocessedHeadersModule struct { Loading cc/ndk_library.go +5 −0 Original line number Diff line number Diff line Loading @@ -91,6 +91,11 @@ type libraryProperties struct { // Private property for use by the mutator that splits per-API level. ApiLevel string `blueprint:"mutated"` // True if this API is not yet ready to be shipped in the NDK. It will be // available in the platform for testing, but will be excluded from the // sysroot provided to the NDK proper. Draft bool } type stubDecorator struct { Loading cc/ndk_sysroot.go +16 −0 Original line number Diff line number Diff line Loading @@ -104,22 +104,38 @@ func (n *ndkSingleton) GenerateBuildActions(ctx android.SingletonContext) { } if m, ok := module.(*headerModule); ok { if ctx.Config().ExcludeDraftNdkApis() && m.properties.Draft { return } installPaths = append(installPaths, m.installPaths...) licensePaths = append(licensePaths, m.licensePath) } if m, ok := module.(*versionedHeaderModule); ok { if ctx.Config().ExcludeDraftNdkApis() && m.properties.Draft { return } installPaths = append(installPaths, m.installPaths...) licensePaths = append(licensePaths, m.licensePath) } if m, ok := module.(*preprocessedHeadersModule); ok { if ctx.Config().ExcludeDraftNdkApis() && m.properties.Draft { return } installPaths = append(installPaths, m.installPaths...) licensePaths = append(licensePaths, m.licensePath) } if m, ok := module.(*Module); ok { if installer, ok := m.installer.(*stubDecorator); ok { if ctx.Config().ExcludeDraftNdkApis() && installer.properties.Draft { return } installPaths = append(installPaths, installer.installPath) } Loading Loading
android/config.go +4 −0 Original line number Diff line number Diff line Loading @@ -900,6 +900,10 @@ func (c *config) NdkAbis() bool { return Bool(c.productVariables.Ndk_abis) } func (c *config) ExcludeDraftNdkApis() bool { return Bool(c.productVariables.Exclude_draft_ndk_apis) } func (c *config) FlattenApex() bool { return Bool(c.productVariables.FlattenApex) } Loading
android/variable.go +2 −1 Original line number Diff line number Diff line Loading @@ -259,6 +259,7 @@ type productVariables struct { VendorVars map[string]map[string]string `json:",omitempty"` Ndk_abis *bool `json:",omitempty"` Exclude_draft_ndk_apis *bool `json:",omitempty"` FlattenApex *bool `json:",omitempty"` } Loading
cc/ndk_headers.go +15 −0 Original line number Diff line number Diff line Loading @@ -77,6 +77,11 @@ type headerProperties struct { // Path to the NOTICE file associated with the headers. License *string // True if this API is not yet ready to be shipped in the NDK. It will be // available in the platform for testing, but will be excluded from the // sysroot provided to the NDK proper. Draft bool } type headerModule struct { Loading Loading @@ -182,6 +187,11 @@ type versionedHeaderProperties struct { // Path to the NOTICE file associated with the headers. License *string // True if this API is not yet ready to be shipped in the NDK. It will be // available in the platform for testing, but will be excluded from the // sysroot provided to the NDK proper. Draft bool } // Like ndk_headers, but preprocesses the headers with the bionic versioner: Loading Loading @@ -309,6 +319,11 @@ type preprocessedHeadersProperties struct { // Path to the NOTICE file associated with the headers. License *string // True if this API is not yet ready to be shipped in the NDK. It will be // available in the platform for testing, but will be excluded from the // sysroot provided to the NDK proper. Draft bool } type preprocessedHeadersModule struct { Loading
cc/ndk_library.go +5 −0 Original line number Diff line number Diff line Loading @@ -91,6 +91,11 @@ type libraryProperties struct { // Private property for use by the mutator that splits per-API level. ApiLevel string `blueprint:"mutated"` // True if this API is not yet ready to be shipped in the NDK. It will be // available in the platform for testing, but will be excluded from the // sysroot provided to the NDK proper. Draft bool } type stubDecorator struct { Loading
cc/ndk_sysroot.go +16 −0 Original line number Diff line number Diff line Loading @@ -104,22 +104,38 @@ func (n *ndkSingleton) GenerateBuildActions(ctx android.SingletonContext) { } if m, ok := module.(*headerModule); ok { if ctx.Config().ExcludeDraftNdkApis() && m.properties.Draft { return } installPaths = append(installPaths, m.installPaths...) licensePaths = append(licensePaths, m.licensePath) } if m, ok := module.(*versionedHeaderModule); ok { if ctx.Config().ExcludeDraftNdkApis() && m.properties.Draft { return } installPaths = append(installPaths, m.installPaths...) licensePaths = append(licensePaths, m.licensePath) } if m, ok := module.(*preprocessedHeadersModule); ok { if ctx.Config().ExcludeDraftNdkApis() && m.properties.Draft { return } installPaths = append(installPaths, m.installPaths...) licensePaths = append(licensePaths, m.licensePath) } if m, ok := module.(*Module); ok { if installer, ok := m.installer.(*stubDecorator); ok { if ctx.Config().ExcludeDraftNdkApis() && installer.properties.Draft { return } installPaths = append(installPaths, installer.installPath) } Loading