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

Unified Diff: compiler/dart-compiler.gyp

Issue 9702034: Removes dartc reliance on its own libraries, now can be targeted at any implementation's libraries (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: junit tests fixed Created 8 years, 9 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
« no previous file with comments | « no previous file | compiler/darta.mf » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/dart-compiler.gyp
diff --git a/compiler/dart-compiler.gyp b/compiler/dart-compiler.gyp
index b7f4a57801ee2d275f0875f79e4ba6f0251f9138..ab114c3743a4464229b71b557e53dd15e0fc303a 100644
--- a/compiler/dart-compiler.gyp
+++ b/compiler/dart-compiler.gyp
@@ -5,213 +5,59 @@
{
'includes': [
'sources.gypi',
- 'test_sources.gypi',
- 'corelib_sources.gypi',
- 'compiler_corelib_sources.gypi',
- 'domlib_sources.gypi',
- 'htmllib_sources.gypi',
- 'jsonlib_sources.gypi',
- 'isolatelib_sources.gypi',
+ 'test_sources.gypi'
],
'targets': [
{
- 'target_name': 'dartc',
+ 'target_name': 'darta',
'type': 'none',
'actions': [
{
- 'action_name': 'build_dartc',
+ 'action_name': 'build_darta',
'inputs': [
'sources.gypi',
'test_sources.gypi',
- 'corelib_sources.gypi',
- 'compiler_corelib_sources.gypi',
'<@(java_sources)',
'<@(java_resources)',
'<@(javatests_sources)',
'<@(javatests_resources)',
- '<@(corelib_sources)',
- '<@(corelib_resources)',
- '<@(compiler_corelib_sources)',
- '<@(compiler_corelib_resources)',
- 'dartc.xml',
- 'scripts/dartc.sh',
- 'scripts/dartc_run.sh',
- 'scripts/dartc_metrics.sh',
+ 'darta.xml',
+ 'scripts/darta.sh',
+ 'scripts/darta_run.sh',
+ 'scripts/darta_metrics.sh',
'../third_party/args4j/2.0.12/args4j-2.0.12.jar',
'../third_party/guava/r09/guava-r09.jar',
- '../third_party/json/r2_20080312/json.jar',
'../third_party/hamcrest/v1_3/hamcrest-core-1.3.0RC2.jar',
'../third_party/hamcrest/v1_3/hamcrest-generator-1.3.0RC2.jar',
'../third_party/hamcrest/v1_3/hamcrest-integration-1.3.0RC2.jar',
'../third_party/hamcrest/v1_3/hamcrest-library-1.3.0RC2.jar',
+
],
'outputs': [
'<(INTERMEDIATE_DIR)/<(_target_name)/tests.jar',
- '<(PRODUCT_DIR)/compiler/bin/dartc',
- '<(PRODUCT_DIR)/compiler/lib/args4j/2.0.12/args4j-2.0.12.jar',
- '<(PRODUCT_DIR)/compiler/lib/dartc.jar',
- '<(PRODUCT_DIR)/compiler/lib/guava/r09/guava-r09.jar',
- '<(PRODUCT_DIR)/compiler/lib/json/r2_20080312/json.jar',
+ '<(PRODUCT_DIR)/analysis/darta',
+ '<(PRODUCT_DIR)/analysis/darta.jar',
+ '<(PRODUCT_DIR)/analysis/args4j/2.0.12/args4j-2.0.12.jar',
+ '<(PRODUCT_DIR)/analysis/guava/r09/guava-r09.jar',
+ '<(PRODUCT_DIR)/analysis/json/r2_20080312/json.jar',
],
'action' : [
'../third_party/apache_ant/v1_7_1/bin/ant',
- '-f', 'dartc.xml',
+ '-f', 'darta.xml',
'-Dbuild.dir=<(INTERMEDIATE_DIR)/<(_target_name)',
- '-Ddist.dir=<(PRODUCT_DIR)/compiler',
+ '-Ddist.dir=<(PRODUCT_DIR)/analysis',
'clean',
'dist',
'tests.jar',
],
- 'message': 'Building dartc.',
+ 'message': 'Building analyzer.',
},
{
'action_name': 'copy_tests',
'inputs': [ '<(INTERMEDIATE_DIR)/<(_target_name)/tests.jar' ],
- 'outputs': [ '<(PRODUCT_DIR)/compiler-tests.jar' ],
+ 'outputs': [ '<(PRODUCT_DIR)/analysis/darta-tests.jar' ],
'action': [ 'cp', '<@(_inputs)', '<@(_outputs)' ]
},
- {
- 'action_name': 'copy_dartc_wrapper',
- 'inputs': [
- '<(PRODUCT_DIR)/compiler/lib/dartc.jar',
- 'scripts/dartc_wrapper.py',
- ],
- 'outputs': [ '<(PRODUCT_DIR)/dartc' ],
- 'action': [ 'cp', 'scripts/dartc_wrapper.py', '<@(_outputs)' ]
- },
- {
- 'message': 'Collect system libraries',
- 'action_name': 'collect_systemlibrary',
- 'inputs': [
- '<(PRODUCT_DIR)/compiler/bin/dartc',
- 'dartc.xml',
- 'domlib_sources.gypi',
- '<@(domlib_sources)',
- '<@(domlib_resources)',
- 'htmllib_sources.gypi',
- '<@(htmllib_sources)',
- '<@(htmllib_resources)',
- 'jsonlib_sources.gypi',
- '<@(jsonlib_sources)',
- '<@(jsonlib_resources)',
- 'isolatelib_sources.gypi',
- '<@(isolatelib_sources)',
- '<@(isolatelib_resources)',
- ],
- 'outputs': [
- '<(INTERMEDIATE_DIR)/<(_target_name)/syslib.stamp',
- '<(INTERMEDIATE_DIR)/<(_target_name)/corelib.jar.stamp',
- '<(INTERMEDIATE_DIR)/<(_target_name)/domlib.jar.stamp',
- '<(INTERMEDIATE_DIR)/<(_target_name)/htmllib.jar.stamp',
- '<(INTERMEDIATE_DIR)/<(_target_name)/jsonlib.jar.stamp',
- '<(INTERMEDIATE_DIR)/<(_target_name)/isolatelib.jar.stamp',
- ],
- 'action': [
- '../third_party/apache_ant/v1_7_1/bin/ant',
- '-f', 'dartc.xml',
- '-Dbuild.dir=<(INTERMEDIATE_DIR)/<(_target_name)',
- '-Ddist.dir=<(PRODUCT_DIR)/compiler',
- 'syslib_clean',
- 'syslib',
- ],
- },
- {
- 'message': 'Compiling dart system libraries to <(INTERMEDIATE_DIR)/<(_target_name)/api',
- 'action_name': 'compile_systemlibrary',
- 'inputs': [
- '<(PRODUCT_DIR)/dartc',
- '<(INTERMEDIATE_DIR)/<(_target_name)/syslib.stamp',
- 'api.dart',
- ],
- 'outputs': [
- '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/core/com/google/dart/corelib/corelib.dart.deps',
- '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/dom/dom/dom.dart.deps',
- '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/html/html/html.dart.deps',
- '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/json/json/json.dart.deps',
- '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/isolate/isolate/isolate_compiler.dart.deps',
- ],
- 'action': [
- '<(PRODUCT_DIR)/dartc', 'api.dart',
- '--fatal-warnings', '--fatal-type-errors',
- '-out', '<(INTERMEDIATE_DIR)/<(_target_name)/api',
- ],
- },
- {
- 'message': 'Packaging dart:core artifacts',
- 'action_name': 'package_corelib_artifacts',
- 'inputs': [
- '<(INTERMEDIATE_DIR)/<(_target_name)/corelib.jar.stamp',
- '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/core/com/google/dart/corelib/corelib.dart.deps',
- ],
- 'outputs': [
- '<(PRODUCT_DIR)/compiler/lib/corelib.jar',
- ],
- 'action': [
- 'jar', 'u0f', '<(PRODUCT_DIR)/compiler/lib/corelib.jar', '-C', '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/core', 'com',
- ],
- },
- {
- 'message': 'Packaging dart:dom artifacts',
- 'action_name': 'package_domlib_artifacts',
- 'inputs': [
- '<(INTERMEDIATE_DIR)/<(_target_name)/domlib.jar.stamp',
- '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/dom/dom/dom.dart.deps',
- ],
- 'outputs': [
- '<(PRODUCT_DIR)/compiler/lib/domlib.jar',
- ],
- 'action': [
- 'jar', 'u0f', '<(PRODUCT_DIR)/compiler/lib/domlib.jar', '-C', '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/dom', 'dom',
- ],
- },
- {
- 'message': 'Packaging dart:html artifacts',
- 'action_name': 'package_htmllib_artifacts',
- 'inputs': [
- 'htmllib_sources.gypi',
- '<@(htmllib_sources)',
- '<@(htmllib_resources)',
- '<(INTERMEDIATE_DIR)/<(_target_name)/htmllib.jar.stamp',
- '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/html/html/html.dart.deps',
- ],
- 'outputs': [
- '<(PRODUCT_DIR)/compiler/lib/htmllib.jar',
- ],
- 'action': [
- 'jar', 'u0f', '<(PRODUCT_DIR)/compiler/lib/htmllib.jar', '-C', '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/html', 'html',
- ],
- },
- {
- 'message': 'Packaging dart:json artifacts',
- 'action_name': 'package_jsonlib_artifacts',
- 'inputs': [
- '<(INTERMEDIATE_DIR)/<(_target_name)/jsonlib.jar.stamp',
- '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/json/json/json.dart.deps',
- 'api.dart',
- ],
- 'outputs': [
- '<(PRODUCT_DIR)/compiler/lib/jsonlib.jar',
- ],
- 'action': [
- 'jar', 'u0f', '<(PRODUCT_DIR)/compiler/lib/jsonlib.jar', '-C', '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/json', 'json',
- ],
- },
- {
- 'message': 'Packaging dart:isolate artifacts',
- 'action_name': 'package_isolatelib_artifacts',
- 'inputs': [
- '<(INTERMEDIATE_DIR)/<(_target_name)/isolatelib.jar.stamp',
- '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/isolate/isolate/isolate_compiler.dart.deps',
- 'api.dart',
- ],
- 'outputs': [
- '<(PRODUCT_DIR)/compiler/lib/isolatelib.jar',
- ],
- 'action': [
- 'jar', 'u0f', '<(PRODUCT_DIR)/compiler/lib/isolatelib.jar', '-C',
- '<(INTERMEDIATE_DIR)/<(_target_name)/api/dart/isolate', 'isolate',
- ],
- },
],
},
{
« no previous file with comments | « no previous file | compiler/darta.mf » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698