| 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 'chromium_code': 1, | 7 'chromium_code': 1, |
| 8 }, | 8 }, |
| 9 'targets': [ | 9 'targets': [ |
| 10 { | 10 { |
| 11 'target_name': 'ui_touch_selection', | 11 'target_name': 'ui_touch_selection', |
| 12 'type': '<(component)', | 12 'type': '<(component)', |
| 13 'dependencies': [ | 13 'dependencies': [ |
| 14 '../../base/base.gyp:base', | 14 '../../base/base.gyp:base', |
| 15 '../aura/aura.gyp:aura', |
| 16 '../aura_extra/aura_extra.gyp:aura_extra', |
| 15 '../base/ui_base.gyp:ui_base', | 17 '../base/ui_base.gyp:ui_base', |
| 18 '../compositor/compositor.gyp:compositor', |
| 16 '../events/events.gyp:events', | 19 '../events/events.gyp:events', |
| 17 '../events/events.gyp:gesture_detection', | 20 '../events/events.gyp:gesture_detection', |
| 21 '../gfx/gfx.gyp:gfx', |
| 18 '../gfx/gfx.gyp:gfx_geometry', | 22 '../gfx/gfx.gyp:gfx_geometry', |
| 19 ], | 23 ], |
| 20 'defines': [ | 24 'defines': [ |
| 21 'UI_TOUCH_SELECTION_IMPLEMENTATION', | 25 'UI_TOUCH_SELECTION_IMPLEMENTATION', |
| 22 ], | 26 ], |
| 23 'sources': [ | 27 'sources': [ |
| 24 'selection_event_type.h', | 28 'selection_event_type.h', |
| 25 'touch_handle.cc', | 29 'touch_handle.cc', |
| 26 'touch_handle.h', | 30 'touch_handle.h', |
| 31 'touch_handle_drawable_aura.cc', |
| 32 'touch_handle_drawable_aura.h', |
| 27 'touch_handle_orientation.h', | 33 'touch_handle_orientation.h', |
| 28 'touch_selection_controller.cc', | 34 'touch_selection_controller.cc', |
| 29 'touch_selection_controller.h', | 35 'touch_selection_controller.h', |
| 36 'touch_selection_controller_aura.cc', |
| 37 'touch_selection_controller_aura.h', |
| 38 'touch_selection_menu_runner.cc', |
| 39 'touch_selection_menu_runner.h', |
| 30 'ui_touch_selection_export.h', | 40 'ui_touch_selection_export.h', |
| 31 ], | 41 ], |
| 32 'include_dirs': [ | 42 'include_dirs': [ |
| 33 '../..', | 43 '../..', |
| 34 ], | 44 ], |
| 45 'conditions': [ |
| 46 ['use_aura==0', { |
| 47 'dependencies!': [ |
| 48 '../aura/aura.gyp:aura', |
| 49 '../aura_extra/aura_extra.gyp:aura_extra', |
| 50 '../compositor/compositor.gyp:compositor', |
| 51 '../gfx/gfx.gyp:gfx', |
| 52 ], |
| 53 'sources!': [ |
| 54 'touch_handle_drawable_aura.cc', |
| 55 'touch_handle_drawable_aura.h', |
| 56 'touch_selection_controller_aura.cc', |
| 57 'touch_selection_controller_aura.h', |
| 58 'touch_selection_menu_runner.cc', |
| 59 'touch_selection_menu_runner.h', |
| 60 ], |
| 61 }], |
| 62 ], |
| 35 }, | 63 }, |
| 36 { | 64 { |
| 37 'target_name': 'ui_touch_selection_unittests', | 65 'target_name': 'ui_touch_selection_unittests', |
| 38 'type': '<(gtest_target_type)', | 66 'type': '<(gtest_target_type)', |
| 39 'dependencies': [ | 67 'dependencies': [ |
| 40 '../../base/base.gyp:base', | 68 '../../base/base.gyp:base', |
| 41 '../../base/base.gyp:run_all_unittests', | |
| 42 '../../base/base.gyp:test_support_base', | 69 '../../base/base.gyp:test_support_base', |
| 43 '../../testing/gmock.gyp:gmock', | 70 '../../testing/gmock.gyp:gmock', |
| 44 '../../testing/gtest.gyp:gtest', | 71 '../../testing/gtest.gyp:gtest', |
| 72 '../aura/aura.gyp:aura_test_support', |
| 45 '../base/ui_base.gyp:ui_base', | 73 '../base/ui_base.gyp:ui_base', |
| 46 '../events/events.gyp:events_test_support', | 74 '../events/events.gyp:events_test_support', |
| 47 '../gfx/gfx.gyp:gfx', | 75 '../gfx/gfx.gyp:gfx', |
| 48 '../gfx/gfx.gyp:gfx_test_support', | 76 '../gfx/gfx.gyp:gfx_test_support', |
| 77 '../gl/gl.gyp:gl', |
| 49 'ui_touch_selection', | 78 'ui_touch_selection', |
| 50 ], | 79 ], |
| 51 'sources': [ | 80 'sources': [ |
| 81 'run_all_unittests.cc', |
| 52 'touch_handle_unittest.cc', | 82 'touch_handle_unittest.cc', |
| 83 'touch_selection_controller_aura_unittest.cc', |
| 53 'touch_selection_controller_unittest.cc', | 84 'touch_selection_controller_unittest.cc', |
| 54 ], | 85 ], |
| 55 'include_dirs': [ | 86 'include_dirs': [ |
| 56 '../..', | 87 '../..', |
| 57 ], | 88 ], |
| 58 'conditions': [ | 89 'conditions': [ |
| 59 ['OS == "android"', { | 90 ['OS == "android"', { |
| 60 'dependencies': [ | 91 'dependencies': [ |
| 61 '../../testing/android/native_test.gyp:native_test_native_code', | 92 '../../testing/android/native_test.gyp:native_test_native_code', |
| 62 ], | 93 ], |
| 63 }], | 94 }], |
| 95 ['use_aura==0', { |
| 96 'dependencies!': [ |
| 97 '../aura/aura.gyp:aura_test_support', |
| 98 ], |
| 99 'sources!': [ |
| 100 'touch_selection_controller_aura_unittest.cc', |
| 101 ] |
| 102 }], |
| 64 ] | 103 ] |
| 65 }, | 104 }, |
| 66 ], | 105 ], |
| 67 'conditions': [ | 106 'conditions': [ |
| 68 ['OS == "android"', { | 107 ['OS == "android"', { |
| 69 'targets': [ | 108 'targets': [ |
| 70 { | 109 { |
| 71 'target_name': 'selection_event_type_java', | 110 'target_name': 'selection_event_type_java', |
| 72 'type': 'none', | 111 'type': 'none', |
| 73 'variables': { | 112 'variables': { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 'dependencies': [ | 154 'dependencies': [ |
| 116 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', | 155 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', |
| 117 ], | 156 ], |
| 118 }], | 157 }], |
| 119 ], | 158 ], |
| 120 }, | 159 }, |
| 121 ], | 160 ], |
| 122 }], | 161 }], |
| 123 ], | 162 ], |
| 124 } | 163 } |
| OLD | NEW |