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

Side by Side Diff: mojo/public/tools/bindings/mojom.gni

Issue 1027603002: Dart: Removes all but native calls and the handle watcher from the snapshot. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Hoist application interface dependence Created 5 years, 9 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
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("../../mojo_sdk.gni") 5 import("../../mojo_sdk.gni")
6 6
7 # Generate C++ and JavaScript source files from mojom files. The output files 7 # Generate C++ and JavaScript source files from mojom files. The output files
8 # will go under the generated file directory tree with the same path as each 8 # will go under the generated file directory tree with the same path as each
9 # input file. 9 # input file.
10 # 10 #
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 dep_target_out_dir = get_label_info(d, "target_out_dir") 327 dep_target_out_dir = get_label_info(d, "target_out_dir")
328 deps += [ "${full_name}_dart" ] 328 deps += [ "${full_name}_dart" ]
329 zip_inputs += [ "$dep_target_out_dir/$dep_name.dartzip" ] 329 zip_inputs += [ "$dep_target_out_dir/$dep_name.dartzip" ]
330 } 330 }
331 331
332 output = generator_dart_zip_output 332 output = generator_dart_zip_output
333 outputs = [ 333 outputs = [
334 output, 334 output,
335 ] 335 ]
336 336
337 rebase_base_dir = rebase_path("$root_build_dir/gen/", root_build_dir) 337 invoker_base_dir = ""
338 if (defined(invoker.base_dir)) {
339 invoker_base_dir =
340 rebase_path(invoker.base_dir, "$root_build_dir/../../", ".")
341 }
342
343 rebase_base_dir =
344 rebase_path("$root_build_dir/gen/$invoker_base_dir", root_build_dir)
338 if (defined(invoker.sources)) { 345 if (defined(invoker.sources)) {
339 rebase_inputs = rebase_path(inputs, root_build_dir) 346 rebase_inputs = rebase_path(inputs, root_build_dir)
340 } 347 }
341 rebase_zip_inputs = rebase_path(zip_inputs, root_build_dir) 348 rebase_zip_inputs = rebase_path(zip_inputs, root_build_dir)
342 rebase_output = rebase_path(output, root_build_dir) 349 rebase_output = rebase_path(output, root_build_dir)
343 args = [ 350 args = [
344 "--base-dir=$rebase_base_dir", 351 "--base-dir=$rebase_base_dir",
345 "--zip-inputs=$rebase_zip_inputs", 352 "--zip-inputs=$rebase_zip_inputs",
346 "--output=$rebase_output", 353 "--output=$rebase_output",
347 ] 354 ]
(...skipping 21 matching lines...) Expand all
369 full_name = get_label_info(d, "label_no_toolchain") 376 full_name = get_label_info(d, "label_no_toolchain")
370 deps += [ "${full_name}_java" ] 377 deps += [ "${full_name}_java" ]
371 } 378 }
372 379
373 if (defined(invoker.sources)) { 380 if (defined(invoker.sources)) {
374 srcjars = process_file_template(invoker.sources, generator_java_outputs) 381 srcjars = process_file_template(invoker.sources, generator_java_outputs)
375 } 382 }
376 } 383 }
377 } 384 }
378 } 385 }
OLDNEW
« no previous file with comments | « mojo/public/tools/bindings/generators/dart_templates/module.lib.tmpl ('k') | services/dart/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698