Changeset 766
- Timestamp:
- 07/16/06 03:47:03 (6 years ago)
- Location:
- branches/ithildin-scons
- Files:
-
- 3 added
- 6 deleted
- 2 edited
- 1 moved
-
SConstruct (modified) (5 diffs)
-
build/options.default (modified) (3 diffs)
-
build/tests.py (added)
-
etc (moved) (moved from branches/ithildin-scons/doc/conf)
-
include/Makefile.am (deleted)
-
modules/echo/Makefile.am (deleted)
-
modules/echo/acinclude.m4 (deleted)
-
modules/echo/configure.ac (deleted)
-
modules/echo/etc/echo.conf (added)
-
tests (added)
-
tools/build.py (deleted)
-
tools/repover.sh (deleted)
Legend:
- Unmodified
- Added
- Removed
-
branches/ithildin-scons/SConstruct
r765 r766 18 18 EnsureSConsVersion(0,96,92) 19 19 20 import os, sys20 import glob, os, sys 21 21 # let's just stick the realpath() for ./build in there at the front. THis 22 22 # allows us to use our custom test code in the 'tests' module there. … … 46 46 package_repository_version = int(svnrev.split()[1]) 47 47 48 # Find our availabe modules 49 availabe_modules = [] 50 for e in os.listdir('modules'): 51 if os.path.exists('modules/%s/SConscript' % e): 52 availabe_modules.append(e) 48 53 49 54 ############################################################################### … … 64 69 ('fdsetsize', 'Override value of FD_SETSIZE', 0), 65 70 BoolOption('ipv6', 'Enable IPv6 support', 1), 71 ListOption('modules', 'Modules to build', 'all', availabe_modules), 66 72 PackageOption('openssl', 'Enable OpenSSL support', 'yes'), 67 73 ListOption('poller', 'Socket polling method', 'auto', … … 217 223 # IPv6 test: 218 224 # We just look to see if we have getaddrinfo and if they want IPv6 support 219 if 'getaddrinfo' in have_funcs and env['ipv6']: 220 print 'Enabling IPv6 support' 225 if conf.CheckIPv6(have_funcs): 221 226 env.Append(CPPDEFINES = ['INET6']) 222 227 … … 272 277 ############################################################################### 273 278 # Build options and subsidiary code 279 280 # Set our final environment parameters. 274 281 env.Append(CPPPATH = '#/include') 275 282 env.Append(LIBPATH = '#/lib') 276 277 env.AlwaysBuild(env.Alias('update', '#/.svn', '%s update' % subversion)) 278 283 env.AppendUnique(RPATH = [env['libdir'], env['libdir'] + '/modules']) 284 285 # Update target for subversion users. 286 if subversion: 287 env.AlwaysBuild(env.Alias('update', '#/.svn', '%s update' % subversion)) 288 # Installation targets for documentation, config and include files 289 tests.AddConfInstall(env, env['sysconfdir'], ['etc/ithildin.conf']) 290 env.Install(env['datadir'], ['COPYING', 'DEVELOPERS', 'README']) 291 env.Install(env['datadir'] + '/doc', glob.glob('doc/*.txt')) 292 env.Install(env['includedir'] + '/ithildin', 293 glob.glob('include/ithildin/*.h')) 294 295 # dummy install target with our various prefixes. 296 env.Alias('install', [env['bindir'], env['sysconfdir'], 297 env['libdir'], env['includedir'], env['datadir']]) 298 299 # Now export useful variables 279 300 env.Export(['env', 'package_name', 'package_version', 280 'package_repository_version']) 301 'package_repository_version', 'tests']) 302 303 # and call our sub-scripts. 281 304 env.SConscript('lib/SConscript') 282 305 env.SConscript('source/SConscript') 283 306 307 # Add the requested modules too! 308 if str(env['modules']) == 'all': 309 modules = str.join(',', availabe_modules) 310 elif str(env['modules']) == 'none': 311 modules = '' 312 else: 313 modules = str(env['modules']) 314 315 for m in modules.split(','): 316 env.SConscript('modules/%s/SConscript' % m) 317 284 318 # vi:set ts=8 sts=4 sw=4 tw=76 et syntax=python: -
branches/ithildin-scons/build/options.default
r765 r766 1 ############################################################################### 2 # Default options listing. Most of these are safe to leave uncommented (see 3 # below for where this isn't okay). Please note that this is a PYTHON 4 # SOURCED FILE. If the quotes are there, leave them there! If the quotes 5 # are not there please leave them off. Python will blow up otherwise. 6 1 7 # Turn on debugging support in the code. Uses lots of slow compiler options 2 8 # and a bunch of evil on various platforms. … … 4 10 # Explicitly set FD_SETSIZE for your application. You usually do not need 5 11 # this. 6 fdsetsize = "0"12 fdsetsize = 0 7 13 # Turn on/off IPv6 support (it is "on" if your system can support it by 8 14 # default, you may remove the code if you wish) … … 20 26 warnings = "no" 21 27 # Specify the installation prefix for files 22 prefix = /usr/local28 prefix = "/usr/local" 23 29 # Specify the installation prefixes for binaries, config files, libraries 24 30 # C headers and miscellaneous data respectively. These values are generally 25 31 # automatically generated via 'prefix' and so are commented out here with 26 32 # their typical defaults. 27 #bindir = /usr/local/bin28 #sysconfdir = /usr/local/etc/ithildin29 #libdir = /usr/local/lib/ithildin30 #includedir = /usr/local/include/ithildin31 #datadir = /usr/local/share/ithildin33 #bindir = "/usr/local/bin" 34 #sysconfdir = "/usr/local/etc/ithildin" 35 #libdir = "/usr/local/lib/ithildin" 36 #includedir = "/usr/local/include/ithildin" 37 #datadir = "/usr/local/share/ithildin"
Note: See TracChangeset
for help on using the changeset viewer.
