diff options
author | Andoni Morales Alastruey <ylatuya@gmail.com> | 2012-03-12 13:46:17 +0100 |
---|---|---|
committer | Andoni Morales Alastruey <ylatuya@gmail.com> | 2012-03-20 17:19:17 +0100 |
commit | 7f68155a020ccfdabe19e44478274afb289c6981 (patch) | |
tree | e8263073c9ef016a08405089acde2b7963afd708 /config/windows.config | |
parent | c4a36464e295ae04b064baae58b449eff3bcd9ae (diff) |
Fix config file for windows platforms
Diffstat (limited to 'config/windows.config')
-rw-r--r-- | config/windows.config | 16 |
1 files changed, 14 insertions, 2 deletions
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) |