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: [ |
| 18 | "command.cc", |
Dan Willemsen | a09a79d | 2016-02-03 21:58:23 -0800 | [diff] [blame] | 19 | "condvar.cc", |
Dan Willemsen | 19edaf1 | 2016-01-06 17:43:58 -0800 | [diff] [blame] | 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", |
Dan Willemsen | a09a79d | 2016-02-03 21:58:23 -0800 | [diff] [blame] | 32 | "mutex.cc", |
Dan Willemsen | 19edaf1 | 2016-01-06 17:43:58 -0800 | [diff] [blame] | 33 | "ninja.cc", |
| 34 | "parser.cc", |
Dan Willemsen | a09a79d | 2016-02-03 21:58:23 -0800 | [diff] [blame] | 35 | "regen.cc", |
Dan Willemsen | 19edaf1 | 2016-01-06 17:43:58 -0800 | [diff] [blame] | 36 | "rule.cc", |
| 37 | "stats.cc", |
| 38 | "stmt.cc", |
| 39 | "string_piece.cc", |
| 40 | "stringprintf.cc", |
| 41 | "strutil.cc", |
| 42 | "symtab.cc", |
Dan Willemsen | a09a79d | 2016-02-03 21:58:23 -0800 | [diff] [blame] | 43 | "thread.cc", |
| 44 | "thread_pool.cc", |
Dan Willemsen | 19edaf1 | 2016-01-06 17:43:58 -0800 | [diff] [blame] | 45 | "timeutil.cc", |
| 46 | "var.cc", |
| 47 | "version_unknown.cc", |
| 48 | ], |
| 49 | cflags: ["-W", "-Wall", "-DNOLOG"], |
| 50 | } |
| 51 | |
| 52 | cc_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 Willemsen | a09a79d | 2016-02-03 21:58:23 -0800 | [diff] [blame] | 61 | host_ldlibs: ["-lrt", "-lpthread"], |
Dan Willemsen | 19edaf1 | 2016-01-06 17:43:58 -0800 | [diff] [blame] | 62 | }, |
| 63 | }, |
| 64 | } |
| 65 | |
| 66 | cc_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 Willemsen | a09a79d | 2016-02-03 21:58:23 -0800 | [diff] [blame] | 73 | "strutil_bench.cc", |
Dan Willemsen | 19edaf1 | 2016-01-06 17:43:58 -0800 | [diff] [blame] | 74 | "strutil_test.cc", |
| 75 | ], |
| 76 | gtest: false, |
| 77 | whole_static_libs: ["libckati"], |
| 78 | target: { |
| 79 | linux: { |
Dan Willemsen | a09a79d | 2016-02-03 21:58:23 -0800 | [diff] [blame] | 80 | host_ldlibs: ["-lrt", "-lpthread"], |
Dan Willemsen | 19edaf1 | 2016-01-06 17:43:58 -0800 | [diff] [blame] | 81 | }, |
| 82 | }, |
| 83 | } |