summaryrefslogtreecommitdiff
path: root/recipes/toolchain/mingw-w64.recipe
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/toolchain/mingw-w64.recipe')
-rw-r--r--recipes/toolchain/mingw-w64.recipe97
1 files changed, 97 insertions, 0 deletions
diff --git a/recipes/toolchain/mingw-w64.recipe b/recipes/toolchain/mingw-w64.recipe
new file mode 100644
index 0000000..1001908
--- /dev/null
+++ b/recipes/toolchain/mingw-w64.recipe
@@ -0,0 +1,97 @@
+class Recipe(recipe.Recipe):
+ name = 'mingw-w64'
+ version = 'v2.0.8'
+ licenses = [License.LGPL]
+ configure_options = '--without-headers '\
+ '--with-sysroot=$CERBERO_PREFIX '
+ add_host_build_target = False
+ deps = ['mingw-w64-headers', 'binutils', 'gcc-core']
+
+ def prepare(self):
+ if self.config.target_arch == Architecture.X86:
+ host = 'i686-w64-mingw32'
+ else:
+ host = 'x86_64-w64-mingw32'
+ self.configure_options += ' --host=%s' % host
+ files = ['%s/lib/%s' % (host, x) for x in self.files_crt]
+ files.extend(['%s/lib/%s' % ('mingw', x) for x in self.files_crt])
+ self.files_crt = files
+
+ files_gendef = ['bin/gendef.exe']
+ files_crt = [
+ 'CRT_fp10.o', 'CRT_fp8.o', 'CRT_glob.o', 'CRT_noglob.o', 'binmode.o', 'crt1.o',
+ 'crt1u.o', 'crt2.o', 'crt2u.o', 'crtbegin.o', 'crtend.o', 'dllcrt1.o',
+ 'dllcrt2.o', 'gcrt0.o', 'gcrt1.o', 'gcrt2.o', 'libaclui.a', 'libadvapi32.a',
+ 'libapcups.a', 'libauthz.a', 'libavicap32.a', 'libavifil32.a', 'libbcrypt.a',
+ 'libbootvid.a', 'libbthprops.a', 'libcap.a', 'libcfgmgr32.a', 'libclasspnp.a',
+ 'libclfsw32.a', 'libclusapi.a', 'libcmutil.a', 'libcomctl32.a', 'libcomdlg32.a',
+ 'libconnect.a', 'libcredui.a', 'libcrtdll.a', 'libcrypt32.a', 'libcryptnet.a',
+ 'libcryptsp.a', 'libcryptxml.a', 'libcscapi.a', 'libctl3d32.a', 'libd2d1.a',
+ 'libd3d8.a', 'libd3d9.a', 'libd3dcompiler.a', 'libd3dcompiler_33.a',
+ 'libd3dcompiler_34.a', 'libd3dcompiler_35.a', 'libd3dcompiler_36.a',
+ 'libd3dcompiler_37.a', 'libd3dcompiler_38.a', 'libd3dcompiler_39.a',
+ 'libd3dcompiler_40.a', 'libd3dcompiler_41.a', 'libd3dcompiler_42.a',
+ 'libd3dcompiler_43.a', 'libd3dcsxd.a', 'libd3dcsxd_43.a', 'libd3dim.a',
+ 'libd3drm.a', 'libd3dx10.a', 'libd3dx10_33.a', 'libd3dx10_34.a',
+ 'libd3dx10_35.a', 'libd3dx10_36.a', 'libd3dx10_37.a', 'libd3dx10_38.a',
+ 'libd3dx10_39.a', 'libd3dx10_40.a', 'libd3dx10_41.a', 'libd3dx10_42.a',
+ 'libd3dx10_43.a', 'libd3dx11.a', 'libd3dx11_42.a', 'libd3dx11_43.a',
+ 'libd3dx8d.a', 'libd3dx9.a', 'libd3dx9_24.a', 'libd3dx9_25.a', 'libd3dx9_26.a',
+ 'libd3dx9_27.a', 'libd3dx9_28.a', 'libd3dx9_29.a', 'libd3dx9_30.a',
+ 'libd3dx9_31.a', 'libd3dx9_32.a', 'libd3dx9_33.a', 'libd3dx9_34.a',
+ 'libd3dx9_35.a', 'libd3dx9_36.a', 'libd3dx9_37.a', 'libd3dx9_38.a',
+ 'libd3dx9_39.a', 'libd3dx9_40.a', 'libd3dx9_41.a', 'libd3dx9_42.a',
+ 'libd3dx9_43.a', 'libd3dx9d.a', 'libd3dxof.a', 'libdavclnt.a', 'libdbgeng.a',
+ 'libdbghelp.a', 'libddraw.a', 'libdelayimp.a', 'libdhcpcsvc.a',
+ 'libdhcpcsvc6.a', 'libdhcpsapi.a', 'libdinput.a', 'libdinput8.a', 'libdlcapi.a',
+ 'libdmoguids.a', 'libdnsapi.a', 'libdplayx.a', 'libdpnaddr.a', 'libdpnet.a',
+ 'libdpnlobby.a', 'libdpvoice.a', 'libdsetup.a', 'libdsound.a', 'libdssec.a',
+ 'libdwmapi.a', 'libdwrite.a', 'libdxapi.a', 'libdxerr8.a', 'libdxerr9.a',
+ 'libdxgi.a', 'libdxguid.a', 'libdxva2.a', 'libeapp3hst.a', 'libeappcfg.a',
+ 'libeappgnui.a', 'libeapphost.a', 'libeappprxy.a', 'libesent.a', 'libevr.a',
+ 'libfaultrep.a', 'libfwpuclnt.a', 'libgdi32.a', 'libgdiplus.a', 'libglaux.a',
+ 'libglu32.a', 'libglut.a', 'libglut32.a', 'libgmon.a', 'libgpapi.a',
+ 'libgpedit.a', 'libgpprefcl.a', 'libgpscript.a', 'libgptext.a', 'libhal.a',
+ 'libhid.a', 'libhidclass.a', 'libhidparse.a', 'libhttpapi.a', 'libicmui.a',
+ 'libigmpagnt.a', 'libimagehlp.a', 'libimm32.a', 'libiphlpapi.a',
+ 'libiscsidsc.a', 'libkernel32.a', 'libks.a', 'libksproxy.a', 'libksuser.a',
+ 'libktmw32.a', 'liblargeint.a', 'liblz32.a', 'libm.a', 'libmapi32.a',
+ 'libmcd.a', 'libmf.a', 'libmfcuia32.a', 'libmfplat.a', 'libmgmtapi.a',
+ 'libmingw32.a', 'libmingwex.a', 'libmingwthrd.a', 'libmoldname.a', 'libmpr.a',
+ 'libmprapi.a', 'libmqrt.a', 'libmsacm32.a', 'libmscms.a', 'libmsctfmonitor.a',
+ 'libmsdmo.a', 'libmsdrm.a', 'libmshtml.a', 'libmshtmled.a', 'libmsi.a',
+ 'libmsimg32.a', 'libmstask.a', 'libmsvcp60.a', 'libmsvcr100.a', 'libmsvcr80.a',
+ 'libmsvcr90.a', 'libmsvcr90d.a', 'libmsvcrt.a', 'libmsvfw32.a', 'libmswsock.a',
+ 'libncrypt.a', 'libnddeapi.a', 'libndfapi.a', 'libndis.a', 'libnetapi32.a',
+ 'libnewdev.a', 'libnormaliz.a', 'libntdll.a', 'libntdsapi.a', 'libntmsapi.a',
+ 'libntoskrnl.a', 'libodbc32.a', 'libodbccp32.a', 'libole32.a', 'liboleacc.a',
+ 'liboleaut32.a', 'libolecli32.a', 'liboledlg.a', 'libolepro32.a',
+ 'libolesvr32.a', 'libopengl32.a', 'libp2p.a', 'libp2pcollab.a', 'libp2pgraph.a',
+ 'libpcwum.a', 'libpdh.a', 'libpdhui.a', 'libpenwin32.a', 'libpkpd32.a',
+ 'libpowrprof.a', 'libpsapi.a', 'libquartz.a', 'libqutil.a', 'libqwave.a',
+ 'librapi.a', 'librasapi32.a', 'librasdlg.a', 'libresutil.a', 'librpcdce4.a',
+ 'librpcdiag.a', 'librpchttp.a', 'librpcns4.a', 'librpcrt4.a', 'librstrmgr.a',
+ 'librtm.a', 'librtutils.a', 'libscrnsave.a', 'libscrnsavw.a', 'libscsiport.a',
+ 'libsecur32.a', 'libsetupapi.a', 'libshell32.a', 'libshfolder.a',
+ 'libshlwapi.a', 'libslc.a', 'libslcext.a', 'libslwga.a', 'libsnmpapi.a',
+ 'libspoolss.a', 'libsspicli.a', 'libstrmiids.a', 'libsvrapi.a', 'libsxs.a',
+ 'libtapi32.a', 'libtbs.a', 'libtdh.a', 'libtdi.a', 'libtxfw32.a', 'liburl.a',
+ 'libusbcamd.a', 'libusbcamd2.a', 'libusbd.a', 'libusbport.a', 'libuser32.a',
+ 'libuserenv.a', 'libusp10.a', 'libuuid.a', 'libuxtheme.a', 'libvdmdbg.a',
+ 'libversion.a', 'libvfw32.a', 'libvideoprt.a', 'libvirtdisk.a', 'libvss_ps.a',
+ 'libvssapi.a', 'libvsstrace.a', 'libwdsclient.a', 'libwdsclientapi.a',
+ 'libwdscore.a', 'libwdscsl.a', 'libwdsimage.a', 'libwdstptc.a',
+ 'libwdsupgcompl.a', 'libwdsutil.a', 'libwecapi.a', 'libwer.a', 'libwevtapi.a',
+ 'libwevtfwd.a', 'libwin32k.a', 'libwin32spl.a', 'libwininet.a', 'libwinmm.a',
+ 'libwinscard.a', 'libwinspool.a', 'libwinstrm.a', 'libwinusb.a', 'libwlanapi.a',
+ 'libwlanui.a', 'libwlanutil.a', 'libwldap32.a', 'libwow32.a', 'libws2_32.a',
+ 'libwsdapi.a', 'libwsnmp32.a', 'libwsock32.a', 'libwst.a', 'libwtsapi32.a',
+ 'libx3daudio.a', 'libx3daudio1_2.a', 'libx3daudio1_3.a', 'libx3daudio1_4.a',
+ 'libx3daudio1_5.a', 'libx3daudio1_6.a', 'libx3daudio1_7.a', 'libx3daudiod1_7.a',
+ 'libxapofx.a', 'libxapofx1_0.a', 'libxapofx1_1.a', 'libxapofx1_2.a',
+ 'libxapofx1_3.a', 'libxapofx1_4.a', 'libxapofx1_5.a', 'libxapofxd1_5.a',
+ 'libxaudio.a', 'libxaudio2_0.a', 'libxaudio2_1.a', 'libxaudio2_2.a',
+ 'libxaudio2_3.a', 'libxaudio2_4.a', 'libxaudio2_5.a', 'libxaudio2_6.a',
+ 'libxaudio2_7.a', 'libxaudiod.a', 'libxaudiod2_7.a', 'libxinput.a',
+ 'libxinput1_1.a', 'libxinput1_2.a', 'libxinput1_3.a', 'txtmode.o',
+ ]