aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Lee <rgl@google.com>2022-01-04 22:00:51 +0000
committerRobin Lee <rgl@google.com>2022-01-06 08:23:34 +0000
commitf83441a3c903891ddb4359d0b1f7d92c211e3230 (patch)
treee34d91c437d4d20a50f1cabdf84935b3eb677f75
parentb6af0e3c9d3a5648f7b111a926ad960c94ca3b0d (diff)
downloadv4l2_codec2-android-s-qpr3-beta-1.tar.gz
It isn't currently possible for multiple soong modules in the same build to define the same output path, even if one overrides another, so given that the contract of codec2 involves loading libraries from some specific paths, these paths must not have modules built into them by default or they can not be overridden by other soc_specific code. Change-Id: I4823f9942d69a29c53ed88c5e39c3b0cb0786973 Test: Build device using v4l2_codec2 from installclean and ensure the output has not changed Bug: 200265668
-rw-r--r--Android.bp11
-rw-r--r--tests/Android.mk2
2 files changed, 12 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index 7f53aec..b541ecd 100644
--- a/Android.bp
+++ b/Android.bp
@@ -13,6 +13,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+// This project defines a module named libc2plugin_store which is installed into
+// $OUT/vendor/lib/libc2plugin_store.so. Although the module can be overridden,
+// the output filename cannot (b/204136549).
+//
+// See README.md for how to use the implementation from v4l2_codec2.
+soong_namespace {
+ // No imports
+}
+
package {
default_applicable_licenses: ["external_v4l2_codec2_license"],
}
@@ -41,4 +50,4 @@ license {
license_text: [
"NOTICE",
],
-}
+} \ No newline at end of file
diff --git a/tests/Android.mk b/tests/Android.mk
index 5053e7d..7697ee4 100644
--- a/tests/Android.mk
+++ b/tests/Android.mk
@@ -1 +1,3 @@
+ifneq ($(filter external/v4l2_codec2,$(PRODUCT_SOONG_NAMESPACES)),)
include $(call all-subdir-makefiles)
+endif \ No newline at end of file