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 'conditions': [ | 7 'conditions': [ |
8 ['sysroot!=""', { | 8 ['sysroot!=""', { |
9 'pkg-config': './pkg-config-wrapper "<(sysroot)" "<(target_arch)"', | 9 'pkg-config': './pkg-config-wrapper "<(sysroot)" "<(target_arch)"', |
10 }, { | 10 }, { |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 }], | 115 }], |
116 ], | 116 ], |
117 }, | 117 }, |
118 ], # targets | 118 ], # targets |
119 }], | 119 }], |
120 ['linux_use_libgps==1', { | 120 ['linux_use_libgps==1', { |
121 'targets': [ | 121 'targets': [ |
122 { | 122 { |
123 'target_name': 'libgps', | 123 'target_name': 'libgps', |
124 'type': 'static_library', | 124 'type': 'static_library', |
125 'dependencies': [ | |
126 '../../base/base.gyp:base', | |
127 ], | |
128 'all_dependent_settings': { | 125 'all_dependent_settings': { |
129 'defines': [ | 126 'defines': [ |
130 'USE_LIBGPS', | 127 'USE_LIBGPS', |
131 ], | 128 ], |
132 'include_dirs': [ | 129 'include_dirs': [ |
133 '<(SHARED_INTERMEDIATE_DIR)', | 130 '<(SHARED_INTERMEDIATE_DIR)', |
134 ], | 131 ], |
135 'conditions': [ | 132 'conditions': [ |
136 ['linux_link_libgps==1', { | 133 ['linux_link_libgps==1', { |
137 'cflags': [ | 134 'cflags': [ |
138 '<!@(<(pkg-config) --cflags libgps)', | 135 '<!@(<(pkg-config) --cflags libgps)', |
139 ], | 136 ], |
140 'link_settings': { | 137 'link_settings': { |
141 'ldflags': [ | 138 'ldflags': [ |
142 '<!@(<(pkg-config) --libs-only-L --libs-only-other libgps)', | 139 '<!@(<(pkg-config) --libs-only-L --libs-only-other libgps)', |
143 ], | 140 ], |
144 'libraries': [ | 141 'libraries': [ |
145 '<!@(<(pkg-config) --libs-only-l libgps)', | 142 '<!@(<(pkg-config) --libs-only-l libgps)', |
146 ], | 143 ], |
147 } | 144 } |
148 }], | 145 }], |
149 ], | 146 ], |
150 }, | 147 }, |
| 148 'include_dirs': [ |
| 149 '../..', |
| 150 ], |
151 'hard_dependency': 1, | 151 'hard_dependency': 1, |
152 'actions': [ | 152 'actions': [ |
153 { | 153 { |
154 'variables': { | 154 'variables': { |
155 'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libgps.h
', | 155 'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libgps.h
', |
156 'output_cc': '<(INTERMEDIATE_DIR)/libgps_loader.cc', | 156 'output_cc': '<(INTERMEDIATE_DIR)/libgps_loader.cc', |
157 'generator': '../../tools/generate_library_loader/generate_libra
ry_loader.py', | 157 'generator': '../../tools/generate_library_loader/generate_libra
ry_loader.py', |
158 }, | 158 }, |
159 'action_name': 'generate_libgps_loader', | 159 'action_name': 'generate_libgps_loader', |
160 'inputs': [ | 160 'inputs': [ |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 ['_toolset=="target"', { | 195 ['_toolset=="target"', { |
196 'conditions': [ | 196 'conditions': [ |
197 ['use_openssl==1', { | 197 ['use_openssl==1', { |
198 'dependencies': [ | 198 'dependencies': [ |
199 '../../third_party/openssl/openssl.gyp:openssl', | 199 '../../third_party/openssl/openssl.gyp:openssl', |
200 ], | 200 ], |
201 }], | 201 }], |
202 ['use_openssl==0 and use_system_ssl==0', { | 202 ['use_openssl==0 and use_system_ssl==0', { |
203 'dependencies': [ | 203 'dependencies': [ |
204 '../../net/third_party/nss/ssl.gyp:libssl', | 204 '../../net/third_party/nss/ssl.gyp:libssl', |
205 '../../third_party/zlib/zlib.gyp:zlib', | |
206 ], | 205 ], |
207 'direct_dependent_settings': { | 206 'direct_dependent_settings': { |
208 'include_dirs+': [ | 207 'include_dirs+': [ |
209 # We need for our local copies of the libssl3 headers to come | 208 # We need for our local copies of the libssl3 headers to come |
210 # before other includes, as we are shadowing system headers. | 209 # before other includes, as we are shadowing system headers. |
211 '<(DEPTH)/net/third_party/nss/ssl', | 210 '<(DEPTH)/net/third_party/nss/ssl', |
212 ], | 211 ], |
213 'cflags': [ | 212 'cflags': [ |
214 '<!@(<(pkg-config) --cflags nss)', | 213 '<!@(<(pkg-config) --cflags nss)', |
215 ], | 214 ], |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 ], | 317 ], |
319 }, | 318 }, |
320 }], | 319 }], |
321 ], | 320 ], |
322 }, | 321 }, |
323 { | 322 { |
324 'target_name': 'gio', | 323 'target_name': 'gio', |
325 'type': 'static_library', | 324 'type': 'static_library', |
326 'conditions': [ | 325 'conditions': [ |
327 ['use_gio==1 and _toolset=="target"', { | 326 ['use_gio==1 and _toolset=="target"', { |
328 'dependencies': [ | |
329 '../../base/base.gyp:base', | |
330 ], | |
331 'cflags': [ | 327 'cflags': [ |
332 '<!@(<(pkg-config) --cflags gio-2.0)', | 328 '<!@(<(pkg-config) --cflags gio-2.0)', |
333 ], | 329 ], |
334 'direct_dependent_settings': { | 330 'direct_dependent_settings': { |
335 'cflags': [ | 331 'cflags': [ |
336 '<!@(<(pkg-config) --cflags gio-2.0)', | 332 '<!@(<(pkg-config) --cflags gio-2.0)', |
337 ], | 333 ], |
338 'defines': [ | 334 'defines': [ |
339 'USE_GIO', | 335 'USE_GIO', |
340 ], | 336 ], |
341 'include_dirs': [ | 337 'include_dirs': [ |
342 '<(SHARED_INTERMEDIATE_DIR)', | 338 '<(SHARED_INTERMEDIATE_DIR)', |
343 ], | 339 ], |
344 }, | 340 }, |
| 341 'include_dirs': [ |
| 342 '../..', |
| 343 ], |
345 'link_settings': { | 344 'link_settings': { |
346 'ldflags': [ | 345 'ldflags': [ |
347 '<!@(<(pkg-config) --libs-only-L --libs-only-other gio-2.0)', | 346 '<!@(<(pkg-config) --libs-only-L --libs-only-other gio-2.0)', |
348 ], | 347 ], |
349 'libraries': [ | 348 'libraries': [ |
350 '<!@(<(pkg-config) --libs-only-l gio-2.0)', | 349 '<!@(<(pkg-config) --libs-only-l gio-2.0)', |
351 ], | 350 ], |
352 'conditions': [ | 351 'conditions': [ |
353 ['linux_link_gsettings==0 and OS=="linux"', { | 352 ['linux_link_gsettings==0 and OS=="linux"', { |
354 'libraries': [ | 353 'libraries': [ |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 ], | 393 ], |
395 }], | 394 }], |
396 ], | 395 ], |
397 }, | 396 }, |
398 { | 397 { |
399 'target_name': 'libpci', | 398 'target_name': 'libpci', |
400 'type': 'static_library', | 399 'type': 'static_library', |
401 'cflags': [ | 400 'cflags': [ |
402 '<!@(<(pkg-config) --cflags libpci)', | 401 '<!@(<(pkg-config) --cflags libpci)', |
403 ], | 402 ], |
404 'dependencies': [ | |
405 '../../base/base.gyp:base', | |
406 ], | |
407 'direct_dependent_settings': { | 403 'direct_dependent_settings': { |
408 'include_dirs': [ | 404 'include_dirs': [ |
409 '<(SHARED_INTERMEDIATE_DIR)', | 405 '<(SHARED_INTERMEDIATE_DIR)', |
410 ], | 406 ], |
411 'conditions': [ | 407 'conditions': [ |
412 ['linux_link_libpci==1', { | 408 ['linux_link_libpci==1', { |
413 'link_settings': { | 409 'link_settings': { |
414 'ldflags': [ | 410 'ldflags': [ |
415 '<!@(<(pkg-config) --libs-only-L --libs-only-other libpci)', | 411 '<!@(<(pkg-config) --libs-only-L --libs-only-other libpci)', |
416 ], | 412 ], |
417 'libraries': [ | 413 'libraries': [ |
418 '<!@(<(pkg-config) --libs-only-l libpci)', | 414 '<!@(<(pkg-config) --libs-only-l libpci)', |
419 ], | 415 ], |
420 } | 416 } |
421 }], | 417 }], |
422 ], | 418 ], |
423 }, | 419 }, |
| 420 'include_dirs': [ |
| 421 '../..', |
| 422 ], |
424 'hard_dependency': 1, | 423 'hard_dependency': 1, |
425 'actions': [ | 424 'actions': [ |
426 { | 425 { |
427 'variables': { | 426 'variables': { |
428 'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libpci.h', | 427 'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libpci.h', |
429 'output_cc': '<(INTERMEDIATE_DIR)/libpci_loader.cc', | 428 'output_cc': '<(INTERMEDIATE_DIR)/libpci_loader.cc', |
430 'generator': '../../tools/generate_library_loader/generate_library_l
oader.py', | 429 'generator': '../../tools/generate_library_loader/generate_library_l
oader.py', |
431 }, | 430 }, |
432 'action_name': 'generate_libpci_loader', | 431 'action_name': 'generate_libpci_loader', |
433 'inputs': [ | 432 'inputs': [ |
(...skipping 21 matching lines...) Expand all Loading... |
455 'pci_lookup_name', | 454 'pci_lookup_name', |
456 ], | 455 ], |
457 'message': 'Generating libpci library loader.', | 456 'message': 'Generating libpci library loader.', |
458 'process_outputs_as_sources': 1, | 457 'process_outputs_as_sources': 1, |
459 }, | 458 }, |
460 ], | 459 ], |
461 }, | 460 }, |
462 { | 461 { |
463 'target_name': 'libspeechd', | 462 'target_name': 'libspeechd', |
464 'type': 'static_library', | 463 'type': 'static_library', |
465 'dependencies': [ | |
466 '../../base/base.gyp:base', | |
467 ], | |
468 'direct_dependent_settings': { | 464 'direct_dependent_settings': { |
469 'include_dirs': [ | 465 'include_dirs': [ |
470 '<(SHARED_INTERMEDIATE_DIR)', | 466 '<(SHARED_INTERMEDIATE_DIR)', |
471 ], | 467 ], |
472 'conditions': [ | 468 'conditions': [ |
473 ['linux_link_libspeechd==1', { | 469 ['linux_link_libspeechd==1', { |
474 'link_settings': { | 470 'link_settings': { |
475 'libraries': [ | 471 'libraries': [ |
476 '-lspeechd', | 472 '-lspeechd', |
477 ], | 473 ], |
478 } | 474 } |
479 }], | 475 }], |
480 ], | 476 ], |
481 }, | 477 }, |
| 478 'include_dirs': [ |
| 479 '../..', |
| 480 ], |
482 'hard_dependency': 1, | 481 'hard_dependency': 1, |
483 'actions': [ | 482 'actions': [ |
484 { | 483 { |
485 'variables': { | 484 'variables': { |
486 'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libspeechd.h
', | 485 'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libspeechd.h
', |
487 'output_cc': '<(INTERMEDIATE_DIR)/libspeechd_loader.cc', | 486 'output_cc': '<(INTERMEDIATE_DIR)/libspeechd_loader.cc', |
488 'generator': '../../tools/generate_library_loader/generate_library_l
oader.py', | 487 'generator': '../../tools/generate_library_loader/generate_library_l
oader.py', |
489 | 488 |
490 # speech-dispatcher >= 0.8 installs libspeechd.h into | 489 # speech-dispatcher >= 0.8 installs libspeechd.h into |
491 # speech-dispatcher/libspeechd.h, whereas speech-dispatcher < 0.8 | 490 # speech-dispatcher/libspeechd.h, whereas speech-dispatcher < 0.8 |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
833 ], | 832 ], |
834 'libraries': [ | 833 'libraries': [ |
835 '<!@(<(pkg-config) --libs-only-l libudev)', | 834 '<!@(<(pkg-config) --libs-only-l libudev)', |
836 ], | 835 ], |
837 }, | 836 }, |
838 }], | 837 }], |
839 ], | 838 ], |
840 }, | 839 }, |
841 ], | 840 ], |
842 } | 841 } |
OLD | NEW |