Add initial sdk/module_exports for art
Exports modules of varying types to verify that they are working
correctly.
Bug: 142935992
Test: m art-module-sdk art-module-host-exports art-module-test-exports
Change-Id: I4910d06d8c6438643fd66b070d1ca1a051df1801
diff --git a/build/sdk/Android.bp b/build/sdk/Android.bp
new file mode 100644
index 0000000..23a4193
--- /dev/null
+++ b/build/sdk/Android.bp
@@ -0,0 +1,45 @@
+// Copyright (C) 2020 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// The SDK for the art module apex.
+sdk {
+ name: "art-module-sdk",
+ native_static_libs: [
+ "libartimagevalues",
+ ],
+}
+
+// Exported host tools and libraries.
+module_exports {
+ name: "art-module-host-exports",
+ host_supported: true,
+ device_supported: false,
+ java_libs: [
+ "timezone-host",
+ ],
+}
+
+// Exported tests and supporting libraries
+module_exports {
+ name: "art-module-test-exports",
+ java_libs: [
+ "core-compat-test-rules",
+ "core-test-rules",
+ "core-tests-support",
+ "okhttp-tests-nojarjar",
+ ],
+ native_shared_libs: [
+ "libjavacoretests",
+ ],
+}
diff --git a/libartimagevalues/Android.bp b/libartimagevalues/Android.bp
index 80f58b7..0f38952 100644
--- a/libartimagevalues/Android.bp
+++ b/libartimagevalues/Android.bp
@@ -7,6 +7,7 @@
name: "libartimagevalues",
defaults: ["libartimagevalues_defaults"],
visibility: [
+ "//art/build/sdk",
// TODO(b/133140750): Clean this up.
"//frameworks/native/cmds/installd",
],