| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 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 file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'dart:async' show | 5 import 'dart:async' show |
| 6 Future; | 6 Future; |
| 7 | 7 |
| 8 import '../../tests/service_tests/service_tests.dart' show | 8 import '../../tests/service_tests/service_tests.dart' show |
| 9 BuildSnapshotRule, | 9 BuildSnapshotRule, |
| 10 CcRule, | 10 CcRule, |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 '$thisDirectory/java/TodoView.java', | 85 '$thisDirectory/java/TodoView.java', |
| 86 ]; | 86 ]; |
| 87 | 87 |
| 88 Future<Null> prepare() async { | 88 Future<Null> prepare() async { |
| 89 prepareService(); | 89 prepareService(); |
| 90 prepareSnapshot(); | 90 prepareSnapshot(); |
| 91 | 91 |
| 92 if (javaHome.isEmpty) return; | 92 if (javaHome.isEmpty) return; |
| 93 | 93 |
| 94 rules.add(new CcRule( | 94 rules.add(new CcRule( |
| 95 sharedLibrary: '$outputDirectory/libfletch', | 95 sharedLibrary: '$outputDirectory/libdartino', |
| 96 includePaths: [ | 96 includePaths: [ |
| 97 'include', | 97 'include', |
| 98 '$javaHome/include', | 98 '$javaHome/include', |
| 99 '$javaHome/include/${isMacOS ? "darwin" : "linux"}', | 99 '$javaHome/include/${isMacOS ? "darwin" : "linux"}', |
| 100 outputDirectory, | 100 outputDirectory, |
| 101 ], | 101 ], |
| 102 sources: [ | 102 sources: [ |
| 103 '$javaDirectory/jni/fletch_api_wrapper.cc', | 103 '$javaDirectory/jni/dartino_api_wrapper.cc', |
| 104 '$javaDirectory/jni/fletch_service_api_wrapper.cc', | 104 '$javaDirectory/jni/dartino_service_api_wrapper.cc', |
| 105 '$javaDirectory/jni/${baseName}_wrapper.cc', | 105 '$javaDirectory/jni/${baseName}_wrapper.cc', |
| 106 ]..addAll(ccSources))); | 106 ]..addAll(ccSources))); |
| 107 | 107 |
| 108 rules.add(new MakeDirectoryRule(classesDirectory)); | 108 rules.add(new MakeDirectoryRule(classesDirectory)); |
| 109 | 109 |
| 110 rules.add(new JavacRule( | 110 rules.add(new JavacRule( |
| 111 warningAsError: false, | 111 warningAsError: false, |
| 112 sources: ['$javaDirectory/fletch']..addAll(javaSources), | 112 sources: ['$javaDirectory/dartino']..addAll(javaSources), |
| 113 outputDirectory: classesDirectory)); | 113 outputDirectory: classesDirectory)); |
| 114 | 114 |
| 115 rules.add(new JarRule( | 115 rules.add(new JarRule( |
| 116 jarFile, | 116 jarFile, |
| 117 sources: ['.'], | 117 sources: ['.'], |
| 118 baseDirectory: classesDirectory)); | 118 baseDirectory: classesDirectory)); |
| 119 | 119 |
| 120 rules.add(new JavaRule( | 120 rules.add(new JavaRule( |
| 121 mainClass, | 121 mainClass, |
| 122 arguments: [snapshotPath], | 122 arguments: [snapshotPath], |
| 123 classpath: [jarFile], | 123 classpath: [jarFile], |
| 124 libraryPath: outputDirectory)); | 124 libraryPath: outputDirectory)); |
| 125 } | 125 } |
| 126 } | 126 } |
| 127 | 127 |
| 128 final List<ServiceTest> serviceTests = <ServiceTest>[ | 128 final List<ServiceTest> serviceTests = <ServiceTest>[ |
| 129 new TodoServiceTestCc(), | 129 new TodoServiceTestCc(), |
| 130 new TodoServiceTestJava(), | 130 new TodoServiceTestJava(), |
| 131 ]; | 131 ]; |
| OLD | NEW |