Skip to content

Commit

Permalink
Modifying build process for C++ components built with Visual Studio.
Browse files Browse the repository at this point in the history
Breaking out individual build artifacts to use individual build.desc
files. Also renaming directory to lower-case to conform to project norms.
  • Loading branch information
jimevans committed Aug 15, 2013
1 parent 3e8628b commit fbd9df9
Show file tree
Hide file tree
Showing 130 changed files with 74 additions and 76 deletions.
4 changes: 2 additions & 2 deletions WebDriver.sln
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "webdriver-interactions", "c
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "webdriver-firefox", "cpp\webdriver-firefox\webdriver-firefox.vcxproj", "{A9D3BB2D-FD1E-43A2-80F6-F8320682323E}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "IEDriver", "cpp\IEDriver\IEDriver.vcxproj", "{BB72383B-427F-4191-B692-E4345A30E33C}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "IEDriver", "cpp\iedriver\IEDriver.vcxproj", "{BB72383B-427F-4191-B692-E4345A30E33C}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "json-cpp", "third_party\json-cpp\json-cpp.vcxproj", "{320F3BBE-8223-4E7F-ABEE-18D3BD57B1FD}"
EndProject
Expand Down Expand Up @@ -70,7 +70,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "webdriver-firefox-previous"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebDriver.Safari.Tests", "dotnet\test\safari\WebDriver.Safari.Tests.csproj", "{92551430-7C30-421B-A81E-0B08163AC59C}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "IEDriverServer", "cpp\IEDriverServer\IEDriverServer.vcxproj", "{08C3286F-F132-44EC-80F0-2DF30D87A5D3}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "IEDriverServer", "cpp\iedriverserver\IEDriverServer.vcxproj", "{08C3286F-F132-44EC-80F0-2DF30D87A5D3}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebDriver.PhantomJS.Tests", "dotnet\test\phantomjs\WebDriver.PhantomJS.Tests.csproj", "{2329720E-A694-4A6F-B4E6-EDEA911298E0}"
EndProject
Expand Down
67 changes: 0 additions & 67 deletions cpp/build.desc
Original file line number Diff line number Diff line change
@@ -1,38 +1,3 @@
visualc_library(name = "firefox_dll",
platform = "Win32",
project = "webdriver-firefox/webdriver-firefox.vcxproj",
file_deps = "third_party/gecko-2/win32",
out = "Win32/Release/webdriver-firefox.dll"
)

visualc_library(name = "firefoxprevious_esr_dll",
platform = "Win32",
project = "webdriver-firefox/webdriver-firefox-esr-previous.vcxproj",
file_deps = "third_party/gecko-10/win32",
out = "Win32/Release/webdriver-firefox-esr-previous.dll"
)

visualc_library(name = "firefoxlatest_esr_dll",
platform = "Win32",
project = "webdriver-firefox/webdriver-firefox-esr-latest.vcxproj",
file_deps = "third_party/gecko-17/win32",
out = "Win32/Release/webdriver-firefox-esr-latest.dll"
)

visualc_library(name = "firefoxprevious_dll",
platform = "Win32",
project = "webdriver-firefox/webdriver-firefox-previous.vcxproj",
file_deps = "third_party/gecko-22/win32",
out = "Win32/Release/webdriver-firefox-previous.dll"
)

visualc_library(name = "firefoxlatest_dll",
platform = "Win32",
project = "webdriver-firefox/webdriver-firefox-latest.vcxproj",
file_deps = "third_party/gecko-23/win32",
out = "Win32/Release/webdriver-firefox-latest.dll"
)

mozilla_xpt(name = "native_events_xpt",
srcs = [ "webdriver-firefox/nsINativeEvents.idl" ])

Expand Down Expand Up @@ -144,35 +109,3 @@ visualc_library(name = "imehandler_dll",
project = "imehandler/imehandler.vcxproj",
out = "Win32/Release/imehandler.dll"
)

visualc_release(name = "ie_win32_exe",
deps = [
"//javascript/ie-driver:atoms",
":ie_result_type_cpp",
":sizzle"
],
platform = "Win32",
project = "IEDriverServer/IEDriverServer.vcxproj",
desc = "InternetExplorerDriver standalone server for 32-bit IE",
out = "Win32/Release/IEDriverServer.exe"
)

visualc_release(name = "ie_x64_exe",
deps = [
"//javascript/ie-driver:atoms",
":ie_result_type_cpp",
":sizzle"
],
platform = "x64",
project = "IEDriverServer/IEDriverServer.vcxproj",
desc = "InternetExplorerDriver standalone server for 64-bit IE",
out = "x64/Release/IEDriverServer.exe"
)

rake_task(name = "sizzle",
task_name = "sizzle_header",
out = "cpp/IEDriver/Generated/sizzle.h")

rake_task(name = "ie_result_type_cpp",
task_name = "ie_result_type_cpp",
out = "cpp/IEDriver/Generated/IEReturnTypes.h")
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
31 changes: 31 additions & 0 deletions cpp/iedriverserver/build.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
visualc_release(name = "win32",
deps = [
"//javascript/ie-driver:atoms",
":ie_result_type_cpp",
":sizzle"
],
platform = "Win32",
project = "IEDriverServer.vcxproj",
desc = "InternetExplorerDriver standalone server for 32-bit IE",
out = "Win32/Release/IEDriverServer.exe"
)

