diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-12-24 13:53:07 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-12-24 14:17:26 +0100 |
| commit | 7f449b7d1bd94c7de1db09cf1cc7af674bd94f25 (patch) | |
| tree | edf24364e8730daa0cbf93841a9e5597db00cd86 | |
| parent | dda2955713196b56265bd23fd1c36d15a1eae6cc (diff) | |
Remove unnecessary distinction between 32-bit and 64-bit Windows.
| -rw-r--r-- | cscript | 2 | ||||
| -rw-r--r-- | src/wscript | 2 | ||||
| -rw-r--r-- | wscript | 10 |
3 files changed, 5 insertions, 9 deletions
@@ -4,7 +4,7 @@ def build(target, options): if target.platform == 'linux': cmd += ' --static' elif target.platform == 'windows': - cmd += f' --target-windows-{target.bits}' + cmd += f' --target-windows' target.append_with_space('LIBS', '-lboost_system') target.append_with_space('LIBS', '-lboost_filesystem') diff --git a/src/wscript b/src/wscript index 5773ad1..102a196 100644 --- a/src/wscript +++ b/src/wscript @@ -9,8 +9,8 @@ def configure(conf): else: major_minor = '0.0.0' conf.env.append_value('CXXFLAGS', ['-DPACKAGE_VERSION="%s"' % major_minor]) - if conf.options.target_windows_64 or conf.options.target_windows_32: conf.env.append_value('CXXFLAGS', ['-DASDCP_PLATFORM="win32"', '-DKM_WIN32', '-DWIN32_LEAN_AND_MEAN']) + if conf.options.target_windows: else: conf.env.append_value('CXXFLAGS', '-DASDCP_PLATFORM="linux"') @@ -20,8 +20,7 @@ else: def options(opt): opt.load('compiler_cxx') - opt.add_option('--target-windows-64', action='store_true', default=False, help='set up to do a cross-compile to Windows 64-bit') - opt.add_option('--target-windows-32', action='store_true', default=False, help='set up to do a cross-compile to Windows 32-bit') + opt.add_option('--target-windows', action='store_true', default=False, help='set up to do a cross-compile to Windows') opt.add_option('--enable-debug', action='store_true', default=False, help='build with debugging information and without optimisation') opt.add_option('--static', action='store_true', default=False, help='build statically') @@ -29,8 +28,7 @@ def configure(conf): conf.load('compiler_cxx') conf.env.append_value('CXXFLAGS', ['-Wall', '-Wextra', '-D_FILE_OFFSET_BITS=64', '-D__STDC_FORMAT_MACROS']) - conf.env.TARGET_WINDOWS_64 = conf.options.target_windows_64 - conf.env.TARGET_WINDOWS_32 = conf.options.target_windows_32 + conf.env.TARGET_WINDOWS = conf.options.target_windows conf.env.TARGET_OSX = sys.platform == 'darwin' conf.env.TARGET_LINUX = not conf.env.TARGET_WINDOWS_64 and not conf.env.TARGET_WINDOWS_32 and not conf.env.TARGET_OSX conf.env.STATIC = conf.options.static @@ -55,9 +53,7 @@ def configure(conf): conf.recurse('src') def build(bld): - if bld.env.TARGET_WINDOWS_64: - flags = '-DKM_WIN32 -DWIN32_LEAN_AND_MEAN -DKM_WIN32_UTF8' - elif bld.env.TARGET_WINDOWS_32: + if bld.env.TARGET_WINDOWS: flags = '-DKM_WIN32 -DWIN32_LEAN_AND_MEAN -DKM_WIN32_UTF8' else: flags = '' |
