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 | |
9 if env.Bit('windows'): | |
10 env.Prepend( | |
11 CCFLAGS = [ | |
12 '/TP', | |
13 | |
14 '/wd4244', | |
15 '/wd4291', | |
16 '/wd4345', | |
17 '/wd4521', | |
18 '/wd4800', | |
19 ],) | |
20 elif env.Bit('linux'): | |
21 env.Append( | |
22 # For the image readers and decoders: | |
23 CXXFLAGS = ["-Wno-sign-compare"], | |
24 LIBS = ['png'], | |
25 ) | |
26 | |
27 input_files = [ | |
28 ] | |
29 | |
30 if env.Bit('mac'): | |
31 # Mac specific implementations. | |
32 input_files.extend([ | |
33 '$PORT_DIR/platform/graphics/mac/FontCacheMacPending.cpp', | |
34 '$PORT_DIR/rendering/RenderThemeMac.mm', | |
35 ]) | |
36 | |
37 if env.get('KJS'): | |
38 # These actually no longer exist, but since JSC build is super-broken, we'll | |
39 # leave them here as stark reminders of our past. | |
40 input_files.extend([ | |
41 '$PORT_DIR/bridge/KJSBridge.cpp', | |
42 '$PORT_DIR/bridge/ScriptControllerKJS.cpp', | |
43 ]) | |
44 else: | |
45 input_files.extend([ | |
46 '$PORT_DIR/bindings/v8/ScriptController.cpp', | |
47 ]) | |
48 | |
49 env.ChromeLibrary("port", input_files) | |
50 | |
51 env.ChromeMSVSProject('$WEBKIT_DIR/build/port/port.vcproj', | |
52 name = 'Port', | |
53 dependencies = [ | |
54 '$WEBKIT_DIR/build/JSConfig/V8Config.vcproj', | |
55 '$WEBKIT_DIR/build/V8Bindings/V8Bindings_prebuild.vcproj', | |
56 ], | |
57 guid='{5597AD47-3494-4750-A235-4F9C2F864700}') | |
OLD | NEW |