| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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 library old_servicec.plugins.java; | 5 library old_servicec.plugins.java; |
| 6 | 6 |
| 7 import 'dart:core' hide Type; | 7 import 'dart:core' hide Type; |
| 8 import 'dart:io'; | 8 import 'dart:io'; |
| 9 | 9 |
| 10 import 'package:path/path.dart' show | 10 import 'package:path/path.dart' show |
| 11 basenameWithoutExtension, | 11 basenameWithoutExtension, |
| 12 join, | 12 join, |
| 13 relative; | 13 relative; |
| 14 import 'package:servicec/util.dart' as strings; | 14 import 'package:servicec/util.dart' as strings; |
| 15 | 15 |
| 16 import 'shared.dart'; | 16 import 'shared.dart'; |
| 17 import '../emitter.dart'; | 17 import '../emitter.dart'; |
| 18 import '../struct_layout.dart'; | 18 import '../struct_layout.dart'; |
| 19 import '../primitives.dart' as primitives; | 19 import '../primitives.dart' as primitives; |
| 20 | 20 |
| 21 import 'cc.dart' show CcVisitor; | 21 import 'cc.dart' show CcVisitor; |
| 22 | 22 |
| 23 const HEADER = """ | 23 const HEADER = """ |
| 24 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 24 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
| 25 // for details. All rights reserved. Use of this source code is governed by a | 25 // for details. All rights reserved. Use of this source code is governed by a |
| 26 // BSD-style license that can be found in the LICENSE.md file. | 26 // BSD-style license that can be found in the LICENSE.md file. |
| 27 | 27 |
| 28 // Generated file. Do not edit. | 28 // Generated file. Do not edit. |
| 29 """; | 29 """; |
| 30 | 30 |
| 31 const HEADER_MK = """ | 31 const HEADER_MK = """ |
| 32 # Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 32 # Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
| 33 # for details. All rights reserved. Use of this source code is governed by a | 33 # for details. All rights reserved. Use of this source code is governed by a |
| 34 # BSD-style license that can be found in the LICENSE.md file. | 34 # BSD-style license that can be found in the LICENSE.md file. |
| 35 | 35 |
| 36 # Generated file. Do not edit. | 36 # Generated file. Do not edit. |
| 37 """; | 37 """; |
| 38 | 38 |
| 39 const READER_HEADER = """ | 39 const READER_HEADER = """ |
| 40 package fletch; | 40 package fletch; |
| 41 """; | 41 """; |
| 42 | 42 |
| (...skipping 1334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1377 extension: 'mk'); | 1377 extension: 'mk'); |
| 1378 | 1378 |
| 1379 buffer = new StringBuffer(HEADER_MK); | 1379 buffer = new StringBuffer(HEADER_MK); |
| 1380 buffer.writeln('APP_STL := gnustl_static'); | 1380 buffer.writeln('APP_STL := gnustl_static'); |
| 1381 buffer.writeln('APP_ABI := x86 armeabi-v7a'); | 1381 buffer.writeln('APP_ABI := x86 armeabi-v7a'); |
| 1382 // TODO(zerny): Is this the right place and way to ensure ABI >= 8? | 1382 // TODO(zerny): Is this the right place and way to ensure ABI >= 8? |
| 1383 buffer.writeln('APP_PLATFORM := android-8'); | 1383 buffer.writeln('APP_PLATFORM := android-8'); |
| 1384 writeToFile(join(out, 'jni'), 'Application', buffer.toString(), | 1384 writeToFile(join(out, 'jni'), 'Application', buffer.toString(), |
| 1385 extension: 'mk'); | 1385 extension: 'mk'); |
| 1386 } | 1386 } |
| OLD | NEW |