Browse Source

new build_static/build_fullstatic/build_dynamic option

install lighttpd to sbindir as the autoconf version


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@925 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.11
Xuefer 15 years ago
parent
commit
5da3530140
  1. 4
      SConstruct
  2. 6
      config.py-sample
  3. 23
      src/SConscript

4
SConstruct

@ -76,10 +76,14 @@ opts = Options('config.py')
opts.AddOptions(
('prefix', 'prefix', '/usr/local'),
('bindir', 'binary directory', '${prefix}/bin'),
('sbindir', 'binary directory', '${prefix}/sbin'),
('libdir', 'library directory', '${prefix}/lib'),
PackageOption('with_mysql', 'enable mysql support', 'no'),
PackageOption('with_xml', 'enable xml support', 'no'),
PackageOption('with_pcre', 'enable pcre support', 'yes'),
BoolOption('build_dynamic', 'enable dynamic build', 'yes'),
BoolOption('build_static', 'enable static build', 'no'),
BoolOption('build_fullstatic', 'enable fullstatic build', 'no'),
BoolOption('with_sqlite3', 'enable sqlite3 support', 'no'),
BoolOption('with_memcache', 'enable memcache support', 'no'),
BoolOption('with_fam', 'enable FAM/gamin support', 'no'),

6
config.py-sample

@ -7,3 +7,9 @@ with_bzip2='yes'
with_memcache='yes'
with_sqlite3='yes'
with_xml='yes'
# default 'no'
build_static='no'
# default 'no'
build_fullstatic='no'
# default 'yes'
build_dynamic='yes'

23
src/SConscript

@ -137,13 +137,28 @@ for module in modules.keys():
instlib += env.SharedLibrary(module, modules[module]['src'], LIBS= [ libs ])
inst = []
inst += env.Install('${bindir}', instbin[0])
Default(spawn_fcgi)
inst += env.Install('${bindir}', spawn_fcgi)
if env['COMMON_LIB'] == 'lib':
inst += env.Install('${bindir}', common_lib)
inst += env.Install('${libdir}', instlib)
if env['build_dynamic']:
Default(instbin[0], instlib)
inst += env.Install('${sbindir}', instbin[0])
inst += env.Install('${libdir}', instlib)
if env['COMMON_LIB'] == 'lib':
Default(common_lib)
inst += env.Install('${bindir}', common_lib)
if env['build_static']:
Default(staticbin)
inst += env.Install('${sbindir}', staticbin)
if env['build_fullstatic']:
Default(fullstaticbin)
inst += env.Install('${sbindir}', fullstaticbin)
env.Alias('dynamic', instbin)
# default all to be installed
env.Alias('install', inst)
pkgdir = '.'

Loading…
Cancel
Save