@@ -3,29 +3,45 @@ include_defs('//dotnet/SELENIUM_DOTNET_VERSION')
3
3
genrule (
4
4
name = 'net35' ,
5
5
srcs = [ 'WebDriver.csproj' ],
6
- cmd = 'echo "$(location :webdriver_deps)" && dotnet build %SRCS% --configuration Release --framework net35 --output %OUT% /p:BuildSystem=buck' ,
7
- out = 'net35'
6
+ 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 ),
7
+ out = 'net35' ,
8
+ visibility = [
9
+ '//dotnet/src/webdriverbackedselenium:net35' ,
10
+ '//dotnet/src/support:net35'
11
+ ]
8
12
)
9
13
10
14
genrule (
11
15
name = 'net40' ,
12
16
srcs = [ 'WebDriver.csproj' ],
13
- cmd = 'echo "$(location :webdriver_deps)" && dotnet build %SRCS% --configuration Release --framework net40 --output %OUT% /p:BuildSystem=buck' ,
14
- out = 'net40'
17
+ 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 ),
18
+ out = 'net40' ,
19
+ visibility = [
20
+ '//dotnet/src/webdriverbackedselenium:net40' ,
21
+ '//dotnet/src/support:net40'
22
+ ]
15
23
)
16
24
17
25
genrule (
18
26
name = 'net45' ,
19
27
srcs = [ 'WebDriver.csproj' ],
20
- cmd = 'echo "$(location :webdriver_deps)" && dotnet build %SRCS% --configuration Release --framework net45 --output %OUT% /p:BuildSystem=buck' ,
21
- out = 'net45'
28
+ 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 ),
29
+ out = 'net45' ,
30
+ visibility = [
31
+ '//dotnet/src/webdriverbackedselenium:net45' ,
32
+ '//dotnet/src/support:net45'
33
+ ]
22
34
)
23
35
24
36
genrule (
25
37
name = 'netstandard2.0' ,
26
38
srcs = [ 'WebDriver.csproj' ],
27
- cmd = 'echo "$(location :webdriver_deps)" && dotnet build %SRCS% --configuration Release --framework netstandard2.0 --output %OUT% /p:BuildSystem=buck' ,
28
- out = 'netstandard2.0'
39
+ 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 ),
40
+ out = 'netstandard2.0' ,
41
+ visibility = [
42
+ '//dotnet/src/webdriverbackedselenium:netstandard2.0' ,
43
+ '//dotnet/src/support:netstandard2.0'
44
+ ]
29
45
)
30
46
31
47
genrule (
@@ -60,29 +76,45 @@ genrule(
60
76
genrule (
61
77
name = 'net35_strongnamed' ,
62
78
srcs = [ 'WebDriver.csproj' ],
63
- 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' ,
64
- out = 'net35'
79
+ 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 ),
80
+ out = 'net35' ,
81
+ visibility = [
82
+ '//dotnet/src/webdriverbackedselenium:net35_strongnamed' ,
83
+ '//dotnet/src/support:net35_strongnamed'
84
+ ]
65
85
)
66
86
67
87
genrule (
68
88
name = 'net40_strongnamed' ,
69
89
srcs = [ 'WebDriver.csproj' ],
70
- 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' ,
71
- out = 'net40'
90
+ 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 ),
91
+ out = 'net40' ,
92
+ visibility = [
93
+ '//dotnet/src/webdriverbackedselenium:net40_strongnamed' ,
94
+ '//dotnet/src/support:net40_strongnamed'
95
+ ]
72
96
)
73
97
74
98
genrule (
75
99
name = 'net45_strongnamed' ,
76
100
srcs = [ 'WebDriver.csproj' ],
77
- 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' ,
78
- out = 'net45'
101
+ 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 ),
102
+ out = 'net45' ,
103
+ visibility = [
104
+ '//dotnet/src/webdriverbackedselenium:net45_strongnamed' ,
105
+ '//dotnet/src/support:net45_strongnamed'
106
+ ]
79
107
)
80
108
81
109
genrule (
82
110
name = 'netstandard2.0_strongnamed' ,
83
111
srcs = [ 'WebDriver.csproj' ],
84
- 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' ,
85
- out = 'netstandard2.0'
112
+ 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 ),
113
+ out = 'netstandard2.0' ,
114
+ visibility = [
115
+ '//dotnet/src/webdriverbackedselenium:netstandard2.0_strongnamed' ,
116
+ '//dotnet/src/support:netstandard2.0_strongnamed'
117
+ ]
86
118
)
87
119
88
120
genrule (
0 commit comments