|
|
|
@ -21,20 +21,6 @@ filegroup( |
|
|
|
|
srcs = glob(["testdata/zoneinfo/**"]), |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
config_setting( |
|
|
|
|
name = "osx", |
|
|
|
|
constraint_values = [ |
|
|
|
|
"@platforms//os:osx", |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
config_setting( |
|
|
|
|
name = "ios", |
|
|
|
|
constraint_values = [ |
|
|
|
|
"@platforms//os:ios", |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
### libraries |
|
|
|
|
|
|
|
|
|
cc_library( |
|
|
|
@ -72,15 +58,10 @@ cc_library( |
|
|
|
|
"include/cctz/time_zone.h", |
|
|
|
|
"include/cctz/zone_info_source.h", |
|
|
|
|
], |
|
|
|
|
linkopts = select({ |
|
|
|
|
":osx": [ |
|
|
|
|
"-framework Foundation", |
|
|
|
|
], |
|
|
|
|
":ios": [ |
|
|
|
|
"-framework Foundation", |
|
|
|
|
], |
|
|
|
|
"//conditions:default": [], |
|
|
|
|
}), |
|
|
|
|
# OS X and iOS no longer use `linkopts = ["-framework CoreFoundation"]` |
|
|
|
|
# as (1) bazel adds it automatically, and (2) it caused problems when |
|
|
|
|
# cross-compiling for Android. |
|
|
|
|
# See https://github.com/abseil/abseil-cpp/issues/326 for details. |
|
|
|
|
visibility = ["//visibility:public"], |
|
|
|
|
deps = [ |
|
|
|
|
":civil_time", |
|
|
|
|