mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-20 00:00:09 +01:00
android: add genrule for generated_static_table_fourcc.h
Fixes the following building error:
external/libdrm/xf86drm.c:158:10: fatal error: 'generated_static_table_fourcc.h' file not found
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
Change-Id: I1b0cac498ed63ebec6e8c03629bbf4a1b6a9618d
Reviewed-by: Mauro Rossi <issor.oruam@gmail.com>
This commit is contained in:
parent
50da61eebd
commit
e68e9b8013
1 changed files with 12 additions and 0 deletions
12
Android.bp
12
Android.bp
|
|
@ -59,6 +59,14 @@ cc_library_headers {
|
|||
],
|
||||
}
|
||||
|
||||
genrule {
|
||||
name: "generated_static_table_fourcc_h",
|
||||
out: ["generated_static_table_fourcc.h"],
|
||||
srcs: ["include/drm/drm_fourcc.h"],
|
||||
tool_files: ["gen_table_fourcc.py"],
|
||||
cmd: "python3 $(location gen_table_fourcc.py) $(in) $(out)",
|
||||
}
|
||||
|
||||
// Library for the device
|
||||
cc_library {
|
||||
name: "libdrm",
|
||||
|
|
@ -70,6 +78,10 @@ cc_library {
|
|||
"libdrm_sources",
|
||||
],
|
||||
|
||||
generated_headers: [
|
||||
"generated_static_table_fourcc_h",
|
||||
],
|
||||
|
||||
export_include_dirs: ["include/drm", "android"],
|
||||
|
||||
cflags: [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue