Skip to content

Commit

Permalink
fingerprint: Use soong config instead of kernel headers
Browse files Browse the repository at this point in the history
* This way it also becomes usable for exynos devices.

Change-Id: I56793fdb63bf6e2542caa1f6da68ba57ccf85b0e
  • Loading branch information
Linux4 authored and bgcngm committed Dec 30, 2024
1 parent 9fbc3a3 commit ad61fd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
7 changes: 4 additions & 3 deletions fingerprint/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
cc_library_static {
name: "libudfps_extension.samsung",
srcs: ["UdfpsExtension.cpp"],
cflags: select(soong_config_variable("samsung_udfps", "dimlayerzorder"), {
any @ zorder: ["-DFOD_PRESSED_LAYER_ZORDER=" + zorder],
default: [],
}),
include_dirs: [
"frameworks/native/services/surfaceflinger/CompositionEngine/include",
],
header_libs: [
"generated_kernel_headers",
],
}
6 changes: 0 additions & 6 deletions fingerprint/UdfpsExtension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@

#include <compositionengine/UdfpsExtension.h>

#if __has_include(<display/drm/sde_drm.h>)
#include <display/drm/sde_drm.h>
#elif __has_include(<drm/sde_drm.h>)
#include <drm/sde_drm.h>
#endif

uint32_t getUdfpsDimZOrder(uint32_t z) {
return z;
}
Expand Down

0 comments on commit ad61fd8

Please sign in to comment.