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 c6a4249c37.

Change-Id: Id987607b73ca0d8e9fd944518442f8cdffd0ce2a
This commit is contained in:
Sebastiano Barezzi 2022-05-11 11:52:33 +02:00
parent 9976b3f15b
commit ec5d5b0a98
No known key found for this signature in database
GPG Key ID: 47760583F393BC44
2 changed files with 62 additions and 0 deletions

23
megvii/Android.bp Normal file
View File

@ -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,
}

39
megvii/megvii.c Normal file
View File

@ -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,
};