Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,45 @@ cc_defaults {

}

cc_library {
name: "libgbm",
defaults: ["minigbm_defaults"],
host_supported: true,

srcs: [
":minigbm_core_files",
"gbm.c",
"gbm_helpers.c",
],

target: {
host: {
// Avoid linking to another host copy of libdrm; this library will cause
// binary GPU drivers to be loaded from the host, which might be linked
// to a system copy of libdrm, which conflicts with the AOSP one
allow_undefined_symbols: true,
header_libs: ["libdrm_headers"],
},
android: {
shared_libs: [
"libcutils",
"liblog",
],
static_libs: [
"libdrm",
],
},
},
apex_available: [
"//apex_available:platform",
"//apex_available:anyapex",
],
vendor_available: true,
product_available: true,

export_include_dirs: ["."],
}

// Intel
cc_library_shared {
name: "libminigbm_gralloc_intel",
Expand Down
1 change: 1 addition & 0 deletions i915.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <unistd.h>
#include <xf86drm.h>
#include <cutils/properties.h>
#include <sys/ioctl.h>

#include "drv_helpers.h"
#include "drv_priv.h"
Expand Down