Skip to content

Commit

Permalink
Initial attempt at a Rakefile, to make it easier to support 12 (yes, …
Browse files Browse the repository at this point in the history
…12!) different permutations of the libcef_dll_wrapper.lib file.

Former-commit-id: 8ce94eceb4b2052c30259f15d37b065161c15b78
  • Loading branch information
perlun committed Mar 27, 2014
1 parent e1b3010 commit f5bf56c
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Rakefile
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

0 comments on commit f5bf56c

Please sign in to comment.