Chromium Code Reviews| 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 'includes': [ | |
| 7 '../third_party/WebKit/JavaScriptCore/JavaScriptCore.gypi', | |
| 8 ], | |
| 9 'targets': [ | |
| 10 { | |
| 11 'target_name': 'wtf', | |
| 12 'type': '<(library)', | |
| 13 'msvs_guid': 'AA8A5A85-592B-4357-BC60-E0E91E026AF6', | |
| 14 'dependencies': [ | |
| 15 'config.gyp:config', | |
| 16 '../third_party/icu/icu.gyp:icui18n', | |
| 17 '../third_party/icu/icu.gyp:icuuc', | |
| 18 ], | |
| 19 'include_dirs': [ | |
| 20 '../third_party/WebKit/JavaScriptCore', | |
| 21 '../third_party/WebKit/JavaScriptCore/wtf', | |
| 22 '../third_party/WebKit/JavaScriptCore/wtf/unicode', | |
| 23 ], | |
| 24 'sources': [ | |
| 25 '<@(javascriptcore_files)', | |
| 26 ], | |
| 27 'sources/': [ | |
| 28 # First exclude everything ... | |
| 29 ['exclude', 'JavaScriptCore/'], | |
| 30 # ... Then include what we want. | |
| 31 ['include', 'JavaScriptCore/wtf/'], | |
| 32 # GLib/GTK, even though its name doesn't really indicate. | |
| 33 ['exclude', '/(GOwnPtr|glib/.*)\\.(cpp|h)$'], | |
| 34 ['exclude', '(Default|Gtk|Mac|None|Qt|Win|Wx)\\.(cpp|mm)$'], | |
| 35 ], | |
| 36 'direct_dependent_settings': { | |
| 37 'include_dirs': [ | |
| 38 '../third_party/WebKit/JavaScriptCore', | |
| 39 '../third_party/WebKit/JavaScriptCore/wtf', | |
| 40 ], | |
| 41 }, | |
| 42 'export_dependent_settings': [ | |
| 43 'config.gyp:config', | |
| 44 '../third_party/icu/icu.gyp:icui18n', | |
| 45 '../third_party/icu/icu.gyp:icuuc', | |
| 46 ], | |
| 47 'msvs_disabled_warnings': [4127, 4355, 4510, 4512, 4610, 4706], | |
| 48 'conditions': [ | |
| 49 ['OS=="win"', { | |
| 50 'sources/': [ | |
| 51 ['exclude', 'ThreadingPthreads\\.cpp$'], | |
| 52 ['include', 'Thread(ing|Specific)Win\\.cpp$'] | |
| 53 ], | |
| 54 'include_dirs': [ | |
| 55 'build', | |
| 56 '../third_party/WebKit/JavaScriptCore/kjs', | |
| 57 '../third_party/WebKit/JavaScriptCore/API', | |
| 58 # These 3 do not seem to exist. | |
| 59 '../third_party/WebKit/JavaScriptCore/bindings', | |
| 60 '../third_party/WebKit/JavaScriptCore/bindings/c', | |
| 61 '../third_party/WebKit/JavaScriptCore/bindings/jni', | |
| 62 'pending', | |
| 63 'pending/wtf', | |
| 64 ], | |
| 65 'include_dirs!': [ | |
| 66 '<(SHARED_INTERMEDIATE_DIR)/webkit', | |
| 67 ], | |
| 68 }], | |
| 69 ['OS=="linux" or OS=="freebsd"', { | |
| 70 'defines': ['WTF_USE_PTHREADS=1'], | |
|
Mark Mentovai
2009/09/17 17:56:26
Is this something that we want in features.gypi?
| |
| 71 'direct_dependent_settings': { | |
| 72 'defines': ['WTF_USE_PTHREADS=1'], | |
| 73 }, | |
| 74 }], | |
| 75 ], | |
| 76 }, | |
| 77 { | |
| 78 'target_name': 'pcre', | |
| 79 'type': '<(library)', | |
| 80 'dependencies': [ | |
| 81 'config.gyp:config', | |
| 82 'wtf', | |
| 83 ], | |
| 84 'msvs_guid': '49909552-0B0C-4C14-8CF6-DB8A2ADE0934', | |
| 85 'actions': [ | |
| 86 { | |
| 87 'action_name': 'dftables', | |
| 88 'inputs': [ | |
| 89 '../third_party/WebKit/JavaScriptCore/pcre/dftables', | |
| 90 ], | |
| 91 'outputs': [ | |
| 92 '<(INTERMEDIATE_DIR)/chartables.c', | |
| 93 ], | |
| 94 'action': ['perl', '-w', '<@(_inputs)', '<@(_outputs)'], | |
| 95 }, | |
| 96 ], | |
| 97 'include_dirs': [ | |
| 98 '<(INTERMEDIATE_DIR)', | |
| 99 ], | |
| 100 'sources': [ | |
| 101 '<@(javascriptcore_files)', | |
| 102 ], | |
| 103 'sources/': [ | |
| 104 # First exclude everything ... | |
| 105 ['exclude', 'JavaScriptCore/'], | |
| 106 # ... Then include what we want. | |
| 107 ['include', 'JavaScriptCore/pcre/'], | |
| 108 # ucptable.cpp is #included by pcre_ucp_searchfunchs.cpp and is not | |
| 109 # intended to be compiled directly. | |
| 110 ['exclude', 'JavaScriptCore/pcre/ucptable.cpp$'], | |
| 111 ], | |
| 112 'export_dependent_settings': [ | |
| 113 'wtf', | |
| 114 ], | |
| 115 'conditions': [ | |
| 116 ['OS=="win"', { | |
| 117 'dependencies': ['../build/win/system.gyp:cygwin'], | |
| 118 }], | |
| 119 ], | |
| 120 }, | |
| 121 ], # targets | |
| 122 } | |
| OLD | NEW |