Andreas Schuh | 37e2867 | 2016-11-25 13:47:29 +0000 | [diff] [blame] | 1 | # Bazel (http://bazel.io/) BUILD file for gflags. |
Rob Earhart | 40b85b1 | 2016-02-18 18:16:44 -0800 | [diff] [blame] | 2 | # |
| 3 | # See INSTALL.md for instructions for adding gflags to a Bazel workspace. |
| 4 | |
| 5 | licenses(["notice"]) |
| 6 | |
Siddhartha Bagaria | 7d36353 | 2017-08-27 00:36:57 -0700 | [diff] [blame] | 7 | exports_files(["src/gflags_completions.sh", "COPYING.txt"]) |
Rob Earhart | 40b85b1 | 2016-02-18 18:16:44 -0800 | [diff] [blame] | 8 | |
Rob Earhart | 6d1c363 | 2018-01-05 11:31:31 -0800 | [diff] [blame^] | 9 | config_setting( |
| 10 | name = "x64_windows", |
| 11 | values = {"cpu": "x64_windows"}, |
| 12 | ) |
| 13 | |
Andreas Schuh | 37e2867 | 2016-11-25 13:47:29 +0000 | [diff] [blame] | 14 | load(":bazel/gflags.bzl", "gflags_sources", "gflags_library") |
Rob Earhart | 6d1c363 | 2018-01-05 11:31:31 -0800 | [diff] [blame^] | 15 | |
Andreas Schuh | 37e2867 | 2016-11-25 13:47:29 +0000 | [diff] [blame] | 16 | (hdrs, srcs) = gflags_sources(namespace=["gflags", "google"]) |
| 17 | gflags_library(hdrs=hdrs, srcs=srcs, threads=0) |
| 18 | gflags_library(hdrs=hdrs, srcs=srcs, threads=1) |