blob: 15ce4ef2088fc6655621e29316d41f279b75da36 [file] [log] [blame]
# 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()
env.Prepend(
CPPPATH = [
'.',
'$CHROME_SRC_DIR',
],
)
if env.Bit('windows'):
env.Prepend(
LINKFLAGS = [
'/INCREMENTAL',
'/MANIFEST',
'/DELAYLOAD:"dwmapi.dll"',
'/DELAYLOAD:"uxtheme.dll"',
'/MACHINE:X86',
'/FIXED:No',
'/safeseh',
'/dynamicbase',
'/ignore:4199',
'/nxcompat',
'/DEBUG',
],
LIBS = [
'comsuppw.lib',
],
)
# TODO(port):
if env.Bit('windows'):
env.TypeLibrary('activex_test_control.idl')
input_files = ChromeFileList([
# TODO(sgk): violate standard indentation so we don't have to
# reindent too much when we remove the explicit MSVSFilter() calls
# in favor of generating the hierarchy to reflect the file system.
MSVSFilter('resource', [
'activex_test_control.rc',
'activex_test_control.rgs',
'chrome_test_control.bmp',
'chrome_test_control.rgs',
]),
'activex_test_control.cc',
'activex_test_control.def',
'activex_test_control.idl',
'chrome_test_control.cc',
'chrome_test_control.h',
'chrome_test_control_cp.h',
'resource.h',
])
# TODO(port):
if env.Bit('windows'):
env.ChromeSharedLibrary('activex_test_control', input_files)
p = env.ChromeMSVSProject('activex_test_control.vcproj',
dest=('$CHROME_SRC_DIR/chrome/test/'
+ 'activex_test_control/'
+ 'activex_test_control.vcproj'),
keyword='AtlProj',
guid='{414D4D24-5D65-498B-A33F-3A29AD3CDEDC}',
# TODO(sgk): when we can intuit the hierarchy
# from the built targets.
#buildtargets=TODO,
files=input_files,
relative_path_prefix='./',
tools=[
'VCPreBuildEventTool',
'VCCustomBuildTool',
'VCXMLDataGeneratorTool',
'VCWebServiceProxyGeneratorTool',
'VCMIDLTool',
'VCCLCompilerTool',
'VCManagedResourceCompilerTool',
'VCResourceCompilerTool',
'VCPreLinkEventTool',
'VCLinkerTool',
'VCALinkTool',
'VCManifestTool',
'VCXDCMakeTool',
'VCBscMakeTool',
'VCFxCopTool',
'VCAppVerifierTool',
'VCWebDeploymentTool',
'VCPostBuildEventTool',
],
ConfigurationType='2')
p.AddConfig('Debug|Win32',
InheritedPropertySheets=[
'./activex_test_control.vsprops',
'$(SolutionDir)../build/debug.vsprops',
])
p.AddConfig('Release|Win32',
InheritedPropertySheets=[
'./activex_test_control.vsprops',
'$(SolutionDir)../build/release.vsprops',
])