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=', |
Brian Silverman | f1cff39 | 2015-10-11 19:36:18 -0400 | [diff] [blame] | 21 | |
| 22 | '-Wno-format-nonliteral', |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 23 | '-Wno-unused-local-typedefs', |
Brian Silverman | f1cff39 | 2015-10-11 19:36:18 -0400 | [diff] [blame] | 24 | '-Wno-sign-compare', |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 25 | '-Wno-missing-field-initializers', |
Brian Silverman | fbe79b8 | 2015-09-12 15:10:54 -0400 | [diff] [blame] | 26 | ] |
| 27 | |
| 28 | cc_library( |
| 29 | name = 'gflags', |
| 30 | visibility = ['//visibility:public'], |
| 31 | srcs = glob([ |
| 32 | 'src/*.cc', |
| 33 | 'src/*.h', |
Brian Silverman | b200c17 | 2017-01-02 17:35:35 -0800 | [diff] [blame] | 34 | ], exclude=[ |
Brian Silverman | fbe79b8 | 2015-09-12 15:10:54 -0400 | [diff] [blame] | 35 | 'src/windows_*', |
| 36 | ]) + [ |
| 37 | 'include/gflags/gflags_declare.h', |
| 38 | 'include/gflags/gflags_gflags.h', |
| 39 | ], |
| 40 | hdrs = [ |
| 41 | 'include/gflags/gflags.h', |
| 42 | 'include/gflags/gflags_completions.h', |
| 43 | ], |
Brian Silverman | f1cff39 | 2015-10-11 19:36:18 -0400 | [diff] [blame] | 44 | deps = [ |
Austin Schuh | 044e18b | 2015-10-21 20:17:09 -0700 | [diff] [blame] | 45 | '//third_party/empty_config_h', |
Brian Silverman | f1cff39 | 2015-10-11 19:36:18 -0400 | [diff] [blame] | 46 | ], |
Philipp Schrader | b3a057e | 2018-03-10 18:59:40 -0800 | [diff] [blame^] | 47 | linkopts = [ |
| 48 | '-pthread', |
| 49 | ], |
Brian Silverman | fbe79b8 | 2015-09-12 15:10:54 -0400 | [diff] [blame] | 50 | copts = common_copts, |
| 51 | includes = [ 'include' ], |
| 52 | ) |