Home | History | Annotate | Download | only in content
      1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 {
      6   'dependencies': [
      7     '../base/base.gyp:base',
      8     '../skia/skia.gyp:skia',
      9     '../ui/gl/gl.gyp:gl',
     10   ],
     11   'sources': [
     12     'gpu/gpu_main.cc',
     13     'gpu/gpu_process.cc',
     14     'gpu/gpu_process.h',
     15     'gpu/gpu_child_thread.cc',
     16     'gpu/gpu_child_thread.h',
     17     'gpu/gpu_watchdog_thread.cc',
     18     'gpu/gpu_watchdog_thread.h',
     19   ],
     20   'include_dirs': [
     21     '..',
     22   ],
     23   'conditions': [
     24     ['OS=="win"', {
     25       'include_dirs': [
     26         '<(DEPTH)/third_party/khronos',
     27         '<(DEPTH)/third_party/angle_dx11/src',
     28         '<(DEPTH)/third_party/wtl/include',
     29       ],
     30       'dependencies': [
     31         '../third_party/angle_dx11/src/build_angle.gyp:libEGL',
     32         '../third_party/angle_dx11/src/build_angle.gyp:libGLESv2',
     33       ],
     34       'link_settings': {
     35         'libraries': [
     36           '-lsetupapi.lib',
     37         ],
     38       },
     39       'copies': [
     40         {
     41           'destination': '<(PRODUCT_DIR)',
     42           'files': [
     43             '<(windows_sdk_path)/Redist/D3D/<(winsdk_arch)/d3dcompiler_46.dll',
     44           ],
     45         },
     46       ],
     47     }],
     48     ['OS=="win" and target_arch=="ia32" and directxsdk_exists=="True"', {
     49       # We don't support x64 prior to Win7 and D3DCompiler_43.dll is
     50       # not needed on Vista+.
     51       'actions': [
     52         {
     53           'action_name': 'extract_d3dcompiler',
     54           'variables': {
     55             'input': 'Jun2010_D3DCompiler_43_x86.cab',
     56             'output': 'D3DCompiler_43.dll',
     57           },
     58           'inputs': [
     59             '../third_party/directxsdk/files/Redist/<(input)',
     60           ],
     61           'outputs': [
     62             '<(PRODUCT_DIR)/<(output)',
     63           ],
     64           'action': [
     65             'python',
     66             '../build/extract_from_cab.py',
     67             '..\\third_party\\directxsdk\\files\\Redist\\<(input)',
     68             '<(output)',
     69             '<(PRODUCT_DIR)',
     70           ],
     71           'msvs_cygwin_shell': 1,
     72         },
     73       ],
     74     }],
     75     ['target_arch!="arm" and chromeos == 1', {
     76       'include_dirs': [
     77         '<(DEPTH)/third_party/libva',
     78       ],
     79     }],
     80   ],
     81 }
     82