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

Side by Side Diff: samples/android/android.gyp

Issue 11362103: Rotating spheres sample (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: More cleanup Created 8 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « samples/android/AndroidManifest.xml ('k') | samples/android/android_extension.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
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.
4
5 {
6 'conditions': [
7 ['OS=="android"', {
8 'variables': {
9 'android_tool': '../../third_party/android_tools/sdk/tools/android',
10 },
11 'targets': [
12 {
13 'target_name': 'android',
14 'type': 'none',
15 'dependencies': [
16 'android_apk'
17 ]
18 },
19 {
20 'target_name': 'android_apk',
21 'type': 'none',
22 'dependencies': [
23 'update_build_xml',
24 'gather_dart_assets'
25 ],
26 'actions': [
27 {
28 'action_name': 'generate_apk',
29 'inputs': [
30 'AndroidManifest.xml',
31 'ant.properties',
32 'build.xml',
33 'local.properties',
34 'project.properties',
35 'src/org/dartlang/Dart.java',
36 'src/org/dartlang/example/dart/DartActivity.java'
37 ],
38 'outputs': ['bin/DartActivity-debug.apk'],
39 'action': [
40 'ant',
41 'debug'
42 ],
43 'message': "Generating Android APK."
44 }
45 ]
46 },
47 {
48 'target_name': 'update_build_xml',
49 'type': 'none',
50 'actions': [
51 {
52 'action_name': 'update_ant_build_files',
53 'inputs': [
54 'AndroidManifest.xml'
55 ],
56 'outputs': [
57 'build.xml',
58 'local.properties',
59 ],
60 'action': ['<(android_tool)', 'update', 'project', '-p', '.']
61 }
62 ]
63 },
64 {
65 'target_name': 'gather_dart_assets',
66 'type': 'none',
67 'dependencies': [
68 'android_extension'
69 ],
70 'copies': [
71 # The Dart VM shared library goes into the libs directory because
72 # that's where the Android Dalvik runtime will look for it.
73 {
74 'destination': 'libs/x86',
75 'files': ['<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)dart_so<(SHARED_L IB_SUFFIX)']
76 },
77 # The Dart Extension libraries go into the same directory as the
78 # corresponding Dart file that provides the Dart API for the
79 # extension.
80 {
81 'destination': 'assets/dart',
82 'files': ['<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)android_extension <(SHARED_LIB_SUFFIX)']
83 }
84 ],
85 'message': "Gathering Dart assets."
86 },
87 {
88 'target_name': 'android_extension',
89 'type': 'shared_library',
90 'dependencies': [
91 '../../runtime/dart-runtime.gyp:dart_so',
92 ],
93 'include_dirs': [
94 '../../runtime/include',
95 ],
96 'sources': [
97 'android_extension.cc',
98 ],
99 'ldflags': [
100 '-lGLESv2',
101 ],
102 'defines': [
103 'DART_SHARED_LIB',
104 ],
105 'dependencies': [
106 '../../runtime/dart-runtime.gyp:dart_so',
107 ],
108 }],
109 }]]
110 }
OLDNEW
« no previous file with comments | « samples/android/AndroidManifest.xml ('k') | samples/android/android_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698