diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-07-24 21:20:52 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-07-24 21:20:52 +0100 |
| commit | 6acc7a2579c7842d8031aee29fb5fa1e015747fa (patch) | |
| tree | 7fe27ffae9c25013f6fb120e69c22d1f9d390e50 | |
| parent | 34f650af40fb03baaac5fe06016b9645265c8124 (diff) | |
Fix posix build.
| -rw-r--r-- | wscript | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -8,6 +8,7 @@ VERSION = '0.30pre' def options(opt): opt.load('compiler_cxx') opt.load('winres') + opt.add_option('--debug-hash', action='store_true', default = False, help = 'print hashes of data at various points') opt.add_option('--enable-debug', action='store_true', default = False, help = 'build with debugging information and without optimisation') opt.add_option('--disable-gui', action='store_true', default = False, help = 'disable building of GUI tools') @@ -17,7 +18,8 @@ def options(opt): def configure(conf): conf.load('compiler_cxx') - conf.load('winres') + if conf.options.target_windows: + conf.load('winres') conf.env.append_value('CXXFLAGS', ['-D__STDC_CONSTANT_MACROS', '-msse', '-mfpmath=sse', '-ffast-math', '-fno-strict-aliasing', '-Wall', '-Wno-attributes']) conf.env.append_value('CXXFLAGS', ['-DDVDOMATIC_VERSION="%s"' % VERSION]) |
