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

Side by Side Diff: samples/openglui/emulator/emulator.gyp

Issue 12340036: Android improvements: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « samples/openglui/android/custom_rules.xml ('k') | samples/openglui/src/chrome.hex » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 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 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 # We should be able to make this work on Mac. We need: 5 # We should be able to make this work on Mac. We need:
6 # -framework OpenGL -framework GLUT -lm -L /usr/X11/lib 6 # -framework OpenGL -framework GLUT -lm -L /usr/X11/lib
7 7
8 { 8 {
9 'targets': [ 9 'targets': [
10 { 10 {
11 'target_name': 'mobile_emulator_sample', 11 'target_name': 'mobile_emulator_sample',
12 'type': 'none', 12 'type': 'none',
13 'conditions': [ 13 'conditions': [
14 ['OS=="linux" or OS=="mac"', 14 ['OS=="linux" or OS=="mac"',
15 { 15 {
16 'dependencies': [ 16 'dependencies': [
17 '../../../runtime/dart-runtime.gyp:emulator_embedder', 17 '../../../runtime/dart-runtime.gyp:emulator_embedder',
18 'mobile_emulator', 18 'mobile_emulator',
19 'copy_dart_files' 19 'copy_dart_files',
20 'decode_png'
20 ] 21 ]
21 } 22 }
22 ] 23 ]
23 ] 24 ]
24 }, 25 },
25 { 26 {
26 'target_name': 'copy_dart_files', 27 'target_name': 'copy_dart_files',
27 'type': 'none', 28 'type': 'none',
28 'copies': [ { 29 'copies': [ {
29 'destination': '<(PRODUCT_DIR)', 30 'destination': '<(PRODUCT_DIR)',
30 'files': [ 31 'files': [
31 '../../../runtime/embedders/openglui/common/gl.dart', 32 '../../../runtime/embedders/openglui/common/gl.dart',
32 '../src/openglui_raytrace.dart', 33 '../src/openglui_raytrace.dart',
33 '../src/openglui_canvas_tests.dart' 34 '../src/openglui_canvas_tests.dart'
34 ], 35 ],
35 }], 36 }],
36 }, 37 },
37 { 38 {
39 'target_name': 'decode_png',
40 'type': 'none',
41 'actions': [
42 {
43 'action_name': 'decode',
44 'inputs': [
45 '../src/chrome.hex'
46 ],
47 'outputs': [
48 '<(PRODUCT_DIR)/chrome.png',
49 ],
50 'action': [ 'xxd', '-r', '../src/chrome.hex',
51 '<(PRODUCT_DIR)/chrome.png' ]
52 }
53 ]
54 },
55 {
38 'target_name': 'mobile_emulator', 56 'target_name': 'mobile_emulator',
39 'type': 'executable', 57 'type': 'executable',
40 'dependencies': [ 58 'dependencies': [
41 '../../../runtime/dart-runtime.gyp:emulator_embedder', 59 '../../../runtime/dart-runtime.gyp:emulator_embedder',
42 ], 60 ],
43 'include_dirs': [ 61 'include_dirs': [
44 '../../../runtime', 62 '../../../runtime',
45 '/usr/X11/include', 63 '/usr/X11/include',
46 ], 64 ],
47 'sources': [ 65 'sources': [
48 'mobile_emulator_sample.cc', 66 'mobile_emulator_sample.cc',
49 ], 67 ],
50 'conditions': [ 68 'conditions': [
51 ['OS=="linux"', 69 ['OS=="linux"',
52 { 70 {
53 'link_settings': { 71 'link_settings': {
54 'libraries': [ 72 'libraries': [
55 '-Wl,--start-group', 73 '-Wl,--start-group',
74 '-lskia_core',
56 '-lskia_effects', 75 '-lskia_effects',
76 '-lskia_gr',
57 '-lskia_images', 77 '-lskia_images',
58 '-lskia_core',
59 '-lskia_opts', 78 '-lskia_opts',
60 '-lskia_opts_ssse3', 79 '-lskia_opts_ssse3',
61 '-lskia_ports', 80 '-lskia_ports',
62 '-lskia_sfnt', 81 '-lskia_sfnt',
82 '-lskia_skgr',
63 '-lskia_utils', 83 '-lskia_utils',
64 '-lskia_gr',
65 '-lskia_skgr',
66 '-Wl,--end-group', 84 '-Wl,--end-group',
67 '-lfreetype', 85 '-lfreetype',
68 '-lGL', 86 '-lGL',
69 '-lglut', 87 '-lglut',
70 '-lGLU', 88 '-lGLU',
89 '-lpng',
71 '-lm', 90 '-lm',
72 '-lc' ], 91 '-lc' ],
73 'ldflags': [ 92 'ldflags': [
74 '-Wall', 93 '-Wall',
75 '-g', 94 '-g',
76 # TODO(gram): handle release mode. 95 # TODO(gram): handle release mode.
77 '-Lthird_party/skia-desktop/trunk/out/Debug', 96 '-Lthird_party/skia-desktop/trunk/out/Debug',
78 ], 97 ],
79 }, 98 },
80 } 99 }
81 ], 100 ],
82 ['OS=="mac"', 101 ['OS=="mac"',
83 { 102 {
84 'ldflags': [ 103 'ldflags': [
85 '-framework OpenGL', 104 '-framework OpenGL',
86 '-framework GLUT', 105 '-framework GLUT',
87 '-L /usr/X11/lib' 106 '-L /usr/X11/lib'
88 ], 107 ],
89 } 108 }
90 ] 109 ]
91 ] 110 ]
92 } 111 }
93 ] 112 ]
94 } 113 }
95 114
OLDNEW
« no previous file with comments | « samples/openglui/android/custom_rules.xml ('k') | samples/openglui/src/chrome.hex » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698