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': 'v2', |
| 46 'type': '<(library)', |
| 47 'msvs_guid': '70760ECA-4D8B-47A4-ACDC-D3E7F25F0543', |
| 48 'dependencies': [ |
| 49 '<(DEPTH)/app/app.gyp:app_base', |
| 50 '<(DEPTH)/gfx/gfx.gyp:gfx', |
| 51 '<(DEPTH)/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)', |
| 88 ], |
| 89 'conditions': [ |
| 90 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { |
| 91 'dependencies': [ |
| 92 '<(DEPTH)/build/linux/system.gyp:gtk', |
| 93 '<(DEPTH)/build/linux/system.gyp:x11', |
| 94 '<(DEPTH)/build/linux/system.gyp:xext', |
| 95 ], |
| 96 'sources!': [ |
| 97 ], |
| 98 }], |
| 99 ['OS=="win"', { |
| 100 'include_dirs': [ |
| 101 '<(DEPTH)/third_party/wtl/include', |
| 102 ], |
| 103 }], |
| 104 ], |
| 105 }, |
| 106 { |
| 107 'target_name': 'views_unittests', |
| 108 'type': 'executable', |
| 109 'dependencies': [ |
| 110 '<(DEPTH)/base/base.gyp:base', |
| 111 '<(DEPTH)/base/base.gyp:test_support_base', |
| 112 '<(DEPTH)/skia/skia.gyp:skia', |
| 113 '<(DEPTH)/testing/gmock.gyp:gmock', |
| 114 '<(DEPTH)/testing/gtest.gyp:gtest', |
| 115 '<(DEPTH)/third_party/icu/icu.gyp:icui18n', |
| 116 '<(DEPTH)/third_party/icu/icu.gyp:icuuc', |
| 117 'v2', |
| 118 ], |
| 119 'sources': [ |
| 120 'rendering/border_unittest.cc', |
| 121 'run_all_unittests.cc', |
| 122 'view_unittest.cc', |
| 123 'widget/widget_unittest.cc', |
| 124 ], |
| 125 'include_dirs': [ |
| 126 '<(DEPTH)', |
| 127 ], |
| 128 'conditions': [ |
| 129 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { |
| 130 'dependencies': [ |
| 131 '<(DEPTH)/build/linux/system.gyp:gtk', |
| 132 '<(DEPTH)/chrome/chrome.gyp:packed_resources', |
| 133 ], |
| 134 'conditions': [ |
| 135 ['linux_use_tcmalloc==1', { |
| 136 'dependencies': [ |
| 137 '<(DEPTH)/base/allocator/allocator.gyp:allocator', |
| 138 ], |
| 139 }], |
| 140 ], |
| 141 }, |
| 142 ], |
| 143 ['OS=="win"', { |
| 144 'sources': [ |
| 145 'widget/widget.rc', |
| 146 'widget/widget_resource.h', |
| 147 ], |
| 148 'link_settings': { |
| 149 'libraries': [ |
| 150 '-limm32.lib', |
| 151 '-loleacc.lib', |
| 152 ] |
| 153 }, |
| 154 }], |
| 155 ], |
| 156 }, |
| 157 { |
| 158 'target_name': 'views_demo', |
| 159 'type': 'executable', |
| 160 'dependencies': [ |
| 161 '<(DEPTH)/skia/skia.gyp:skia', |
| 162 'v2', |
| 163 ], |
| 164 'sources': [ |
| 165 'demo/main.cc', |
| 166 ], |
| 167 'include_dirs': [ |
| 168 '<(DEPTH)', |
| 169 ], |
| 170 'conditions': [ |
| 171 ['OS=="win"', { |
| 172 'sources': [ |
| 173 'widget/widget.rc', |
| 174 'widget/widget_resource.h', |
| 175 ], |
| 176 }], |
| 177 ], |
| 178 }, |
| 179 ], |
| 180 } |
| 181 |
| 182 # Local Variables: |
| 183 # tab-width:2 |
| 184 # indent-tabs-mode:nil |
| 185 # End: |
| 186 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |