Skip to content

Commit f5bf56c

Browse files
committed
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
1 parent e1b3010 commit f5bf56c

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Rakefile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
desc 'Compile using VS2010, VS2012 and VS2013. Note that this requires all toolchains to be installed and available.'
2+
task :default => [ :vs2012 ]
3+
4+
# TODO: implement
5+
#desc 'Compile using VS2010 tools'
6+
#task :vs2010 do
7+
#end
8+
9+
desc 'Compile using VS2012 tools'
10+
task :vs2012 do
11+
sh '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\vsvars32.bat" && cd cef_binary_3.y.z_windows32 && build'
12+
sh '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\vsvars32.bat" && cd cef_binary_3.y.z_windows64 && build'
13+
14+
# TODO: change these if needed.
15+
FileUtils.mkdir_p 'vs2012/x86/Debug'
16+
FileUtils.mkdir_p 'vs2012/x86/Release'
17+
FileUtils.mkdir_p 'vs2012/x64/Debug'
18+
FileUtils.mkdir_p 'vs2012/x64/Release'
19+
sh 'cp cef_binary_3.y.z_windows32/out/Debug/lib/libcef_dll_wrapper.lib vs2012/x86/Debug'
20+
sh 'cp cef_binary_3.y.z_windows32/out/Release/lib/libcef_dll_wrapper.lib vs2012/x86/Release'
21+
sh 'cp cef_binary_3.y.z_windows64/out/Debug/lib/libcef_dll_wrapper.lib vs2012/x64/Debug'
22+
sh 'cp cef_binary_3.y.z_windows64/out/Release/lib/libcef_dll_wrapper.lib vs2012/x64/Release'
23+
24+
end
25+
26+
# TODO: implement
27+
#desc 'Compile using VS2013 tools'
28+
#task :vs2013 do
29+
#end

0 commit comments

Comments
 (0)