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

Unified Diff: dart/site/try/build_try.gyp

Issue 133893008: Add GYP build rule for Try Dart! (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: dart/site/try/build_try.gyp
diff --git a/dart/site/try/build_try.gyp b/dart/site/try/build_try.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..a5ccab0218422ce152a2de99024ead4d697d447e
--- /dev/null
+++ b/dart/site/try/build_try.gyp
@@ -0,0 +1,80 @@
+# Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
kasperl 2014/01/14 15:37:33 2014
ahe 2014/01/15 14:09:38 Done.
+# for details. All rights reserved. Use of this source code is governed by a
+# BSD-style license that can be found in the LICENSE
+
+{
+ 'targets': [
+ {
+ 'target_name': 'try_site',
+ 'type': 'none',
+ 'dependencies': [
+ '../../runtime/dart-runtime.gyp:dart',
+ ],
+ 'actions': [
+ {
+ 'action_name': 'sdk_json',
+ 'message': 'Creating sdk.json',
+ 'inputs': [
+ '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)',
+ '<(PRODUCT_DIR)/dart-sdk/README',
+ '<!@(["python", "../../tools/list_files.py", "\\.dart$", '
+ '"../../sdk/lib/_internal/compiler/samples/jsonify"])',
+ ],
+ 'outputs': [
+ '<(SHARED_INTERMEDIATE_DIR)/sdk.json',
+ ],
+ 'action': [
+ '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)',
+ '-Dlist_all_libraries=true',
+ '-DoutputJson=true',
+ '../../sdk/lib/_internal/compiler/samples/jsonify/jsonify.dart',
+ '<(SHARED_INTERMEDIATE_DIR)/sdk.json',
+ ],
+ },
+ {
+ 'action_name': 'compile',
+ 'message': 'Creating leap.dart.js',
+ 'inputs': [
+ 'leap.dart',
kustermann 2014/01/15 01:24:23 This action should not only be executed if "leap.d
ahe 2014/01/15 14:09:38 Yes. I forgot to add a dependency on the SDK build
+ ],
+ 'outputs': [
+ '<(SHARED_INTERMEDIATE_DIR)/leap.dart.js',
+ ],
+ 'action': [
+ '../../sdk/bin/dart2js',
+ '-v',
+ '-Denable_ir=false',
+ 'leap.dart',
+ '-o<(SHARED_INTERMEDIATE_DIR)/leap.dart.js',
+ ],
+ },
+ ],
+ 'copies': [
+ {
+ # Destination directory.
+ 'destination': '<(PRODUCT_DIR)/try_dartlang_org/',
+ # List of files to be copied.
+ 'files': [
+ 'app.yaml',
+
+ 'nossl.appcache',
+ 'index.html',
+ 'dartlang-style.css',
+ 'iframe.html',
+ 'iframe.js',
+ 'dart-icon.png',
+ 'dart-iphone5.png',
+
+ '../../third_party/font-awesome/font-awesome-4.0.3/'
+ 'fonts/fontawesome-webfont.woff',
+
+ '../../sdk/lib/_internal/dartdoc/static/favicon.ico',
+
+ '<(SHARED_INTERMEDIATE_DIR)/leap.dart.js',
+ '<(SHARED_INTERMEDIATE_DIR)/sdk.json',
kustermann 2014/01/15 01:24:23 You could add a comment, that 'copies' will make i
ahe 2014/01/15 14:09:38 Done.
+ ],
+ },
+ ],
+ },
+ ],
+}

Powered by Google App Engine
This is Rietveld 408576698