Dan Willemsen | 19edaf1 | 2016-01-06 17:43:58 -0800 | [diff] [blame] | 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 | |
| 15 | cc_library_host_static { |
| 16 | name: "libckati", |
| 17 | srcs: [ |
Shinichiro Hamaji | 1a444a8 | 2016-02-16 13:49:49 +0900 | [diff] [blame] | 18 | "affinity.cc", |
Dan Willemsen | 19edaf1 | 2016-01-06 17:43:58 -0800 | [diff] [blame] | 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", |
Dan Willemsen | a09a79d | 2016-02-03 21:58:23 -0800 | [diff] [blame] | 34 | "regen.cc", |
Dan Willemsen | 19edaf1 | 2016-01-06 17:43:58 -0800 | [diff] [blame] | 35 | "rule.cc", |
| 36 | "stats.cc", |
| 37 | "stmt.cc", |
| 38 | "string_piece.cc", |
| 39 | "stringprintf.cc", |
| 40 | "strutil.cc", |
| 41 | "symtab.cc", |
Dan Willemsen | a09a79d | 2016-02-03 21:58:23 -0800 | [diff] [blame] | 42 | "thread_pool.cc", |
Dan Willemsen | 19edaf1 | 2016-01-06 17:43:58 -0800 | [diff] [blame] | 43 | "timeutil.cc", |
| 44 | "var.cc", |
| 45 | "version_unknown.cc", |
| 46 | ], |
| 47 | cflags: ["-W", "-Wall", "-DNOLOG"], |
| 48 | } |
| 49 | |
| 50 | cc_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 Willemsen | a09a79d | 2016-02-03 21:58:23 -0800 | [diff] [blame] | 59 | host_ldlibs: ["-lrt", "-lpthread"], |
Dan Willemsen | 19edaf1 | 2016-01-06 17:43:58 -0800 | [diff] [blame] | 60 | }, |
| 61 | }, |
| 62 | } |
| 63 | |
| 64 | cc_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 Willemsen | a09a79d | 2016-02-03 21:58:23 -0800 | [diff] [blame] | 71 | "strutil_bench.cc", |
Dan Willemsen | 19edaf1 | 2016-01-06 17:43:58 -0800 | [diff] [blame] | 72 | "strutil_test.cc", |
| 73 | ], |
| 74 | gtest: false, |
| 75 | whole_static_libs: ["libckati"], |
| 76 | target: { |
| 77 | linux: { |
Dan Willemsen | a09a79d | 2016-02-03 21:58:23 -0800 | [diff] [blame] | 78 | host_ldlibs: ["-lrt", "-lpthread"], |
Dan Willemsen | 19edaf1 | 2016-01-06 17:43:58 -0800 | [diff] [blame] | 79 | }, |
| 80 | }, |
| 81 | } |