sm7250-common: megvii: Initial stub libraries

This is not available on hardware/xiaomi 19.1 branch

This reverts commit a1c6683f96.

Change-Id: I8de43c460f46018bdd809d3fa402f52ddb95d8e3
This commit is contained in:
xSylla 2022-06-04 21:57:02 +02:00
parent a1c6683f96
commit 127e843873
2 changed files with 55 additions and 0 deletions

16
megvii/Android.bp Normal file
View File

@ -0,0 +1,16 @@
//
// Copyright (C) 2022 The LineageOS Project
//
// SPDX-License-Identifier: Apache-2.0
//
cc_library_shared {
name: "libMegviiFacepp-0.5.2",
vendor: true,
srcs: ["megvii.c"],
}
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,
};