| 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("//content/content.gni") | 5 import("//content/content.gni") |
| 6 | 6 |
| 7 # We don't support x64 prior to Win7 and D3DCompiler_43.dll is not needed on | 7 # We don't support x64 prior to Win7 and D3DCompiler_43.dll is not needed on |
| 8 # Vista+. | 8 # Vista+. |
| 9 need_d3dcompiler = (is_win && cpu_arch == "x86" && directxsdk_exists) | 9 need_d3dcompiler = (is_win && cpu_arch == "x86" && directxsdk_exists) |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 } | 54 } |
| 55 | 55 |
| 56 if (need_d3dcompiler) { | 56 if (need_d3dcompiler) { |
| 57 action("extract_d3dcompiler") { | 57 action("extract_d3dcompiler") { |
| 58 visibility = ":*" | 58 visibility = ":*" |
| 59 script = "//build/extract_from_cab.py" | 59 script = "//build/extract_from_cab.py" |
| 60 | 60 |
| 61 cabfile = "//third_party/directxsdk/files/Redist/Jun2010_D3DCompiler_43_x86.
cab" | 61 cabfile = "//third_party/directxsdk/files/Redist/Jun2010_D3DCompiler_43_x86.
cab" |
| 62 dllfile = "D3DCompiler_43.dll" | 62 dllfile = "D3DCompiler_43.dll" |
| 63 | 63 |
| 64 source_prereqs = [ cabfile ] | 64 inputs = [ cabfile ] |
| 65 outputs = [ "$root_out_dir/$dllfile" ] | 65 outputs = [ "$root_out_dir/$dllfile" ] |
| 66 | 66 |
| 67 args = [ | 67 args = [ |
| 68 rebase_path(cabfile, root_build_dir), | 68 rebase_path(cabfile, root_build_dir), |
| 69 dllfile, | 69 dllfile, |
| 70 rebase_path(root_out_dir, root_build_dir), | 70 rebase_path(root_out_dir, root_build_dir), |
| 71 ] | 71 ] |
| 72 } | 72 } |
| 73 } | 73 } |
| OLD | NEW |