livedisplay: Expose headers and implementations as Soong modules

Change-Id: I335cb98b544fceed1e0d11f0a7dd9cc38860b5aa
This commit is contained in:
LuK1337
2021-09-19 19:27:12 +02:00
parent 9e7b514023
commit 85fffbdcfa
4 changed files with 15 additions and 4 deletions

View File

@@ -12,6 +12,17 @@
// See the License for the specific language governing permissions and
// limitations under the License.
filegroup {
name: "vendor.lineage.livedisplay@2.1-oplus-se",
srcs: ["SunlightEnhancement.cpp"],
}
cc_library_headers {
name: "vendor.lineage.livedisplay@2.1-oplus-headers",
vendor_available: true,
export_include_dirs: ["include"],
}
cc_binary {
name: "vendor.lineage.livedisplay@2.1-service.oplus",
defaults: ["hidl_defaults"],
@@ -21,7 +32,7 @@ cc_binary {
srcs: [
":vendor.lineage.livedisplay@2.0-sdm-pa",
":vendor.lineage.livedisplay@2.0-sdm-utils",
"SunlightEnhancement.cpp",
":vendor.lineage.livedisplay@2.1-oplus-se",
"service.cpp",
],
shared_libs: [
@@ -34,6 +45,7 @@ cc_binary {
],
header_libs: [
"vendor.lineage.livedisplay@2.0-sdm-headers",
"vendor.lineage.livedisplay@2.1-oplus-headers",
],
proprietary: true,
}

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
#include "SunlightEnhancement.h"
#include <livedisplay/oplus/SunlightEnhancement.h>
#include <android-base/file.h>
#include <android-base/strings.h>

View File

@@ -19,11 +19,10 @@
#include <android-base/logging.h>
#include <binder/ProcessState.h>
#include <hidl/HidlTransportSupport.h>
#include <livedisplay/oplus/SunlightEnhancement.h>
#include <livedisplay/sdm/PictureAdjustment.h>
#include <vendor/lineage/livedisplay/2.1/IPictureAdjustment.h>
#include "SunlightEnhancement.h"
using ::android::OK;
using ::android::sp;
using ::android::status_t;