+#! /usr/bin/python
+#
# TODO
# - plugins/puredata: add pd compilation
# - java: add swig compilation
help='compile without lash support')
opt.add_option('--enable-java', action='store_true', default=False,
help='compile with java support')
+ opt.add_option('--with-target-platform', type='string',
+ help='set target platform for cross-compilation', dest='target_platform')
opt.tool_options('compiler_cc')
opt.tool_options('compiler_cxx')
opt.tool_options('gnu_dirs')
conf.check_tool('gnu_dirs') # helpful for autotools transition and .pc generation
conf.check_tool('misc') # needed for subst
+ if Options.options.target_platform:
+ Options.platform = Options.options.target_platform
+
+ if Options.platform == 'win32':
+ conf.env['shlib_PATTERN'] = 'lib%s.dll'
+
# check for required headers
conf.check(header_name='stdlib.h')
conf.check(header_name='stdio.h')