| 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 declare_args() { | 5 declare_args() { |
| 6 # By default, there is no go build tool, because go builds are not supported. | 6 # By default, there is no go build tool, because go builds are not supported. |
| 7 go_build_tool = "" | 7 go_build_tool = "" |
| 8 } | 8 } |
| 9 | 9 |
| 10 # Declare a go library. | 10 # Declare a go library. |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 | 209 |
| 210 template("go_mojo_application") { | 210 template("go_mojo_application") { |
| 211 assert(is_android || is_linux || is_mac) | 211 assert(is_android || is_linux || is_mac) |
| 212 assert(defined(invoker.sources)) | 212 assert(defined(invoker.sources)) |
| 213 assert(go_build_tool != "") | 213 assert(go_build_tool != "") |
| 214 | 214 |
| 215 static_library_name = target_name + "_static_library" | 215 static_library_name = target_name + "_static_library" |
| 216 static_library(static_library_name) { | 216 static_library(static_library_name) { |
| 217 complete_static_lib = true | 217 complete_static_lib = true |
| 218 deps = [ | 218 deps = [ |
| 219 "//mojo/public/platform/native:system", | 219 "//mojo/public/platform/native:system_thunks", |
| 220 ] | 220 ] |
| 221 } | 221 } |
| 222 | 222 |
| 223 go_library_name = target_name + "_go" | 223 go_library_name = target_name + "_go" |
| 224 action(go_library_name) { | 224 action(go_library_name) { |
| 225 deps = invoker.deps + [ | 225 deps = invoker.deps + [ |
| 226 ":${static_library_name}", | 226 ":${static_library_name}", |
| 227 "//mojo/go:application", | 227 "//mojo/go:application", |
| 228 "//mojo/go:platform_cgo", | 228 "//mojo/go:platform_cgo", |
| 229 "//mojo/public/c:system", | 229 "//mojo/public/c:system", |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 ":${go_library_name}", | 269 ":${go_library_name}", |
| 270 ] | 270 ] |
| 271 sources = [ | 271 sources = [ |
| 272 "${target_out_dir}/${go_library_name}", | 272 "${target_out_dir}/${go_library_name}", |
| 273 ] | 273 ] |
| 274 outputs = [ | 274 outputs = [ |
| 275 "${root_out_dir}/${target_name}.mojo", | 275 "${root_out_dir}/${target_name}.mojo", |
| 276 ] | 276 ] |
| 277 } | 277 } |
| 278 } | 278 } |
| OLD | NEW |