|
312 | 312 | <PostBuildEvent>if %25PROCESSOR_ARCHITECTURE%25 == x86 (
|
313 | 313 | if not defined PROCESSOR_ARCHITEW6432 (
|
314 | 314 | echo Detected 32-bit platform
|
315 |
| - if exist "$(SolutionDir)build\cpp\Win32\$(ConfigurationName)\IEDriverServer.exe" ( |
316 |
| - echo Found IE 32-bit native binary, copying from Win32 build target $(SolutionDir)build\cpp\Win32\$(ConfigurationName)\IEDriverServer.exe |
317 |
| - copy /y "$(SolutionDir)build\cpp\Win32\$(ConfigurationName)\IEDriverServer.exe" "$(TargetDir)" > NUL |
| 315 | + if exist "$(ProjectDir)..\..\..\build\cpp\Win32\$(ConfigurationName)\IEDriverServer.exe" ( |
| 316 | + echo Found IE 32-bit native binary, copying from Win32 build target $(ProjectDir)..\..\..\build\cpp\Win32\$(ConfigurationName)\IEDriverServer.exe |
| 317 | + copy /y "$(ProjectDir)..\..\..\build\cpp\Win32\$(ConfigurationName)\IEDriverServer.exe" "$(TargetDir)" > NUL |
318 | 318 | ) else (
|
319 |
| - echo Missing IE 32-bit native binary, copying from Win32 prebuilt location $(SolutionDir)cpp\prebuilt\Win32\Release\IEDriverServer.exe |
320 |
| - copy /y "$(SolutionDir)cpp\prebuilt\Win32\Release\IEDriverServer.exe" "$(TargetDir)" > NUL |
| 319 | + echo Missing IE 32-bit native binary, copying from Win32 prebuilt location $(ProjectDir)..\..\..\cpp\prebuilt\Win32\Release\IEDriverServer.exe |
| 320 | + copy /y "$(ProjectDir)..\..\..\cpp\prebuilt\Win32\Release\IEDriverServer.exe" "$(TargetDir)" > NUL |
321 | 321 | )
|
322 | 322 | goto end
|
323 | 323 | )
|
324 | 324 | )
|
325 | 325 |
|
326 | 326 | echo Detected 64-bit platform
|
327 |
| -if exist "$(SolutionDir)build\cpp\x64\$(ConfigurationName)\IEDriverServer.exe" ( |
328 |
| - echo Found IE 64-bit native binary, copying from x64 build target $(SolutionDir)build\cpp\x64\$(ConfigurationName)\IEDriverServer.exe |
329 |
| - copy /y "$(SolutionDir)build\cpp\x64\$(ConfigurationName)\IEDriverServer.exe" "$(TargetDir)" > NUL |
| 327 | +if exist "$(ProjectDir)..\..\..\build\cpp\x64\$(ConfigurationName)\IEDriverServer.exe" ( |
| 328 | + echo Found IE 64-bit native binary, copying from x64 build target $(ProjectDir)..\..\..\build\cpp\x64\$(ConfigurationName)\IEDriverServer.exe |
| 329 | + copy /y "$(ProjectDir)..\..\..\build\cpp\x64\$(ConfigurationName)\IEDriverServer.exe" "$(TargetDir)" > NUL |
330 | 330 | ) else (
|
331 |
| - echo Missing IE 64-bit native binary, copying from x64 prebuilt location $(SolutionDir)cpp\prebuilt\x64\Release\IEDriverServer.exe |
332 |
| - copy /y "$(SolutionDir)cpp\prebuilt\x64\Release\IEDriverServer.exe" "$(TargetDir)" > NUL |
| 331 | + echo Missing IE 64-bit native binary, copying from x64 prebuilt location $(ProjectDir)..\..\..\cpp\prebuilt\x64\Release\IEDriverServer.exe |
| 332 | + copy /y "$(ProjectDir)..\..\..\cpp\prebuilt\x64\Release\IEDriverServer.exe" "$(TargetDir)" > NUL |
333 | 333 | )
|
334 | 334 |
|
335 | 335 | :end
|
336 |
| -if exist $(SolutionDir)build\javascript\firefox-driver\webdriver.xpi ( |
337 |
| - echo Copying Firefox extension from $(SolutionDir)build\javascript\firefox-driver\webdriver.xpi |
338 |
| - copy /y $(SolutionDir)build\javascript\firefox-driver\webdriver.xpi $(TargetDir) > NUL |
| 336 | +if exist "$(ProjectDir)..\..\..\build\javascript\firefox-driver\webdriver.xpi" ( |
| 337 | + echo Copying Firefox extension from $(ProjectDir)..\..\..\build\javascript\firefox-driver\webdriver.xpi |
| 338 | + copy /y "$(ProjectDir)..\..\..\build\javascript\firefox-driver\webdriver.xpi $(TargetDir)" > NUL |
339 | 339 | ) else (
|
340 |
| - echo WARN: No Firefox extension found at $(SolutionDir)build\javascript\firefox-driver\webdriver.xpi |
| 340 | + echo WARN: No Firefox extension found at $(ProjectDir)..\..\..\build\javascript\firefox-driver\webdriver.xpi |
341 | 341 | )
|
342 | 342 |
|
343 |
| -echo Copying Firefox preferences file from $(SolutionDir)javascript\firefox-driver\webdriver.json |
344 |
| -copy /y $(SolutionDir)javascript\firefox-driver\webdriver.json $(TargetDir) > NUL |
| 343 | +echo Copying Firefox preferences file from $(ProjectDir)..\..\..\javascript\firefox-driver\webdriver.json |
| 344 | +copy /y $(ProjectDir)..\..\..\javascript\firefox-driver\webdriver.json $(TargetDir) > NUL |
345 | 345 |
|
346 | 346 | </PostBuildEvent>
|
347 | 347 | </PropertyGroup>
|
|
0 commit comments