-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial attempt at a Rakefile, to make it easier to support 12 (yes, …
…12!) different permutations of the libcef_dll_wrapper.lib file. Former-commit-id: 8ce94eceb4b2052c30259f15d37b065161c15b78
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
desc 'Compile using VS2010, VS2012 and VS2013. Note that this requires all toolchains to be installed and available.' | ||
task :default => [ :vs2012 ] | ||
|
||
# TODO: implement | ||
#desc 'Compile using VS2010 tools' | ||
#task :vs2010 do | ||
#end | ||
|
||
desc 'Compile using VS2012 tools' | ||
task :vs2012 do | ||
sh '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\vsvars32.bat" && cd cef_binary_3.y.z_windows32 && build' | ||
sh '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\vsvars32.bat" && cd cef_binary_3.y.z_windows64 && build' | ||
|
||
# TODO: change these if needed. | ||
FileUtils.mkdir_p 'vs2012/x86/Debug' | ||
FileUtils.mkdir_p 'vs2012/x86/Release' | ||
FileUtils.mkdir_p 'vs2012/x64/Debug' | ||
FileUtils.mkdir_p 'vs2012/x64/Release' | ||
sh 'cp cef_binary_3.y.z_windows32/out/Debug/lib/libcef_dll_wrapper.lib vs2012/x86/Debug' | ||
sh 'cp cef_binary_3.y.z_windows32/out/Release/lib/libcef_dll_wrapper.lib vs2012/x86/Release' | ||
sh 'cp cef_binary_3.y.z_windows64/out/Debug/lib/libcef_dll_wrapper.lib vs2012/x64/Debug' | ||
sh 'cp cef_binary_3.y.z_windows64/out/Release/lib/libcef_dll_wrapper.lib vs2012/x64/Release' | ||
|
||
end | ||
|
||
# TODO: implement | ||
#desc 'Compile using VS2013 tools' | ||
#task :vs2013 do | ||
#end |