Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'linux_link_libpci%': 0, | 7 'linux_link_libpci%': 0, |
| 8 }, | 8 }, |
| 9 'dependencies': [ | 9 'dependencies': [ |
| 10 '../base/base.gyp:base', | 10 '../base/base.gyp:base', |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 41 '../third_party/angle/src/build_angle.gyp:libEGL', | 41 '../third_party/angle/src/build_angle.gyp:libEGL', |
| 42 '../third_party/angle/src/build_angle.gyp:libGLESv2', | 42 '../third_party/angle/src/build_angle.gyp:libGLESv2', |
| 43 '../third_party/libxml/libxml.gyp:libxml', | 43 '../third_party/libxml/libxml.gyp:libxml', |
| 44 ], | 44 ], |
| 45 'link_settings': { | 45 'link_settings': { |
| 46 'libraries': [ | 46 'libraries': [ |
| 47 '-lsetupapi.lib', | 47 '-lsetupapi.lib', |
| 48 ], | 48 ], |
| 49 }, | 49 }, |
| 50 }], | 50 }], |
| 51 ['OS=="linux"', { | |
| 52 'cflags': [ | |
| 53 '<!@(pkg-config --cflags libpci)', | |
|
piman
2012/11/27 00:09:18
You need to go through the pkg-config indirection
Paweł Hajdan Jr.
2012/11/27 19:52:18
Done.
| |
| 54 ], | |
| 55 'sources': [ | |
| 56 '<(INTERMEDIATE_DIR)/libpci_loader.cc', | |
| 57 ], | |
| 58 'include_dirs': [ | |
| 59 '<(INTERMEDIATE_DIR)', | |
| 60 ], | |
| 61 'hard_dependency': 1, | |
|
piman
2012/11/27 00:09:18
Is that really needed? That prevents a ton of buil
Paweł Hajdan Jr.
2012/11/27 19:52:18
Done.
| |
| 62 'actions': [ | |
| 63 { | |
| 64 'action_name': 'generate_libpci_loader', | |
| 65 'inputs': [ | |
| 66 '../tools/generate_library_loader/generate_library_loader.py', | |
| 67 ], | |
| 68 'outputs': [ | |
| 69 '<(INTERMEDIATE_DIR)/libpci_loader.cc', | |
| 70 '<(INTERMEDIATE_DIR)/libpci_loader.h', | |
| 71 ], | |
| 72 'action': ['python', | |
| 73 '../tools/generate_library_loader/generate_library_loader.p y', | |
| 74 '--name', 'LibPciLoader', | |
| 75 '--output', '<(INTERMEDIATE_DIR)/libpci_loader', | |
| 76 '--header', '<pci/pci.h>', | |
| 77 '--use-extern-c', | |
| 78 '--link-directly=<(linux_link_libpci)', | |
| 79 'pci_alloc', | |
| 80 'pci_init', | |
| 81 'pci_cleanup', | |
| 82 'pci_scan_bus', | |
| 83 'pci_fill_info', | |
| 84 'pci_lookup_name', | |
| 85 ], | |
| 86 'message': 'Generating libpci library loader.', | |
| 87 }, | |
| 88 ], | |
| 89 }], | |
| 51 ['OS=="win" and directxsdk_exists=="True"', { | 90 ['OS=="win" and directxsdk_exists=="True"', { |
| 52 'actions': [ | 91 'actions': [ |
| 53 { | 92 { |
| 54 'action_name': 'extract_d3dx9', | 93 'action_name': 'extract_d3dx9', |
| 55 'variables': { | 94 'variables': { |
| 56 'input': 'Jun2010_d3dx9_43_x86.cab', | 95 'input': 'Jun2010_d3dx9_43_x86.cab', |
| 57 'output': 'd3dx9_43.dll', | 96 'output': 'd3dx9_43.dll', |
| 58 }, | 97 }, |
| 59 'inputs': [ | 98 'inputs': [ |
| 60 '../third_party/directxsdk/files/Redist/<(input)', | 99 '../third_party/directxsdk/files/Redist/<(input)', |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 106 ['target_arch=="arm" and chromeos == 1', { | 145 ['target_arch=="arm" and chromeos == 1', { |
| 107 'include_dirs': [ | 146 'include_dirs': [ |
| 108 '<(DEPTH)/third_party/openmax/il', | 147 '<(DEPTH)/third_party/openmax/il', |
| 109 ], | 148 ], |
| 110 }], | 149 }], |
| 111 ['target_arch!="arm" and chromeos == 1', { | 150 ['target_arch!="arm" and chromeos == 1', { |
| 112 'include_dirs': [ | 151 'include_dirs': [ |
| 113 '<(DEPTH)/third_party/libva', | 152 '<(DEPTH)/third_party/libva', |
| 114 ], | 153 ], |
| 115 }], | 154 }], |
| 116 ['linux_link_libpci==0', { | 155 ['linux_link_libpci==1', { |
| 117 'defines': [ | |
| 118 'DLOPEN_LIBPCI', | |
| 119 ], | |
| 120 }, { # linux_link_libpci==1 | |
| 121 'cflags': [ | |
| 122 '<!@(pkg-config --cflags libpci)', | |
| 123 ], | |
| 124 'link_settings': { | 156 'link_settings': { |
| 125 'ldflags': [ | 157 'ldflags': [ |
| 126 '<!@(pkg-config --libs-only-L --libs-only-other libpci)', | 158 '<!@(pkg-config --libs-only-L --libs-only-other libpci)', |
| 127 ], | 159 ], |
| 128 'libraries': [ | 160 'libraries': [ |
| 129 '<!@(pkg-config --libs-only-l libpci)', | 161 '<!@(pkg-config --libs-only-l libpci)', |
| 130 ], | 162 ], |
| 131 } | 163 } |
| 132 }], | 164 }], |
| 133 ], | 165 ], |
| 134 } | 166 } |
| OLD | NEW |