| 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', 'env_res') | |
| 6 | |
| 7 env = env.Clone() | |
| 8 env_res = env_res.Clone() | |
| 9 | |
| 10 input_files = [ | |
| 11 'main.cpp', | |
| 12 'PluginObject.cpp', | |
| 13 'TestObject.cpp' | |
| 14 ] | |
| 15 | |
| 16 if env.Bit('windows'): | |
| 17 input_files.extend([ | |
| 18 env_res.RES('npapi_layout_test_plugin.rc'), | |
| 19 'npapi_layout_test_plugin.def' | |
| 20 ]) | |
| 21 | |
| 22 env.Append( | |
| 23 CCFLAGS = [ | |
| 24 '/TP', | |
| 25 '/WX', | |
| 26 ], | |
| 27 | |
| 28 LIBS = [ | |
| 29 'comctl32.lib', | |
| 30 'rpcrt4.lib', | |
| 31 'shlwapi.lib', | |
| 32 'winmm.lib', | |
| 33 ], | |
| 34 | |
| 35 LINKFLAGS = [ | |
| 36 '/DELAYLOAD:"dwmapi.dll"', | |
| 37 '/DELAYLOAD:"uxtheme.dll"', | |
| 38 '/FIXED:No', | |
| 39 '/SUBSYSTEM:CONSOLE', | |
| 40 '/MACHINE:X86', | |
| 41 '/safeseh', | |
| 42 '/dynamicbase', | |
| 43 '/ignore:4199', | |
| 44 '/nxcompat', | |
| 45 ], | |
| 46 ) | |
| 47 | |
| 48 dll = env.ChromeSharedLibrary('npapi_layout_test_plugin', input_files) | |
| 49 | |
| 50 env.ChromeMSVSProject(('$WEBKIT_DIR/tools/npapi_layout_test_plugin/' + | |
| 51 'npapi_layout_test_plugin.vcproj'), | |
| 52 guid='{BE6D5659-A8D5-4890-A42C-090DD10EF62C}') | |
| 53 | |
| 54 # Install ourselves into the destination root so that dependent tests | |
| 55 # can find us. | |
| 56 i = env.Install('$DESTINATION_ROOT/plugins', dll) | |
| 57 env.Alias('webkit', i) | |
| OLD | NEW |