summaryrefslogtreecommitdiffstats
path: root/webkit/build/webkit_resources/SConscript
blob: e9066d48be3ffeae0298ddc04feadcb7fe42d1de (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
# 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_res'])

env = env.Clone()
env_res = env_res.Clone()

env_res.Append(
    CPPPATH = [
        "$CHROME_SRC_DIR",
    ],
)

if env_res.Bit('windows'):
  env_res.Append(
      RCFLAGS = [
          ["/l", "0x409"],
      ],
  )

env_grd = env.Clone()
# This dummy target (webkit_resources) is used to tell the emitter where
# to put the target files.
generated = env_grd.GRIT(
    '$TARGET_ROOT/grit_derived_sources/fake_generated_resources',
    '$CHROME_SRC_DIR/webkit/glue/webkit_resources.grd')

if env_res.Bit('windows'):
  for g in [g for g in generated if str(g).endswith('.rc')]:
    env_res.RES(g)

env.ChromeMSVSProject('$WEBKIT_DIR/build/webkit_resources/webkit_resources.vcproj',
                guid='{0B469837-3D46-484A-AFB3-C5A6C68730B9}')