Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / content / gpu / BUILD.gn
index e8e39fe..d1f8448 100644 (file)
@@ -5,12 +5,9 @@
 import("//build/config/ui.gni")
 import("//content/content.gni")
 
-# We don't support x64 prior to Win7 and D3DCompiler_43.dll is not needed on
-# Vista+.
-need_d3dcompiler = (is_win && cpu_arch == "x86" && directxsdk_exists)
-
 source_set("gpu") {
-  visibility = "//content/*"
+  visibility = [ "//content/*" ]
+
   sources = [
     "gpu_main.cc",
     "gpu_process.cc",
@@ -45,34 +42,11 @@ source_set("gpu") {
     ]
   }
 
-  if (need_d3dcompiler) {
-    deps += [ ":extract_d3dcompiler" ]
-  }
-
   if (is_chromeos && cpu_arch != "arm") {
-    configs += [ "//third_party/libva/libva_config" ]
+    configs += [ "//third_party/libva:libva_config" ]
   }
 
   if (use_x11) {
     deps += [ "//ui/events/platform/x11" ]
   }
 }
-
-if (need_d3dcompiler) {
-  action("extract_d3dcompiler") {
-    visibility = ":*"
-    script = "//build/extract_from_cab.py"
-
-    cabfile = "//third_party/directxsdk/files/Redist/Jun2010_D3DCompiler_43_x86.cab"
-    dllfile = "D3DCompiler_43.dll"
-
-    inputs = [ cabfile ]
-    outputs = [ "$root_out_dir/$dllfile" ]
-
-    args = [
-      rebase_path(cabfile, root_build_dir),
-      dllfile,
-      rebase_path(root_out_dir, root_build_dir),
-    ]
-  }
-}