Brian Silverman | fbe79b8 | 2015-09-12 15:10:54 -0400 | [diff] [blame] | 1 | licenses(['notice']) |
| 2 | |
| 3 | common_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=', |
| 21 | ] |
| 22 | |
| 23 | cc_library( |
| 24 | name = 'gflags', |
| 25 | visibility = ['//visibility:public'], |
| 26 | srcs = glob([ |
| 27 | 'src/*.cc', |
| 28 | 'src/*.h', |
| 29 | ], [ |
| 30 | 'src/windows_*', |
| 31 | ]) + [ |
| 32 | 'include/gflags/gflags_declare.h', |
| 33 | 'include/gflags/gflags_gflags.h', |
| 34 | ], |
| 35 | hdrs = [ |
| 36 | 'include/gflags/gflags.h', |
| 37 | 'include/gflags/gflags_completions.h', |
| 38 | ], |
| 39 | copts = common_copts, |
| 40 | includes = [ 'include' ], |
| 41 | ) |