blob: 9642c6f9707847bdcde90f367f387f5d804bbdcb [file] [log] [blame]
Brian Silvermanfbe79b82015-09-12 15:10:54 -04001licenses(['notice'])
2
3common_copts = [
4 '-Ithird_party/gflags/include/gflags',
5 '-Ithird_party/empty_config_h',
6
7 '-DHAVE_STDINT_H=',
8 '-DHAVE_SYS_TYPES_H=',
9 '-DHAVE_INTTYPES_H=',
10 '-DHAVE_SYS_STAT_H=',
11 '-DHAVE_UNISTD_H=',
12 '-DHAVE_FNMATCH_H=',
13 '-DHAVE_STRTOLL=',
14 '-DHAVE_PTHREAD=',
15 '-DHAVE_RWLOCK=',
16 '-D__STDC_FORMAT_MACROS=1',
17 '-DPATH_SEPARATOR=\"\'/\'\"',
18 '-DGFLAGS_IS_A_DLL=0',
19 '-DGFLAGS_DLL_DECL=',
20 '-DGFLAGS_DLL_DEFINE_FLAG=',
Brian Silvermanf1cff392015-10-11 19:36:18 -040021
22 '-Wno-format-nonliteral',
23 '-Wno-unused-local-typedef',
24 '-Wno-sign-compare',
Brian Silvermanfbe79b82015-09-12 15:10:54 -040025]
26
27cc_library(
28 name = 'gflags',
29 visibility = ['//visibility:public'],
30 srcs = glob([
31 'src/*.cc',
32 'src/*.h',
33 ], [
34 'src/windows_*',
35 ]) + [
36 'include/gflags/gflags_declare.h',
37 'include/gflags/gflags_gflags.h',
38 ],
39 hdrs = [
40 'include/gflags/gflags.h',
41 'include/gflags/gflags_completions.h',
42 ],
Brian Silvermanf1cff392015-10-11 19:36:18 -040043 deps = [
44 '//external:libpthread',
45 ],
Brian Silvermanfbe79b82015-09-12 15:10:54 -040046 copts = common_copts,
47 includes = [ 'include' ],
48)