# 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() if env.Bit('windows'): env.Prepend( CCFLAGS = [ '/TP', '/wd4244', '/wd4291', '/wd4345', '/wd4521', '/wd4800', ],) elif env.Bit('linux'): env.Append( # For the image readers and decoders: CXXFLAGS = ["-Wno-sign-compare"], LIBS = ['png'], ) input_files = [ ] if env.Bit('mac'): # Mac specific implementations. input_files.extend([ '$PORT_DIR/platform/graphics/mac/FontCacheMacPending.cpp', '$PORT_DIR/rendering/RenderThemeMac.mm', ]) if env.get('KJS'): # These actually no longer exist, but since JSC build is super-broken, we'll # leave them here as stark reminders of our past. input_files.extend([ '$PORT_DIR/bridge/KJSBridge.cpp', '$PORT_DIR/bridge/ScriptControllerKJS.cpp', ]) else: input_files.extend([ '$PORT_DIR/bindings/v8/ScriptController.cpp', ]) env.ChromeLibrary("port", input_files) env.ChromeMSVSProject('$WEBKIT_DIR/build/port/port.vcproj', name = 'Port', dependencies = [ '$WEBKIT_DIR/build/JSConfig/V8Config.vcproj', '$WEBKIT_DIR/build/V8Bindings/V8Bindings_prebuild.vcproj', ], guid='{5597AD47-3494-4750-A235-4F9C2F864700}')