Skip to content

Commit

Permalink
[bazel] Run buildifier over all build files
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed May 13, 2019
1 parent e36ca59 commit ff9de44
Show file tree
Hide file tree
Showing 38 changed files with 637 additions and 630 deletions.
2 changes: 1 addition & 1 deletion common/src/web/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ filegroup(
"**/*",
]),
visibility = [
"//dotnet/test/common:__pkg__",
"//java/client/test/org/openqa/selenium/environment:__pkg__",
"//javascript/node/selenium-webdriver:__pkg__",
"//dotnet/test/common:__pkg__"
],
)
4 changes: 2 additions & 2 deletions cpp/prebuilt/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ load("//:copy_file.bzl", "copy_file")

copy_file(
name = "noblur32",
out = "i386/x_ignore_nofocus.so",
src = "i386/libnoblur.so",
out = "i386/x_ignore_nofocus.so",
visibility = [
"//dotnet/src/webdriver:__pkg__",
"//java/client/src/org/openqa/selenium/firefox/xpi:__pkg__",
Expand All @@ -12,8 +12,8 @@ copy_file(

copy_file(
name = "noblur64",
out = "amd64/x_ignore_nofocus.so",
src = "amd64/libnoblur64.so",
out = "amd64/x_ignore_nofocus.so",
visibility = [
"//dotnet/src/webdriver:__pkg__",
"//java/client/src/org/openqa/selenium/firefox/xpi:__pkg__",
Expand Down
200 changes: 101 additions & 99 deletions dotnet/src/support/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,118 +1,120 @@
load("@io_bazel_rules_dotnet//dotnet:defs.bzl", "net_library", "core_library", "core_resource")
load("@io_bazel_rules_dotnet//dotnet:defs.bzl", "core_library", "core_resource", "net_library")
load("//dotnet:nuget.bzl", "nuget_package")
load("//dotnet:selenium-dotnet-version.bzl",
"SE_VERSION",
"ASSEMBLY_VERSION",
"SUPPORTED_NET_FRAMEWORKS")
load(
"//dotnet:selenium-dotnet-version.bzl",
"ASSEMBLY_VERSION",
"SE_VERSION",
"SUPPORTED_NET_FRAMEWORKS",
)

[net_library(
name = "{}".format(framework),
srcs = glob([
"*.cs",
"Events/*.cs",
"Extensions/*.cs",
"PageObjects/**/*.cs",
"UI/*.cs",
]),
deps = [
"@io_bazel_rules_dotnet//dotnet/stdlib.net:system.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:system.core.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:system.data.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:system.drawing.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:system.xml.dll",
"//dotnet/src/webdriver:{}assembly".format(framework)
],
dotnet_context_data = "@io_bazel_rules_dotnet//:net_context_data_{}".format(framework),
out = "merged/{}/WebDriver.Support.dll".format(framework),
visibility = ["//visibility:public"],
name = "{}".format(framework),
srcs = glob([
"*.cs",
"Events/*.cs",
"Extensions/*.cs",
"PageObjects/**/*.cs",
"UI/*.cs",
]),
out = "merged/{}/WebDriver.Support.dll".format(framework),
dotnet_context_data = "@io_bazel_rules_dotnet//:net_context_data_{}".format(framework),
visibility = ["//visibility:public"],
deps = [
"@io_bazel_rules_dotnet//dotnet/stdlib.net:system.core.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:system.data.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:system.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:system.drawing.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:system.xml.dll",
"//dotnet/src/webdriver:{}assembly".format(framework),
],
) for framework in SUPPORTED_NET_FRAMEWORKS]

core_library(
name = "netstandard2.0",
srcs = glob([
"*.cs",
"Events/*.cs",
"Extensions/*.cs",
"PageObjects/**/*.cs",
"UI/*.cs",
]),
deps = [
"@io_bazel_rules_dotnet//dotnet/stdlib.core:netstandard.dll",
"//dotnet/src/webdriver:netstandard2.0"
],
defines = [
"NETSTANDARD2_0"
],
out = "merged/netstandard2.0/WebDriver.Support.dll",
visibility = ["//visibility:public"]
name = "netstandard2.0",
srcs = glob([
"*.cs",
"Events/*.cs",
"Extensions/*.cs",
"PageObjects/**/*.cs",
"UI/*.cs",
]),
out = "merged/netstandard2.0/WebDriver.Support.dll",
defines = [
"NETSTANDARD2_0",
],
visibility = ["//visibility:public"],
deps = [
"//dotnet/src/webdriver:netstandard2.0",
"@io_bazel_rules_dotnet//dotnet/stdlib.core:netstandard.dll",
],
)

[net_library(
name = "{}-strongnamed".format(framework),
srcs = glob([
"*.cs",
"Events/*.cs",
"Extensions/*.cs",
"PageObjects/**/*.cs",
"UI/*.cs",
]),
deps = [
"@io_bazel_rules_dotnet//dotnet/stdlib.net:system.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:system.core.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:system.data.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:system.drawing.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:system.xml.dll",
"//dotnet/src/webdriver:{}assembly-strongnamed".format(framework)
],
out = "strongnamed/{}/WebDriver.Support.dll".format(framework),
keyfile = "//dotnet:WebDriver.snk",
visibility = ["//visibility:public"],
dotnet_context_data = "@io_bazel_rules_dotnet//:net_context_data_{}".format(framework)
name = "{}-strongnamed".format(framework),
srcs = glob([
"*.cs",
"Events/*.cs",
"Extensions/*.cs",
"PageObjects/**/*.cs",
"UI/*.cs",
]),
out = "strongnamed/{}/WebDriver.Support.dll".format(framework),
dotnet_context_data = "@io_bazel_rules_dotnet//:net_context_data_{}".format(framework),
keyfile = "//dotnet:WebDriver.snk",
visibility = ["//visibility:public"],
deps = [
"@io_bazel_rules_dotnet//dotnet/stdlib.net:system.core.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:system.data.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:system.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:system.drawing.dll",
"@io_bazel_rules_dotnet//dotnet/stdlib.net:system.xml.dll",
"//dotnet/src/webdriver:{}assembly-strongnamed".format(framework),
],
) for framework in SUPPORTED_NET_FRAMEWORKS]

core_library(
name = "netstandard2.0-strongnamed",
srcs = glob([
"*.cs",
"Events/*.cs",
"Extensions/*.cs",
"PageObjects/**/*.cs",
"UI/*.cs",
]),
deps = [
"@io_bazel_rules_dotnet//dotnet/stdlib.core:netstandard.dll",
"//dotnet/src/webdriver:netstandard2.0-strongnamed"
],
defines = [
"NETSTANDARD2_0"
],
keyfile = "//dotnet:WebDriver.snk",
out = "strongnamed/netstandard2.0/WebDriver.Support.dll",
visibility = ["//visibility:public"]
name = "netstandard2.0-strongnamed",
srcs = glob([
"*.cs",
"Events/*.cs",
"Extensions/*.cs",
"PageObjects/**/*.cs",
"UI/*.cs",
]),
out = "strongnamed/netstandard2.0/WebDriver.Support.dll",
defines = [
"NETSTANDARD2_0",
],
keyfile = "//dotnet:WebDriver.snk",
visibility = ["//visibility:public"],
deps = [
"//dotnet/src/webdriver:netstandard2.0-strongnamed",
"@io_bazel_rules_dotnet//dotnet/stdlib.core:netstandard.dll",
],
)

nuget_package(
name = "package",
src = "WebDriver.Support.nuspec",
deps = [
":net45",
":net46",
":net47",
":netstandard2.0",
],
package_id = "Selenium.Support",
package_version = "{}".format(SE_VERSION),
name = "package",
src = "WebDriver.Support.nuspec",
package_id = "Selenium.Support",
package_version = "{}".format(SE_VERSION),
deps = [
":net45",
":net46",
":net47",
":netstandard2.0",
],
)

nuget_package(
name = "package-strongnamed",
src = "WebDriver.Support.nuspec",
deps = [
":net45-strongnamed",
":net46-strongnamed",
":net47-strongnamed",
":netstandard2.0-strongnamed",
],
package_id = "Selenium.Support.StrongNamed",
package_version = "{}".format(SE_VERSION),
name = "package-strongnamed",
src = "WebDriver.Support.nuspec",
package_id = "Selenium.Support.StrongNamed",
package_version = "{}".format(SE_VERSION),
deps = [
":net45-strongnamed",
":net46-strongnamed",
":net47-strongnamed",
":netstandard2.0-strongnamed",
],
)
Loading

0 comments on commit ff9de44

Please sign in to comment.