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

Side by Side Diff: site/try/build_try.gyp

Issue 2232273004: Delete site/try (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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
OLDNEW
(Empty)
1 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
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
4
5 {
6 'variables' : {
7 'script_suffix%': '',
8 },
9 'conditions' : [
10 ['OS=="win"', {
11 'variables' : {
12 'script_suffix': '.bat',
13 },
14 }],
15 ],
16 'targets': [
17 {
18 'target_name': 'try_site',
19 'type': 'none',
20 'dependencies': [
21 '../../runtime/dart-runtime.gyp:dart',
22 '../../create_sdk.gyp:create_sdk_internal',
23 '../../pkg/pkg.gyp:pkg_packages',
24 ],
25 'variables': {
26 'try_dart_static_files': [
27 'index.html',
28 'dartlang-style.css',
29 'line_numbers.css',
30 'iframe.html',
31 'iframe.js',
32 'dart-icon.png', # iOS icon.
33 'dart-iphone5.png', # iPhone 5 splash screen.
34 'dart-icon-196px.png', # Android icon.
35 'try-dart-screenshot.png', # Google+ screen shot.
36 'favicon.ico',
37
38 '<(SHARED_INTERMEDIATE_DIR)/leap.dart.js',
39 '<(SHARED_INTERMEDIATE_DIR)/compiler_isolate.dart.js',
40 '<(SHARED_INTERMEDIATE_DIR)/sdk.json',
41 ],
42 'try_dart_hosted_package_directories': [
43 # These packages are uploaded to Try Dart and can be used in code
44 # there.
45 '../../pkg/analyzer/lib',
46 '../../third_party/pkg/collection/lib',
47 '../../third_party/pkg/crypto/lib',
48 '../../third_party/pkg/args/lib',
49 '../../third_party/pkg/http/lib',
50 '../../third_party/pkg/http_parser/lib',
51 '../../third_party/pkg/intl/lib',
52 '../../third_party/pkg/logging/lib',
53 '../../third_party/pkg/path/lib',
54 '../../third_party/pkg/stack_trace/lib',
55 '../../third_party/pkg/string_scanner/lib',
56 '../../third_party/pkg/unittest/lib',
57 '../../third_party/pkg/yaml/lib',
58 ],
59 },
60 'actions': [
61 {
62 'action_name': 'sdk_json',
63 'message': 'Creating sdk.json',
64 'inputs': [
65
66 # Depending on this file ensures that the SDK is built before this
67 # action is executed.
68 '<(PRODUCT_DIR)/dart-sdk/README',
69
70 # This dependency is redundant for now, as this directory is
71 # implicitly part of the dependencies for dart-sdk/README.
72 'build_sdk_json.dart',
73 ],
74 'outputs': [
75 '<(SHARED_INTERMEDIATE_DIR)/sdk.json',
76 ],
77 'action': [
78
79 '<(PRODUCT_DIR)/dart-sdk/bin/'
80 '<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)',
81
82 '--package-root=<(PRODUCT_DIR)/packages/',
83 'build_sdk_json.dart',
84 '<(SHARED_INTERMEDIATE_DIR)/sdk.json',
85 ],
86 },
87 {
88 'action_name': 'compile',
89 'message': 'Creating leap.dart.js',
90 'inputs': [
91 # Depending on this file ensures that the SDK is built before this
92 # action is executed.
93 '<(PRODUCT_DIR)/dart-sdk/README',
94
95 # Ensure the packages directory is built first.
96 '<(SHARED_INTERMEDIATE_DIR)/packages.stamp',
97
98 '<!@(["python", "../../tools/list_files.py", "\\.dart$", "src"])',
99 ],
100 'outputs': [
101 '<(SHARED_INTERMEDIATE_DIR)/leap.dart.js',
102 ],
103 'action': [
104 '<(PRODUCT_DIR)/dart-sdk/bin/dart2js<(script_suffix)',
105 '-p<(PRODUCT_DIR)/packages/',
106 '-Denable_ir=false',
107 '--show-package-warnings',
108 'src/leap.dart',
109 '-o<(SHARED_INTERMEDIATE_DIR)/leap.dart.js',
110 ],
111 },
112 {
113 'action_name': 'compile_isolate',
114 'message': 'Creating compiler_isolate.dart.js',
115 'inputs': [
116 # Depending on this file ensures that the SDK is built before this
117 # action is executed.
118 '<(PRODUCT_DIR)/dart-sdk/README',
119
120 # Ensure the packages directory is built first.
121 '<(SHARED_INTERMEDIATE_DIR)/packages.stamp',
122
123 '<!@(["python", "../../tools/list_files.py", "\\.dart$", "src"])',
124 ],
125 'outputs': [
126 '<(SHARED_INTERMEDIATE_DIR)/compiler_isolate.dart.js',
127 ],
128 'action': [
129 '<(PRODUCT_DIR)/dart-sdk/bin/dart2js<(script_suffix)',
130 '-p<(PRODUCT_DIR)/packages/',
131 '-Denable_ir=false',
132 '--show-package-warnings',
133 '--trust-type-annotations',
134 'src/compiler_isolate.dart',
135 '-o<(SHARED_INTERMEDIATE_DIR)/compiler_isolate.dart.js',
136 ],
137 },
138 {
139 'action_name': 'ssl_appcache',
140 'message': 'Creating ssl.appcache',
141 'inputs': [
142 'add_time_stamp.py',
143 'ssl.appcache',
144 '<@(try_dart_static_files)',
145 'build_try.gyp', # If the list of files changed.
146 ],
147 'outputs': [
148 '<(SHARED_INTERMEDIATE_DIR)/ssl.appcache',
149 ],
150 # Try Dart! uses AppCache. Cached files are only validated when the
151 # manifest changes (not its timestamp, but its actual contents).
152 'action': [
153 'python',
154 'add_time_stamp.py',
155 'ssl.appcache',
156 '<(SHARED_INTERMEDIATE_DIR)/ssl.appcache',
157 ],
158 },
159 {
160 'action_name': 'make_pkg_packages',
161 'inputs': [
162 '../../tools/make_links.py',
163 '<@(try_dart_hosted_package_directories)',
164 ],
165 'outputs': [
166 '<(SHARED_INTERMEDIATE_DIR)/try_dartlang_org_packages.stamp',
167 '<(PRODUCT_DIR)/try_dartlang_org/packages'
168 ],
169 'action': [
170 'python', '../../tools/make_links.py',
171 '--timestamp_file=<(SHARED_INTERMEDIATE_DIR)'
172 '/try_dartlang_org_packages.stamp',
173 '<(PRODUCT_DIR)/try_dartlang_org/packages',
174 '<@(_inputs)',
175 ],
176 },
177 ],
178 'copies': [
179 {
180 # Destination directory.
181 'destination': '<(PRODUCT_DIR)/try_dartlang_org/',
182 # List of files to be copied (creates implicit build dependencies).
183 'files': [
184 'app.yaml',
185 '<@(try_dart_static_files)',
186 '<(SHARED_INTERMEDIATE_DIR)/ssl.appcache',
187 ],
188 },
189 ],
190 },
191 ],
192 }
OLDNEW
« dart.gyp ('K') | « site/try/build_sdk_json.dart ('k') | site/try/create_manifest.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698