|
| 1 | +platform "windows-2019-x64" do |plat| |
| 2 | + plat.vmpooler_template "win-2019-x86_64" |
| 3 | + plat.servicetype 'windows' |
| 4 | + |
| 5 | + # You must install Wix Toolset 3.14.1 manually before beginning the build. |
| 6 | + # https://github.com/wixtoolset/wix3/releases/download/wix3141rtm/wix314.exe |
| 7 | + # |
| 8 | + # Install ruby, ruby-devel, gcc-core, make, git, and libyaml-devel in Cygwin on the Windows image. |
| 9 | + # Run setup.bat found in the root of this repo. These are needed in order to successfully |
| 10 | + # do a bundle install. They are included here just in case they get removed somehow. |
| 11 | + # Make sure "setup-x86_64.exe" (Cygwin's installer) is at the root of C:/ |
| 12 | + packages = [ |
| 13 | + 'autoconf', |
| 14 | + 'cmake', |
| 15 | + 'gcc-core', |
| 16 | + 'gcc-g++', |
| 17 | + 'gettext', |
| 18 | + 'gettext-devel', |
| 19 | + 'git', |
| 20 | + 'libyaml-devel', |
| 21 | + 'make', |
| 22 | + 'mingw64-x86_64-gcc-core', |
| 23 | + 'mingw64-x86_64-gcc-g++', |
| 24 | + 'mingw64-x86_64-gdbm', |
| 25 | + 'mingw64-x86_64-libffi', |
| 26 | + 'mingw64-x86_64-readline', |
| 27 | + 'mingw64-x86_64-zlib', |
| 28 | + 'ruby', |
| 29 | + 'ruby-devel', |
| 30 | + 'patch', |
| 31 | + ] |
| 32 | + |
| 33 | + plat.provision_with("C:/setup-x86_64.exe -q -P #{packages.join(',')}") |
| 34 | + plat.install_build_dependencies_with "C:/setup-x86_64.exe -q -P" |
| 35 | + |
| 36 | + plat.make "/usr/bin/make" |
| 37 | + plat.patch "TMP=/var/tmp /usr/bin/patch.exe --binary" |
| 38 | + |
| 39 | + plat.platform_triple "x86_64-w64-mingw32" |
| 40 | + |
| 41 | + # Putting these here as a reminder where we use them elsewhere. DO NOT |
| 42 | + # use the full path, just the name of the executable without the extension. |
| 43 | + # Otherwise, autoconf gets confused. |
| 44 | + plat.environment 'CC', "x86_64-w64-mingw32-gcc" |
| 45 | + plat.environment 'CXX', "x86_64-w64-mingw32-g++" |
| 46 | + |
| 47 | + plat.package_type "msi" |
| 48 | + plat.output_dir "windows" |
| 49 | +end |
0 commit comments