Skip to content

Commit

Permalink
Updating BUCK build files for .NET bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevans committed Mar 2, 2018
1 parent 176b4a9 commit 5d88c7b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
7 changes: 5 additions & 2 deletions dotnet/src/support/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ genrule(
'(if not exist %OUT% mkdir %OUT%) && ' +
'for %%G in (%SRCS%) do (' +
'set target_dir=%%G&& ' +
'set platform_dir=%%G\\..&& ' +
'for %%H in (!target_dir!) do (' +
'set platform_moniker=%%~nxH&& ' +
'for %%I in (!platform_dir!) do set platform_moniker=%%~nxI&& ' +
'(if not exist %OUT%\\!platform_moniker! mkdir %OUT%\\!platform_moniker!) && ' +
'copy !target_dir!\\WebDriver.Support.dll %OUT%\\!platform_moniker! &&' +
'copy !target_dir!\\WebDriver.Support.xml %OUT%\\!platform_moniker!' +
Expand Down Expand Up @@ -105,8 +106,10 @@ genrule(
'(if not exist %OUT% mkdir %OUT%) && ' +
'for %%G in (%SRCS%) do (' +
'set target_dir=%%G&& ' +
'set platform_dir=%%G\\..&& ' +
'for %%H in (!target_dir!) do (' +
'set platform_moniker=%%~nxH&& ' +
'for %%I in (!platform_dir!) do set full_platform_moniker=%%~nxI&& ' +
'for /f "delims=_" %%J in (\"!full_platform_moniker!\") do set platform_moniker=%%J&& ' +
'(if not exist %OUT%\\!platform_moniker! mkdir %OUT%\\!platform_moniker!) && ' +
'copy !target_dir!\\WebDriver.Support.dll %OUT%\\!platform_moniker! &&' +
'copy !target_dir!\\WebDriver.Support.xml %OUT%\\!platform_moniker!' +
Expand Down
4 changes: 3 additions & 1 deletion dotnet/src/webdriver/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,10 @@ genrule(
'(if not exist %OUT% mkdir %OUT%) && ' +
'for %%G in (%SRCS%) do (' +
'set target_dir=%%G&& ' +
'set platform_dir=%%G\\..&& ' +
'for %%H in (!target_dir!) do (' +
'set platform_moniker=%%~nxH&& ' +
'for %%I in (!platform_dir!) do set full_platform_moniker=%%~nxI&& ' +
'for /f "delims=_" %%J in (\"!full_platform_moniker!\") do set platform_moniker=%%J&& ' +
'if \"!platform_moniker!\"==\"netstandard2.0\" (' +
'(if not exist %OUT%\\!platform_moniker! mkdir %OUT%\\!platform_moniker!) && ' +
'copy !target_dir!\\WebDriver.dll %OUT%\\!platform_moniker! &&' +
Expand Down
7 changes: 5 additions & 2 deletions dotnet/src/webdriverbackedselenium/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ genrule(
'(if not exist %OUT% mkdir %OUT%) && ' +
'for %%G in (%SRCS%) do (' +
'set target_dir=%%G&& ' +
'set platform_dir=%%G\\..&& ' +
'for %%H in (!target_dir!) do (' +
'set platform_moniker=%%~nxH&& ' +
'for %%I in (!platform_dir!) do set platform_moniker=%%~nxI&& ' +
'(if not exist %OUT%\\!platform_moniker! mkdir %OUT%\\!platform_moniker!) && ' +
'copy !target_dir!\\Selenium.WebDriverBackedSelenium.dll %OUT%\\!platform_moniker! &&' +
'copy !target_dir!\\Selenium.WebDriverBackedSelenium.xml %OUT%\\!platform_moniker!' +
Expand Down Expand Up @@ -105,8 +106,10 @@ genrule(
'(if not exist %OUT% mkdir %OUT%) && ' +
'for %%G in (%SRCS%) do (' +
'set target_dir=%%G&& ' +
'set platform_dir=%%G\\..&& ' +
'for %%H in (!target_dir!) do (' +
'set platform_moniker=%%~nxH&& ' +
'for %%I in (!platform_dir!) do set full_platform_moniker=%%~nxI&& ' +
'for /f \"delims=_\" %%J in (\"!full_platform_moniker!\") do set platform_moniker=%%J&& ' +
'(if not exist %OUT%\\!platform_moniker! mkdir %OUT%\\!platform_moniker!) && ' +
'copy !target_dir!\\Selenium.WebDriverBackedSelenium.dll %OUT%\\!platform_moniker! &&' +
'copy !target_dir!\\Selenium.WebDriverBackedSelenium.xml %OUT%\\!platform_moniker!' +
Expand Down

0 comments on commit 5d88c7b

Please sign in to comment.