Skip to content

Commit

Permalink
Link to CoreFoundation in time_zone (#102)
Browse files Browse the repository at this point in the history
* link to CoreFoundation in TimeZone

* formatting
  • Loading branch information
Jonathan Cohen authored and devbww committed Apr 3, 2019
1 parent 93f8d10 commit b820d31
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,20 @@

licenses(["notice"]) # Apache License

config_setting(
name = "osx",
constraint_values = [
"@bazel_tools//platforms:osx"
],
)

config_setting(
name = "ios",
constraint_values = [
"@bazel_tools//platforms:ios",
],
)

### libraries

cc_library(
Expand Down Expand Up @@ -51,6 +65,15 @@ cc_library(
"include/cctz/time_zone.h",
"include/cctz/zone_info_source.h",
],
linkopts = select({
"//:osx": [
"-framework Foundation",
],
"//:ios": [
"-framework Foundation",
],
"//conditions:default": [],
}),
includes = ["include"],
visibility = ["//visibility:public"],
deps = [":civil_time"],
Expand Down

0 comments on commit b820d31

Please sign in to comment.