annotate src/portaudio/build/scons/SConscript_common @ 89:8a15ff55d9af
Add bzip2, zlib, liblo, portaudio sources
author |
Chris Cannam <cannam@all-day-breakfast.com> |
date |
Wed, 20 Mar 2013 13:59:52 +0000 |
parents |
|
children |
|
rev |
line source |
cannam@89
|
1 import os.path, sys
|
cannam@89
|
2
|
cannam@89
|
3 class ConfigurationError(Exception):
|
cannam@89
|
4 def __init__(self, reason):
|
cannam@89
|
5 Exception.__init__(self, "Configuration failed: %s" % reason)
|
cannam@89
|
6
|
cannam@89
|
7 env = Environment()
|
cannam@89
|
8
|
cannam@89
|
9 # sunos, aix, hpux, irix, sunos appear to be platforms known by SCons, assuming they're POSIX compliant
|
cannam@89
|
10 Posix = ("linux", "darwin", "sunos", "aix", "hpux", "irix", "sunos", "netbsd")
|
cannam@89
|
11 Windows = ("win32", "cygwin")
|
cannam@89
|
12
|
cannam@89
|
13 if env["PLATFORM"] == "posix":
|
cannam@89
|
14 if sys.platform[:5] == "linux":
|
cannam@89
|
15 Platform = "linux"
|
cannam@89
|
16 elif sys.platform[:6] == "netbsd":
|
cannam@89
|
17 Platform = "netbsd"
|
cannam@89
|
18 else:
|
cannam@89
|
19 raise ConfigurationError("Unknown platform %s" % sys.platform)
|
cannam@89
|
20 else:
|
cannam@89
|
21 if not env["PLATFORM"] in ("win32", "cygwin") + Posix:
|
cannam@89
|
22 raise ConfigurationError("Unknown platform %s" % env["PLATFORM"])
|
cannam@89
|
23 Platform = env["PLATFORM"]
|
cannam@89
|
24
|
cannam@89
|
25 # Inspired by the versioning scheme followed by Qt, it seems sensible enough. There are three components: major, minor
|
cannam@89
|
26 # and micro. Major changes with each subtraction from the API (backward-incompatible, i.e. V19 vs. V18), minor changes
|
cannam@89
|
27 # with each addition to the API (backward-compatible), micro changes with each revision of the source code.
|
cannam@89
|
28 ApiVer = "2.0.0"
|
cannam@89
|
29
|
cannam@89
|
30 Export("Platform", "Posix", "ConfigurationError", "ApiVer")
|