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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/features.gypi ('k') | webkit/webcore.gyp » ('j') | webkit/webcore.gyp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/javascriptcore.gyp
diff --git a/webkit/javascriptcore.gyp b/webkit/javascriptcore.gyp
index d2429b1fc7fb8bbadd0c601d7915c68ba8b51fe6..565c1399d6df92335ffe73a1becb83bfc59d9810 100644
--- a/webkit/javascriptcore.gyp
+++ b/webkit/javascriptcore.gyp
@@ -4,15 +4,64 @@
{
'includes': [
+ 'features.gypi',
'../third_party/WebKit/JavaScriptCore/JavaScriptCore.gypi',
],
'targets': [
{
+ # This target sets up defines and includes that are required by WTF and
+ # its dependents.
+ 'target_name': 'wtf_config',
+ 'type': 'none',
+ 'msvs_guid': '2E2D3301-2EC4-4C0F-B889-87073B30F673',
+ 'direct_dependent_settings': {
+ 'defines': [
+ # Import features_defines from features.gypi
+ '<@(feature_defines)',
+
+ # Turns on #if PLATFORM(CHROMIUM)
+ 'BUILDING_CHROMIUM__=1',
+ # Controls wtf/FastMalloc
+ # TODO(yaar) consider moving into config.h
+ 'USE_SYSTEM_MALLOC=1',
+ ],
+ 'conditions': [
+ ['OS=="win"', {
+ 'defines': [
+ '__STD_C',
+ '_CRT_SECURE_NO_DEPRECATE',
+ '_SCL_SECURE_NO_DEPRECATE',
+ 'CRASH=__debugbreak',
+ ],
+ 'include_dirs': [
+ '../third_party/WebKit/JavaScriptCore/os-win32',
+ 'build/JavaScriptCore',
+ ],
+ }],
+ ['OS=="mac"', {
+ 'defines': [
+ # Ensure that only Leopard features are used when doing the
+ # Mac build.
+ 'BUILDING_ON_LEOPARD',
+
+ # Use USE_NEW_THEME on Mac.
+ 'WTF_USE_NEW_THEME=1',
+ ],
+ }],
+ ['OS=="linux" or OS=="freebsd"', {
+ 'defines': [
+ 'WTF_USE_PTHREADS=1',
+ ],
+ }],
+ ],
+ }
+ },
+ {
'target_name': 'wtf',
'type': '<(library)',
'msvs_guid': 'AA8A5A85-592B-4357-BC60-E0E91E026AF6',
'dependencies': [
- 'config.gyp:config',
+ 'wtf_config',
'../third_party/icu/icu.gyp:icui18n',
'../third_party/icu/icu.gyp:icuuc',
],
@@ -40,7 +89,7 @@
],
},
'export_dependent_settings': [
- 'config.gyp:config',
+ 'wtf_config',
'../third_party/icu/icu.gyp:icui18n',
'../third_party/icu/icu.gyp:icuuc',
],
@@ -66,19 +115,12 @@
'<(SHARED_INTERMEDIATE_DIR)/webkit',
],
}],
- ['OS=="linux" or OS=="freebsd"', {
- 'defines': ['WTF_USE_PTHREADS=1'],
- 'direct_dependent_settings': {
- 'defines': ['WTF_USE_PTHREADS=1'],
- },
- }],
],
},
{
'target_name': 'pcre',
'type': '<(library)',
'dependencies': [
- 'config.gyp:config',
'wtf',
],
'msvs_guid': '49909552-0B0C-4C14-8CF6-DB8A2ADE0934',
« 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