Index: third_party/mesa/mesa.gyp |
diff --git a/third_party/mesa/mesa.gyp b/third_party/mesa/mesa.gyp |
index da126438cea1f8ebd826dd28b298db55e090de2b..cc32efa8932cd2310de9f3bdfcab22ce67a5c1d1 100644 |
--- a/third_party/mesa/mesa.gyp |
+++ b/third_party/mesa/mesa.gyp |
@@ -810,5 +810,40 @@ |
'src/src/mesa/drivers/osmesa/osmesa.def', |
], |
}, |
+ { |
+ 'target_name': 'mesa_gbm', |
+ 'type': 'static_library', |
+ 'dependencies': [ |
+ 'mesa_headers', |
+ '<(DEPTH)/build/linux/system.gyp:dridrm', |
+ ], |
+ 'all_dependent_settings': { |
+ 'defines': [ |
+ '__GBM__', |
+ ], |
+ }, |
+ 'defines': [ |
+ '__GBM__', |
+ # TODO(dnicoara) There should be a macro to select the folder. |
+ 'MODULEDIR="/usr/lib64/gbm"', |
+ 'DEFAULT_DRIVER_DIR="/usr/lib64/dri"', |
+ ], |
+ 'include_dirs': [ |
+ 'src/src/gbm/main', |
+ ], |
+ 'sources': [ |
+ 'src/src/gbm/backends/dri/driver_name.c', |
+ 'src/src/gbm/backends/dri/gbm_dri.c', |
+ 'src/src/gbm/backends/dri/gbm_driint.h', |
+ 'src/src/gbm/main/backend.c', |
+ 'src/src/gbm/main/backend.h', |
+ 'src/src/gbm/main/common.c', |
+ 'src/src/gbm/main/common.h', |
+ 'src/src/gbm/main/common_drm.h', |
+ 'src/src/gbm/main/gbm.c', |
+ 'src/src/gbm/main/gbm.h', |
+ 'src/src/gbm/main/gbmint.h', |
+ ], |
+ }, |
], |
} |