~ubuntu-branches/ubuntu/vivid/mpv/vivid

« back to all changes in this revision

Viewing changes to waftools/detections/devices.py

  • Committer: Package Import Robot
  • Author(s): Alessandro Ghedini
  • Date: 2013-12-29 20:04:26 UTC
  • mfrom: (1.1.9)
  • Revision ID: package-import@ubuntu.com-20131229200426-w0qsj8clnui1pxaw
Tags: 0.3.0-1
* New upstream release
  - Fix --vf=expand example in manpage (Closes: #732271)
* Add 03_waf.patch to provide uncompressed waf scripts and modules
* Switch to waf build script
* Drop libmng-dev Build-Depends (not used anymore)
* Bump Standards-Version to 3.9.5 (no changes needed)
* Enable support for dvdnav
* Install more docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
__cdrom_devices_map__ = {
 
2
    'win32':   'D:',
 
3
    'cygwin':  'D:',
 
4
    'darwin':  '/dev/disk1',
 
5
    'freebsd': '/dev/cd0',
 
6
    'openbsd': '/dev/rcd0r',
 
7
    'default': '/dev/cdrom'
 
8
}
 
9
 
 
10
__dvd_devices_map__ = {
 
11
    'win32':   'D:',
 
12
    'cygwin':  'D:',
 
13
    'darwin':  '/dev/rdiskN',
 
14
    'freebsd': '/dev/cd0',
 
15
    'openbsd': '/dev/rcd0r',
 
16
    'default': '/dev/dvd'
 
17
}
 
18
 
 
19
def __default_cdrom_device__(ctx):
 
20
    default = __cdrom_devices_map__['default']
 
21
    return __cdrom_devices_map__.get(ctx.env.DEST_OS, default)
 
22
 
 
23
def __default_dvd_device__(ctx):
 
24
    default = __dvd_devices_map__['default']
 
25
    return __dvd_devices_map__.get(ctx.env.DEST_OS, default)
 
26
 
 
27
def configure(ctx):
 
28
    ctx.define('DEFAULT_DVD_DEVICE', __default_dvd_device__(ctx))
 
29
    ctx.define('DEFAULT_CDROM_DEVICE', __default_cdrom_device__(ctx))