summaryrefslogtreecommitdiff
blob: 4d71fa3e8d1cb0ad40830fb7b76ff12008d1e18e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
--- SConstruct	2009-12-08 19:08:47.000000000 +0100
+++ SConstruct	2009-12-23 15:04:40.000000000 +0100
@@ -35,35 +35,35 @@
 if not os.path.isdir( "cache" ):
 	os.makedirs( "cache" )
 
-opts = Options( "cache/options.cache" )
+opts = Variables( "cache/options.cache" )
 
-opts.AddOptions(
-	BoolOption( "DEBUG", """\
+opts.AddVariables(
+	BoolVariable( "DEBUG", """\
 Toggle debug-build. DEBUG means \"-g -Wall\" and more, otherwise we will use
   \"-O2\" to optimize.""", False ),
-	BoolOption( "PROFILE", "Build with symbols and other profiling info", False ),
-	PathOption( "PREFIX", "The prefix where ffado will be installed to.", "/usr/local", PathOption.PathAccept ),
-	PathOption( "BINDIR", "Overwrite the directory where apps are installed to.", "$PREFIX/bin", PathOption.PathAccept ),
-	PathOption( "LIBDIR", "Overwrite the directory where libs are installed to.", "$PREFIX/lib", PathOption.PathAccept ),
-	PathOption( "INCLUDEDIR", "Overwrite the directory where headers are installed to.", "$PREFIX/include", PathOption.PathAccept ),
-	PathOption( "SHAREDIR", "Overwrite the directory where misc shared files are installed to.", "$PREFIX/share/libffado", PathOption.PathAccept ),
-	BoolOption( "ENABLE_BEBOB", "Enable/Disable the bebob part.", True ),
-	BoolOption( "ENABLE_FIREWORKS", "Enable/Disable the ECHO Audio FireWorks AV/C part.", True ),
-	BoolOption( "ENABLE_MOTU", "Enable/Disable the MOTU part.", True ),
-	BoolOption( "ENABLE_GENERICAVC", """\
+	BoolVariable( "PROFILE", "Build with symbols and other profiling info", False ),
+	PathVariable( "PREFIX", "The prefix where ffado will be installed to.", "/usr/local", PathVariable.PathAccept ),
+	PathVariable( "BINDIR", "Overwrite the directory where apps are installed to.", "$PREFIX/bin", PathVariable.PathAccept ),
+	PathVariable( "LIBDIR", "Overwrite the directory where libs are installed to.", "$PREFIX/lib", PathVariable.PathAccept ),
+	PathVariable( "INCLUDEDIR", "Overwrite the directory where headers are installed to.", "$PREFIX/include", PathVariable.PathAccept ),
+	PathVariable( "SHAREDIR", "Overwrite the directory where misc shared files are installed to.", "$PREFIX/share/libffado", PathVariable.PathAccept ),
+	BoolVariable( "ENABLE_BEBOB", "Enable/Disable the bebob part.", True ),
+	BoolVariable( "ENABLE_FIREWORKS", "Enable/Disable the ECHO Audio FireWorks AV/C part.", True ),
+	BoolVariable( "ENABLE_MOTU", "Enable/Disable the MOTU part.", True ),
+	BoolVariable( "ENABLE_GENERICAVC", """\
 Enable/Disable the the generic avc part (mainly used by apple).
   Note that disabling this option might be overwritten by other devices needing
   this code.""", False ),
-	BoolOption( "ENABLE_ALL", "Enable/Disable support for all devices.", False ),
-	BoolOption( "SERIALIZE_USE_EXPAT", "Use libexpat for XML serialization.", False ),
-	BoolOption( "BUILD_TESTS", """\
+	BoolVariable( "ENABLE_ALL", "Enable/Disable support for all devices.", False ),
+	BoolVariable( "SERIALIZE_USE_EXPAT", "Use libexpat for XML serialization.", False ),
+	BoolVariable( "BUILD_TESTS", """\
 Build the tests in their directory. As some contain quite some functionality,
   this is on by default.
   If you just want to use ffado with jack without the tools, you can disable this.\
 """, True ),
-    BoolOption( "BUILD_STATIC_TOOLS", "Build a statically linked version of the FFADO tools.", False ),
-    EnumOption('DIST_TARGET', 'Build target for cross compiling packagers', 'auto', allowed_values=('auto', 'i386', 'i686', 'x86_64', 'powerpc', 'powerpc64', 'none' ), ignorecase=2),
-    BoolOption( "ENABLE_OPTIMIZATIONS", "Enable optimizations and the use of processor specific extentions (MMX/SSE/...).", False ),
+    BoolVariable( "BUILD_STATIC_TOOLS", "Build a statically linked version of the FFADO tools.", False ),
+    EnumVariable('DIST_TARGET', 'Build target for cross compiling packagers', 'auto', allowed_values=('auto', 'i386', 'i686', 'x86_64', 'powerpc', 'powerpc64', 'none' ), ignorecase=2),
+    BoolVariable( "ENABLE_OPTIMIZATIONS", "Enable optimizations and the use of processor specific extentions (MMX/SSE/...).", False ),
 
 	)