OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 { |
| 6 'variables': { |
| 7 'chromium_code': 1, |
| 8 }, |
| 9 'target_defaults': { |
| 10 'sources/': [ |
| 11 ['exclude', '/(cocoa|gtk|win)/'], |
| 12 ['exclude', '_(cocoa|gtk|linux|mac|posix|skia|win|x)\\.(cc|mm?)$'], |
| 13 ['exclude', '/(gtk|win|x11)_[^/]*\\.cc$'], |
| 14 ], |
| 15 'conditions': [ |
| 16 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {'sources/': [ |
| 17 ['include', '/gtk/'], |
| 18 ['include', '_(gtk|linux|posix|skia|x)\\.cc$'], |
| 19 ['include', '/(gtk|x11)_[^/]*\\.cc$'], |
| 20 ]}], |
| 21 ['OS=="mac"', {'sources/': [ |
| 22 ['include', '/cocoa/'], |
| 23 ['include', '_(cocoa|mac|posix)\\.(cc|mm?)$'], |
| 24 ]}, { # else: OS != "mac" |
| 25 'sources/': [ |
| 26 ['exclude', '\\.mm?$'], |
| 27 ], |
| 28 }], |
| 29 ['OS=="win"', {'sources/': [ |
| 30 ['include', '_(win)\\.cc$'], |
| 31 ['include', '/win/'], |
| 32 ['include', '/win_[^/]*\\.cc$'], |
| 33 ]}], |
| 34 ['touchui==0', {'sources/': [ |
| 35 ['exclude', 'event_x.cc$'], |
| 36 ['exclude', 'native_menu_x.cc$'], |
| 37 ['exclude', 'native_menu_x.h$'], |
| 38 ['exclude', 'touchui/'], |
| 39 ['exclude', '_(touch)\\.cc$'], |
| 40 ]}], |
| 41 ], |
| 42 }, |
| 43 'targets': [ |
| 44 { |
| 45 'target_name': 'views', |
| 46 'type': '<(library)', |
| 47 'msvs_guid': '70760ECA-4D8B-47A4-ACDC-D3E7F25F0543', |
| 48 'dependencies': [ |
| 49 '../../app/app.gyp:app_base', |
| 50 '../../gfx/gfx.gyp:gfx', |
| 51 '../../skia/skia.gyp:skia', |
| 52 ], |
| 53 'sources': [ |
| 54 'events/context_menu_controller.h', |
| 55 'events/drag_controller.h', |
| 56 'events/event.cc', |
| 57 'events/event.h', |
| 58 'events/event_win.cc', |
| 59 'layout/fill_layout.cc', |
| 60 'layout/fill_layout.h', |
| 61 'layout/layout_manager.cc', |
| 62 'layout/layout_manager.h', |
| 63 'native_types.h', |
| 64 'rendering/border.cc', |
| 65 'rendering/border.h', |
| 66 'view.cc', |
| 67 'view.h', |
| 68 'widget/native_widget.h', |
| 69 'widget/native_widget_listener.h', |
| 70 'widget/native_widget_views.cc', |
| 71 'widget/native_widget_views.h', |
| 72 'widget/native_widget_win.cc', |
| 73 'widget/native_widget_win.h', |
| 74 'widget/root_view.cc', |
| 75 'widget/root_view.h', |
| 76 'widget/widget.cc', |
| 77 'widget/widget.h', |
| 78 'window/window.cc', |
| 79 'window/window.h', |
| 80 'window/native_window.h', |
| 81 'window/native_window_views.cc', |
| 82 'window/native_window_views.h', |
| 83 'window/native_window_win.cc', |
| 84 'window/native_window_win.h', |
| 85 ], |
| 86 'include_dirs': [ |
| 87 '<(DEPTH)/third_party/wtl/include', |
| 88 '../..', |
| 89 ], |
| 90 'conditions': [ |
| 91 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { |
| 92 'dependencies': [ |
| 93 '../../build/linux/system.gyp:gtk', |
| 94 '../../build/linux/system.gyp:x11', |
| 95 '../../build/linux/system.gyp:xext', |
| 96 ], |
| 97 'sources!': [ |
| 98 ], |
| 99 }], |
| 100 ['OS=="win"', { |
| 101 'include_dirs': [ |
| 102 '<(DEPTH)/third_party/wtl/include', |
| 103 ], |
| 104 }], |
| 105 ], |
| 106 }, |
| 107 { |
| 108 'target_name': 'views_unittests', |
| 109 'type': 'executable', |
| 110 'dependencies': [ |
| 111 '../../base/base.gyp:base', |
| 112 '../../base/base.gyp:test_support_base', |
| 113 '../../skia/skia.gyp:skia', |
| 114 '../../testing/gmock.gyp:gmock', |
| 115 '../../testing/gtest.gyp:gtest', |
| 116 '../../third_party/icu/icu.gyp:icui18n', |
| 117 '../../third_party/icu/icu.gyp:icuuc', |
| 118 'views', |
| 119 ], |
| 120 'include_dirs': [ |
| 121 '../..', |
| 122 ], |
| 123 'sources': [ |
| 124 'rendering/border_unittest.cc', |
| 125 'run_all_unittests.cc', |
| 126 'view_unittest.cc', |
| 127 'widget/widget_unittest.cc', |
| 128 ], |
| 129 'conditions': [ |
| 130 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { |
| 131 'dependencies': [ |
| 132 '../../build/linux/system.gyp:gtk', |
| 133 '../../chrome/chrome.gyp:packed_resources', |
| 134 ], |
| 135 'conditions': [ |
| 136 ['linux_use_tcmalloc==1', { |
| 137 'dependencies': [ |
| 138 '../../base/allocator/allocator.gyp:allocator', |
| 139 ], |
| 140 }], |
| 141 ], |
| 142 }, |
| 143 ], |
| 144 ['OS=="win"', { |
| 145 'sources': [ |
| 146 'widget/widget.rc', |
| 147 'widget/widget_resource.h', |
| 148 ], |
| 149 'include_dirs': [ |
| 150 '<(DEPTH)/third_party/wtl/include', |
| 151 '$(OutDir)/obj/views', |
| 152 ], |
| 153 'link_settings': { |
| 154 'libraries': [ |
| 155 '-limm32.lib', |
| 156 '-loleacc.lib', |
| 157 ] |
| 158 }, |
| 159 'include_dirs': [ |
| 160 '<(DEPTH)/third_party/wtl/include', |
| 161 ], |
| 162 }], |
| 163 ], |
| 164 }, |
| 165 { |
| 166 'target_name': 'views_demo', |
| 167 'type': 'executable', |
| 168 'dependencies': [ |
| 169 '../../skia/skia.gyp:skia', |
| 170 'views', |
| 171 ], |
| 172 'sources': [ |
| 173 'demo/main.cc', |
| 174 ], |
| 175 'include_dirs': [ |
| 176 '../..', |
| 177 ], |
| 178 'conditions': [ |
| 179 ['OS=="win"', { |
| 180 'sources': [ |
| 181 'widget/widget.rc', |
| 182 'widget/widget_resource.h', |
| 183 ], |
| 184 'include_dirs': [ |
| 185 '<(DEPTH)/third_party/wtl/include', |
| 186 '$(OutDir)/obj/views', |
| 187 ], |
| 188 }], |
| 189 ], |
| 190 }, |
| 191 ], |
| 192 } |
| 193 |
| 194 # Local Variables: |
| 195 # tab-width:2 |
| 196 # indent-tabs-mode:nil |
| 197 # End: |
| 198 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |