parameters: (conf)
docstring: Define fortran flags for the windows platforms
docstring_summary: Define fortran flags for the windows platforms
docstring_tokens: Define fortran flags for the windows platforms
function: def fortran_modifier_win32(conf):
  	"""Define fortran flags for the windows platforms"""
  	v = conf.env
  	v['fcprogram_PATTERN'] = v['fcprogram_test_PATTERN']  = '%s.exe'
  
  	v['fcshlib_PATTERN']   = '%s.dll'
  	v['implib_PATTERN']    = 'lib%s.dll.a'
  	v['IMPLIB_ST']         = '-Wl,--out-implib,%s'
  
  	v['FCFLAGS_fcshlib']   = []
  
  	v.append_value('FCFLAGS_fcshlib', ['-DDLL_EXPORT']) # TODO adding nonstandard defines like this DLL_EXPORT is not a good idea
  
  	# Auto-import is enabled by default even without this option,
  	# but enabling it explicitly has the nice effect of suppressing the rather boring, debug-level messages
  	# that the linker emits otherwise.
  	v.append_value('LINKFLAGS', ['-Wl,--enable-auto-import'])
function_tokens: def fortran_modifier_win32 ( conf ) : v = conf . env v [ 'fcprogram_PATTERN' ] = v [ 'fcprogram_test_PATTERN' ] = '%s.exe' v [ 'fcshlib_PATTERN' ] = '%s.dll' v [ 'implib_PATTERN' ] = 'lib%s.dll.a' v [ 'IMPLIB_ST' ] = '-Wl,--out-implib,%s' v [ 'FCFLAGS_fcshlib' ] = [ ] v . append_value ( 'FCFLAGS_fcshlib' , [ '-DDLL_EXPORT' ] ) # TODO adding nonstandard defines like this DLL_EXPORT is not a good idea # Auto-import is enabled by default even without this option, # but enabling it explicitly has the nice effect of suppressing the rather boring, debug-level messages # that the linker emits otherwise. v . append_value ( 'LINKFLAGS' , [ '-Wl,--enable-auto-import' ] )