summaryrefslogtreecommitdiff
path: root/ext/-test-/win32/console/extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/-test-/win32/console/extconf.rb')
-rw-r--r--ext/-test-/win32/console/extconf.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/-test-/win32/console/extconf.rb b/ext/-test-/win32/console/extconf.rb
new file mode 100644
index 0000000000..4de9fa7e4f
--- /dev/null
+++ b/ext/-test-/win32/console/extconf.rb
@@ -0,0 +1,8 @@
+if $mingw or $mswin
+ $srcs = Dir[File.join($srcdir, "*.{#{SRC_EXT.join(%q{,})}}")]
+ inits = $srcs.map {|s| File.basename(s, ".*")}
+ inits.delete("init")
+ inits.map! {|s|"X(#{s})"}
+ $defs << "-DTEST_INIT_FUNCS(X)=\"#{inits.join(' ')}\""
+ create_makefile("-test-/win32/console")
+end