Austin Schuh | 8fec4f4 | 2018-10-29 21:52:32 -0700 | [diff] [blame] | 1 | # Bazel (http://bazel.io/) BUILD file for gflags. |
| 2 | # |
| 3 | # See INSTALL.md for instructions for adding gflags to a Bazel workspace. |
| 4 | |
| 5 | licenses(["notice"]) |
| 6 | |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame] | 7 | exports_files([ |
| 8 | "src/gflags_completions.sh", |
| 9 | "COPYING.txt", |
| 10 | ]) |
Austin Schuh | 8fec4f4 | 2018-10-29 21:52:32 -0700 | [diff] [blame] | 11 | |
| 12 | config_setting( |
| 13 | name = "x64_windows", |
| 14 | values = {"cpu": "x64_windows"}, |
| 15 | ) |
| 16 | |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame] | 17 | load(":bazel/gflags.bzl", "gflags_library", "gflags_sources") |
Austin Schuh | 8fec4f4 | 2018-10-29 21:52:32 -0700 | [diff] [blame] | 18 | |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame] | 19 | (hdrs, srcs) = gflags_sources(namespace = [ |
| 20 | "gflags", |
| 21 | "google", |
| 22 | ]) |
| 23 | |
| 24 | gflags_library( |
| 25 | srcs = srcs, |
| 26 | hdrs = hdrs, |
| 27 | threads = 0, |
| 28 | ) |
| 29 | |
| 30 | gflags_library( |
| 31 | srcs = srcs, |
| 32 | hdrs = hdrs, |
| 33 | threads = 1, |
| 34 | ) |