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

Side by Side Diff: content/gpu/BUILD.gn

Issue 462983002: GN: Make content_shell and webkit_unit_tests work in component build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months 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 | Annotate | Revision Log
OLDNEW
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/ui.gni")
5 import("//content/content.gni") 6 import("//content/content.gni")
6 7
7 # We don't support x64 prior to Win7 and D3DCompiler_43.dll is not needed on 8 # We don't support x64 prior to Win7 and D3DCompiler_43.dll is not needed on
8 # Vista+. 9 # Vista+.
9 need_d3dcompiler = (is_win && cpu_arch == "x86" && directxsdk_exists) 10 need_d3dcompiler = (is_win && cpu_arch == "x86" && directxsdk_exists)
10 11
11 source_set("gpu") { 12 source_set("gpu") {
12 visibility = "//content/*" 13 visibility = "//content/*"
13 sources = [ 14 sources = [
14 "gpu_main.cc", 15 "gpu_main.cc",
(...skipping 29 matching lines...) Expand all
44 ] 45 ]
45 } 46 }
46 47
47 if (need_d3dcompiler) { 48 if (need_d3dcompiler) {
48 deps += [ ":extract_d3dcompiler" ] 49 deps += [ ":extract_d3dcompiler" ]
49 } 50 }
50 51
51 if (is_chromeos && cpu_arch != "arm") { 52 if (is_chromeos && cpu_arch != "arm") {
52 configs += [ "//third_party/libva/libva_config" ] 53 configs += [ "//third_party/libva/libva_config" ]
53 } 54 }
55
56 if (use_x11) {
57 deps += [ "//ui/events/platform/x11" ]
58 }
54 } 59 }
55 60
56 if (need_d3dcompiler) { 61 if (need_d3dcompiler) {
57 action("extract_d3dcompiler") { 62 action("extract_d3dcompiler") {
58 visibility = ":*" 63 visibility = ":*"
59 script = "//build/extract_from_cab.py" 64 script = "//build/extract_from_cab.py"
60 65
61 cabfile = "//third_party/directxsdk/files/Redist/Jun2010_D3DCompiler_43_x86. cab" 66 cabfile = "//third_party/directxsdk/files/Redist/Jun2010_D3DCompiler_43_x86. cab"
62 dllfile = "D3DCompiler_43.dll" 67 dllfile = "D3DCompiler_43.dll"
63 68
64 inputs = [ cabfile ] 69 inputs = [ cabfile ]
65 outputs = [ "$root_out_dir/$dllfile" ] 70 outputs = [ "$root_out_dir/$dllfile" ]
66 71
67 args = [ 72 args = [
68 rebase_path(cabfile, root_build_dir), 73 rebase_path(cabfile, root_build_dir),
69 dllfile, 74 dllfile,
70 rebase_path(root_out_dir, root_build_dir), 75 rebase_path(root_out_dir, root_build_dir),
71 ] 76 ]
72 } 77 }
73 } 78 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698