c6d70857e4
* Dartdoc now works on multiple libraries and entrypoints. * A dartdoc/dartdoc.bat script is generated into dart-sdk/bin * The API libraries recognized by dart2js using the 'dart:' prefix have been updated to use the 'dart:*' name in their library tags. This makes the libraries show up with the correct prefix in the API docs. * The processed libraries can be selected or limited, API libraries are not processed by default, and links to api.dartlang.org can be generated for API libraries. Because of the changed library tags on API libraries, the generated links don't current match the addresses on api.dartlang.org. For instance, the docs for Object is currently located in api.dartlang.org/core/Object.html, but with the new library tag 'dart:core', the address will be api.dartlang.org/dart_core/Object.html. The links will thus not work until api.dartlang.org have been updated with this patch. * Code and pre blocks use overflow-x:auto to support wide lines. BUG=2656,2686,3533,4029,4145,3555 Review URL: https://chromiumcodereview.appspot.com//10809035 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9843 260f80e4-7a28-3924-810f-c04153c831b5
52 lines
1.6 KiB
Python
52 lines
1.6 KiB
Python
# Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
|
# for details. All rights reserved. Use of this source code is governed by a
|
|
# BSD-style license that can be found in the LICENSE file.
|
|
|
|
{
|
|
'variables': {
|
|
'dart_dir': '../..',
|
|
},
|
|
'targets': [
|
|
{
|
|
'target_name': 'dart2js',
|
|
'type': 'none',
|
|
'dependencies': [
|
|
'../../runtime/dart-runtime.gyp:dart',
|
|
'../../third_party/v8/src/d8.gyp:d8',
|
|
],
|
|
'actions': [
|
|
{
|
|
'action_name': 'build_dart2js',
|
|
'inputs': [
|
|
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)',
|
|
'build_helper.dart',
|
|
],
|
|
'outputs': [
|
|
'<(PRODUCT_DIR)/dart2js',
|
|
'<(PRODUCT_DIR)/dart2js.bat',
|
|
'<(PRODUCT_DIR)/dart2js_developer',
|
|
'<(PRODUCT_DIR)/dart2js_developer.bat',
|
|
'<(PRODUCT_DIR)/dartdoc',
|
|
'<(PRODUCT_DIR)/dartdoc.bat',
|
|
],
|
|
'action': [
|
|
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)',
|
|
'--enable-checked-mode',
|
|
'build_helper.dart',
|
|
# Note: it would seem more straight-forward to pass in
|
|
# '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)'.
|
|
# Unfortunately, there is some strange interaction with
|
|
# GYP so it doesn't work.
|
|
'<(PRODUCT_DIR)',
|
|
'<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)',
|
|
'dart2js',
|
|
'dart2js_developer',
|
|
'dartdoc',
|
|
'<(dart_dir)',
|
|
],
|
|
},
|
|
],
|
|
},
|
|
],
|
|
}
|