| OLD | NEW |
| 1 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2013, 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 { | 5 { |
| 6 # TODO(gram) : figure out how to make this be autoconfigured. |
| 7 # I've tried a bunch of things with no success yet. |
| 8 'variables': { |
| 9 'skia_build_flag' : '--release', |
| 10 'skia_libs_location_android': '-Lthird_party/skia/trunk/out/config/android-x
86/Release/obj.target/gyp', |
| 11 'skia_libs_location_desktop': '-Lthird_party/skia/trunk/out/Debug', |
| 12 }, |
| 6 'conditions': [ | 13 'conditions': [ |
| 7 ['OS=="android"', | 14 ['OS=="android"', |
| 8 { | 15 { |
| 9 'targets': [ | 16 'targets': [ |
| 10 { | 17 { |
| 11 # Dart shared library for Android. | 18 # Dart shared library for Android. |
| 12 'target_name': 'android_embedder', | 19 'target_name': 'android_embedder', |
| 13 'type': 'shared_library', | 20 'type': 'shared_library', |
| 14 'dependencies': [ | 21 'dependencies': [ |
| 15 'skia-android', | 22 'skia-android', |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 'common/canvas_state.cc', | 66 'common/canvas_state.cc', |
| 60 'common/canvas_state.h', | 67 'common/canvas_state.h', |
| 61 'common/context.h', | 68 'common/context.h', |
| 62 'common/dart_host.cc', | 69 'common/dart_host.cc', |
| 63 'common/dart_host.h', | 70 'common/dart_host.h', |
| 64 'common/events.h', | 71 'common/events.h', |
| 65 'common/extension.cc', | 72 'common/extension.cc', |
| 66 'common/extension.h', | 73 'common/extension.h', |
| 67 'common/graphics_handler.cc', | 74 'common/graphics_handler.cc', |
| 68 'common/graphics_handler.h', | 75 'common/graphics_handler.h', |
| 76 'common/image_cache.cc', |
| 77 'common/image_cache.h', |
| 69 'common/input_handler.cc', | 78 'common/input_handler.cc', |
| 70 'common/input_handler.h', | 79 'common/input_handler.h', |
| 71 'common/isized.h', | 80 'common/isized.h', |
| 72 'common/life_cycle_handler.h', | 81 'common/life_cycle_handler.h', |
| 73 'common/log.h', | 82 'common/log.h', |
| 74 'common/opengl.h', | 83 'common/opengl.h', |
| 75 'common/resource.h', | 84 'common/resource.h', |
| 76 'common/sample.h', | 85 'common/sample.h', |
| 77 'common/sound_handler.cc', | 86 'common/sound_handler.cc', |
| 78 'common/sound_handler.h', | 87 'common/sound_handler.h', |
| 79 'common/support.h', | 88 'common/support.h', |
| 80 'common/timer.cc', | 89 'common/timer.cc', |
| 81 'common/timer.h', | 90 'common/timer.h', |
| 82 'common/types.h', | 91 'common/types.h', |
| 83 'common/vm_glue.cc', | 92 'common/vm_glue.cc', |
| 84 'common/vm_glue.h', | 93 'common/vm_glue.h', |
| 85 '<(version_cc_file)', | 94 '<(version_cc_file)', |
| 86 ], | 95 ], |
| 87 'link_settings': { | 96 'link_settings': { |
| 88 'ldflags': [ | 97 'ldflags': [ |
| 89 # The libraries we need should all be in | 98 # The libraries we need should all be in |
| 90 # Lthird_party/skia/trunk/out/config/android-x86/Debug but | 99 # Lthird_party/skia/trunk/out/config/android-x86/Debug but |
| 91 # As I (gram) want to avoid patching the Skia gyp files to build | 100 # As I (gram) want to avoid patching the Skia gyp files to build |
| 92 # real libraries we'll just point to the location of the 'thin' | 101 # real libraries we'll just point to the location of the 'thin' |
| 93 # libraries used by the Skia build for now. | 102 # libraries used by the Skia build for now. |
| 94 # TODO(gram): We need to support debug vs release modes. | 103 # TODO(gram): We need to support debug vs release modes. |
| 95 '-Lthird_party/skia/trunk/out/config/android-x86/Debug/obj.targe
t/gyp', | 104 '<(skia_libs_location_android)', |
| 96 '-z', | 105 '-z', |
| 97 'muldefs', | 106 'muldefs', |
| 98 '-g' | |
| 99 ], | 107 ], |
| 100 'ldflags!': [ | 108 'ldflags!': [ |
| 101 '-Wl,--exclude-libs=ALL,-shared', | 109 '-Wl,--exclude-libs=ALL,-shared', |
| 102 ], | 110 ], |
| 103 'libraries': [ | 111 'libraries': [ |
| 104 '-Wl,--start-group', | 112 '-Wl,--start-group', |
| 105 '-lexpat', | 113 '-lexpat', |
| 106 '-lfreetype', | 114 '-lfreetype', |
| 107 '-lgif', | 115 '-lgif', |
| 108 '-ljpeg', | 116 '-ljpeg', |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 ], | 154 ], |
| 147 # For now we drive the build from a shell | 155 # For now we drive the build from a shell |
| 148 # script, to get us going. Eventually we will | 156 # script, to get us going. Eventually we will |
| 149 # want to either fork Skia or incorporate its | 157 # want to either fork Skia or incorporate its |
| 150 # gclient settings into ours, and include its | 158 # gclient settings into ours, and include its |
| 151 # gyp files within ours, so that it gets built | 159 # gyp files within ours, so that it gets built |
| 152 # as part of our tree. | 160 # as part of our tree. |
| 153 'action': [ | 161 'action': [ |
| 154 'embedders/openglui/build_skia.sh', | 162 'embedders/openglui/build_skia.sh', |
| 155 '--android', | 163 '--android', |
| 164 '<(skia_build_flag)', |
| 156 '..' | 165 '..' |
| 157 ], | 166 ], |
| 158 'message': 'Building Skia.' | 167 'message': 'Building Skia.' |
| 159 } | 168 } |
| 160 ] | 169 ] |
| 161 } | 170 } |
| 162 ], | 171 ], |
| 163 }, | 172 }, |
| 164 ], | 173 ], |
| 165 ['OS=="mac" or OS=="linux"', | 174 ['OS=="mac" or OS=="linux"', |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 'common/canvas_state.cc', | 209 'common/canvas_state.cc', |
| 201 'common/canvas_state.h', | 210 'common/canvas_state.h', |
| 202 'common/context.h', | 211 'common/context.h', |
| 203 'common/dart_host.cc', | 212 'common/dart_host.cc', |
| 204 'common/dart_host.h', | 213 'common/dart_host.h', |
| 205 'common/events.h', | 214 'common/events.h', |
| 206 'common/extension.cc', | 215 'common/extension.cc', |
| 207 'common/extension.h', | 216 'common/extension.h', |
| 208 'common/graphics_handler.cc', | 217 'common/graphics_handler.cc', |
| 209 'common/graphics_handler.h', | 218 'common/graphics_handler.h', |
| 219 'common/image_cache.cc', |
| 220 'common/image_cache.h', |
| 210 'common/input_handler.cc', | 221 'common/input_handler.cc', |
| 211 'common/input_handler.h', | 222 'common/input_handler.h', |
| 212 'common/isized.h', | 223 'common/isized.h', |
| 213 'common/life_cycle_handler.h', | 224 'common/life_cycle_handler.h', |
| 214 'common/log.h', | 225 'common/log.h', |
| 215 'common/opengl.h', | 226 'common/opengl.h', |
| 216 'common/resource.h', | 227 'common/resource.h', |
| 217 'common/sample.h', | 228 'common/sample.h', |
| 218 'common/sound_handler.cc', | 229 'common/sound_handler.cc', |
| 219 'common/sound_handler.h', | 230 'common/sound_handler.h', |
| 220 'common/support.h', | 231 'common/support.h', |
| 221 'common/support.h', | 232 'common/support.h', |
| 222 'common/timer.cc', | 233 'common/timer.cc', |
| 223 'common/timer.h', | 234 'common/timer.h', |
| 224 'common/types.h', | 235 'common/types.h', |
| 225 'common/vm_glue.cc', | 236 'common/vm_glue.cc', |
| 226 'common/vm_glue.h', | 237 'common/vm_glue.h', |
| 227 'emulator/emulator_embedder.cc', | 238 'emulator/emulator_embedder.cc', |
| 228 'emulator/emulator_embedder.h', | 239 'emulator/emulator_embedder.h', |
| 229 'emulator/emulator_graphics_handler.cc', | 240 'emulator/emulator_graphics_handler.cc', |
| 230 'emulator/emulator_graphics_handler.h', | 241 'emulator/emulator_graphics_handler.h', |
| 231 'emulator/emulator_resource.h', | 242 'emulator/emulator_resource.h', |
| 232 '<(version_cc_file)', | 243 '<(version_cc_file)', |
| 233 ], | 244 ], |
| 234 'link_settings': { | 245 'link_settings': { |
| 235 'ldflags': [ | 246 'ldflags': [ |
| 236 '-Wall', | 247 '-Wall', |
| 237 '-g', | 248 '<(skia_libs_location_desktop)', |
| 238 '-Lthird_party/skia/trunk/out/Debug', | |
| 239 '-Wl,--start-group', | 249 '-Wl,--start-group', |
| 240 '-lskia_effects', | 250 '-lskia_effects', |
| 241 '-lskia_images', | 251 '-lskia_images', |
| 242 '-lskia_core', | 252 '-lskia_core', |
| 243 '-lskia_opts', | 253 '-lskia_opts', |
| 244 '-lskia_opts_ssse3', | 254 '-lskia_opts_ssse3', |
| 245 '-lskia_ports', | 255 '-lskia_ports', |
| 246 '-lskia_sfnt', | 256 '-lskia_sfnt', |
| 247 '-lskia_utils', | 257 '-lskia_utils', |
| 248 '-lskia_gr', | 258 '-lskia_gr', |
| (...skipping 23 matching lines...) Expand all Loading... |
| 272 { | 282 { |
| 273 'action_name': 'build_skia', | 283 'action_name': 'build_skia', |
| 274 'inputs': [ | 284 'inputs': [ |
| 275 'build_skia.sh' | 285 'build_skia.sh' |
| 276 ], | 286 ], |
| 277 'outputs': [ | 287 'outputs': [ |
| 278 'dummy' # To force re-execution every time. | 288 'dummy' # To force re-execution every time. |
| 279 ], | 289 ], |
| 280 'action': [ | 290 'action': [ |
| 281 'embedders/openglui/build_skia.sh', | 291 'embedders/openglui/build_skia.sh', |
| 292 '<(skia_build_flag)', |
| 282 '..' | 293 '..' |
| 283 ], | 294 ], |
| 284 'message': 'Building Skia.' | 295 'message': 'Building Skia.' |
| 285 } | 296 } |
| 286 ] | 297 ] |
| 287 } | 298 } |
| 288 ], | 299 ], |
| 289 }, | 300 }, |
| 290 ], | 301 ], |
| 291 ], | 302 ], |
| 292 } | 303 } |
| 293 | 304 |
| OLD | NEW |