Changeset 5c411dc


Ignore:
Timestamp:
Sep 24, 2009, 5:28:55 PM (11 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
cd7d733
Parents:
26ac356
Message:

wscript: add --with-target-platform option for cross-compiling, change name from aubio-2.dll to libaubio-2.dll

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    r26ac356 r5c411dc  
     1#! /usr/bin/python
     2#
    13# TODO
    24#  - plugins/puredata: add pd compilation
     
    2931  opt.add_option('--enable-java', action='store_true', default=False,
    3032      help='compile with java support')
     33  opt.add_option('--with-target-platform', type='string',
     34      help='set target platform for cross-compilation', dest='target_platform')
    3135  opt.tool_options('compiler_cc')
    3236  opt.tool_options('compiler_cxx')
     
    4044  conf.check_tool('gnu_dirs') # helpful for autotools transition and .pc generation
    4145  conf.check_tool('misc') # needed for subst
     46
     47  if Options.options.target_platform:
     48    Options.platform = Options.options.target_platform
     49
     50  if Options.platform == 'win32':
     51    conf.env['shlib_PATTERN'] = 'lib%s.dll'
    4252
    4353  # check for required headers
Note: See TracChangeset for help on using the changeset viewer.