summaryrefslogtreecommitdiffstats
path: root/net/tools/tld_cleanup/SConscript
blob: 5ab7e82ac43904049b1c575014f949eb9596dd90 (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
47
48
49
50
51
52
# 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 = [
        '../../..',
    ],
    LIBS = [
      'googleurl',
      env['ICU_LIBS'],  # TODO(sgk):  '$ICU_LIBS' when scons is fixed
      'base',
      # We only need to link with net due to use precompiled_net.pch.
      'net',
    ],
)

env.Append(
    CCFLAGS = [
        '/TP',
    ],

    LINKFLAGS = [
        '/INCREMENTAL',
        '/MANIFEST',
        '/DELAYLOAD:"dwmapi.dll"',
        '/DELAYLOAD:"uxtheme.dll"',
        '/DEBUG',
        '/SUBSYSTEM:CONSOLE',
        '/MACHINE:X86',
        '/FIXED:No',
        '/safeseh',
        '/dynamicbase',
        '/ignore:4199',
        '/nxcompat',
    ],
)

input_files = [
    'tld_cleanup.cc',
]

exe_targets = env.ChromeProgram('tld_cleanup', input_files)
i = env.Install('$TARGET_ROOT', exe_targets)
env.Alias('net', i)

env.Install('$TARGET_ROOT', exe_targets)