| 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("//build/go/rules.gni") | 5 import("//build/go/rules.gni") |
| 6 | 6 |
| 7 group("go") { | 7 if (is_android) { |
| 8 deps = [ | 8 group("go") { |
| 9 ":system_test", | 9 deps = [ |
| 10 ] | 10 ":go_sample_app", |
| 11 } | 11 ] |
| 12 | 12 } |
| 13 go_test_binary("system_test") { | 13 go_shared_library("go_sample_app") { |
| 14 sources = [ | 14 sources = [ |
| 15 "tests/system_test.go", | 15 "sample_app/app.go", |
| 16 ] | 16 ] |
| 17 static_library_sources = [ | 17 deps = [ |
| 18 "c_embedder/c_embedder.cc", | 18 "//mojo/public/c/system:for_shared_library", |
| 19 "c_embedder/c_embedder.h", | 19 ] |
| 20 ] | 20 } |
| 21 deps = [ | 21 } else if (is_linux) { |
| 22 "//mojo/edk/system", | 22 group("go") { |
| 23 ] | 23 deps = [ |
| 24 } | 24 ":system_test", |
| 25 ] |
| 26 } |
| 27 go_test_binary("system_test") { |
| 28 sources = [ |
| 29 "tests/system_test.go", |
| 30 ] |
| 31 static_library_sources = [ |
| 32 "c_embedder/c_embedder.cc", |
| 33 "c_embedder/c_embedder.h", |
| 34 ] |
| 35 deps = [ |
| 36 "//mojo/edk/system", |
| 37 ] |
| 38 } |
| 39 } |
| OLD | NEW |