OLD | NEW |
| (Empty) |
1 # Copyright 2015 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("//chrome/version.gni") | |
6 import("//tools/grit/grit_rule.gni") | |
7 | |
8 assert(is_win) | |
9 | |
10 executable("virtual_driver_setup") { | |
11 sources = [ | |
12 "setup.cc", | |
13 ] | |
14 | |
15 configs -= [ "//build/config/win:console" ] | |
16 configs += [ "//build/config/win:windowed" ] | |
17 | |
18 deps = [ | |
19 ":copy_gcp_driver", | |
20 ":resources", | |
21 ":setup_version", | |
22 "//base", | |
23 "//cloud_print/common:install_utils", | |
24 "//cloud_print/virtual_driver/win", | |
25 ] | |
26 | |
27 libs = [ "setupapi.lib" ] | |
28 ldflags = [ "/DELAYLOAD:winspool.drv" ] | |
29 } | |
30 | |
31 copy("copy_gcp_driver") { | |
32 sources = [ | |
33 "../../gcp_driver.gpd", | |
34 ] | |
35 outputs = [ | |
36 "$root_build_dir/gcp_driver.gpd", | |
37 ] | |
38 } | |
39 | |
40 process_version("setup_version") { | |
41 template_file = chrome_version_rc_template | |
42 sources = [ | |
43 "virtual_driver_setup_exe.ver", | |
44 ] | |
45 output = "$target_gen_dir/virtual_driver_setup.rc" | |
46 } | |
47 | |
48 grit("resources") { | |
49 visibility = [ ":*" ] | |
50 | |
51 source = "virtual_driver_setup_resources.grd" | |
52 | |
53 output_dir = "$root_gen_dir/virtual_driver_setup_resources" | |
54 | |
55 outputs = [ | |
56 "grit/virtual_driver_setup_resources.h", | |
57 "virtual_driver_setup_resources_ar.rc", | |
58 "virtual_driver_setup_resources_bg.rc", | |
59 "virtual_driver_setup_resources_bn.rc", | |
60 "virtual_driver_setup_resources_ca.rc", | |
61 "virtual_driver_setup_resources_cs.rc", | |
62 "virtual_driver_setup_resources_da.rc", | |
63 "virtual_driver_setup_resources_de.rc", | |
64 "virtual_driver_setup_resources_el.rc", | |
65 "virtual_driver_setup_resources_en.rc", | |
66 "virtual_driver_setup_resources_en-GB.rc", | |
67 "virtual_driver_setup_resources_es.rc", | |
68 "virtual_driver_setup_resources_es-419.rc", | |
69 "virtual_driver_setup_resources_et.rc", | |
70 "virtual_driver_setup_resources_fa.rc", | |
71 "virtual_driver_setup_resources_fi.rc", | |
72 "virtual_driver_setup_resources_fil.rc", | |
73 "virtual_driver_setup_resources_fr.rc", | |
74 "virtual_driver_setup_resources_gu.rc", | |
75 "virtual_driver_setup_resources_he.rc", | |
76 "virtual_driver_setup_resources_hi.rc", | |
77 "virtual_driver_setup_resources_hr.rc", | |
78 "virtual_driver_setup_resources_hu.rc", | |
79 "virtual_driver_setup_resources_id.rc", | |
80 "virtual_driver_setup_resources_it.rc", | |
81 "virtual_driver_setup_resources_ja.rc", | |
82 "virtual_driver_setup_resources_kn.rc", | |
83 "virtual_driver_setup_resources_ko.rc", | |
84 "virtual_driver_setup_resources_lt.rc", | |
85 "virtual_driver_setup_resources_lv.rc", | |
86 "virtual_driver_setup_resources_ml.rc", | |
87 "virtual_driver_setup_resources_mr.rc", | |
88 "virtual_driver_setup_resources_ms.rc", | |
89 "virtual_driver_setup_resources_nl.rc", | |
90 "virtual_driver_setup_resources_nb.rc", | |
91 "virtual_driver_setup_resources_pl.rc", | |
92 "virtual_driver_setup_resources_pt-BR.rc", | |
93 "virtual_driver_setup_resources_pt-PT.rc", | |
94 "virtual_driver_setup_resources_ro.rc", | |
95 "virtual_driver_setup_resources_ru.rc", | |
96 "virtual_driver_setup_resources_sk.rc", | |
97 "virtual_driver_setup_resources_sl.rc", | |
98 "virtual_driver_setup_resources_sr.rc", | |
99 "virtual_driver_setup_resources_sv.rc", | |
100 "virtual_driver_setup_resources_sw.rc", | |
101 "virtual_driver_setup_resources_ta.rc", | |
102 "virtual_driver_setup_resources_te.rc", | |
103 "virtual_driver_setup_resources_th.rc", | |
104 "virtual_driver_setup_resources_tr.rc", | |
105 "virtual_driver_setup_resources_uk.rc", | |
106 "virtual_driver_setup_resources_vi.rc", | |
107 "virtual_driver_setup_resources_zh-CN.rc", | |
108 "virtual_driver_setup_resources_zh-TW.rc", | |
109 ] | |
110 } | |
OLD | NEW |