blob: 91c29720b08211898308eb2b6bde8bd3208c6dcd [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: [
Shinichiro Hamaji1a444a82016-02-16 13:49:49 +090018 "affinity.cc",
Dan Willemsen19edaf12016-01-06 17:43:58 -080019 "command.cc",
20 "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",
32 "ninja.cc",
33 "parser.cc",
Dan Willemsena09a79d2016-02-03 21:58:23 -080034 "regen.cc",
Dan Willemsen19edaf12016-01-06 17:43:58 -080035 "rule.cc",
36 "stats.cc",
37 "stmt.cc",
38 "string_piece.cc",
39 "stringprintf.cc",
40 "strutil.cc",
41 "symtab.cc",
Dan Willemsena09a79d2016-02-03 21:58:23 -080042 "thread_pool.cc",
Dan Willemsen19edaf12016-01-06 17:43:58 -080043 "timeutil.cc",
44 "var.cc",
45 "version_unknown.cc",
46 ],
47 cflags: ["-W", "-Wall", "-DNOLOG"],
48}
49
50cc_binary_host {
51 name: "ckati",
52 srcs: [
53 "main.cc",
54 ],
55 whole_static_libs: ["libckati"],
56 cflags: ["-W", "-Wall", "-DNOLOG"],
57 target: {
58 linux: {
Dan Willemsena09a79d2016-02-03 21:58:23 -080059 host_ldlibs: ["-lrt", "-lpthread"],
Dan Willemsen19edaf12016-01-06 17:43:58 -080060 },
61 },
62}
63
64cc_test_host {
65 name: "ckati_test",
66 test_per_src: true,
67 srcs: [
68 "find_test.cc",
69 "ninja_test.cc",
70 "string_piece_test.cc",
Dan Willemsena09a79d2016-02-03 21:58:23 -080071 "strutil_bench.cc",
Dan Willemsen19edaf12016-01-06 17:43:58 -080072 "strutil_test.cc",
73 ],
74 gtest: false,
75 whole_static_libs: ["libckati"],
76 target: {
77 linux: {
Dan Willemsena09a79d2016-02-03 21:58:23 -080078 host_ldlibs: ["-lrt", "-lpthread"],
Dan Willemsen19edaf12016-01-06 17:43:58 -080079 },
80 },
81}