aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuntao Xu <yuntaoxu@google.com>2021-06-14 16:43:23 -0700
committerYuntao Xu <yuntaoxu@google.com>2021-06-16 18:11:08 -0700
commit3dde093f526acdc0db6161813ceb144366169e37 (patch)
tree7babd5b7d228fdbbd6ca8f861a170ecf9ba97365
parentd3efb82b5b346cbe5f63607f946b016f23db28b8 (diff)
downloadmodels-3dde093f526acdc0db6161813ceb144366169e37.tar.gz
Add one `android_library` module in Soong
In order to pass the `test/mlts/models/assets` as asset_dirs to other modules not locating in this directory, 1. one`android_library` modlule was added; 2. one necessary AndroidManifest.xml file was added as well; Bug: 191056094 Test: compared the built results by Make and Soong Test: TreeHugger Change-Id: I4c104678b94b32d8c1b4636d9b254a5fbc77957d
-rw-r--r--Android.bp35
-rw-r--r--AndroidManifest.xml19
2 files changed, 54 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..f5f2efc
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,35 @@
+// Copyright (C) 2021 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.
+
+package {
+ default_applicable_licenses: ["test_mlts_models_license"],
+}
+
+// http://go/android-license-faq
+license {
+ name: "test_mlts_models_license",
+ visibility: [":__subpackages__"],
+ license_kinds: [
+ "SPDX-license-identifier-Apache-2.0",
+ ],
+ license_text: [
+ "LICENSE",
+ ],
+}
+
+android_library {
+ name: "test_mlts_models_assets",
+ asset_dirs: ["assets",],
+ sdk_version: "30",
+}
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
new file mode 100644
index 0000000..b845adb
--- /dev/null
+++ b/AndroidManifest.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2021 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.
+-->
+
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="test.mlts.models">
+</manifest> \ No newline at end of file