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 '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 'allocator/allocator.gyp:allocator', |
25 'base_debugging_flags#target', | 25 'base_debugging_flags#target', |
26 'base_static', | 26 'base_static', |
| 27 'base_build_date#target', |
27 '../testing/gtest.gyp:gtest_prod', | 28 '../testing/gtest.gyp:gtest_prod', |
28 '../third_party/modp_b64/modp_b64.gyp:modp_b64', | 29 '../third_party/modp_b64/modp_b64.gyp:modp_b64', |
29 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotat
ions', | 30 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotat
ions', |
30 ], | 31 ], |
31 # TODO(gregoryd): direct_dependent_settings should be shared with the | 32 # TODO(gregoryd): direct_dependent_settings should be shared with the |
32 # 64-bit target, but it doesn't work due to a bug in gyp | 33 # 64-bit target, but it doesn't work due to a bug in gyp |
33 'direct_dependent_settings': { | 34 'direct_dependent_settings': { |
34 'include_dirs': [ | 35 'include_dirs': [ |
35 '..', | 36 '..', |
36 ], | 37 ], |
(...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
985 # toolchain, always refer to 'base_debugging_flags#target'. | 986 # toolchain, always refer to 'base_debugging_flags#target'. |
986 'target_name': 'base_debugging_flags', | 987 'target_name': 'base_debugging_flags', |
987 'includes': [ '../build/buildflag_header.gypi' ], | 988 'includes': [ '../build/buildflag_header.gypi' ], |
988 'variables': { | 989 'variables': { |
989 'buildflag_header_path': 'base/debug/debugging_flags.h', | 990 'buildflag_header_path': 'base/debug/debugging_flags.h', |
990 'buildflag_flags': [ | 991 'buildflag_flags': [ |
991 'ENABLE_PROFILING=<(profiling)', | 992 'ENABLE_PROFILING=<(profiling)', |
992 ], | 993 ], |
993 }, | 994 }, |
994 }, | 995 }, |
| 996 { |
| 997 'type': 'none', |
| 998 'target_name': 'base_build_date', |
| 999 'hard_dependency': 1, |
| 1000 'actions': [{ |
| 1001 'action_name': 'generate_build_date_headers', |
| 1002 'inputs': [ |
| 1003 '<(DEPTH)/build/write_build_date_header.py', |
| 1004 '<(DEPTH)/build/util/LASTCHANGE' |
| 1005 ], |
| 1006 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/base/generated_build_date.h' ], |
| 1007 'action': [ |
| 1008 'python', '<(DEPTH)/build/write_build_date_header.py', |
| 1009 '<(SHARED_INTERMEDIATE_DIR)/base/generated_build_date.h', |
| 1010 '<(build_type)' |
| 1011 ] |
| 1012 }], |
| 1013 'conditions': [ |
| 1014 [ 'buildtype == "Official"', { |
| 1015 'variables': { |
| 1016 'build_type': 'official' |
| 1017 } |
| 1018 }, { |
| 1019 'variables': { |
| 1020 'build_type': 'default' |
| 1021 } |
| 1022 }], |
| 1023 ] |
| 1024 }, |
995 ], | 1025 ], |
996 'conditions': [ | 1026 'conditions': [ |
997 ['OS=="ios" and "<(GENERATOR)"=="ninja"', { | 1027 ['OS=="ios" and "<(GENERATOR)"=="ninja"', { |
998 'targets': [ | 1028 'targets': [ |
999 { | 1029 { |
1000 'target_name': 'test_launcher', | 1030 'target_name': 'test_launcher', |
1001 'toolsets': ['host'], | 1031 'toolsets': ['host'], |
1002 'type': 'executable', | 1032 'type': 'executable', |
1003 'dependencies': [ | 1033 'dependencies': [ |
1004 'test_support_base', | 1034 'test_support_base', |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1040 'targets': [ | 1070 'targets': [ |
1041 # The base_win64 target here allows us to use base for Win64 targets | 1071 # The base_win64 target here allows us to use base for Win64 targets |
1042 # (the normal build is 32 bits). | 1072 # (the normal build is 32 bits). |
1043 { | 1073 { |
1044 'target_name': 'base_win64', | 1074 'target_name': 'base_win64', |
1045 'type': '<(component)', | 1075 'type': '<(component)', |
1046 'variables': { | 1076 'variables': { |
1047 'base_target': 1, | 1077 'base_target': 1, |
1048 }, | 1078 }, |
1049 'dependencies': [ | 1079 'dependencies': [ |
| 1080 'base_build_date', |
1050 'base_debugging_flags#target', | 1081 'base_debugging_flags#target', |
1051 'base_static_win64', | 1082 'base_static_win64', |
1052 '../third_party/modp_b64/modp_b64.gyp:modp_b64_win64', | 1083 '../third_party/modp_b64/modp_b64.gyp:modp_b64_win64', |
1053 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_ann
otations_win64', | 1084 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_ann
otations_win64', |
1054 'trace_event/etw_manifest/etw_manifest.gyp:etw_manifest', | 1085 'trace_event/etw_manifest/etw_manifest.gyp:etw_manifest', |
1055 ], | 1086 ], |
1056 # TODO(gregoryd): direct_dependent_settings should be shared with the | 1087 # TODO(gregoryd): direct_dependent_settings should be shared with the |
1057 # 32-bit target, but it doesn't work due to a bug in gyp | 1088 # 32-bit target, but it doesn't work due to a bug in gyp |
1058 'direct_dependent_settings': { | 1089 'direct_dependent_settings': { |
1059 'include_dirs': [ | 1090 'include_dirs': [ |
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1638 '../build/isolate.gypi', | 1669 '../build/isolate.gypi', |
1639 ], | 1670 ], |
1640 'sources': [ | 1671 'sources': [ |
1641 'base_unittests.isolate', | 1672 'base_unittests.isolate', |
1642 ], | 1673 ], |
1643 }, | 1674 }, |
1644 ], | 1675 ], |
1645 }], | 1676 }], |
1646 ], | 1677 ], |
1647 } | 1678 } |
OLD | NEW |