Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Side by Side Diff: base/base.gypi

Issue 6965007: Define os_posix in gyp files to get new Unix platforms added quickly (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: changed os_nix to os_posix Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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 'target_defaults': { 6 'target_defaults': {
7 'variables': { 7 'variables': {
8 'base_target': 0, 8 'base_target': 0,
9 }, 9 },
10 'target_conditions': [ 10 'target_conditions': [
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 '..', 347 '..',
348 ], 348 ],
349 # These warnings are needed for the files in third_party\dmg_fp. 349 # These warnings are needed for the files in third_party\dmg_fp.
350 'msvs_disabled_warnings': [ 350 'msvs_disabled_warnings': [
351 4244, 4554, 4018, 4102, 351 4244, 4554, 4018, 4102,
352 ], 352 ],
353 'mac_framework_dirs': [ 353 'mac_framework_dirs': [
354 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Fr ameworks', 354 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Fr ameworks',
355 ], 355 ],
356 'conditions': [ 356 'conditions': [
357 [ 'OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "so laris"', { 357 [ 'os_posix!=1', {
358 'sources/': [ 358 'sources/': [
359 ['exclude', '^nix/'], 359 ['exclude', '^nix/'],
360 ], 360 ],
361 'sources!': [ 361 'sources!': [
362 'atomicops_internals_x86_gcc.cc', 362 'atomicops_internals_x86_gcc.cc',
363 'message_pump_glib.cc', 363 'message_pump_glib.cc',
364 'message_pump_glib_x.cc', 364 'message_pump_glib_x.cc',
365 ], 365 ],
366 }], 366 }],
367 [ 'OS != "linux"', { 367 [ 'OS != "linux"', {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 'event_recorder_stubs.cc', 400 'event_recorder_stubs.cc',
401 'file_descriptor_shuffle.cc', 401 'file_descriptor_shuffle.cc',
402 'message_pump_libevent.cc', 402 'message_pump_libevent.cc',
403 # Not using sha1_win.cc because it may have caused a 403 # Not using sha1_win.cc because it may have caused a
404 # regression to page cycler moz. 404 # regression to page cycler moz.
405 'sha1_win.cc', 405 'sha1_win.cc',
406 'string16.cc', 406 'string16.cc',
407 'debug/trace_event.cc', 407 'debug/trace_event.cc',
408 ], 408 ],
409 },], 409 },],
410 ['OS=="freebsd" or OS=="openbsd"', { 410 ['os_posix==1 and OS!="linux"', {
411 'sources!': [ 411 'sources!': [
412 'base/files/file_path_watcher_linux.cc', 412 'files/file_path_watcher_linux.cc',
413 ], 413 ],
414 'sources': [ 414 'sources': [
415 'base/files/file_path_watcher_stub.cc', 415 'files/file_path_watcher_stub.cc',
416 ], 416 ],
417 }], 417 }],
418 ], 418 ],
419 }], 419 }],
420 ], 420 ],
421 }, 421 },
422 'targets': [ 422 'targets': [
423 { 423 {
424 'target_name': 'base', 424 'target_name': 'base',
425 'type': '<(component)', 425 'type': '<(component)',
(...skipping 10 matching lines...) Expand all
436 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotat ions', 436 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotat ions',
437 ], 437 ],
438 # TODO(gregoryd): direct_dependent_settings should be shared with the 438 # TODO(gregoryd): direct_dependent_settings should be shared with the
439 # 64-bit target, but it doesn't work due to a bug in gyp 439 # 64-bit target, but it doesn't work due to a bug in gyp
440 'direct_dependent_settings': { 440 'direct_dependent_settings': {
441 'include_dirs': [ 441 'include_dirs': [
442 '..', 442 '..',
443 ], 443 ],
444 }, 444 },
445 'conditions': [ 445 'conditions': [
446 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris "', { 446 [ 'os_posix==1', {
447 'conditions': [ 447 'conditions': [
448 [ 'chromeos==1', { 448 [ 'chromeos==1', {
449 'sources/': [ ['include', '_chromeos\\.cc$'] ] 449 'sources/': [ ['include', '_chromeos\\.cc$'] ]
450 }, 450 },
451 ], 451 ],
452 [ 'linux_use_tcmalloc==0', { 452 [ 'linux_use_tcmalloc==0', {
453 'defines': [ 453 'defines': [
454 'NO_TCMALLOC', 454 'NO_TCMALLOC',
455 ], 455 ],
456 'direct_dependent_settings': { 456 'direct_dependent_settings': {
(...skipping 14 matching lines...) Expand all
471 'defines': [ 471 'defines': [
472 'USE_SYMBOLIZE', 472 'USE_SYMBOLIZE',
473 ], 473 ],
474 'cflags': [ 474 'cflags': [
475 '-Wno-write-strings', 475 '-Wno-write-strings',
476 ], 476 ],
477 'export_dependent_settings': [ 477 'export_dependent_settings': [
478 '../build/linux/system.gyp:gtk', 478 '../build/linux/system.gyp:gtk',
479 '../build/linux/system.gyp:x11', 479 '../build/linux/system.gyp:x11',
480 ], 480 ],
481 }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris" 481 }, { # os_posix!=1
482 'sources/': [ 482 'sources/': [
483 ['exclude', '/xdg_user_dirs/'], 483 ['exclude', '/xdg_user_dirs/'],
484 ['exclude', '_nss\.cc$'], 484 ['exclude', '_nss\.cc$'],
485 ], 485 ],
486 }], 486 }],
487 [ 'OS == "freebsd" or OS == "openbsd"', { 487 [ 'OS == "freebsd" or OS == "openbsd"', {
488 'sources!': [
489 'process_linux.cc',
490 ],
488 'link_settings': { 491 'link_settings': {
489 'libraries': [ 492 'libraries': [
490 '-L/usr/local/lib -lexecinfo', 493 '-L/usr/local/lib -lexecinfo',
491 ], 494 ],
492 }, 495 },
493 }, 496 },
494 ], 497 ],
495 [ 'OS == "linux"', { 498 [ 'OS == "linux"', {
496 'link_settings': { 499 'link_settings': {
497 'libraries': [ 500 'libraries': [
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 'i18n/icu_util_nacl_win64.cc', 624 'i18n/icu_util_nacl_win64.cc',
622 ], 625 ],
623 'configurations': { 626 'configurations': {
624 'Common_Base': { 627 'Common_Base': {
625 'msvs_target_platform': 'x64', 628 'msvs_target_platform': 'x64',
626 }, 629 },
627 }, 630 },
628 }, 631 },
629 ], 632 ],
630 }], 633 }],
631 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', { 634 [ 'os_posix==1', {
632 'targets': [ 635 'targets': [
633 { 636 {
634 'target_name': 'symbolize', 637 'target_name': 'symbolize',
635 'type': '<(library)', 638 'type': '<(library)',
636 'variables': { 639 'variables': {
637 'chromium_code': 0, 640 'chromium_code': 0,
638 }, 641 },
639 'conditions': [ 642 'conditions': [
640 [ 'OS == "solaris"', { 643 [ 'OS == "solaris"', {
641 'include_dirs': [ 644 'include_dirs': [
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 'third_party/xdg_mime/xdgmimemagic.c', 683 'third_party/xdg_mime/xdgmimemagic.c',
681 'third_party/xdg_mime/xdgmimemagic.h', 684 'third_party/xdg_mime/xdgmimemagic.h',
682 'third_party/xdg_mime/xdgmimeparent.c', 685 'third_party/xdg_mime/xdgmimeparent.c',
683 'third_party/xdg_mime/xdgmimeparent.h', 686 'third_party/xdg_mime/xdgmimeparent.h',
684 ], 687 ],
685 }, 688 },
686 ], 689 ],
687 }], 690 }],
688 ], 691 ],
689 } 692 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698