Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: webkit/javascriptcore.gyp

Issue 208029: Upstreamings parts of webkit.gyp (step 2) (Closed)
Patch Set: removed hash Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 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 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 'features.gypi',
7 '../third_party/WebKit/JavaScriptCore/JavaScriptCore.gypi', 8 '../third_party/WebKit/JavaScriptCore/JavaScriptCore.gypi',
8 ], 9 ],
9 'targets': [ 10 'targets': [
10 { 11 {
12 # This target sets up defines and includes that are required by WTF and
13 # its dependents.
14 'target_name': 'wtf_config',
15 'type': 'none',
16 'msvs_guid': '2E2D3301-2EC4-4C0F-B889-87073B30F673',
17 'direct_dependent_settings': {
18 'defines': [
19 # Import features_defines from features.gypi
20 '<@(feature_defines)',
21
22 # Turns on #if PLATFORM(CHROMIUM)
23 'BUILDING_CHROMIUM__=1',
24 # Controls wtf/FastMalloc
25 # TODO(yaar) consider moving into config.h
26 'USE_SYSTEM_MALLOC=1',
27 ],
28 'conditions': [
29 ['OS=="win"', {
30 'defines': [
31 '__STD_C',
32 '_CRT_SECURE_NO_DEPRECATE',
33 '_SCL_SECURE_NO_DEPRECATE',
34 'CRASH=__debugbreak',
35 ],
36 'include_dirs': [
37 '../third_party/WebKit/JavaScriptCore/os-win32',
38 'build/JavaScriptCore',
39 ],
40 }],
41 ['OS=="mac"', {
42 'defines': [
43 # Ensure that only Leopard features are used when doing the
44 # Mac build.
45 'BUILDING_ON_LEOPARD',
46
47 # Use USE_NEW_THEME on Mac.
48 'WTF_USE_NEW_THEME=1',
49 ],
50 }],
51 ['OS=="linux" or OS=="freebsd"', {
52 'defines': [
53 'WTF_USE_PTHREADS=1',
54 ],
55 }],
56 ],
57 }
58 },
59 {
11 'target_name': 'wtf', 60 'target_name': 'wtf',
12 'type': '<(library)', 61 'type': '<(library)',
13 'msvs_guid': 'AA8A5A85-592B-4357-BC60-E0E91E026AF6', 62 'msvs_guid': 'AA8A5A85-592B-4357-BC60-E0E91E026AF6',
14 'dependencies': [ 63 'dependencies': [
15 'config.gyp:config', 64 'wtf_config',
16 '../third_party/icu/icu.gyp:icui18n', 65 '../third_party/icu/icu.gyp:icui18n',
17 '../third_party/icu/icu.gyp:icuuc', 66 '../third_party/icu/icu.gyp:icuuc',
18 ], 67 ],
19 'include_dirs': [ 68 'include_dirs': [
20 '../third_party/WebKit/JavaScriptCore', 69 '../third_party/WebKit/JavaScriptCore',
21 '../third_party/WebKit/JavaScriptCore/wtf', 70 '../third_party/WebKit/JavaScriptCore/wtf',
22 '../third_party/WebKit/JavaScriptCore/wtf/unicode', 71 '../third_party/WebKit/JavaScriptCore/wtf/unicode',
23 ], 72 ],
24 'sources': [ 73 'sources': [
25 '<@(javascriptcore_files)', 74 '<@(javascriptcore_files)',
26 ], 75 ],
27 'sources/': [ 76 'sources/': [
28 # First exclude everything ... 77 # First exclude everything ...
29 ['exclude', 'JavaScriptCore/'], 78 ['exclude', 'JavaScriptCore/'],
30 # ... Then include what we want. 79 # ... Then include what we want.
31 ['include', 'JavaScriptCore/wtf/'], 80 ['include', 'JavaScriptCore/wtf/'],
32 # GLib/GTK, even though its name doesn't really indicate. 81 # GLib/GTK, even though its name doesn't really indicate.
33 ['exclude', '/(GOwnPtr|glib/.*)\\.(cpp|h)$'], 82 ['exclude', '/(GOwnPtr|glib/.*)\\.(cpp|h)$'],
34 ['exclude', '(Default|Gtk|Mac|None|Qt|Win|Wx)\\.(cpp|mm)$'], 83 ['exclude', '(Default|Gtk|Mac|None|Qt|Win|Wx)\\.(cpp|mm)$'],
35 ], 84 ],
36 'direct_dependent_settings': { 85 'direct_dependent_settings': {
37 'include_dirs': [ 86 'include_dirs': [
38 '../third_party/WebKit/JavaScriptCore', 87 '../third_party/WebKit/JavaScriptCore',
39 '../third_party/WebKit/JavaScriptCore/wtf', 88 '../third_party/WebKit/JavaScriptCore/wtf',
40 ], 89 ],
41 }, 90 },
42 'export_dependent_settings': [ 91 'export_dependent_settings': [
43 'config.gyp:config', 92 'wtf_config',
44 '../third_party/icu/icu.gyp:icui18n', 93 '../third_party/icu/icu.gyp:icui18n',
45 '../third_party/icu/icu.gyp:icuuc', 94 '../third_party/icu/icu.gyp:icuuc',
46 ], 95 ],
47 'msvs_disabled_warnings': [4127, 4355, 4510, 4512, 4610, 4706], 96 'msvs_disabled_warnings': [4127, 4355, 4510, 4512, 4610, 4706],
48 'conditions': [ 97 'conditions': [
49 ['OS=="win"', { 98 ['OS=="win"', {
50 'sources/': [ 99 'sources/': [
51 ['exclude', 'ThreadingPthreads\\.cpp$'], 100 ['exclude', 'ThreadingPthreads\\.cpp$'],
52 ['include', 'Thread(ing|Specific)Win\\.cpp$'] 101 ['include', 'Thread(ing|Specific)Win\\.cpp$']
53 ], 102 ],
54 'include_dirs': [ 103 'include_dirs': [
55 'build', 104 'build',
56 '../third_party/WebKit/JavaScriptCore/kjs', 105 '../third_party/WebKit/JavaScriptCore/kjs',
57 '../third_party/WebKit/JavaScriptCore/API', 106 '../third_party/WebKit/JavaScriptCore/API',
58 # These 3 do not seem to exist. 107 # These 3 do not seem to exist.
59 '../third_party/WebKit/JavaScriptCore/bindings', 108 '../third_party/WebKit/JavaScriptCore/bindings',
60 '../third_party/WebKit/JavaScriptCore/bindings/c', 109 '../third_party/WebKit/JavaScriptCore/bindings/c',
61 '../third_party/WebKit/JavaScriptCore/bindings/jni', 110 '../third_party/WebKit/JavaScriptCore/bindings/jni',
62 'pending', 111 'pending',
63 'pending/wtf', 112 'pending/wtf',
64 ], 113 ],
65 'include_dirs!': [ 114 'include_dirs!': [
66 '<(SHARED_INTERMEDIATE_DIR)/webkit', 115 '<(SHARED_INTERMEDIATE_DIR)/webkit',
67 ], 116 ],
68 }], 117 }],
69 ['OS=="linux" or OS=="freebsd"', {
70 'defines': ['WTF_USE_PTHREADS=1'],
71 'direct_dependent_settings': {
72 'defines': ['WTF_USE_PTHREADS=1'],
73 },
74 }],
75 ], 118 ],
76 }, 119 },
77 { 120 {
78 'target_name': 'pcre', 121 'target_name': 'pcre',
79 'type': '<(library)', 122 'type': '<(library)',
80 'dependencies': [ 123 'dependencies': [
81 'config.gyp:config',
82 'wtf', 124 'wtf',
83 ], 125 ],
84 'msvs_guid': '49909552-0B0C-4C14-8CF6-DB8A2ADE0934', 126 'msvs_guid': '49909552-0B0C-4C14-8CF6-DB8A2ADE0934',
85 'actions': [ 127 'actions': [
86 { 128 {
87 'action_name': 'dftables', 129 'action_name': 'dftables',
88 'inputs': [ 130 'inputs': [
89 '../third_party/WebKit/JavaScriptCore/pcre/dftables', 131 '../third_party/WebKit/JavaScriptCore/pcre/dftables',
90 ], 132 ],
91 'outputs': [ 133 'outputs': [
(...skipping 21 matching lines...) Expand all
113 'wtf', 155 'wtf',
114 ], 156 ],
115 'conditions': [ 157 'conditions': [
116 ['OS=="win"', { 158 ['OS=="win"', {
117 'dependencies': ['../build/win/system.gyp:cygwin'], 159 'dependencies': ['../build/win/system.gyp:cygwin'],
118 }], 160 }],
119 ], 161 ],
120 }, 162 },
121 ], # targets 163 ], # targets
122 } 164 }
OLDNEW
« no previous file with comments | « webkit/features.gypi ('k') | webkit/webcore.gyp » ('j') | webkit/webcore.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698