| # Copyright 2014 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| { |
| 'variables': { |
| 'chromium_code': 1, |
| }, |
| 'targets': [ |
| { |
| 'target_name': 'display_types', |
| 'type': '<(component)', |
| 'dependencies': [ |
| '../../base/base.gyp:base', |
| '../../ui/gfx/gfx.gyp:gfx_geometry', |
| ], |
| 'defines': [ |
| 'DISPLAY_TYPES_IMPLEMENTATION', |
| ], |
| 'sources': [ |
| 'types/chromeos/display_mode.cc', |
| 'types/chromeos/display_mode.h', |
| 'types/chromeos/display_snapshot.cc', |
| 'types/chromeos/display_snapshot.h', |
| 'types/chromeos/native_display_delegate.h', |
| 'types/chromeos/native_display_observer.h', |
| 'types/chromeos/touchscreen_device.cc', |
| 'types/chromeos/touchscreen_device.h', |
| 'types/chromeos/touchscreen_device_manager.h', |
| 'types/display_constants.h', |
| 'types/display_types_export.h', |
| ], |
| }, |
| { |
| 'target_name': 'display', |
| 'type': '<(component)', |
| 'dependencies': [ |
| '../../base/base.gyp:base', |
| '../../ui/gfx/gfx.gyp:gfx', |
| '../../ui/gfx/gfx.gyp:gfx_geometry', |
| 'display_util', |
| ], |
| 'defines': [ |
| 'DISPLAY_IMPLEMENTATION', |
| ], |
| 'sources': [ |
| 'chromeos/display_configurator.cc', |
| 'chromeos/display_configurator.h', |
| 'chromeos/touchscreen_delegate_impl.cc', |
| 'chromeos/touchscreen_delegate_impl.h', |
| 'chromeos/ozone/display_configurator_ozone.cc', |
| 'chromeos/x11/display_configurator_x11.cc', |
| 'chromeos/x11/display_mode_x11.cc', |
| 'chromeos/x11/display_mode_x11.h', |
| 'chromeos/x11/display_snapshot_x11.cc', |
| 'chromeos/x11/display_snapshot_x11.h', |
| 'chromeos/x11/display_util_x11.cc', |
| 'chromeos/x11/display_util_x11.h', |
| 'chromeos/x11/native_display_delegate_x11.cc', |
| 'chromeos/x11/native_display_delegate_x11.h', |
| 'chromeos/x11/native_display_event_dispatcher_x11.cc', |
| 'chromeos/x11/native_display_event_dispatcher_x11.h', |
| 'chromeos/x11/touchscreen_device_manager_x11.cc', |
| 'chromeos/x11/touchscreen_device_manager_x11.h', |
| 'display_export.h', |
| 'display_switches.cc', |
| 'display_switches.h', |
| ], |
| 'conditions': [ |
| ['use_x11 == 1', { |
| 'dependencies': [ |
| '../../build/linux/system.gyp:x11', |
| '../../build/linux/system.gyp:xext', |
| '../../build/linux/system.gyp:xi', |
| '../../build/linux/system.gyp:xrandr', |
| ], |
| }], |
| ['chromeos == 1', { |
| 'dependencies': [ |
| 'display_types', |
| ], |
| }], |
| ['use_ozone == 1', { |
| 'dependencies': [ |
| '../../ui/ozone/ozone.gyp:ozone', |
| ], |
| }], |
| ], |
| }, |
| { |
| 'target_name': 'display_util', |
| 'type': '<(component)', |
| 'dependencies': [ |
| '../../base/base.gyp:base', |
| '../../ui/gfx/gfx.gyp:gfx_geometry', |
| ], |
| 'defines': [ |
| 'DISPLAY_UTIL_IMPLEMENTATION', |
| ], |
| 'sources': [ |
| 'util/display_util.cc', |
| 'util/display_util.h', |
| 'util/display_util_export.h', |
| 'util/edid_parser.cc', |
| 'util/edid_parser.h', |
| 'util/x11/edid_parser_x11.cc', |
| 'util/x11/edid_parser_x11.h', |
| ], |
| 'conditions': [ |
| ['use_x11 == 1', { |
| 'dependencies': [ |
| '../../build/linux/system.gyp:xrandr', |
| '../../ui/gfx/x/gfx_x11.gyp:gfx_x11', |
| ], |
| }], |
| ['chromeos == 1', { |
| 'dependencies': [ |
| 'display_types', |
| ], |
| }], |
| ], |
| }, |
| { |
| 'target_name': 'display_test_util', |
| 'type': '<(component)', |
| 'dependencies': [ |
| '../../base/base.gyp:base', |
| '../../ui/gfx/gfx.gyp:gfx', |
| '../../ui/gfx/gfx.gyp:gfx_geometry', |
| ], |
| 'defines': [ |
| 'DISPLAY_IMPLEMENTATION', |
| ], |
| 'sources': [ |
| 'chromeos/test/test_display_snapshot.cc', |
| 'chromeos/test/test_display_snapshot.h', |
| ], |
| 'conditions': [ |
| ['chromeos == 1', { |
| 'dependencies': [ |
| 'display_types', |
| ], |
| }], |
| ], |
| }, |
| { |
| 'target_name': 'display_unittests', |
| 'type': 'executable', |
| 'dependencies': [ |
| '../../base/base.gyp:run_all_unittests', |
| '../../testing/gtest.gyp:gtest', |
| 'display_util', |
| ], |
| 'include_dirs': [ |
| '../..', |
| ], |
| 'sources': [ |
| 'util/edid_parser_unittest.cc', |
| ], |
| }, |
| ], |
| } |