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

Side by Side Diff: base/base.gyp

Issue 1605023004: Reland of: Allow base to depend on allocator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: This CL: fix gyp issues Created 4 years, 11 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
« base/allocator/allocator.gyp ('K') | « base/allocator/allocator.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 'chromium_code': 1, 7 'chromium_code': 1,
8 }, 8 },
9 'includes': [ 9 'includes': [
10 '../build/win_precompile.gypi', 10 '../build/win_precompile.gypi',
11 'base.gypi', 11 'base.gypi',
12 ], 12 ],
13 'targets': [ 13 'targets': [
14 { 14 {
15 'target_name': 'base', 15 'target_name': 'base',
16 'type': '<(component)', 16 'type': '<(component)',
17 'toolsets': ['host', 'target'], 17 'toolsets': ['host', 'target'],
18 'variables': { 18 'variables': {
19 'base_target': 1, 19 'base_target': 1,
20 'enable_wexit_time_destructors': 1, 20 'enable_wexit_time_destructors': 1,
21 'optimize': 'max', 21 'optimize': 'max',
22 }, 22 },
23 'dependencies': [ 23 'dependencies': [
24 'allocator/allocator.gyp:allocator',
24 'base_debugging_flags#target', 25 'base_debugging_flags#target',
25 'base_static', 26 'base_static',
26 '../testing/gtest.gyp:gtest_prod', 27 '../testing/gtest.gyp:gtest_prod',
27 '../third_party/modp_b64/modp_b64.gyp:modp_b64', 28 '../third_party/modp_b64/modp_b64.gyp:modp_b64',
28 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotat ions', 29 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotat ions',
29 ], 30 ],
30 # TODO(gregoryd): direct_dependent_settings should be shared with the 31 # TODO(gregoryd): direct_dependent_settings should be shared with the
31 # 64-bit target, but it doesn't work due to a bug in gyp 32 # 64-bit target, but it doesn't work due to a bug in gyp
32 'direct_dependent_settings': { 33 'direct_dependent_settings': {
33 'include_dirs': [ 34 'include_dirs': [
(...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 }], 756 }],
756 ['use_ozone == 1', { 757 ['use_ozone == 1', {
757 'sources!': [ 758 'sources!': [
758 'message_loop/message_pump_glib_unittest.cc', 759 'message_loop/message_pump_glib_unittest.cc',
759 ] 760 ]
760 }], 761 }],
761 ['OS == "linux"', { 762 ['OS == "linux"', {
762 'dependencies': [ 763 'dependencies': [
763 'malloc_wrapper', 764 'malloc_wrapper',
764 ], 765 ],
765 'conditions': [ 766 }],
766 ['use_allocator!="none"', {
767 'dependencies': [
768 'allocator/allocator.gyp:allocator',
769 ],
770 }],
771 ]},
772 ],
773 [ 'OS == "win" and target_arch == "x64"', { 767 [ 'OS == "win" and target_arch == "x64"', {
774 'sources': [ 768 'sources': [
775 'profiler/win32_stack_frame_unwinder_unittest.cc', 769 'profiler/win32_stack_frame_unwinder_unittest.cc',
776 ], 770 ],
777 'dependencies': [ 771 'dependencies': [
778 'base_profiler_test_support_library', 772 'base_profiler_test_support_library',
779 ], 773 ],
780 }], 774 }],
781 ['OS == "win"', { 775 ['OS == "win"', {
782 'sources!': [ 776 'sources!': [
783 'file_descriptor_shuffle_unittest.cc', 777 'file_descriptor_shuffle_unittest.cc',
784 'files/dir_reader_posix_unittest.cc', 778 'files/dir_reader_posix_unittest.cc',
785 'message_loop/message_pump_libevent_unittest.cc', 779 'message_loop/message_pump_libevent_unittest.cc',
786 'threading/worker_pool_posix_unittest.cc', 780 'threading/worker_pool_posix_unittest.cc',
787 ], 781 ],
788 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 782 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
789 'msvs_disabled_warnings': [ 783 'msvs_disabled_warnings': [
790 4267, 784 4267,
791 ], 785 ],
792 'conditions': [ 786 'conditions': [
793 # This is needed so base_unittests uses the allocator shim, as
794 # SecurityTest.MemoryAllocationRestriction* tests are dependent
795 # on tcmalloc.
796 # TODO(wfh): crbug.com/246278 Move tcmalloc specific tests into
797 # their own test suite.
798 ['win_use_allocator_shim==1', {
799 'dependencies': [
800 'allocator/allocator.gyp:allocator',
801 ],
802 }],
803 ['icu_use_data_file_flag==0', { 787 ['icu_use_data_file_flag==0', {
804 # This is needed to trigger the dll copy step on windows. 788 # This is needed to trigger the dll copy step on windows.
805 # TODO(mark): This should not be necessary. 789 # TODO(mark): This should not be necessary.
806 'dependencies': [ 790 'dependencies': [
807 '../third_party/icu/icu.gyp:icudata', 791 '../third_party/icu/icu.gyp:icudata',
808 ], 792 ],
809 }], 793 }],
810 ], 794 ],
811 }, { # OS != "win" 795 }, { # OS != "win"
812 'dependencies': [ 796 'dependencies': [
(...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after
1743 '../build/isolate.gypi', 1727 '../build/isolate.gypi',
1744 ], 1728 ],
1745 'sources': [ 1729 'sources': [
1746 'base_unittests.isolate', 1730 'base_unittests.isolate',
1747 ], 1731 ],
1748 }, 1732 },
1749 ], 1733 ],
1750 }], 1734 }],
1751 ], 1735 ],
1752 } 1736 }
OLDNEW
« base/allocator/allocator.gyp ('K') | « base/allocator/allocator.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698