| OLD | NEW |
| 1 # All toolchains use the same generated code. | 1 # All toolchains use the same generated code. |
| 2 gen_dir = "$root_build_dir/gen/mojo/nacl" | 2 gen_dir = "$root_build_dir/gen/mojo/nacl" |
| 3 | 3 |
| 4 # Only allow the generator to be run by one toolchain. | 4 # Only allow the generator to be run by one toolchain. |
| 5 if (current_toolchain == default_toolchain) { | 5 if (current_toolchain == default_toolchain) { |
| 6 # Generate the code to plumb the Mojo public API into the NaCl sandbox. | 6 # Generate the code to plumb the Mojo public API into the NaCl sandbox. |
| 7 action("mojo_nacl_codegen") { | 7 action("mojo_nacl_codegen") { |
| 8 script = "generator/generate_nacl_bindings.py" | 8 script = "generator/generate_nacl_bindings.py" |
| 9 args = [ | 9 args = [ |
| 10 "-d", | 10 "-d", |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 "//native_client/build/config/nacl:nacl_base", | 102 "//native_client/build/config/nacl:nacl_base", |
| 103 "//native_client/src/untrusted/irt:irt_core_lib", | 103 "//native_client/src/untrusted/irt:irt_core_lib", |
| 104 "//native_client/src/untrusted/nacl:imc_syscalls", | 104 "//native_client/src/untrusted/nacl:imc_syscalls", |
| 105 ":mojo_nacl_codegen($default_toolchain)", | 105 ":mojo_nacl_codegen($default_toolchain)", |
| 106 ] | 106 ] |
| 107 } | 107 } |
| 108 } | 108 } |
| 109 | 109 |
| 110 group("mojo_nacl") { | 110 group("mojo_nacl") { |
| 111 deps = [ | 111 deps = [ |
| 112 ":irt_mojo(//native_client/build/toolchain/nacl:irt_${cpu_arch})", | 112 ":irt_mojo(//native_client/build/toolchain/nacl:irt_${current_cpu})", |
| 113 ] | 113 ] |
| 114 } | 114 } |
| 115 | 115 |
| 116 group("mojo_nacl_tests") { | 116 group("mojo_nacl_tests") { |
| 117 testonly = true | 117 testonly = true |
| 118 deps = [ | 118 deps = [ |
| 119 ":monacl_shell", | 119 ":monacl_shell", |
| 120 ":monacl_test(//native_client/build/toolchain/nacl:clang_newlib_${cpu_arch})
", | 120 ":monacl_test(//native_client/build/toolchain/nacl:clang_newlib_${current_cp
u})", |
| 121 ] | 121 ] |
| 122 } | 122 } |
| OLD | NEW |