Skip to content
Snippets Groups Projects
Commit 1166c3771d97 authored by afayolle's avatar afayolle
Browse files

updated to enable windows build with mingw32

parent c732fac8f916
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@
pyversions = ['2.4']
import os, subprocess
import os, subprocess, sys
from distutils.core import Extension
include_dirs = []
......@@ -55,8 +55,10 @@
GECODE_VERSION = encode_version(*gecode_version())
ext_modules = [Extension('rql_solve',
['gecode_solver.cpp'],
libraries=['gecodeint', 'gecodekernel', 'gecodesearch'],
extra_compile_args=['-DGE_VERSION=%s' % GECODE_VERSION],
if sys.platform != 'win32':
ext_modules = [Extension('rql_solve',
['gecode_solver.cpp'],
libraries=['gecodeint', 'gecodekernel',
'gecodesearch','gecodesupport'],
extra_compile_args=['-DGE_VERSION=%s' % GECODE_VERSION],
)
......@@ -62,2 +64,10 @@
)
]
]
else:
ext_modules = [ Extension('rql_solve',
['gecode_solver.cpp'],
libraries=['gecodeint', 'gecodekernel',
'gecodesearch','gecodesupport'],
extra_compile_args=['-DGE_VERSION=%s' % GECODE_VERSION],
extra_link_args=['-static-libgcc'],
]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment