Skip to content

Commit

Permalink
Finalizing .NET language bindings build with Buck
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevans committed Sep 19, 2017
1 parent 6598a95 commit ce6a30e
Show file tree
Hide file tree
Showing 26 changed files with 92 additions and 932 deletions.
5 changes: 0 additions & 5 deletions Directory.Build.props

This file was deleted.

2 changes: 1 addition & 1 deletion dotnet/SELENIUM_DOTNET_VERSION
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
SE_VERSION = '3.5.3'

ASSEMBLY_VERSION = '3.5.3.0'
26 changes: 0 additions & 26 deletions dotnet/build.desc

This file was deleted.

16 changes: 8 additions & 8 deletions dotnet/src/support/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,28 @@
genrule(
name = 'net35',
srcs = [ 'WebDriver.Support.csproj' ],
cmd = 'dotnet build %SRCS% --configuration Release --framework net35 --output %OUT% /p:BuildSystem=buck',
cmd = "echo '$(location //dotnet/src/webdriver:net35)' && dotnet build %SRCS% --configuration Release --framework net35 --output %OUT% /p:Version={} /p:AssemblyVersion={} /p:FileVersion={} /p:BuildSystem=buck".format(SE_VERSION, ASSEMBLY_VERSION, ASSEMBLY_VERSION),
out = 'net35'
)

genrule(
name = 'net40',
srcs = [ 'WebDriver.Support.csproj' ],
cmd = 'dotnet build %SRCS% --configuration Release --framework net40 --output %OUT% /p:BuildSystem=buck',
cmd = "echo '$(location //dotnet/src/webdriver:net40)' && dotnet build %SRCS% --configuration Release --framework net40 --output %OUT% /p:Version={} /p:AssemblyVersion={} /p:FileVersion={} /p:BuildSystem=buck".format(SE_VERSION, ASSEMBLY_VERSION, ASSEMBLY_VERSION),
out = 'net40'
)

genrule(
name = 'net45',
srcs = [ 'WebDriver.Support.csproj' ],
cmd = 'dotnet build %SRCS% --configuration Release --framework net45 --output %OUT% /p:BuildSystem=buck',
cmd = "echo '$(location //dotnet/src/webdriver:net45)' && dotnet build %SRCS% --configuration Release --framework net45 --output %OUT% /p:Version={} /p:AssemblyVersion={} /p:FileVersion={} /p:BuildSystem=buck".format(SE_VERSION, ASSEMBLY_VERSION, ASSEMBLY_VERSION),
out = 'net45'
)

genrule(
name = 'netstandard2.0',
srcs = [ 'WebDriver.Support.csproj' ],
cmd = 'dotnet build %SRCS% --configuration Release --framework netstandard2.0 --output %OUT% /p:BuildSystem=buck',
cmd = "echo '$(location //dotnet/src/webdriver:netstandard2.0)' && dotnet build %SRCS% --configuration Release --framework netstandard2.0 --output %OUT% /p:Version={} /p:AssemblyVersion={} /p:FileVersion={} /p:BuildSystem=buck".format(SE_VERSION, ASSEMBLY_VERSION, ASSEMBLY_VERSION),
out = 'netstandard2.0'
)

