-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxmingw.py
39 lines (27 loc) · 1.34 KB
/
xmingw.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from sysconf.common import *
obj_suffix = '.o'
exe_suffix = '.exe'
lib_prefix = ''
lib_suffix = '.dll'
cpp = [ 'i586-mingw32msvc-g++', '-c', '$flags$', '$gtk$', '$path$', '$src$', '-o', '$obj$' ]
cpp_flags = [ '-Wall', '-march=i686', '-fno-strict-aliasing', '-DGL_GLEXT_PROTOTYPES', '-mno-cygwin', '-mms-bitfields' ]
windres = [ 'i586-mingw32msvc-windres' ]
ld_use_shell = True
ld = [ 'i586-mingw32msvc-g++', '--no-undefined', '--enable-runtime-pseudo-reloc', '$flags$', '$obj$', '$path$', '$gsl$', '$gtk$', '$mrtrix$', '-o', '$bin$' ]
ld_flags = [ '-mno-cygwin', '-Wl,-subsystem,windows' ]
ld_flags_lib_prefix = '-l'
ld_lib = [ 'i586-mingw32msvc-g++', '--no-undefined', '--enable-runtime-pseudo-reloc', '-shared', '$flags$', '$obj$', '-o', '$lib$' ]
ld_lib_flags = [ '-mno-cygwin' ]
cpp_flags_debug = cpp_flags + [ '-g' ]
ld_flags_debug = ld_flags + [ '-g' ]
ld_lib_flags_debug = ld_lib_flags + [ '-g' ]
cpp_flags_profile = [ '-pg' ] + cpp_flags_debug
ld_flags_profile = ld_flags_debug + [ '-pg' ]
ld_lib_flags_profile = ld_lib_flags_debug + [ '-pg' ]
cpp_flags += [ '-O3' ]
cpp_flags_release = cpp_flags + [ '-DNDEBUG' ]
cpp_flags_gsl = [ '-I/target/include', '-DGSL_DLL' ]
ld_flags_gsl = [ '-L/target/lib -lgsl', '-lgslcblas' ]
ld_flags_gl = [ '-lopengl32', '-lglu32' ]
pkgconfig = [ 'pkg-config' ]
pkgconfig_env = { 'PKG_CONFIG_PATH': '/target/lib/pkgconfig' }