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