Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(771)

Side by Side Diff: build/toolchain/win/BUILD.gn

Issue 1443733003: Use label name to generate PDB names in GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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/win/visual_studio_version.gni") 5 import("//build/config/win/visual_studio_version.gni")
6 import("//build/toolchain/goma.gni") 6 import("//build/toolchain/goma.gni")
7 import("//build/toolchain/toolchain.gni") 7 import("//build/toolchain/toolchain.gni")
8 8
9 # Should only be running on Windows. 9 # Should only be running on Windows.
10 assert(is_win) 10 assert(is_win)
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 # Make these apply to all tools below. 60 # Make these apply to all tools below.
61 lib_switch = "" 61 lib_switch = ""
62 lib_dir_switch = "/LIBPATH:" 62 lib_dir_switch = "/LIBPATH:"
63 63
64 # Object files go in this directory. 64 # Object files go in this directory.
65 object_subdir = "{{target_out_dir}}/{{label_name}}" 65 object_subdir = "{{target_out_dir}}/{{label_name}}"
66 66
67 tool("cc") { 67 tool("cc") {
68 rspfile = "{{output}}.rsp" 68 rspfile = "{{output}}.rsp"
69 precompiled_header_type = "msvc" 69 precompiled_header_type = "msvc"
70 pdbname = "{{target_out_dir}}/{{target_output_name}}_c.pdb" 70 pdbname = "{{target_out_dir}}/{{label_name}}_c.pdb"
71 command = "ninja -t msvc -e $env -- $cl /nologo /showIncludes /FC @$rspfil e /c {{source}} /Fo{{output}} /Fd$pdbname" 71 command = "ninja -t msvc -e $env -- $cl /nologo /showIncludes /FC @$rspfil e /c {{source}} /Fo{{output}} /Fd$pdbname"
72 depsformat = "msvc" 72 depsformat = "msvc"
73 description = "CC {{output}}" 73 description = "CC {{output}}"
74 outputs = [ 74 outputs = [
75 "$object_subdir/{{source_name_part}}.obj", 75 "$object_subdir/{{source_name_part}}.obj",
76 ] 76 ]
77 rspfile_content = "{{defines}} {{include_dirs}} {{cflags}} {{cflags_c}}" 77 rspfile_content = "{{defines}} {{include_dirs}} {{cflags}} {{cflags_c}}"
78 } 78 }
79 79
80 tool("cxx") { 80 tool("cxx") {
81 rspfile = "{{output}}.rsp" 81 rspfile = "{{output}}.rsp"
82 precompiled_header_type = "msvc" 82 precompiled_header_type = "msvc"
83 83
84 # The PDB name needs to be different between C and C++ compiled files. 84 # The PDB name needs to be different between C and C++ compiled files.
85 pdbname = "{{target_out_dir}}/{{target_output_name}}_cc.pdb" 85 pdbname = "{{target_out_dir}}/{{label_name}}_cc.pdb"
86 command = "ninja -t msvc -e $env -- $cl /nologo /showIncludes /FC @$rspfil e /c {{source}} /Fo{{output}} /Fd$pdbname" 86 command = "ninja -t msvc -e $env -- $cl /nologo /showIncludes /FC @$rspfil e /c {{source}} /Fo{{output}} /Fd$pdbname"
87 depsformat = "msvc" 87 depsformat = "msvc"
88 description = "CXX {{output}}" 88 description = "CXX {{output}}"
89 outputs = [ 89 outputs = [
90 "$object_subdir/{{source_name_part}}.obj", 90 "$object_subdir/{{source_name_part}}.obj",
91 ] 91 ]
92 rspfile_content = "{{defines}} {{include_dirs}} {{cflags}} {{cflags_cc}}" 92 rspfile_content = "{{defines}} {{include_dirs}} {{cflags}} {{cflags_cc}}"
93 } 93 }
94 94
95 tool("rc") { 95 tool("rc") {
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 302
303 msvc_toolchain("winrt_x64") { 303 msvc_toolchain("winrt_x64") {
304 environment = "environment.winrt_x64" 304 environment = "environment.winrt_x64"
305 cl = "${goma_prefix}\"${vc_bin_dir}/cl.exe\"" 305 cl = "${goma_prefix}\"${vc_bin_dir}/cl.exe\""
306 is_clang = false 306 is_clang = false
307 307
308 current_cpu = "x64" 308 current_cpu = "x64"
309 current_os = current_os 309 current_os = current_os
310 } 310 }
311 } 311 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698