visualc_release(name = "x64",
deps = [
"//javascript/ie-driver:atoms",
":ie_result_type_cpp",
":sizzle"
],
platform = "x64",
project = "IEDriverServer.vcxproj",
desc = "InternetExplorerDriver standalone server for 64-bit IE",
out = "x64/Release/IEDriverServer.exe"
)

rake_task(name = "sizzle",
task_name = "sizzle_header",
out = "cpp/IEDriver/Generated/sizzle.h")

rake_task(name = "ie_result_type_cpp",
task_name = "ie_result_type_cpp",
out = "cpp/IEDriver/Generated/IEReturnTypes.h")
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
34 changes: 34 additions & 0 deletions cpp/webdriver-firefox/build.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
visualc_library(name = "firefox",
platform = "Win32",
project = "webdriver-firefox.vcxproj",
file_deps = "third_party/gecko-2/win32",
out = "Win32/Release/webdriver-firefox.dll"
)

visualc_library(name = "previous_esr",
platform = "Win32",
project = "webdriver-firefox-esr-previous.vcxproj",
file_deps = "third_party/gecko-10/win32",
out = "Win32/Release/webdriver-firefox-esr-previous.dll"
)

visualc_library(name = "latest_esr",
platform = "Win32",
project = "webdriver-firefox-esr-latest.vcxproj",
file_deps = "third_party/gecko-17/win32",
out = "Win32/Release/webdriver-firefox-esr-latest.dll"
)

visualc_library(name = "previous",
platform = "Win32",
project = "webdriver-firefox-previous.vcxproj",
file_deps = "third_party/gecko-22/win32",
out = "Win32/Release/webdriver-firefox-previous.dll"
)

visualc_library(name = "latest",
platform = "Win32",
project = "webdriver-firefox-latest.vcxproj",
file_deps = "third_party/gecko-23/win32",
out = "Win32/Release/webdriver-firefox-latest.dll"
)
2 changes: 1 addition & 1 deletion java/client/src/org/openqa/selenium/ie/build.desc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
java_library(name = "ie",
srcs = [ "*.java" ],
deps = [
"//cpp:sizzle",
"//cpp/iedriverserver:sizzle",
"//java/client/src/org/openqa/selenium/browserlaunchers:windows_proxy_manager",
"//java/client/src/org/openqa/selenium/net",
"//java/client/src/org/openqa/selenium/remote",
Expand Down
10 changes: 5 additions & 5 deletions javascript/firefox-driver/build.desc
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ mozilla_extension(name = "webdriver",
"//cpp:native_ime_xpt",
],
resources = [
{ "//cpp:firefox_dll" : "platform/WINNT_x86-msvc/components/webdriver-firefox.dll" },
{ "//cpp:firefoxprevious_esr_dll" : "platform/WINNT_x86-msvc/components/webdriver-firefox-esr-previous.dll" },
{ "//cpp:firefoxlatest_esr_dll" : "platform/WINNT_x86-msvc/components/webdriver-firefox-esr-latest.dll" },
{ "//cpp:firefoxprevious_dll" : "platform/WINNT_x86-msvc/components/webdriver-firefox-previous.dll" },
{ "//cpp:firefoxlatest_dll" : "platform/WINNT_x86-msvc/components/webdriver-firefox-latest.dll" },
{ "//cpp/webdriver-firefox:firefox" : "platform/WINNT_x86-msvc/components/webdriver-firefox.dll" },
{ "//cpp/webdriver-firefox:previous_esr" : "platform/WINNT_x86-msvc/components/webdriver-firefox-esr-previous.dll" },
{ "//cpp/webdriver-firefox:latest_esr" : "platform/WINNT_x86-msvc/components/webdriver-firefox-esr-latest.dll" },
{ "//cpp/webdriver-firefox:previous" : "platform/WINNT_x86-msvc/components/webdriver-firefox-previous.dll" },
{ "//cpp/webdriver-firefox:latest" : "platform/WINNT_x86-msvc/components/webdriver-firefox-latest.dll" },
{ "//cpp:imehandler_dll" : "platform/WINNT_x86-msvc/components/imehandler.dll" },
{ "//cpp:webdriver_firefox_ff3" : "platform/Linux_x86-gcc3/components/libwebdriver-firefox-ff3.so" },
{ "//cpp:webdriver_firefox_esr_previous" : "platform/Linux_x86-gcc3/components/libwebdriver-firefox-esr-previous.so" },
Expand Down
2 changes: 1 addition & 1 deletion rake-tasks/crazy_fun/mappings/visualstudio.rb
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ def get_version(dir)
module CrazyFunVisualC
class VisualCLibrary < Tasks
def handle(fun, dir, args)
full_path = File.join("build", dir, args[:out])
full_path = File.join("build/cpp", args[:out])
desc_path = full_path.gsub("/", Platform.dir_separator)
desc "Build #{desc_path}"

Expand Down

0 comments on commit fbd9df9

Please sign in to comment.