1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
|
# Copyright (c) 2010 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'includes': [
'../third_party/WebKit/WebKit/chromium/features.gypi',
'../third_party/WebKit/WebKit/chromium/WebKit.gypi',
'../third_party/WebKit/WebCore/WebCore.gypi',
'appcache/webkit_appcache.gypi',
'database/webkit_database.gypi',
'glue/webkit_glue.gypi',
'support/webkit_support.gypi',
'tools/test_shell/test_shell.gypi',
],
'variables': {
# We can't turn on warnings on Windows and Linux until we upstream the
# WebKit API.
'conditions': [
['OS=="mac"', {
'chromium_code': 1,
}],
],
# List of DevTools source files, ordered by dependencies. It is used both
# for copying them to resource dir, and for generating 'devtools.html' file.
'devtools_files': [
'<@(devtools_css_files)',
'../v8/tools/codemap.js',
'../v8/tools/consarray.js',
'../v8/tools/csvparser.js',
'../v8/tools/logreader.js',
'../v8/tools/profile.js',
'../v8/tools/profile_view.js',
'../v8/tools/splaytree.js',
'<@(devtools_js_files)',
],
'debug_devtools%': 0,
},
'targets': [
{
'target_name': 'pull_in_webkit_unit_tests',
'type': 'none',
'dependencies': [
'../third_party/WebKit/WebKit/chromium/WebKit.gyp:webkit_unit_tests'
],
},
{
'target_name': 'inspector_resources',
'type': 'none',
'msvs_guid': '5330F8EE-00F5-D65C-166E-E3150171055D',
'dependencies': [
'devtools_html',
],
'conditions': [
['debug_devtools==0', {
'dependencies+': [
'concatenated_devtools_js',
],
}],
],
'copies': [
{
'destination': '<(PRODUCT_DIR)/resources/inspector',
'files': [
'<@(devtools_files)',
'<@(webinspector_files)',
],
'conditions': [
['debug_devtools==0', {
'files/': [['exclude', '\\.js$']],
}],
],
},
{
'destination': '<(PRODUCT_DIR)/resources/inspector/Images',
'files': [
'<@(webinspector_image_files)',
'<@(devtools_image_files)',
],
},
],
},
{
'target_name': 'devtools_html',
'type': 'none',
'msvs_guid': '9BE5D4D5-E800-44F9-B6C0-27DF15A9D817',
'sources': [
'<(PRODUCT_DIR)/resources/inspector/devtools.html',
],
'actions': [
{
'action_name': 'devtools_html',
'inputs': [
'build/generate_devtools_html.py',
# See issue 29695: webkit.gyp is a source file for devtools.html.
'webkit.gyp',
'../third_party/WebKit/WebCore/inspector/front-end/inspector.html',
],
'outputs': [
'<(PRODUCT_DIR)/resources/inspector/devtools.html',
],
'action': ['python', '<@(_inputs)', '<@(_outputs)', '<@(devtools_files)'],
},
],
},
{
'target_name': 'concatenated_devtools_js',
'type': 'none',
'msvs_guid': '8CCFDF4A-B702-4988-9207-623D1477D3E7',
'dependencies': [
'devtools_html',
],
'sources': [
'<(PRODUCT_DIR)/resources/inspector/DevTools.js',
],
'actions': [
{
'action_name': 'concatenate_devtools_js',
'inputs': [
'build/concatenate_js_files.py',
'<(PRODUCT_DIR)/resources/inspector/devtools.html',
'<@(webinspector_files)',
'<@(devtools_files)',
],
'outputs': [
'<(PRODUCT_DIR)/resources/inspector/DevTools.js',
],
'action': ['python', '<@(_inputs)', '<@(_outputs)'],
},
],
},
], # targets
}
# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2:
|