| OLD | NEW |
| 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 # TODO(azani): Remove when the switch to the new compiler is complete. | 7 # TODO(azani): Remove when the switch to the new compiler is complete. |
| 8 declare_args() { | 8 declare_args() { |
| 9 use_old_mojom_compiler = false | 9 use_old_mojom_compiler = false |
| 10 } | 10 } |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 "{{source}}", | 190 "{{source}}", |
| 191 "--use_bundled_pylibs", | 191 "--use_bundled_pylibs", |
| 192 "-d", | 192 "-d", |
| 193 rebase_path("//", root_build_dir), | 193 rebase_path("//", root_build_dir), |
| 194 "-I", | 194 "-I", |
| 195 rebase_path("//", root_build_dir), | 195 rebase_path("//", root_build_dir), |
| 196 "-I", | 196 "-I", |
| 197 rebase_path(mojo_root, root_build_dir), | 197 rebase_path(mojo_root, root_build_dir), |
| 198 "-o", | 198 "-o", |
| 199 rebase_path(root_gen_dir), | 199 rebase_path(root_gen_dir), |
| 200 "--no-gen-imports", |
| 200 ] | 201 ] |
| 201 | 202 |
| 202 # TODO(azani): Remove when the switch to the new compiler is complete. | 203 # TODO(azani): Remove when the switch to the new compiler is complete. |
| 203 if (use_old_mojom_compiler) { | 204 if (use_old_mojom_compiler) { |
| 204 args += [ "--compiler-version=1" ] | 205 args += [ "--compiler-version=1" ] |
| 205 } | 206 } |
| 206 | 207 |
| 207 if (defined(invoker.import_dirs)) { | 208 if (defined(invoker.import_dirs)) { |
| 208 foreach(import_dir, invoker.import_dirs) { | 209 foreach(import_dir, invoker.import_dirs) { |
| 209 args += [ | 210 args += [ |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 # //mojo/something:something and we can append "_java" to get the java | 412 # //mojo/something:something and we can append "_java" to get the java |
| 412 # dependency name. | 413 # dependency name. |
| 413 full_name = get_label_info(d, "label_no_toolchain") | 414 full_name = get_label_info(d, "label_no_toolchain") |
| 414 deps += [ "${full_name}_java" ] | 415 deps += [ "${full_name}_java" ] |
| 415 } | 416 } |
| 416 | 417 |
| 417 srcjar_deps = [ ":$java_srcjar_target_name" ] | 418 srcjar_deps = [ ":$java_srcjar_target_name" ] |
| 418 } | 419 } |
| 419 } | 420 } |
| 420 } | 421 } |
| OLD | NEW |