summaryrefslogtreecommitdiffstats
path: root/webkit/build/localized_strings/SConscript
blob: d48719f2b1277dfac9c4546b8e6b8fb2e28eb10a (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
# 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/chrome/Debug/obj/chrome_dll",
    "$CHROME_SRC_DIR",
    #"$CHROME_SRC_DIR/chrome/Debug/obj",
  ],
  RCFLAGS = [
    ["/l", "0x409"],
  ],
)

import os
import sys
sys.path.append(env.Dir('$CHROME_SRC_DIR/tools/grit').abspath)
env_grd = env.Clone()
env_grd.Tool('scons', toolpath=[env_grd.Dir('$CHROME_SRC_DIR/tools/grit/grit')])
# This dummy target (webkit_strings) is used to tell the emitter where
# to put the target files.
generated = env_grd.GRIT('webkit_strings',
                         '$CHROME_SRC_DIR/webkit/glue/webkit_strings.grd')
for g in [ g for g in generated if str(g).endswith('.rc') ]:
    env_res.RES(g)