| OLD | NEW |
| (Empty) | |
| 1 # Copyright (c) 2011 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 'variables': { |
| 7 'directxsdk_exists': '<!(python <(DEPTH)/build/dir_exists.py ../third_party/
directxsdk)', |
| 8 }, # variables |
| 9 'targets': [ |
| 10 { |
| 11 'target_name': 'content_gpu', |
| 12 'type': '<(library)', |
| 13 'msvs_guid': 'F10F1ECD-D84D-4C33-8468-9DDFE19F4D8A', |
| 14 'dependencies': [ |
| 15 'content_common', |
| 16 '../app/app.gyp:app_base', |
| 17 '../base/base.gyp:base', |
| 18 '../media/media.gyp:media', |
| 19 '../skia/skia.gyp:skia', |
| 20 ], |
| 21 'sources': [ |
| 22 'gpu/gpu_channel.cc', |
| 23 'gpu/gpu_channel.h', |
| 24 'gpu/gpu_command_buffer_stub.cc', |
| 25 'gpu/gpu_command_buffer_stub.h', |
| 26 'gpu/gpu_config.h', |
| 27 'gpu/gpu_dx_diagnostics_win.cc', |
| 28 'gpu/gpu_info_collector_linux.cc', |
| 29 'gpu/gpu_info_collector_mac.mm', |
| 30 'gpu/gpu_info_collector_win.cc', |
| 31 'gpu/gpu_info_collector.cc', |
| 32 'gpu/gpu_info_collector.h', |
| 33 'gpu/gpu_main.cc', |
| 34 'gpu/gpu_process.cc', |
| 35 'gpu/gpu_process.h', |
| 36 'gpu/gpu_thread.cc', |
| 37 'gpu/gpu_thread.h', |
| 38 'gpu/gpu_video_decoder.cc', |
| 39 'gpu/gpu_video_decoder.h', |
| 40 'gpu/gpu_video_service.cc', |
| 41 'gpu/gpu_video_service.h', |
| 42 'gpu/gpu_watchdog_thread.cc', |
| 43 'gpu/gpu_watchdog_thread.h', |
| 44 'gpu/media/gpu_video_device.h', |
| 45 'gpu/media/fake_gl_video_decode_engine.cc', |
| 46 'gpu/media/fake_gl_video_decode_engine.h', |
| 47 'gpu/media/fake_gl_video_device.cc', |
| 48 'gpu/media/fake_gl_video_device.h', |
| 49 ], |
| 50 'include_dirs': [ |
| 51 '..', |
| 52 ], |
| 53 'conditions': [ |
| 54 ['OS=="win"', { |
| 55 'include_dirs': [ |
| 56 '<(DEPTH)/third_party/angle/include', |
| 57 '<(DEPTH)/third_party/angle/src', |
| 58 '<(DEPTH)/third_party/wtl/include', |
| 59 '$(DXSDK_DIR)/include', |
| 60 ], |
| 61 'dependencies': [ |
| 62 '../third_party/angle/src/build_angle.gyp:libEGL', |
| 63 '../third_party/angle/src/build_angle.gyp:libGLESv2', |
| 64 ], |
| 65 }], |
| 66 ['OS=="win" and directxsdk_exists=="True"', { |
| 67 'actions': [ |
| 68 { |
| 69 'action_name': 'extract_d3dx9', |
| 70 'variables': { |
| 71 'input': 'Aug2009_d3dx9_42_x86.cab', |
| 72 'output': 'd3dx9_42.dll', |
| 73 }, |
| 74 'inputs': [ |
| 75 '../third_party/directxsdk/files/Redist/<(input)', |
| 76 ], |
| 77 'outputs': [ |
| 78 '<(PRODUCT_DIR)/<(output)', |
| 79 ], |
| 80 'action': [ |
| 81 'python', |
| 82 '../build/extract_from_cab.py', |
| 83 '..\\third_party\\directxsdk\\files\\Redist\\<(input)', |
| 84 '<(output)', |
| 85 '<(PRODUCT_DIR)', |
| 86 ], |
| 87 }, |
| 88 { |
| 89 'action_name': 'extract_d3dcompiler', |
| 90 'variables': { |
| 91 'input': 'Aug2009_D3DCompiler_42_x86.cab', |
| 92 'output': 'D3DCompiler_42.dll', |
| 93 }, |
| 94 'inputs': [ |
| 95 '../third_party/directxsdk/files/Redist/<(input)', |
| 96 ], |
| 97 'outputs': [ |
| 98 '<(PRODUCT_DIR)/<(output)', |
| 99 ], |
| 100 'action': [ |
| 101 'python', |
| 102 '../build/extract_from_cab.py', |
| 103 '..\\third_party\\directxsdk\\files\\Redist\\<(input)', |
| 104 '<(output)', |
| 105 '<(PRODUCT_DIR)', |
| 106 ], |
| 107 }, |
| 108 ], |
| 109 'sources': [ |
| 110 'gpu/media/mft_angle_video_device.cc', |
| 111 'gpu/media/mft_angle_video_device.h', |
| 112 ], |
| 113 }], |
| 114 ['OS=="linux" and target_arch!="arm"', { |
| 115 'sources': [ |
| 116 'gpu/x_util.cc', |
| 117 'gpu/x_util.h', |
| 118 ], |
| 119 }], |
| 120 ['enable_gpu==1', { |
| 121 'dependencies': [ |
| 122 '../gpu/gpu.gyp:command_buffer_service', |
| 123 ], |
| 124 }], |
| 125 ], |
| 126 }, |
| 127 ], |
| 128 } |
| OLD | NEW |