blob: 432505e56c5738200d45905518b0f4e27b125338 [file] [log] [blame]
Dan Willemsen19edaf12016-01-06 17:43:58 -08001// Copyright 2016 Google Inc. All rights reserved
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15cc_library_host_static {
16 name: "libckati",
17 srcs: [
18 "command.cc",
Dan Willemsena09a79d2016-02-03 21:58:23 -080019 "condvar.cc",
Dan Willemsen19edaf12016-01-06 17:43:58 -080020 "dep.cc",
21 "eval.cc",
22 "exec.cc",
23 "expr.cc",
24 "file.cc",
25 "file_cache.cc",
26 "fileutil.cc",
27 "find.cc",
28 "flags.cc",
29 "func.cc",
30 "io.cc",
31 "log.cc",
Dan Willemsena09a79d2016-02-03 21:58:23 -080032 "mutex.cc",
Dan Willemsen19edaf12016-01-06 17:43:58 -080033 "ninja.cc",
34 "parser.cc",
Dan Willemsena09a79d2016-02-03 21:58:23 -080035 "regen.cc",
Dan Willemsen19edaf12016-01-06 17:43:58 -080036 "rule.cc",
37 "stats.cc",
38 "stmt.cc",
39 "string_piece.cc",
40 "stringprintf.cc",
41 "strutil.cc",
42 "symtab.cc",
Dan Willemsena09a79d2016-02-03 21:58:23 -080043 "thread.cc",
44 "thread_pool.cc",
Dan Willemsen19edaf12016-01-06 17:43:58 -080045 "timeutil.cc",
46 "var.cc",
47 "version_unknown.cc",
48 ],
49 cflags: ["-W", "-Wall", "-DNOLOG"],
50}
51
52cc_binary_host {
53 name: "ckati",
54 srcs: [
55 "main.cc",
56 ],
57 whole_static_libs: ["libckati"],
58 cflags: ["-W", "-Wall", "-DNOLOG"],
59 target: {
60 linux: {
Dan Willemsena09a79d2016-02-03 21:58:23 -080061 host_ldlibs: ["-lrt", "-lpthread"],
Dan Willemsen19edaf12016-01-06 17:43:58 -080062 },
63 },
64}
65
66cc_test_host {
67 name: "ckati_test",
68 test_per_src: true,
69 srcs: [
70 "find_test.cc",
71 "ninja_test.cc",
72 "string_piece_test.cc",
Dan Willemsena09a79d2016-02-03 21:58:23 -080073 "strutil_bench.cc",
Dan Willemsen19edaf12016-01-06 17:43:58 -080074 "strutil_test.cc",
75 ],
76 gtest: false,
77 whole_static_libs: ["libckati"],
78 target: {
79 linux: {
Dan Willemsena09a79d2016-02-03 21:58:23 -080080 host_ldlibs: ["-lrt", "-lpthread"],
Dan Willemsen19edaf12016-01-06 17:43:58 -080081 },
82 },
83}