Expand Down Expand Up @@ -62,28 +62,28 @@ genrule(
genrule(
name = 'net35_strongnamed',
srcs = [ 'WebDriver.Support.csproj' ],
cmd = 'dotnet build %SRCS% --configuration Release --framework net35 --output %OUT% /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=$(location //dotnet:keyfile) /p:BuildSystem=buck',
cmd = "echo '$(location //dotnet/src/webdriver:net35_strongnamed)' && dotnet build %SRCS% --configuration Release --framework net35 --output %OUT% /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=$(location //dotnet:keyfile) /p:Version={} /p:AssemblyVersion={} /p:FileVersion={} /p:BuildSystem=buck".format(SE_VERSION, ASSEMBLY_VERSION, ASSEMBLY_VERSION),
out = 'net35'
)

genrule(
name = 'net40_strongnamed',
srcs = [ 'WebDriver.Support.csproj' ],
cmd = 'dotnet build %SRCS% --configuration Release --framework net40 --output %OUT% /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=$(location //dotnet:keyfile) /p:BuildSystem=buck',
cmd = "echo '$(location //dotnet/src/webdriver:net40_strongnamed)' && dotnet build %SRCS% --configuration Release --framework net40 --output %OUT% /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=$(location //dotnet:keyfile) /p:Version={} /p:AssemblyVersion={} /p:FileVersion={} /p:BuildSystem=buck".format(SE_VERSION, ASSEMBLY_VERSION, ASSEMBLY_VERSION),
out = 'net40'
)

genrule(
name = 'net45_strongnamed',
srcs = [ 'WebDriver.Support.csproj' ],
cmd = 'dotnet build %SRCS% --configuration Release --framework net45 --output %OUT% /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=$(location //dotnet:keyfile) /p:BuildSystem=buck',
cmd = "echo '$(location //dotnet/src/webdriver:net45_strongnamed)' && dotnet build %SRCS% --configuration Release --framework net45 --output %OUT% /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=$(location //dotnet:keyfile) /p:Version={} /p:AssemblyVersion={} /p:FileVersion={} /p:BuildSystem=buck".format(SE_VERSION, ASSEMBLY_VERSION, ASSEMBLY_VERSION),
out = 'net45'
)

genrule(
name = 'netstandard2.0_strongnamed',
srcs = [ 'WebDriver.Support.csproj' ],
cmd = 'dotnet build %SRCS% --configuration Release --framework netstandard2.0 --output %OUT% /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=$(location //dotnet:keyfile) /p:BuildSystem=buck',
cmd = "echo '$(location //dotnet/src/webdriver:netstandard2.0_strongnamed)' && dotnet build %SRCS% --configuration Release --framework netstandard2.0 --output %OUT% /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=$(location //dotnet:keyfile) /p:Version={} /p:AssemblyVersion={} /p:FileVersion={} /p:BuildSystem=buck".format(SE_VERSION, ASSEMBLY_VERSION, ASSEMBLY_VERSION),
out = 'netstandard2.0'
)

Expand Down
54 changes: 0 additions & 54 deletions dotnet/src/support/Properties/AssemblyInfo.cs

This file was deleted.

10 changes: 9 additions & 1 deletion dotnet/src/support/WebDriver.Support.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<PropertyGroup>
<TargetFrameworks>net45;net40;net35;netstandard2.0</TargetFrameworks>
<AssemblyName>WebDriver.Support</AssemblyName>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<RootNamespace>OpenQA.Selenium.Support</RootNamespace>
<BuildSystem>visual-studio</BuildSystem>
</PropertyGroup>
Expand All @@ -18,6 +17,15 @@

<PropertyGroup>
<FrameworkPathOverride Condition="'$(TargetFramework)'=='net35'">C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5\Profile\Client</FrameworkPathOverride>
<AssemblyTitle>Selenium WebDriver Support</AssemblyTitle>
<Description>Selenium WebDriver .NET Bindings support classes</Description>
<Company>Selenium Committers</Company>
<Copyright>Copyright © Software Freedom Conservancy 2017</Copyright>
<Product>Selenium</Product>
<Version>3</Version>
<PackageId>Selenium.Support</PackageId>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<FileVersion>3.0.0.0</FileVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net35|AnyCPU'">
Expand Down
75 changes: 0 additions & 75 deletions dotnet/src/support/build.desc

This file was deleted.

64 changes: 48 additions & 16 deletions dotnet/src/webdriver/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,45 @@ include_defs('//dotnet/SELENIUM_DOTNET_VERSION')
genrule(
name = 'net35',
srcs = [ 'WebDriver.csproj' ],
cmd = 'echo "$(location :webdriver_deps)" && dotnet build %SRCS% --configuration Release --framework net35 --output %OUT% /p:BuildSystem=buck',
out = 'net35'
cmd = "echo '$(location :webdriver_deps)' && dotnet build %SRCS% --configuration Release --framework net35 --output %OUT% /p:Version={} /p:AssemblyVersion={} /p:FileVersion={} /p:BuildSystem=buck".format(SE_VERSION, ASSEMBLY_VERSION, ASSEMBLY_VERSION),
out = 'net35',
visibility = [
'//dotnet/src/webdriverbackedselenium:net35',
'//dotnet/src/support:net35'
]
)

genrule(
name = 'net40',
srcs = [ 'WebDriver.csproj' ],
cmd = 'echo "$(location :webdriver_deps)" && dotnet build %SRCS% --configuration Release --framework net40 --output %OUT% /p:BuildSystem=buck',
out = 'net40'
cmd = "echo '$(location :webdriver_deps)' && dotnet build %SRCS% --configuration Release --framework net40 --output %OUT% /p:Version={} /p:AssemblyVersion={} /p:FileVersion={} /p:BuildSystem=buck".format(SE_VERSION, ASSEMBLY_VERSION, ASSEMBLY_VERSION),
out = 'net40',
visibility = [
'//dotnet/src/webdriverbackedselenium:net40',
'//dotnet/src/support:net40'
]
)

genrule(
name = 'net45',
srcs = [ 'WebDriver.csproj' ],
cmd = 'echo "$(location :webdriver_deps)" && dotnet build %SRCS% --configuration Release --framework net45 --output %OUT% /p:BuildSystem=buck',
out = 'net45'
cmd = "echo '$(location :webdriver_deps)' && dotnet build %SRCS% --configuration Release --framework net45 --output %OUT% /p:Version={} /p:AssemblyVersion={} /p:FileVersion={} /p:BuildSystem=buck".format(SE_VERSION, ASSEMBLY_VERSION, ASSEMBLY_VERSION),
out = 'net45',
visibility = [
'//dotnet/src/webdriverbackedselenium:net45',
'//dotnet/src/support:net45'
]
)

genrule(
name = 'netstandard2.0',
srcs = [ 'WebDriver.csproj' ],
cmd = 'echo "$(location :webdriver_deps)" && dotnet build %SRCS% --configuration Release --framework netstandard2.0 --output %OUT% /p:BuildSystem=buck',
out = 'netstandard2.0'
cmd = "echo '$(location :webdriver_deps)' && dotnet build %SRCS% --configuration Release --framework netstandard2.0 --output %OUT% /p:Version={} /p:AssemblyVersion={} /p:FileVersion={} /p:BuildSystem=buck".format(SE_VERSION, ASSEMBLY_VERSION, ASSEMBLY_VERSION),
out = 'netstandard2.0',
visibility = [
'//dotnet/src/webdriverbackedselenium:netstandard2.0',
'//dotnet/src/support:netstandard2.0'
]
)

genrule(
Expand Down Expand Up @@ -60,29 +76,45 @@ genrule(
genrule(
name = 'net35_strongnamed',
srcs = [ 'WebDriver.csproj' ],
cmd = 'echo "$(location :webdriver_deps)" && dotnet build %SRCS% --configuration Release --framework net35 --output %OUT% /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=$(location //dotnet:keyfile) /p:BuildSystem=buck',
out = 'net35'
cmd = "echo '$(location :webdriver_deps)' && dotnet build %SRCS% --configuration Release --framework net35 --output %OUT% /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=$(location //dotnet:keyfile) /p:Version={} /p:AssemblyVersion={} /p:FileVersion={} /p:BuildSystem=buck".format(SE_VERSION, ASSEMBLY_VERSION, ASSEMBLY_VERSION),
out = 'net35',
visibility = [
'//dotnet/src/webdriverbackedselenium:net35_strongnamed',
'//dotnet/src/support:net35_strongnamed'
]
)

genrule(
name = 'net40_strongnamed',
srcs = [ 'WebDriver.csproj' ],
cmd = 'echo "$(location :webdriver_deps)" && dotnet build %SRCS% --configuration Release --framework net40 --output %OUT% /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=$(location //dotnet:keyfile) /p:BuildSystem=buck',
out = 'net40'
cmd = "echo '$(location :webdriver_deps)' && dotnet build %SRCS% --configuration Release --framework net40 --output %OUT% /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=$(location //dotnet:keyfile) /p:Version={} /p:AssemblyVersion={} /p:FileVersion={} /p:BuildSystem=buck".format(SE_VERSION, ASSEMBLY_VERSION, ASSEMBLY_VERSION),
out = 'net40',
visibility = [
'//dotnet/src/webdriverbackedselenium:net40_strongnamed',
'//dotnet/src/support:net40_strongnamed'
]
)

genrule(
name = 'net45_strongnamed',
srcs = [ 'WebDriver.csproj' ],
cmd = 'echo "$(location :webdriver_deps)" && dotnet build %SRCS% --configuration Release --framework net45 --output %OUT% /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=$(location //dotnet:keyfile) /p:BuildSystem=buck',
out = 'net45'
cmd = "echo '$(location :webdriver_deps)' && dotnet build %SRCS% --configuration Release --framework net45 --output %OUT% /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=$(location //dotnet:keyfile) /p:Version={} /p:AssemblyVersion={} /p:FileVersion={} /p:BuildSystem=buck".format(SE_VERSION, ASSEMBLY_VERSION, ASSEMBLY_VERSION),
out = 'net45',
visibility = [
'//dotnet/src/webdriverbackedselenium:net45_strongnamed',
'//dotnet/src/support:net45_strongnamed'
]
)

genrule(
name = 'netstandard2.0_strongnamed',
srcs = [ 'WebDriver.csproj' ],
cmd = 'echo "$(location :webdriver_deps)" && dotnet build %SRCS% --configuration Release --framework netstandard2.0 --output %OUT% /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=$(location //dotnet:keyfile) /p:BuildSystem=buck',
out = 'netstandard2.0'
cmd = "echo '$(location :webdriver_deps)' && dotnet build %SRCS% --configuration Release --framework netstandard2.0 --output %OUT% /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=$(location //dotnet:keyfile) /p:Version={} /p:AssemblyVersion={} /p:FileVersion={} /p:BuildSystem=buck".format(SE_VERSION, ASSEMBLY_VERSION, ASSEMBLY_VERSION),
out = 'netstandard2.0',
visibility = [
'//dotnet/src/webdriverbackedselenium:netstandard2.0_strongnamed',
'//dotnet/src/support:netstandard2.0_strongnamed'
]
)

genrule(
Expand Down
Loading

0 comments on commit ce6a30e

Please sign in to comment.