diff options
Diffstat (limited to 'sb/windows.py')
-rw-r--r-- | sb/windows.py | 59 |
1 files changed, 42 insertions, 17 deletions
diff --git a/sb/windows.py b/sb/windows.py index d3f0972..50f2052 100644 --- a/sb/windows.py +++ b/sb/windows.py @@ -42,23 +42,48 @@ def load(): hosttype = 'i686' system = 'mingw32' defines = { - '_os': 'win32', - '_host': hosttype + '-pc-' + system, - '_host_vendor': 'microsoft', - '_host_os': 'win32', - '_host_cpu': hosttype, - '_host_alias': '%{nil}', - '_host_arch': hosttype, - '_usr': '/opt/local', - '_var': '/opt/local/var', - 'optflags': '-O2 -fasynchronous-unwind-tables', - '_smp_mflags': smp_mflags, - '__sh': 'sh', - '__id': 'id', - '_buildshell': '%{__sh}', - '___setup_shell': '%{__sh}', - # Build flags - 'optflags': '-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields' + '_os': ('none', 'none', 'win32'), + '_host': ('triplet', 'required', hosttype + '-pc-' + system), + '_host_vendor': ('none', 'none', 'microsoft'), + '_host_os': ('none', 'none', 'win32'), + '_host_cpu': ('none', 'none', hosttype), + '_host_alias': ('none', 'none', '%{nil}'), + '_host_arch': ('none', 'none', hosttype), + '_usr': ('dir', 'optional', '/opt/local'), + '_var': ('dir', 'optional', '/opt/local/var'), + '_smp_mflags': ('none', 'none', smp_mflags), + '__bash': ('exe', 'required', 'bash'), + '__bzip2': ('exe', 'required', 'bzip2'), + '__cat': ('exe', 'required', 'cat'), + '__cc': ('exe', 'required', 'gcc'), + '__chgrp': ('exe', 'required', 'chgrp'), + '__chmod': ('exe', 'required', 'chmod'), + '__chown': ('exe', 'required', 'chown'), + '__cp': ('exe', 'required', 'cp'), + '__cxx': ('exe', 'required', 'g++'), + '__grep': ('exe', 'required', 'grep'), + '__gzip': ('exe', 'required', 'gzip'), + '__id': ('exe', 'required', 'id'), + '__install': ('exe', 'required', 'install'), + '__install_info': ('exe', 'required', 'install-info'), + '__ld': ('exe', 'required', 'ld'), + '__ldconfig': ('exe', 'none', ''), + '__mkdir': ('exe', 'required', 'mkdir'), + '__mv': ('exe', 'required', 'mv'), + '__nm': ('exe', 'required', 'nm'), + '__nm': ('exe', 'required', 'nm'), + '__objcopy': ('exe', 'required', 'objcopy'), + '__objdump': ('exe', 'required', 'objdump'), + '__patch': ('exe', 'required', 'patch'), + '__rm': ('exe', 'required', 'rm'), + '__sed': ('exe', 'required', 'sed'), + '__sh': ('exe', 'required', 'sh'), + '__tar': ('exe', 'required', 'bsdtar'), + '__unzip': ('exe', 'required', 'unzip'), + '__xz': ('exe', 'required', 'xz'), + '_buildshell': ('exe', 'required', '%{__sh}'), + '___setup_shell': ('exe', 'required', '%{__sh}'), + 'optflags': ('none', 'none', '-O2 -pipe'), } return defines |