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 test binary target. | 10 # Declare a go test binary target. |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 # and clean up the temporary build directory. | 46 # and clean up the temporary build directory. |
47 build_dir = "${target_out_dir}/${target_name}_build" | 47 build_dir = "${target_out_dir}/${target_name}_build" |
48 args = [ | 48 args = [ |
49 "--", | 49 "--", |
50 "${go_build_tool}", | 50 "${go_build_tool}", |
51 rebase_path(build_dir, root_build_dir), | 51 rebase_path(build_dir, root_build_dir), |
52 rebase_path(target_out_dir, root_build_dir) + "/${target_name}", | 52 rebase_path(target_out_dir, root_build_dir) + "/${target_name}", |
53 rebase_path("//", root_build_dir), | 53 rebase_path("//", root_build_dir), |
54 "-I" + rebase_path("//"), | 54 "-I" + rebase_path("//"), |
55 " -L" + rebase_path(target_out_dir) + | 55 " -L" + rebase_path(target_out_dir) + |
| 56 " -L" + rebase_path(root_build_dir + "/obj/third_party/libevent") + |
56 " -l" + static_library_name + | 57 " -l" + static_library_name + |
57 " -lstdc++ -lpthread -lm -lglib-2.0", | 58 " -lstdc++ -lpthread -lm -lglib-2.0 -levent", |
58 "test", "-c", | 59 "test", "-c", |
59 ] + rebase_path(invoker.sources, build_dir) | 60 ] + rebase_path(invoker.sources, build_dir) |
60 } | 61 } |
61 } | 62 } |
OLD | NEW |