summaryrefslogtreecommitdiffstats
path: root/webkit/SConscript.javascriptcore_pcre
blob: 42db440b3c2a6cf3ef4cda449ccf4fa0fa51749e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

Import('env')

env = env.Clone(
    PCRE_DIR = '$WEBKIT_DIR/port/JavaScriptCore/pcre',
)

env.Prepend(
    CPPPATH = [
        '$WEBKIT_DIR/port/JavaScriptCore',
        '$WEBKIT_DIR/port/JavaScriptCore/pcre',
        '$WEBKIT_DIR/build/JSConfig/WebCore/v8',
    ])

if env['PLATFORM'] == 'win32':
    env.Prepend(
        CCFLAGS = [
                '/TP',
                '/wd4127',
                '/wd4355',
                '/wd4510',
                '/wd4512',
                '/wd4610',
                '/wd4706',
                '/wd4800',
                ],
        )

dir = env.Dir('$PCRE_DIR')

dir.addRepository(env.Dir('#/../webkit/pending'))
dir.addRepository(env.Dir('#/../third_party/WebKit/JavaScriptCore/pcre'))

input_files = [
     '$PCRE_DIR/pcre_compile.cpp',
     '$PCRE_DIR/pcre_xclass.cpp',
     '$PCRE_DIR/pcre_ucp_searchfuncs.cpp',
     '$PCRE_DIR/pcre_tables.cpp',
     '$PCRE_DIR/pcre_exec.cpp',
]

env.ChromeStaticLibrary('JavaScriptCore_pcre', input_files)