OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 'includes': [ | 6 'includes': [ |
7 '../common/database/webkit_common_database.gypi', | 7 '../common/database/webkit_common_database.gypi', |
8 '../common/fileapi/webkit_common_fileapi.gypi', | 8 '../common/fileapi/webkit_common_fileapi.gypi', |
9 ], | 9 ], |
10 # TODO(michaeln): Have webkit_browser target and deprecate old gypis like | 10 # TODO(michaeln): Have webkit_browser target and deprecate old gypis like |
11 # webkit_storage.gypi. | 11 # webkit_storage.gypi. |
12 'variables': { | 12 'variables': { |
13 'webkit_common_storage_sources': [ | 13 'webkit_common_storage_sources': [ |
14 '<@(webkit_common_database_sources)', | 14 '<@(webkit_common_database_sources)', |
15 '<@(webkit_common_fileapi_sources)', | 15 '<@(webkit_common_fileapi_sources)', |
16 ], | 16 ], |
17 }, | 17 }, |
| 18 |
| 19 'targets': [ |
| 20 { |
| 21 'target_name': 'webkit_common', |
| 22 'type': '<(component)', |
| 23 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 24 'defines': [ |
| 25 'WEBKIT_COMMON_IMPLEMENTATION', |
| 26 ], |
| 27 'dependencies': [ |
| 28 '<(DEPTH)/base/base.gyp:base_i18n', |
| 29 '<(DEPTH)/base/base.gyp:base', |
| 30 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:d
ynamic_annotations', |
| 31 '<(DEPTH)/build/temp_gyp/googleurl.gyp:googleurl', |
| 32 '<(DEPTH)/net/net.gyp:net', |
| 33 '<(DEPTH)/skia/skia.gyp:skia', |
| 34 '<(DEPTH)/ui/ui.gyp:ui', |
| 35 '<(DEPTH)/ui/ui.gyp:ui_resources', |
| 36 ], |
| 37 |
| 38 'include_dirs': [ |
| 39 '<(INTERMEDIATE_DIR)', |
| 40 '<(SHARED_INTERMEDIATE_DIR)/ui', |
| 41 ], |
| 42 |
| 43 'sources': [ |
| 44 'cursors\webcursor.cc', |
| 45 'cursors\webcursor.h', |
| 46 'cursors\webcursor_android.cc', |
| 47 'cursors\webcursor_aura.cc', |
| 48 'cursors\webcursor_aurawin.cc', |
| 49 'cursors\webcursor_aurax11.cc', |
| 50 'cursors\webcursor_null.cc', |
| 51 'cursors\webcursor_gtk.cc', |
| 52 'cursors\webcursor_gtk_data.h', |
| 53 'cursors\webcursor_mac.mm', |
| 54 'cursors\webcursor_win.cc', |
| 55 ], |
| 56 |
| 57 'conditions': [ |
| 58 ['toolkit_uses_gtk == 1', { |
| 59 'dependencies': [ |
| 60 '<(DEPTH)/build/linux/system.gyp:gtk', |
| 61 ], |
| 62 'sources/': [['exclude', '_x11\\.cc$']], |
| 63 }], |
| 64 ['use_aura==1', { |
| 65 'sources!': [ |
| 66 'cursors/webcursor_mac.mm', |
| 67 'cursors/webcursor_win.cc', |
| 68 ], |
| 69 }], |
| 70 ['use_aura==1 and use_x11==1', { |
| 71 'link_settings': { |
| 72 'libraries': [ '-lXcursor', ], |
| 73 }, |
| 74 }], |
| 75 ['use_ozone==0', { |
| 76 'sources!': [ |
| 77 'cursors/webcursor_null.cc', |
| 78 ], |
| 79 }], |
| 80 ['OS!="mac"', { |
| 81 'sources/': [['exclude', '_mac\\.(cc|mm)$']], |
| 82 }, { # else: OS=="mac" |
| 83 'link_settings': { |
| 84 'libraries': [ |
| 85 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework', |
| 86 ], |
| 87 }, |
| 88 }], |
| 89 ['OS!="win"', { |
| 90 'sources/': [['exclude', '_win\\.cc$']], |
| 91 }, { # else: OS=="win" |
| 92 'sources/': [['exclude', '_posix\\.cc$']], |
| 93 }], |
| 94 ], |
| 95 }, |
| 96 ], |
18 } | 97 } |
OLD | NEW |