From 7f68155a020ccfdabe19e44478274afb289c6981 Mon Sep 17 00:00:00 2001 From: Andoni Morales Alastruey Date: Mon, 12 Mar 2012 13:46:17 +0100 Subject: Fix config file for windows platforms --- config/windows.config | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'config/windows.config') diff --git a/config/windows.config b/config/windows.config index 328be10..d7d8a87 100644 --- a/config/windows.config +++ b/config/windows.config @@ -4,19 +4,31 @@ # PLEASE, DO NOT EDIT THIS FILE import os -from cerbero.config import Architecture +from cerbero.config import Architecture, Platform + +if platform == Platform.WINDOWS: + if target_arch == Architecture.X86: + build = 'i686-w64-mingw32' + if target_arch == Architecture.X86_64: + build = 'x86_64-w64-mingw32' if target_arch == Architecture.X86: + buildname='windows_x86' host = 'i686-w64-mingw32' _path = 'w32' _mingw_defines = "-DMINGW32 -D__MINGW32__" else: + buildname='windows_x86_64' host = 'x86_64-w64-mingw32' _path = 'w64' _mingw_defines = "-DMINGW64 -D__MINGW64__" +prefix=prefix or os.path.expanduser('~/cerbero/dist/%s' % buildname) +sources=sources or os.path.expanduser('~/cerbero/sources/%s' % buildname) +cache_file=buildname + if not toolchain_prefix: - toolchain_prefix = os.path.join(prefix, '..', 'mingw', _path) + toolchain_prefix = os.path.join(prefix, '..', '..', 'mingw', _path) def cmd(command): return '%s-%s' % (host, command) -- cgit v1.2.3