1# Copyright (c) 2013 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5{
6  'variables': {
7    'tracing_template_files': [
8      'src/about_tracing.html.template',
9      'src/about_tracing.js.template',
10    ],
11    'tracing_html_files': [
12      'src/tracing/record_selection_dialog.html',
13      'src/tracing/timeline_view.html',
14      'src/tracing/category_filter_dialog.html',
15      'src/ui/mouse_mode_selector.html',
16    ],
17    'tracing_css_files': [
18      'src/base/unittest.css',
19      'src/about_tracing/tracing_controller.css',
20      'src/about_tracing/profiling_view.css',
21      'src/ui/info_bar.css',
22      'src/ui/quad_stack.css',
23      'src/ui/quad_view.css',
24      'src/ui/overlay.css',
25      'src/ui/list_view.css',
26      'src/ui/tool_button.css',
27      'src/ui/mouse_mode_selector.css',
28      'src/ui/list_and_associated_view.css',
29      'src/ui/rect_view.css',
30      'src/ui/filter_control.css',
31      'src/ui/drag_handle.css',
32      'src/ui/mouse_tracker.js',
33      'src/ui/text_end_value_bar.js',
34      'src/ui/value_bar.js',
35      'src/ui/value_bar.css',
36      'src/ui/value_display.js',
37      'src/tcmalloc/tcmalloc_instance_view.css',
38      'src/tcmalloc/tcmalloc_snapshot_view.css',
39      'src/tcmalloc/heap_instance_track.css',
40      'src/tracing/analysis/analyze_slices.css',
41      'src/tracing/analysis/default_object_view.css',
42      'src/tracing/analysis/analysis_results.css',
43      'src/tracing/analysis/analysis_view.css',
44      'src/tracing/analysis/analysis_link.css',
45      'src/tracing/analysis/generic_object_view.css',
46      'src/tracing/timeline_view.css',
47      'src/tracing/tracks/ruler_track.css',
48      'src/tracing/tracks/counter_track.css',
49      'src/tracing/tracks/thread_track.css',
50      'src/tracing/tracks/process_track_base.css',
51      'src/tracing/tracks/trace_model_track.css',
52      'src/tracing/tracks/track.css',
53      'src/tracing/tracks/heading_track.css',
54      'src/tracing/tracks/drawing_container.css',
55      'src/tracing/tracks/object_instance_track.css',
56      'src/tracing/tracks/slice_track.css',
57      'src/tracing/tracks/spacing_track.css',
58      'src/tracing/timeline_track_view.css',
59      'src/tracing/record_selection_dialog.css',
60      'src/cc/layer_picker.css',
61      'src/cc/layer_tree_quad_stack_viewer.css',
62      'src/cc/raster_task_slice_view.css',
63      'src/cc/picture_view.css',
64      'src/cc/picture_ops_list_view.css',
65      'src/cc/layer_viewer.css',
66      'src/cc/layer_tree_host_impl_view.css',
67      'src/cc/picture_debugger.css',
68    ],
69    'tracing_js_files': [
70      'src/base.js',
71      'src/cc.js',
72      'src/base/unittest.js',
73      'src/base/range.js',
74      'src/base/raf.js',
75      'src/base/gl_matrix.js',
76      'src/base/rect.js',
77      'src/base/settings.js',
78      'src/base/quad.js',
79      'src/base/unittest/test_error.js',
80      'src/base/unittest/assertions.js',
81      'src/base/utils.js',
82      'src/base/properties.js',
83      'src/base/sorted_array_utils.js',
84      'src/base/bbox2.js',
85      'src/base/measuring_stick.js',
86      'src/base/guid.js',
87      'src/base/events.js',
88      'src/base/color.js',
89      'src/base/event_target.js',
90      'src/base/iteration_helpers.js',
91      'src/about_tracing/profiling_view.js',
92      'src/about_tracing/tracing_controller.js',
93      'src/ui.js',
94      'src/ui/container_that_decorates_its_children.js',
95      'src/ui/info_bar.js',
96      'src/ui/list_and_associated_view.js',
97      'src/ui/camera.js',
98      'src/ui/filter_control.js',
99      'src/ui/quad_view_viewport.js',
100      'src/ui/overlay.js',
101      'src/ui/drag_handle.js',
102      'src/ui/quad_stack.js',
103      'src/ui/list_view.js',
104      'src/ui/mouse_mode_selector.js',
105      'src/ui/quad_view.js',
106      'src/ui/quad_stack_viewer.js',
107      'src/ui/rect_view.js',
108      'src/ui/dom_helpers.js',
109      'src/tcmalloc/heap_instance_track.js',
110      'src/tcmalloc/tcmalloc_instance_view.js',
111      'src/tcmalloc/heap.js',
112      'src/tcmalloc/tcmalloc_snapshot_view.js',
113      'src/tracing/constants.js',
114      'src/tracing/category_filter_dialog.js',
115      'src/tracing/record_selection_dialog.js',
116      'src/tracing/standalone_timeline_view.js',
117      'src/tracing/importer.js',
118      'src/tracing/mouse_mode_constants.js',
119      'src/tracing/trace_model.js',
120      'src/tracing/trace_model_settings.js',
121      'src/tracing/trace_model/process_base.js',
122      'src/tracing/trace_model/cpu.js',
123      'src/tracing/trace_model/time_to_object_instance_map.js',
124      'src/tracing/trace_model/async_slice.js',
125      'src/tracing/trace_model/async_slice_group.js',
126      'src/tracing/trace_model/slice_group.js',
127      'src/tracing/trace_model/thread.js',
128      'src/tracing/trace_model/object_snapshot.js',
129      'src/tracing/trace_model/sample.js',
130      'src/tracing/trace_model/kernel.js',
131      'src/tracing/trace_model/slice.js',
132      'src/tracing/trace_model/object_collection.js',
133      'src/tracing/trace_model/object_instance.js',
134      'src/tracing/trace_model/process.js',
135      'src/tracing/trace_model/counter.js',
136      'src/tracing/trace_model/counter_series.js',
137      'src/tracing/trace_model/instant_event.js',
138      'src/tracing/trace_model/trace_model_event.js',
139      'src/tracing/test_utils.js',
140      'src/tracing/timeline_viewport.js',
141      'src/tracing/analysis/stub_analysis_table.js',
142      'src/tracing/analysis/object_instance_view.js',
143      'src/tracing/analysis/analysis_link.js',
144      'src/tracing/analysis/analysis_results.js',
145      'src/tracing/analysis/util.js',
146      'src/tracing/analysis/slice_view.js',
147      'src/tracing/analysis/generic_object_view.js',
148      'src/tracing/analysis/analyze_selection.js',
149      'src/tracing/analysis/stub_analysis_results.js',
150      'src/tracing/analysis/default_object_view.js',
151      'src/tracing/analysis/analyze_counters.js',
152      'src/tracing/analysis/analyze_slices.js',
153      'src/tracing/analysis/analysis_view.js',
154      'src/tracing/analysis/object_snapshot_view.js',
155      'src/tracing/timeline_view.js',
156      'src/tracing/tracks/counter_track.js',
157      'src/tracing/tracks/cpu_track.js',
158      'src/tracing/tracks/slice_track.js',
159      'src/tracing/tracks/container_track.js',
160      'src/tracing/tracks/async_slice_group_track.js',
161      'src/tracing/tracks/ruler_track.js',
162      'src/tracing/tracks/heading_track.js',
163      'src/tracing/tracks/drawing_container.js',
164      'src/tracing/tracks/object_instance_track.js',
165      'src/tracing/tracks/thread_track.js',
166      'src/tracing/tracks/process_track.js',
167      'src/tracing/tracks/process_track_base.js',
168      'src/tracing/tracks/slice_group_track.js',
169      'src/tracing/tracks/spacing_track.js',
170      'src/tracing/tracks/kernel_track.js',
171      'src/tracing/tracks/track.js',
172      'src/tracing/tracks/trace_model_track.js',
173      'src/tracing/find_control.js',
174      'src/tracing/fast_rect_renderer.js',
175      'src/tracing/color_scheme.js',
176      'src/tracing/filter.js',
177      'src/tracing/importer/v8/codemap.js',
178      'src/tracing/importer/v8/log_reader.js',
179      'src/tracing/importer/v8/splaytree.js',
180      'src/tracing/importer/v8_log_importer.js',
181      'src/tracing/importer/timeline_stream_importer.js',
182      'src/tracing/importer/linux_perf/clock_parser.js',
183      'src/tracing/importer/linux_perf/exynos_parser.js',
184      'src/tracing/importer/linux_perf/workqueue_parser.js',
185      'src/tracing/importer/linux_perf/gesture_parser.js',
186      'src/tracing/importer/linux_perf/power_parser.js',
187      'src/tracing/importer/linux_perf/disk_parser.js',
188      'src/tracing/importer/linux_perf/i915_parser.js',
189      'src/tracing/importer/linux_perf/cpufreq_parser.js',
190      'src/tracing/importer/linux_perf/bus_parser.js',
191      'src/tracing/importer/linux_perf/kfunc_parser.js',
192      'src/tracing/importer/linux_perf/parser.js',
193      'src/tracing/importer/linux_perf/drm_parser.js',
194      'src/tracing/importer/linux_perf/sched_parser.js',
195      'src/tracing/importer/linux_perf/sync_parser.js',
196      'src/tracing/importer/linux_perf/mali_parser.js',
197      'src/tracing/importer/linux_perf/android_parser.js',
198      'src/tracing/importer/linux_perf_importer.js',
199      'src/tracing/importer/trace_event_importer.js',
200      'src/tracing/timeline_track_view.js',
201      'src/tracing/selection.js',
202      'src/tcmalloc.js',
203      'src/cc/picture.js',
204      'src/cc/picture_as_canvas.js',
205      'src/cc/constants.js',
206      'src/cc/layer_viewer.js',
207      'src/cc/picture_view.js',
208      'src/cc/tile.js',
209      'src/cc/region.js',
210      'src/cc/layer_impl.js',
211      'src/cc/picture_ops_list_view.js',
212      'src/cc/util.js',
213      'src/cc/layer_picker.js',
214      'src/cc/layer_tree_host_impl.js',
215      'src/cc/layer_tree_quad_stack_viewer.js',
216      'src/cc/layer_tree_impl.js',
217      'src/cc/raster_task_slice_view.js',
218      'src/cc/picture_debugger.js',
219      'src/cc/layer_tree_host_impl_view.js',
220      'src/cc/tile_view.js',
221      'src/cc/selection.js',
222    ],
223    'tracing_img_files': [
224      'src/images/chrome-left.png',
225      'src/images/chrome-right.png',
226      'src/images/chrome-mid.png',
227      'src/images/collapse.png',
228      'src/images/expand.png',
229      'src/images/ui-states.png',
230    ],
231    'tracing_files': [
232      '<@(tracing_template_files)',
233      '<@(tracing_html_files)',
234      '<@(tracing_css_files)',
235      '<@(tracing_js_files)',
236      '<@(tracing_img_files)',
237    ],
238  },
239  'targets': [
240    {
241      'target_name': 'generate_about_tracing',
242      'type': 'none',
243      'actions': [
244        {
245          'action_name': 'generate_about_tracing',
246          'script_name': 'build/generate_about_tracing_contents.py',
247          'inputs': [
248            '<@(tracing_files)',
249          ],
250          'outputs': [
251            '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/about_tracing.js',
252            '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/about_tracing.html'
253          ],
254          'action': ['python', '<@(_script_name)',
255                     '--outdir', '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing']
256        }
257      ]
258    }
259  ]
260}
261