From b2c3ab8f3fbc3c30b097a978f6232c1e2d00d281 Mon Sep 17 00:00:00 2001 From: KOBAYASHI Shuji Date: Sun, 21 Mar 2021 16:43:04 +0900 Subject: Add configuration for MinGW cross compilation [ci skip] With this cross compiler configuration, all tests for full-core gembox on Windows on GitHub Actions were successful. --- build_config/cross-mingw.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 build_config/cross-mingw.rb (limited to 'build_config') diff --git a/build_config/cross-mingw.rb b/build_config/cross-mingw.rb new file mode 100644 index 000000000..63d267d6a --- /dev/null +++ b/build_config/cross-mingw.rb @@ -0,0 +1,14 @@ +# +# Ubuntu 20.04 requires at least `gcc-mingw-w64-x86-64` package as a +# cross compiler. +# + +MRuby::CrossBuild.new("cross-mingw") do |conf| + conf.toolchain :gcc + conf.host_target = "x86_64-w64-mingw32" # required for `for_windows?` used by `mruby-socket` gem + conf.cc.command = "#{conf.host_target}-gcc-posix" + conf.linker.command = conf.cc.command + conf.archiver.command = "#{conf.host_target}-gcc-ar" + conf.exts.executable = ".exe" + conf.gembox "default" +end -- cgit v1.2.3