From ec5d5b0a989c56e13e7ee51c015dcef8b43b6d03 Mon Sep 17 00:00:00 2001 From: Sebastiano Barezzi Date: Wed, 11 May 2022 11:52:33 +0200 Subject: [PATCH] Reland "megvii: Initial stub libraries" * We can't provide the original libs anymore, thus making the duplicated targets not an issue anymore This reverts commit c6a4249c37b6ca9dd984182a45bef998ac6912ae. Change-Id: Id987607b73ca0d8e9fd944518442f8cdffd0ce2a --- megvii/Android.bp | 23 +++++++++++++++++++++++ megvii/megvii.c | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 megvii/Android.bp create mode 100644 megvii/megvii.c diff --git a/megvii/Android.bp b/megvii/Android.bp new file mode 100644 index 0000000..b3a8500 --- /dev/null +++ b/megvii/Android.bp @@ -0,0 +1,23 @@ +// +// Copyright (C) 2022 The LineageOS Project +// +// SPDX-License-Identifier: Apache-2.0 +// + +cc_defaults { + name: "libMegviiFacepp_defaults", + vendor: true, + srcs: [ + "megvii.c", + ], +} + +cc_library_shared { + name: "libMegviiFacepp-0.5.2", + defaults: ["libMegviiFacepp_defaults"], +} + +cc_library_shared { + name: "libmegface", + vendor: true, +} diff --git a/megvii/megvii.c b/megvii/megvii.c new file mode 100644 index 0000000..eaf0584 --- /dev/null +++ b/megvii/megvii.c @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2022 The LineageOS Project + * + * SPDX-License-Identifier: Apache-2.0 +*/ + +static int stub_fail() { + return -1; +} + +void *mg_facepp[] = { + &stub_fail, + &stub_fail, + &stub_fail, + &stub_fail, + &stub_fail, + &stub_fail, + &stub_fail, + &stub_fail, + &stub_fail, + &stub_fail, + &stub_fail, + &stub_fail, + &stub_fail, + &stub_fail, + &stub_fail, + &stub_fail, + &stub_fail, + &stub_fail, + &stub_fail, + &stub_fail, + &stub_fail, + &stub_fail, + &stub_fail, + &stub_fail, + &stub_fail, + &stub_fail, + &stub_fail, +};