blob: ab91582d08df9d50c0a8f027dd3e3dbcd7a66c90 [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
Dan Willemsen6e63e0f2016-10-17 15:33:58 -070015cc_defaults {
16 name: "ckati_defaults",
17 cflags: [
18 "-W",
19 "-Wall",
20 "-Werror",
21 "-DNOLOG",
22 ],
Dan Willemsencb2ff852016-11-01 14:49:08 -070023 tidy_checks: [
24 "-google-global-names-in-headers",
25 "-google-build-using-namespace",
26 "-google-explicit-constructor",
27 ],
Dan Willemsen6e63e0f2016-10-17 15:33:58 -070028}
29
Dan Willemsen19edaf12016-01-06 17:43:58 -080030cc_library_host_static {
31 name: "libckati",
Dan Willemsen6e63e0f2016-10-17 15:33:58 -070032 defaults: ["ckati_defaults"],
Dan Willemsen19edaf12016-01-06 17:43:58 -080033 srcs: [
Shinichiro Hamaji1a444a82016-02-16 13:49:49 +090034 "affinity.cc",
Dan Willemsen19edaf12016-01-06 17:43:58 -080035 "command.cc",
36 "dep.cc",
37 "eval.cc",
38 "exec.cc",
39 "expr.cc",
40 "file.cc",
41 "file_cache.cc",
42 "fileutil.cc",
43 "find.cc",
44 "flags.cc",
45 "func.cc",
46 "io.cc",
47 "log.cc",
48 "ninja.cc",
49 "parser.cc",
Dan Willemsena09a79d2016-02-03 21:58:23 -080050 "regen.cc",
Dan Willemsen19edaf12016-01-06 17:43:58 -080051 "rule.cc",
52 "stats.cc",
53 "stmt.cc",
54 "string_piece.cc",
55 "stringprintf.cc",
56 "strutil.cc",
57 "symtab.cc",
Dan Willemsena09a79d2016-02-03 21:58:23 -080058 "thread_pool.cc",
Dan Willemsen19edaf12016-01-06 17:43:58 -080059 "timeutil.cc",
60 "var.cc",
61 "version_unknown.cc",
62 ],
Dan Willemsen19edaf12016-01-06 17:43:58 -080063}
64
65cc_binary_host {
66 name: "ckati",
Dan Willemsen6e63e0f2016-10-17 15:33:58 -070067 defaults: ["ckati_defaults"],
68 srcs: ["main.cc"],
Dan Willemsen19edaf12016-01-06 17:43:58 -080069 whole_static_libs: ["libckati"],
Dan Willemsen6e63e0f2016-10-17 15:33:58 -070070}
71
72cc_binary_host {
73 name: "ckati_stamp_dump",
74 defaults: ["ckati_defaults"],
75 srcs: ["regen_dump.cc"],
Dan Willemsen3af7e612016-10-20 21:41:26 -070076 static_libs: ["libckati"],
Dan Willemsen19edaf12016-01-06 17:43:58 -080077}
78
79cc_test_host {
80 name: "ckati_test",
Dan Willemsen6e63e0f2016-10-17 15:33:58 -070081 defaults: ["ckati_defaults"],
Dan Willemsen19edaf12016-01-06 17:43:58 -080082 test_per_src: true,
83 srcs: [
84 "find_test.cc",
85 "ninja_test.cc",
86 "string_piece_test.cc",
Dan Willemsena09a79d2016-02-03 21:58:23 -080087 "strutil_bench.cc",
Dan Willemsen19edaf12016-01-06 17:43:58 -080088 "strutil_test.cc",
89 ],
90 gtest: false,
Dan Willemsen3af7e612016-10-20 21:41:26 -070091 static_libs: ["libckati"],
Dan Willemsen19edaf12016-01-06 17:43:58 -080092}
Dan Willemsen9862c2a2016-09-30 19:42:53 -070093
94cc_benchmark_host {
95 name: "ckati_fileutil_bench",
Dan Willemsen6e63e0f2016-10-17 15:33:58 -070096 defaults: ["ckati_defaults"],
Dan Willemsen9862c2a2016-09-30 19:42:53 -070097 srcs: [
98 "fileutil_bench.cc",
99 ],
Dan Willemsen3af7e612016-10-20 21:41:26 -0700100 static_libs: ["libckati"],
Dan Willemsen9862c2a2016-09-30 19:42:53 -0700101}