1// 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 "affinity.cc", 19 "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", 34 "regen.cc", 35 "rule.cc", 36 "stats.cc", 37 "stmt.cc", 38 "string_piece.cc", 39 "stringprintf.cc", 40 "strutil.cc", 41 "symtab.cc", 42 "thread_pool.cc", 43 "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: { 59 host_ldlibs: ["-lrt", "-lpthread"], 60 }, 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", 71 "strutil_bench.cc", 72 "strutil_test.cc", 73 ], 74 gtest: false, 75 whole_static_libs: ["libckati"], 76 target: { 77 linux: { 78 host_ldlibs: ["-lrt", "-lpthread"], 79 }, 80 }, 81} 82