~ubuntu-branches/ubuntu/wily/sflphone/wily

« back to all changes in this revision

Viewing changes to daemon/libs/pjproject-2.1.0/third_party/portaudio/build/scons/SConscript_common

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2015-01-07 14:51:16 UTC
  • mfrom: (4.3.5 sid)
  • Revision ID: package-import@ubuntu.com-20150107145116-yxnafinf4lrdvrmx
Tags: 1.4.1-0.1ubuntu1
* Merge with Debian, remaining changes:
 - Drop soprano, nepomuk build-dep
* Drop ubuntu patches, now upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
import os.path, sys
2
 
 
3
 
class ConfigurationError(Exception):
4
 
    def __init__(self, reason):
5
 
        Exception.__init__(self, "Configuration failed: %s" % reason)
6
 
 
7
 
env = Environment()
8
 
 
9
 
# sunos, aix, hpux, irix, sunos appear to be platforms known by SCons, assuming they're POSIX compliant
10
 
Posix = ("linux", "darwin", "sunos", "aix", "hpux", "irix", "sunos", "netbsd")
11
 
Windows = ("win32", "cygwin")
12
 
 
13
 
if env["PLATFORM"] == "posix":
14
 
    if sys.platform[:5] == "linux":
15
 
        Platform = "linux"
16
 
    elif sys.platform[:6] == "netbsd":
17
 
        Platform = "netbsd"
18
 
    else:
19
 
        raise ConfigurationError("Unknown platform %s" % sys.platform)
20
 
else:
21
 
    if not env["PLATFORM"] in ("win32", "cygwin") + Posix:
22
 
        raise ConfigurationError("Unknown platform %s" % env["PLATFORM"])
23
 
    Platform = env["PLATFORM"]
24
 
 
25
 
# Inspired by the versioning scheme followed by Qt, it seems sensible enough. There are three components: major, minor
26
 
# and micro. Major changes with each subtraction from the API (backward-incompatible, i.e. V19 vs. V18), minor changes
27
 
# with each addition to the API (backward-compatible), micro changes with each revision of the source code.
28
 
ApiVer = "2.0.0"
29
 
 
30
 
Export("Platform", "Posix", "ConfigurationError", "ApiVer")