OLD | NEW |
| (Empty) |
1 # Copyright (c) 2006-2008 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 Import('env') | |
6 | |
7 env = env.Clone( | |
8 PCRE_DIR = '$WEBKIT_DIR/port/JavaScriptCore/pcre', | |
9 ) | |
10 | |
11 env.Prepend( | |
12 CPPPATH = [ | |
13 '$WEBKIT_DIR/port/JavaScriptCore', | |
14 '$WEBKIT_DIR/port/JavaScriptCore/pcre', | |
15 '$WEBKIT_DIR/build/JSConfig/WebCore/v8', | |
16 ]) | |
17 | |
18 if env.Bit('windows'): | |
19 env.Prepend( | |
20 CCFLAGS = [ | |
21 '/TP', | |
22 '/wd4127', | |
23 '/wd4355', | |
24 '/wd4510', | |
25 '/wd4512', | |
26 '/wd4610', | |
27 '/wd4706', | |
28 '/wd4800', | |
29 ], | |
30 ) | |
31 | |
32 # Map Hammer/webkit/port/JavaScriptCore/pcre so it's backed by | |
33 # third_party/WebKit/JavaScriptCore/pcre. | |
34 # | |
35 # TODO(sgk): This can be refactored to work more naturally if we just | |
36 # mirror third_party directory structure under webkit/port, instead of | |
37 # mapping Javascript => Javascript (here) and Webkit/WebCore => port | |
38 # (over in ../build/SConscript.main). | |
39 | |
40 obj_dir = env.Dir('$PCRE_DIR') | |
41 src_dir = env.Dir('$CHROME_SRC_DIR/third_party/WebKit/JavaScriptCore/pcre') | |
42 obj_dir.addRepository(src_dir) | |
43 | |
44 input_files = [ | |
45 '$PCRE_DIR/pcre_compile.cpp', | |
46 '$PCRE_DIR/pcre_xclass.cpp', | |
47 '$PCRE_DIR/pcre_ucp_searchfuncs.cpp', | |
48 '$PCRE_DIR/pcre_tables.cpp', | |
49 '$PCRE_DIR/pcre_exec.cpp', | |
50 ] | |
51 | |
52 env.ChromeLibrary('JavaScriptCore_pcre', input_files) | |
53 | |
54 env.ChromeMSVSProject('$WEBKIT_DIR/build/JavaScriptCore/JavaScriptCore_pcre.vcpr
oj', | |
55 guid='{49909552-0B0C-4C14-8CF6-DB8A2ADE0934}') | |
OLD | NEW |