| OLD | NEW |
| (Empty) | |
| 1 # Copyright (c) 2009 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 'target_defaults': { |
| 7 'variables': { |
| 8 'app_base_target': 0, |
| 9 }, |
| 10 'target_conditions': [ |
| 11 # This part is shared between the targets defined below. Only files and |
| 12 # settings relevant for building the Win64 target should be added here. |
| 13 # All the rest should be added to the 'app_base' target below. |
| 14 ['app_base_target==1', { |
| 15 'sources': [ |
| 16 # Used both for Chrome and for Win64 NaCl loader |
| 17 'app_paths.h', |
| 18 'app_paths.cc', |
| 19 'app_switches.h', |
| 20 'app_switches.cc', |
| 21 'hi_res_timer_manager_posix.cc', |
| 22 'hi_res_timer_manager_win.cc', |
| 23 'hi_res_timer_manager.h', |
| 24 'system_monitor.cc', |
| 25 'system_monitor.h', |
| 26 'system_monitor_posix.cc', |
| 27 'system_monitor_win.cc', |
| 28 'tree_model.h', |
| 29 'tree_node_iterator.h', |
| 30 'tree_node_model.h', |
| 31 'win/window_impl.cc', |
| 32 'win/window_impl.h', |
| 33 ], |
| 34 'include_dirs': [ |
| 35 '..', |
| 36 '../chrome/third_party/wtl/include', |
| 37 ], |
| 38 'conditions': [ |
| 39 ['OS=="win"', { |
| 40 'sources': [ |
| 41 'win_util.cc', |
| 42 'win_util.h', |
| 43 ], |
| 44 }], |
| 45 ['OS!="linux"', { |
| 46 'sources!': [ |
| 47 'gfx/gtk_util.cc', |
| 48 'gfx/gtk_util.h', |
| 49 'gtk_dnd_util.cc', |
| 50 'gtk_dnd_util.h', |
| 51 ], |
| 52 }], |
| 53 ], |
| 54 }], |
| 55 ], |
| 56 }, |
| 57 'targets': [ |
| 58 { |
| 59 'target_name': 'app_base', |
| 60 'type': '<(library)', |
| 61 'msvs_guid': '4631946D-7D5F-44BD-A5A8-504C0A7033BE', |
| 62 'variables': { |
| 63 'app_base_target': 1, |
| 64 }, |
| 65 'dependencies': [ |
| 66 # app resources and app_strings should be shared with the 64-bit |
| 67 # target, but it doesn't work due to a bug in gyp |
| 68 'app_resources', |
| 69 'app_strings', |
| 70 '../base/base.gyp:base', |
| 71 '../base/base.gyp:base_i18n', |
| 72 '../net/net.gyp:net', |
| 73 '../skia/skia.gyp:skia', |
| 74 '../third_party/icu/icu.gyp:icui18n', |
| 75 '../third_party/icu/icu.gyp:icuuc', |
| 76 '../third_party/libjpeg/libjpeg.gyp:libjpeg', |
| 77 '../third_party/libpng/libpng.gyp:libpng', |
| 78 '../third_party/sqlite/sqlite.gyp:sqlite', |
| 79 '../third_party/zlib/zlib.gyp:zlib', |
| 80 ], |
| 81 # TODO(gregoryd)The direct_dependent_settings should be shared with |
| 82 # the 32-bit target, but it doesn't work due to a bug in gyp |
| 83 'direct_dependent_settings': { |
| 84 'include_dirs': [ |
| 85 '..', |
| 86 ], |
| 87 }, |
| 88 'sources': [ |
| 89 # Files that are not required for Win64 Native Client loader |
| 90 'animation.cc', |
| 91 'animation.h', |
| 92 'active_window_watcher_x.cc', |
| 93 'active_window_watcher_x.h', |
| 94 'clipboard/clipboard.cc', |
| 95 'clipboard/clipboard.h', |
| 96 'clipboard/clipboard_linux.cc', |
| 97 'clipboard/clipboard_mac.mm', |
| 98 'clipboard/clipboard_util_win.cc', |
| 99 'clipboard/clipboard_util_win.h', |
| 100 'clipboard/clipboard_win.cc', |
| 101 'clipboard/scoped_clipboard_writer.cc', |
| 102 'clipboard/scoped_clipboard_writer.h', |
| 103 'combobox_model.h', |
| 104 'drag_drop_types_gtk.cc', |
| 105 'drag_drop_types_win.cc', |
| 106 'drag_drop_types.h', |
| 107 'gfx/blit.cc', |
| 108 'gfx/blit.h', |
| 109 'gfx/canvas.cc', |
| 110 'gfx/canvas.h', |
| 111 'gfx/canvas_linux.cc', |
| 112 'gfx/canvas_mac.mm', |
| 113 'gfx/canvas_win.cc', |
| 114 'gfx/codec/jpeg_codec.cc', |
| 115 'gfx/codec/jpeg_codec.h', |
| 116 'gfx/codec/png_codec.cc', |
| 117 'gfx/codec/png_codec.h', |
| 118 'gfx/color_utils.cc', |
| 119 'gfx/color_utils.h', |
| 120 'gfx/favicon_size.h', |
| 121 'gfx/font.h', |
| 122 'gfx/font_gtk.cc', |
| 123 'gfx/font_mac.mm', |
| 124 'gfx/font_skia.cc', |
| 125 'gfx/font_util.h', |
| 126 'gfx/font_util.cc', |
| 127 'gfx/font_win.cc', |
| 128 'gfx/gdi_util.cc', |
| 129 'gfx/gdi_util.h', |
| 130 'gfx/gtk_util.cc', |
| 131 'gfx/gtk_util.h', |
| 132 'gfx/icon_util.cc', |
| 133 'gfx/icon_util.h', |
| 134 'gfx/insets.h', |
| 135 'gfx/native_widget_types.h', |
| 136 'gfx/native_widget_types_gtk.cc', |
| 137 'gfx/native_theme_win.cc', |
| 138 'gfx/native_theme_win.h', |
| 139 'gfx/gtk_native_view_id_manager.cc', |
| 140 'gfx/gtk_native_view_id_manager.h', |
| 141 'gfx/path.cc', |
| 142 'gfx/path_gtk.cc', |
| 143 'gfx/path_win.cc', |
| 144 'gfx/path.h', |
| 145 'gfx/skbitmap_operations.cc', |
| 146 'gfx/skbitmap_operations.h', |
| 147 'gfx/text_elider.cc', |
| 148 'gfx/text_elider.h', |
| 149 'gtk_dnd_util.cc', |
| 150 'gtk_dnd_util.h', |
| 151 'l10n_util.cc', |
| 152 'l10n_util.h', |
| 153 'l10n_util_mac.h', |
| 154 'l10n_util_mac.mm', |
| 155 'l10n_util_posix.cc', |
| 156 'l10n_util_win.cc', |
| 157 'l10n_util_win.h', |
| 158 'menus/accelerator.h', |
| 159 'menus/menu_model.cc', |
| 160 'menus/menu_model.h', |
| 161 'menus/simple_menu_model.cc', |
| 162 'menus/simple_menu_model.h', |
| 163 'message_box_flags.h', |
| 164 'os_exchange_data_provider_gtk.cc', |
| 165 'os_exchange_data_provider_gtk.h', |
| 166 'os_exchange_data_provider_win.cc', |
| 167 'os_exchange_data_provider_win.h', |
| 168 'os_exchange_data.cc', |
| 169 'os_exchange_data.h', |
| 170 'resource_bundle.cc', |
| 171 'resource_bundle.h', |
| 172 'resource_bundle_linux.cc', |
| 173 'resource_bundle_mac.mm', |
| 174 'resource_bundle_posix.cc', |
| 175 'resource_bundle_win.cc', |
| 176 'slide_animation.cc', |
| 177 'slide_animation.h', |
| 178 'sql/connection.cc', |
| 179 'sql/connection.h', |
| 180 'sql/meta_table.cc', |
| 181 'sql/meta_table.h', |
| 182 'sql/statement.cc', |
| 183 'sql/statement.h', |
| 184 'sql/transaction.cc', |
| 185 'sql/transaction.h', |
| 186 'table_model.cc', |
| 187 'table_model.h', |
| 188 'table_model_observer.h', |
| 189 'theme_provider.cc', |
| 190 'theme_provider.h', |
| 191 'throb_animation.cc', |
| 192 'throb_animation.h', |
| 193 ], |
| 194 'conditions': [ |
| 195 ['OS=="linux"', { |
| 196 'dependencies': [ |
| 197 # font_gtk.cc uses fontconfig. |
| 198 # TODO(evanm): I think this is wrong; it should just use GTK. |
| 199 '../build/linux/system.gyp:fontconfig', |
| 200 '../build/linux/system.gyp:gtk', |
| 201 '../build/linux/system.gyp:x11', |
| 202 ], |
| 203 'conditions': [ |
| 204 ['toolkit_views==0 and chromeos==0', { |
| 205 # Note: because of gyp predence rules this has to be defined as |
| 206 # 'sources/' rather than 'sources!'. |
| 207 'sources/': [ |
| 208 ['exclude', '^os_exchange_data.cc'], |
| 209 ['exclude', '^os_exchange_data.h'], |
| 210 ['exclude', '^os_exchange_data_provider_gtk.cc'], |
| 211 ['exclude', '^os_exchange_data_provider_gtk.h'], |
| 212 ['exclude', '^drag_drop_types_gtk.cc'], |
| 213 ], |
| 214 }], |
| 215 ['toolkit_views==1 or chromeos==1', { |
| 216 # Note: because of gyp predence rules this has to be defined as |
| 217 # 'sources/' rather than 'sources!'. |
| 218 'sources/': [ |
| 219 ['include', '^os_exchange_data.cc'], |
| 220 ], |
| 221 }], |
| 222 ], |
| 223 }], |
| 224 ['OS!="win"', { |
| 225 'sources!': [ |
| 226 'drag_drop_types.h', |
| 227 'gfx/gdi_util.cc', |
| 228 'gfx/gdi_util.h', |
| 229 'gfx/icon_util.cc', |
| 230 'gfx/icon_util.h', |
| 231 'gfx/native_theme_win.cc', |
| 232 'gfx/native_theme_win.h', |
| 233 'os_exchange_data.cc', |
| 234 'win/window_impl.cc', |
| 235 'win/window_impl.h', |
| 236 ], |
| 237 }], |
| 238 ], |
| 239 }, |
| 240 ], |
| 241 'conditions': [ |
| 242 ['OS=="win"', { |
| 243 'targets': [ |
| 244 { |
| 245 'target_name': 'app_base_nacl_win64', |
| 246 'type': '<(library)', |
| 247 'msvs_guid': '4987C6F9-B230-48E5-BF91-418EAE69AD90', |
| 248 'dependencies': [ |
| 249 # app resources and app_strings should be shared with the 32-bit |
| 250 # target, but it doesn't work due to a bug in gyp |
| 251 'app_resources', |
| 252 'app_strings', |
| 253 '../base/base.gyp:base_nacl_win64', |
| 254 ], |
| 255 'variables': { |
| 256 'app_base_target': 1, |
| 257 }, |
| 258 'defines': [ |
| 259 '<@(nacl_win64_defines)', |
| 260 ], |
| 261 # TODO(gregoryd)The direct_dependent_settings should be shared with |
| 262 # the 32-bit target, but it doesn't work due to a bug in gyp |
| 263 'direct_dependent_settings': { |
| 264 'include_dirs': [ |
| 265 '..', |
| 266 ], |
| 267 }, |
| 268 'sources': [ |
| 269 'l10n_util_dummy.cc', |
| 270 'resource_bundle_dummy.cc', |
| 271 ], |
| 272 'include_dirs': [ |
| 273 '../skia/config/win', |
| 274 '../third_party/icu/public/common', |
| 275 '../third_party/icu/public/i18n', |
| 276 '../third_party/npapi', |
| 277 '../third_party/skia/include/config', |
| 278 '../third_party/skia/include/core', |
| 279 ], |
| 280 'configurations': { |
| 281 'Common': { |
| 282 'msvs_target_platform': 'x64', |
| 283 }, |
| 284 }, |
| 285 }, |
| 286 ], |
| 287 }], |
| 288 ], |
| 289 } |
| OLD | NEW |