| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'internal_ozone_platform_deps': [ | 7 'internal_ozone_platform_deps': [ |
| 8 'ozone_platform_gbm', | 8 'ozone_platform_gbm', |
| 9 ], | 9 ], |
| 10 'internal_ozone_platforms': [ | 10 'internal_ozone_platforms': [ |
| 11 'gbm', | 11 'gbm', |
| 12 ], | 12 ], |
| 13 'use_mesa_platform_null%': 0, | 13 'use_mesa_platform_null%': 0, |
| 14 'ozone_use_vgem_map%': 0, |
| 14 }, | 15 }, |
| 15 'targets': [ | 16 'targets': [ |
| 16 { | 17 { |
| 17 'target_name': 'ozone_platform_gbm', | 18 'target_name': 'ozone_platform_gbm', |
| 18 'type': 'static_library', | 19 'type': 'static_library', |
| 19 'dependencies': [ | 20 'dependencies': [ |
| 20 '../../base/base.gyp:base', | 21 '../../base/base.gyp:base', |
| 21 '../../build/linux/system.gyp:libdrm', | 22 '../../build/linux/system.gyp:libdrm', |
| 22 '../../build/linux/system.gyp:gbm', | 23 '../../build/linux/system.gyp:gbm', |
| 23 '../../skia/skia.gyp:skia', | 24 '../../skia/skia.gyp:skia', |
| 24 '../../third_party/khronos/khronos.gyp:khronos_headers', | 25 '../../third_party/khronos/khronos.gyp:khronos_headers', |
| 25 '../base/ui_base.gyp:ui_base', | 26 '../base/ui_base.gyp:ui_base', |
| 26 '../events/events.gyp:events', | 27 '../events/events.gyp:events', |
| 27 '../events/ozone/events_ozone.gyp:events_ozone', | 28 '../events/ozone/events_ozone.gyp:events_ozone', |
| 28 '../events/ozone/events_ozone.gyp:events_ozone_evdev', | 29 '../events/ozone/events_ozone.gyp:events_ozone_evdev', |
| 29 '../events/ozone/events_ozone.gyp:events_ozone_layout', | 30 '../events/ozone/events_ozone.gyp:events_ozone_layout', |
| 30 '../gfx/gfx.gyp:gfx', | 31 '../gfx/gfx.gyp:gfx', |
| 31 ], | 32 ], |
| 32 'defines': [ | 33 'defines': [ |
| 33 'OZONE_IMPLEMENTATION', | 34 'OZONE_IMPLEMENTATION', |
| 34 ], | 35 ], |
| 35 'sources': [ | 36 'sources': [ |
| 36 'common/client_native_pixmap_factory_gbm.cc', | 37 'common/client_native_pixmap_factory_gbm.cc', |
| 37 'common/client_native_pixmap_factory_gbm.h', | 38 'common/client_native_pixmap_factory_gbm.h', |
| 39 'gpu/client_native_pixmap_vgem.cc', |
| 40 'gpu/client_native_pixmap_vgem.h', |
| 38 'gpu/gbm_buffer.cc', | 41 'gpu/gbm_buffer.cc', |
| 39 'gpu/gbm_buffer.h', | 42 'gpu/gbm_buffer.h', |
| 40 'gpu/gbm_buffer_base.cc', | 43 'gpu/gbm_buffer_base.cc', |
| 41 'gpu/gbm_buffer_base.h', | 44 'gpu/gbm_buffer_base.h', |
| 42 'gpu/gbm_device.cc', | 45 'gpu/gbm_device.cc', |
| 43 'gpu/gbm_device.h', | 46 'gpu/gbm_device.h', |
| 44 'gpu/gbm_surface.cc', | 47 'gpu/gbm_surface.cc', |
| 45 'gpu/gbm_surface.h', | 48 'gpu/gbm_surface.h', |
| 46 'gpu/gbm_surface_factory.cc', | 49 'gpu/gbm_surface_factory.cc', |
| 47 'gpu/gbm_surface_factory.h', | 50 'gpu/gbm_surface_factory.h', |
| 48 'gpu/gbm_surfaceless.cc', | 51 'gpu/gbm_surfaceless.cc', |
| 49 'gpu/gbm_surfaceless.h', | 52 'gpu/gbm_surfaceless.h', |
| 50 'ozone_platform_gbm.cc', | 53 'ozone_platform_gbm.cc', |
| 51 'ozone_platform_gbm.h', | 54 'ozone_platform_gbm.h', |
| 52 ], | 55 ], |
| 53 'conditions': [ | 56 'conditions': [ |
| 54 ['use_mesa_platform_null==1', { | 57 ['use_mesa_platform_null==1', { |
| 55 'defines': ['USE_MESA_PLATFORM_NULL'], | 58 'defines': ['USE_MESA_PLATFORM_NULL'], |
| 56 }], | 59 }], |
| 60 ['ozone_use_vgem_map==1', { |
| 61 'defines': ['OZONE_USE_VGEM_MAP'], |
| 62 }], |
| 57 ], | 63 ], |
| 58 }, | 64 }, |
| 59 ], | 65 ], |
| 60 } | 66 } |
| OLD | NEW |