Commit f0c1a863 authored by Pete Warden's avatar Pete Warden

Added iOS settings to Bazel build

parent cb39204a
......@@ -27,10 +27,22 @@ load(
)
config_setting(
name = "ios_arm",
name = "ios_armv7",
values = {
"ios_cpu": "armv7",
},
)
config_setting(
name = "ios_armv7s",
values = {
"ios_cpu": "armv7s",
},
)
config_setting(
name = "ios_arm64",
values = {
"ios_cpu": "arm64",
},
)
......@@ -75,7 +87,9 @@ cc_library(
],
hdrs = glob(["src/google/protobuf/**/*.h"]),
copts = select({
":ios_arm": IOS_ARM_COPTS,
":ios_armv7": IOS_ARM_COPTS,
":ios_armv7s": IOS_ARM_COPTS,
":ios_arm64": IOS_ARM_COPTS,
"//conditions:default": COPTS,
}),
includes = ["src/"],
......@@ -143,7 +157,9 @@ cc_library(
],
hdrs = glob(["src/**/*.h"]),
copts = select({
":ios_arm": IOS_ARM_COPTS,
":ios_armv7": IOS_ARM_COPTS,
":ios_armv7s": IOS_ARM_COPTS,
":ios_arm64": IOS_ARM_COPTS,
"//conditions:default": COPTS,
}),
includes = ["src/"],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment