Skip to content

Commit

Permalink
chore: re-format with buildifier 3.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gjasny committed Dec 14, 2020
1 parent acab56c commit b15f388
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 16 deletions.
13 changes: 7 additions & 6 deletions bazel/civetweb.BUILD
Expand Up @@ -2,7 +2,8 @@ licenses(["notice"]) # MIT license

config_setting(
name = "darwin",
values = {"cpu": "darwin"},)
values = {"cpu": "darwin"},
)

config_setting(
name = "darwin_x86_64",
Expand All @@ -11,7 +12,7 @@ config_setting(

config_setting(
name = "windows",
values = { "cpu": "x64_windows" },
values = {"cpu": "x64_windows"},
)

config_setting(
Expand Down Expand Up @@ -66,9 +67,6 @@ cc_library(
hdrs = [
"include/CivetServer.h",
],
deps = [
":libcivetweb",
],
copts = [
"-DUSE_IPV6",
"-DNDEBUG",
Expand All @@ -92,4 +90,7 @@ cc_library(
"//conditions:default": ["-lrt"],
}),
visibility = ["//visibility:public"],
)
deps = [
":libcivetweb",
],
)
19 changes: 11 additions & 8 deletions bazel/curl.BUILD
Expand Up @@ -18,18 +18,18 @@ licenses(["notice"]) # MIT/X derivative license

load("@com_github_jupp0r_prometheus_cpp//bazel:curl.bzl", "CURL_COPTS")

package(features = ['no_copts_tokenization'])
package(features = ["no_copts_tokenization"])

config_setting(
name = "windows",
values = {"cpu": "x64_windows"},
visibility = [ "//visibility:private" ],
visibility = ["//visibility:private"],
)

config_setting(
name = "osx",
values = {"cpu": "darwin"},
visibility = [ "//visibility:private" ],
visibility = ["//visibility:private"],
)

cc_library(
Expand All @@ -41,9 +41,15 @@ cc_library(
"include/curl/*.h",
"lib/**/*.h",
]),
copts = CURL_COPTS + [
'-DOS="os"',
],
defines = ["CURL_STATICLIB"],
includes = ["include/", "lib/"],
linkopts = select({
includes = [
"include/",
"lib/",
],
linkopts = select({
"//:windows": [
"-DEFAULTLIB:ws2_32.lib",
"-DEFAULTLIB:advapi32.lib",
Expand All @@ -54,8 +60,5 @@ cc_library(
"-lpthread",
],
}),
copts = CURL_COPTS + [
'-DOS="os"',
],
visibility = ["//visibility:public"],
)
7 changes: 5 additions & 2 deletions bazel/zlib.BUILD
Expand Up @@ -7,7 +7,10 @@ cc_library(
srcs = glob(["*.c"]),
hdrs = glob(["*.h"]),
# Use -Dverbose=-1 to turn off zlib's trace logging. (bazelbuild/bazel#3280)
copts = ["-w", "-Dverbose=-1"],
copts = [
"-w",
"-Dverbose=-1",
],
includes = ["."],
visibility = ["//visibility:public"],
)
)

0 comments on commit b15f388

Please sign in to comment.