OLD | NEW |
1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'gen_source_dir': '<(SHARED_INTERMEDIATE_DIR)', | 7 'gen_source_dir': '<(SHARED_INTERMEDIATE_DIR)', |
8 'libgen_in_cc_file': '../lib/libgen_in.cc', | 8 'libgen_in_cc_file': '../lib/libgen_in.cc', |
9 'builtin_in_cc_file': '../bin/builtin_in.cc', | 9 'builtin_in_cc_file': '../bin/builtin_in.cc', |
10 'async_cc_file': '<(gen_source_dir)/async_gen.cc', | 10 'async_cc_file': '<(gen_source_dir)/async_gen.cc', |
(...skipping 11 matching lines...) Expand all Loading... |
22 'math_cc_file': '<(gen_source_dir)/math_gen.cc', | 22 'math_cc_file': '<(gen_source_dir)/math_gen.cc', |
23 'math_patch_cc_file': '<(gen_source_dir)/math_patch_gen.cc', | 23 'math_patch_cc_file': '<(gen_source_dir)/math_patch_gen.cc', |
24 'mirrors_cc_file': '<(gen_source_dir)/mirrors_gen.cc', | 24 'mirrors_cc_file': '<(gen_source_dir)/mirrors_gen.cc', |
25 'mirrors_patch_cc_file': '<(gen_source_dir)/mirrors_patch_gen.cc', | 25 'mirrors_patch_cc_file': '<(gen_source_dir)/mirrors_patch_gen.cc', |
26 'service_cc_file': '<(gen_source_dir)/service_gen.cc', | 26 'service_cc_file': '<(gen_source_dir)/service_gen.cc', |
27 'snapshot_test_dat_file': '<(gen_source_dir)/snapshot_test.dat', | 27 'snapshot_test_dat_file': '<(gen_source_dir)/snapshot_test.dat', |
28 'snapshot_test_in_dat_file': 'snapshot_test_in.dat', | 28 'snapshot_test_in_dat_file': 'snapshot_test_in.dat', |
29 'snapshot_test_dart_file': 'snapshot_test.dart', | 29 'snapshot_test_dart_file': 'snapshot_test.dart', |
30 'typed_data_cc_file': '<(gen_source_dir)/typed_data_gen.cc', | 30 'typed_data_cc_file': '<(gen_source_dir)/typed_data_gen.cc', |
31 'typed_data_patch_cc_file': '<(gen_source_dir)/typed_data_patch_gen.cc', | 31 'typed_data_patch_cc_file': '<(gen_source_dir)/typed_data_patch_gen.cc', |
| 32 'profiler_cc_file': '<(gen_source_dir)/profiler_gen.cc', |
| 33 'profiler_patch_cc_file': '<(gen_source_dir)/profiler_patch_gen.cc', |
32 }, | 34 }, |
33 'targets': [ | 35 'targets': [ |
34 { | 36 { |
35 'target_name': 'libdart_vm', | 37 'target_name': 'libdart_vm', |
36 'type': 'static_library', | 38 'type': 'static_library', |
37 'toolsets':['host', 'target'], | 39 'toolsets':['host', 'target'], |
38 'dependencies': [ | 40 'dependencies': [ |
39 'generate_service_cc_file#host' | 41 'generate_service_cc_file#host' |
40 ], | 42 ], |
41 'includes': [ | 43 'includes': [ |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 'generate_internal_cc_file#host', | 106 'generate_internal_cc_file#host', |
105 'generate_internal_patch_cc_file#host', | 107 'generate_internal_patch_cc_file#host', |
106 'generate_isolate_cc_file#host', | 108 'generate_isolate_cc_file#host', |
107 'generate_isolate_patch_cc_file#host', | 109 'generate_isolate_patch_cc_file#host', |
108 'generate_math_cc_file#host', | 110 'generate_math_cc_file#host', |
109 'generate_math_patch_cc_file#host', | 111 'generate_math_patch_cc_file#host', |
110 'generate_mirrors_cc_file#host', | 112 'generate_mirrors_cc_file#host', |
111 'generate_mirrors_patch_cc_file#host', | 113 'generate_mirrors_patch_cc_file#host', |
112 'generate_typed_data_cc_file#host', | 114 'generate_typed_data_cc_file#host', |
113 'generate_typed_data_patch_cc_file#host', | 115 'generate_typed_data_patch_cc_file#host', |
| 116 'generate_profiler_cc_file#host', |
| 117 'generate_profiler_patch_cc_file#host', |
114 ], | 118 ], |
115 'includes': [ | 119 'includes': [ |
116 '../lib/async_sources.gypi', | 120 '../lib/async_sources.gypi', |
117 '../lib/collection_sources.gypi', | 121 '../lib/collection_sources.gypi', |
118 '../lib/corelib_sources.gypi', | 122 '../lib/corelib_sources.gypi', |
119 '../lib/isolate_sources.gypi', | 123 '../lib/isolate_sources.gypi', |
120 '../lib/math_sources.gypi', | 124 '../lib/math_sources.gypi', |
121 '../lib/mirrors_sources.gypi', | 125 '../lib/mirrors_sources.gypi', |
122 '../lib/typed_data_sources.gypi', | 126 '../lib/typed_data_sources.gypi', |
| 127 '../lib/profiler_sources.gypi', |
123 ], | 128 ], |
124 'sources': [ | 129 'sources': [ |
125 'bootstrap.cc', | 130 'bootstrap.cc', |
126 # Include generated source files. | 131 # Include generated source files. |
127 '<(async_cc_file)', | 132 '<(async_cc_file)', |
128 '<(async_patch_cc_file)', | 133 '<(async_patch_cc_file)', |
129 '<(corelib_cc_file)', | 134 '<(corelib_cc_file)', |
130 '<(corelib_patch_cc_file)', | 135 '<(corelib_patch_cc_file)', |
131 '<(collection_cc_file)', | 136 '<(collection_cc_file)', |
132 '<(collection_patch_cc_file)', | 137 '<(collection_patch_cc_file)', |
133 '<(convert_cc_file)', | 138 '<(convert_cc_file)', |
134 '<(convert_patch_cc_file)', | 139 '<(convert_patch_cc_file)', |
135 '<(internal_cc_file)', | 140 '<(internal_cc_file)', |
136 '<(internal_patch_cc_file)', | 141 '<(internal_patch_cc_file)', |
137 '<(isolate_cc_file)', | 142 '<(isolate_cc_file)', |
138 '<(isolate_patch_cc_file)', | 143 '<(isolate_patch_cc_file)', |
139 '<(math_cc_file)', | 144 '<(math_cc_file)', |
140 '<(math_patch_cc_file)', | 145 '<(math_patch_cc_file)', |
141 '<(mirrors_cc_file)', | 146 '<(mirrors_cc_file)', |
142 '<(mirrors_patch_cc_file)', | 147 '<(mirrors_patch_cc_file)', |
143 '<(typed_data_cc_file)', | 148 '<(typed_data_cc_file)', |
144 '<(typed_data_patch_cc_file)', | 149 '<(typed_data_patch_cc_file)', |
| 150 '<(profiler_cc_file)', |
| 151 '<(profiler_patch_cc_file)', |
145 ], | 152 ], |
146 'include_dirs': [ | 153 'include_dirs': [ |
147 '..', | 154 '..', |
148 ], | 155 ], |
149 }, | 156 }, |
150 { | 157 { |
151 'target_name': 'libdart_lib', | 158 'target_name': 'libdart_lib', |
152 'type': 'static_library', | 159 'type': 'static_library', |
153 'toolsets':['host', 'target'], | 160 'toolsets':['host', 'target'], |
154 'includes': [ | 161 'includes': [ |
155 '../lib/async_sources.gypi', | 162 '../lib/async_sources.gypi', |
156 '../lib/collection_sources.gypi', | 163 '../lib/collection_sources.gypi', |
157 '../lib/corelib_sources.gypi', | 164 '../lib/corelib_sources.gypi', |
158 '../lib/isolate_sources.gypi', | 165 '../lib/isolate_sources.gypi', |
159 '../lib/math_sources.gypi', | 166 '../lib/math_sources.gypi', |
160 '../lib/mirrors_sources.gypi', | 167 '../lib/mirrors_sources.gypi', |
161 '../lib/typed_data_sources.gypi', | 168 '../lib/typed_data_sources.gypi', |
| 169 '../lib/profiler_sources.gypi', |
162 ], | 170 ], |
163 'sources': [ | 171 'sources': [ |
164 'bootstrap_nocorelib.cc', | 172 'bootstrap_nocorelib.cc', |
165 ], | 173 ], |
166 'include_dirs': [ | 174 'include_dirs': [ |
167 '..', | 175 '..', |
168 ], | 176 ], |
169 }, | 177 }, |
170 { | 178 { |
171 'target_name': 'generate_async_cc_file', | 179 'target_name': 'generate_async_cc_file', |
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
880 '--include', 'vm/bootstrap.h', | 888 '--include', 'vm/bootstrap.h', |
881 '--var_name', 'dart::Bootstrap::typed_data_patch_paths_', | 889 '--var_name', 'dart::Bootstrap::typed_data_patch_paths_', |
882 '--library_name', 'dart:typed_data', | 890 '--library_name', 'dart:typed_data', |
883 '<@(_sources)', | 891 '<@(_sources)', |
884 ], | 892 ], |
885 'message': 'Generating ''<(typed_data_patch_cc_file)'' file.' | 893 'message': 'Generating ''<(typed_data_patch_cc_file)'' file.' |
886 }, | 894 }, |
887 ] | 895 ] |
888 }, | 896 }, |
889 { | 897 { |
| 898 'target_name': 'generate_profiler_cc_file', |
| 899 'type': 'none', |
| 900 'toolsets':['host'], |
| 901 'includes': [ |
| 902 # Load the shared library sources. |
| 903 '../../sdk/lib/profiler/profiler_sources.gypi', |
| 904 ], |
| 905 'sources/': [ |
| 906 # Exclude all .[cc|h] files. |
| 907 # This is only here for reference. Excludes happen after |
| 908 # variable expansion, so the script has to do its own |
| 909 # exclude processing of the sources being passed. |
| 910 ['exclude', '\\.cc|h$'], |
| 911 ], |
| 912 'actions': [ |
| 913 { |
| 914 'action_name': 'generate_profiler_cc', |
| 915 'inputs': [ |
| 916 '../tools/gen_library_src_paths.py', |
| 917 '<(libgen_in_cc_file)', |
| 918 '<@(_sources)', |
| 919 ], |
| 920 'outputs': [ |
| 921 '<(profiler_cc_file)', |
| 922 ], |
| 923 'action': [ |
| 924 'python', |
| 925 'tools/gen_library_src_paths.py', |
| 926 '--output', '<(profiler_cc_file)', |
| 927 '--input_cc', '<(libgen_in_cc_file)', |
| 928 '--include', 'vm/bootstrap.h', |
| 929 '--var_name', 'dart::Bootstrap::profiler_source_paths_', |
| 930 '--library_name', 'dart:profiler', |
| 931 '<@(_sources)', |
| 932 ], |
| 933 'message': 'Generating ''<(profiler_cc_file)'' file.' |
| 934 }, |
| 935 ] |
| 936 }, |
| 937 { |
| 938 'target_name': 'generate_profiler_patch_cc_file', |
| 939 'type': 'none', |
| 940 'toolsets':['host'], |
| 941 'includes': [ |
| 942 # Load the runtime implementation sources. |
| 943 '../lib/profiler_sources.gypi', |
| 944 ], |
| 945 'sources/': [ |
| 946 # Exclude all .[cc|h] files. |
| 947 # This is only here for reference. Excludes happen after |
| 948 # variable expansion, so the script has to do its own |
| 949 # exclude processing of the sources being passed. |
| 950 ['exclude', '\\.cc|h$'], |
| 951 ], |
| 952 'actions': [ |
| 953 { |
| 954 'action_name': 'generate_profiler_patch_cc', |
| 955 'inputs': [ |
| 956 '../tools/gen_library_src_paths.py', |
| 957 '<(libgen_in_cc_file)', |
| 958 '<@(_sources)', |
| 959 ], |
| 960 'outputs': [ |
| 961 '<(profiler_patch_cc_file)', |
| 962 ], |
| 963 'action': [ |
| 964 'python', |
| 965 'tools/gen_library_src_paths.py', |
| 966 '--output', '<(profiler_patch_cc_file)', |
| 967 '--input_cc', '<(libgen_in_cc_file)', |
| 968 '--include', 'vm/bootstrap.h', |
| 969 '--var_name', 'dart::Bootstrap::profiler_patch_paths_', |
| 970 '--library_name', 'dart:profiler', |
| 971 '<@(_sources)', |
| 972 ], |
| 973 'message': 'Generating ''<(profiler_patch_cc_file)'' file.' |
| 974 }, |
| 975 ] |
| 976 }, |
| 977 { |
890 'target_name': 'generate_snapshot_test_dat_file', | 978 'target_name': 'generate_snapshot_test_dat_file', |
891 'type': 'none', | 979 'type': 'none', |
892 'toolsets':['host'], | 980 'toolsets':['host'], |
893 'actions': [ | 981 'actions': [ |
894 { | 982 { |
895 'action_name': 'generate_snapshot_test_dat', | 983 'action_name': 'generate_snapshot_test_dat', |
896 'inputs': [ | 984 'inputs': [ |
897 '../tools/create_string_literal.py', | 985 '../tools/create_string_literal.py', |
898 '<(snapshot_test_in_dat_file)', | 986 '<(snapshot_test_in_dat_file)', |
899 '<(snapshot_test_dart_file)', | 987 '<(snapshot_test_dart_file)', |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
939 '--table_name', 'service', | 1027 '--table_name', 'service', |
940 '--root_prefix', 'vm/service/', | 1028 '--root_prefix', 'vm/service/', |
941 '<@(_sources)' | 1029 '<@(_sources)' |
942 ], | 1030 ], |
943 'message': 'Generating ''<(service_cc_file)'' file.' | 1031 'message': 'Generating ''<(service_cc_file)'' file.' |
944 }, | 1032 }, |
945 ] | 1033 ] |
946 }, | 1034 }, |
947 ] | 1035 ] |
948 } | 1036 } |
OLD | NEW |