summaryrefslogtreecommitdiff
path: root/features/step_definitions
diff options
context:
space:
mode:
authorLuis Lavena <luislavena@gmail.com>2009-04-25 12:02:17 -0300
committerLuis Lavena <luislavena@gmail.com>2009-04-25 12:02:17 -0300
commit166800107d24fa41474c1dc0a93df238f16563df (patch)
tree40cb32fa22e9b8ec74d8abb6a336b446d4dd00b8 /features/step_definitions
parent622336ffab97769a99627f468208b4e79d4f1d7f (diff)
downloadrake-compiler-166800107d24fa41474c1dc0a93df238f16563df.tar.gz
Allow generation of multiple gems for Windows
- This allows build gems for both VC6 and MinGW builts of Ruby. Rake::ExtensionTask.new('my_extension', GEM_SPEC) do |ext| ext.cross_compile = true ext.cross_platform = ['i386-mswin32', 'i386-mingw32'] end This is highly experimental and exposed the need to refactor ExtensionTask internals. Right now it fires the compilation process twice, which is suboptimal.
Diffstat (limited to 'features/step_definitions')
-rw-r--r--features/step_definitions/compilation.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/features/step_definitions/compilation.rb b/features/step_definitions/compilation.rb
index 2056ad9..35e72dd 100644
--- a/features/step_definitions/compilation.rb
+++ b/features/step_definitions/compilation.rb
@@ -8,6 +8,11 @@ Given /^a extension cross-compilable '(.*)'$/ do |extension_name|
generate_source_code_for extension_name
end
+Given /^a extension '(.*)' multi cross\-compilable$/ do |extension_name|
+ generate_multi_cross_compile_extension_task_for extension_name
+ generate_source_code_for extension_name
+end
+
Given /^a extension '(.*)' with forced platform '(.*)'$/ do |extension_name, forced_platform|
generate_extension_task_for extension_name, forced_platform
generate_source_code_for extension_name
@@ -24,6 +29,12 @@ Given /^that my gem source is all in place$/ do
Given "a extension cross-compilable 'extension_one'"
end
+Given /^that my gem source is all in place to target two platforms$/ do
+ Given "a safe project directory"
+ Given "a gem named 'gem_abc'"
+ Given "a extension 'extension_one' multi cross-compilable"
+end
+
Given /^not changed any file since$/ do
# don't do anything, that's the purpose of this step!
end