OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/locales.gni") | 6 import("//build/config/locales.gni") |
7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
8 import("//chrome/chrome_repack_locales.gni") | 8 import("//chrome/chrome_repack_locales.gni") |
9 import("//chrome/version.gni") | 9 import("//chrome/version.gni") |
10 | 10 |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 } | 287 } |
288 } | 288 } |
289 | 289 |
290 if (is_win) { | 290 if (is_win) { |
291 # TODO(brettw) this duplicates "//chrome/common:version" which applies to | 291 # TODO(brettw) this duplicates "//chrome/common:version" which applies to |
292 # Linux. | 292 # Linux. |
293 process_version("version_header") { | 293 process_version("version_header") { |
294 # TODO(brettW) this should have more reduced visibility, but chrome/browser | 294 # TODO(brettW) this should have more reduced visibility, but chrome/browser |
295 # currently depends on this. | 295 # currently depends on this. |
296 #visibility = [ ":*" ] | 296 #visibility = [ ":*" ] |
297 source = "version.h.in" | 297 |
| 298 # This one just uses the custom template and no separate sources. |
| 299 sources = [] |
| 300 template_file = "version.h.in" |
298 | 301 |
299 # TODO(brettw) this should move to $target_gen_dir/version.h and | 302 # TODO(brettw) this should move to $target_gen_dir/version.h and |
300 # source files including it should reference it via "chrome/version.h" | 303 # source files including it should reference it via "chrome/version.h" |
301 output = "$root_gen_dir/version.h" | 304 output = "$root_gen_dir/version.h" |
302 } | 305 } |
303 | 306 |
304 process_version("chrome_exe_version") { | 307 process_version("chrome_exe_version") { |
305 source = "//chrome/app/chrome_version.rc.version" | 308 sources = [ |
| 309 "app/chrome_exe.ver", |
| 310 ] |
306 output = "$target_gen_dir/chrome_exe_version.rc" | 311 output = "$target_gen_dir/chrome_exe_version.rc" |
307 extra_args = [ | |
308 "-f", | |
309 rebase_path("app/chrome_exe.ver", root_build_dir), | |
310 ] | |
311 } | 312 } |
312 | 313 |
313 process_version("chrome_dll_version") { | 314 process_version("chrome_dll_version") { |
314 source = "//chrome/app/chrome_version.rc.version" | 315 sources = [ |
| 316 "app/chrome_dll.ver", |
| 317 ] |
315 output = "$target_gen_dir/chrome_dll_version.rc" | 318 output = "$target_gen_dir/chrome_dll_version.rc" |
316 extra_args = [ | |
317 "-f", | |
318 rebase_path("app/chrome_dll.ver", root_build_dir), | |
319 ] | |
320 } | 319 } |
321 | 320 |
322 process_version("nacl64_exe_version") { | 321 process_version("nacl64_exe_version") { |
323 source = "//chrome/app/chrome_version.rc.version" | 322 sources = [ |
| 323 "app/nacl64_exe.ver", |
| 324 ] |
324 output = "$target_gen_dir/nacl64_exe_version.rc" | 325 output = "$target_gen_dir/nacl64_exe_version.rc" |
325 extra_args = [ | |
326 "-f", | |
327 rebase_path("app/nacl64_exe.ver", root_build_dir), | |
328 ] | |
329 } | 326 } |
330 | 327 |
331 process_version("other_version") { | 328 process_version("other_version") { |
332 source = "//chrome/app/chrome_version.rc.version" | 329 sources = [ |
| 330 "app/other.ver", |
| 331 ] |
333 output = "$target_gen_dir/other_version.rc" | 332 output = "$target_gen_dir/other_version.rc" |
334 extra_args = [ | |
335 "-f", | |
336 rebase_path("app/other.ver", root_build_dir), | |
337 ] | |
338 } | 333 } |
339 | 334 |
340 group("chrome_version_resources") { | 335 group("chrome_version_resources") { |
341 deps = [ | 336 deps = [ |
342 ":chrome_exe_version", | 337 ":chrome_exe_version", |
343 ":chrome_dll_version", | 338 ":chrome_dll_version", |
344 ":nacl64_exe_version", | 339 ":nacl64_exe_version", |
345 ":other_version", | 340 ":other_version", |
346 ] | 341 ] |
347 } | 342 } |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
738 | 733 |
739 args = [ | 734 args = [ |
740 rebase_path(infile, root_build_dir), | 735 rebase_path(infile, root_build_dir), |
741 rebase_path(outfile, root_build_dir), | 736 rebase_path(outfile, root_build_dir), |
742 "-e s/@@NAME@@/$name/", | 737 "-e s/@@NAME@@/$name/", |
743 "-e s/@@FILENAME@@/$filename/", | 738 "-e s/@@FILENAME@@/$filename/", |
744 "-e s/@@CONFDIR@@/$confdir/", | 739 "-e s/@@CONFDIR@@/$confdir/", |
745 ] | 740 ] |
746 } | 741 } |
747 } | 742 } |
OLD | NEW |