Changeset 212 for trunk/SConstruct
- Timestamp:
- 03/23/11 23:00:16 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SConstruct
r211 r212 1 1 import sys 2 import distutils.sysconfig 2 import os 3 #import distutils.sysconfig 3 4 4 5 #cflags = '-std=gnu99 -pedantic -Wall' … … 41 42 man_reglookup_timeline = env.ManPage('doc/reglookup-timeline.1.docbook') 42 43 43 44 44 # Installation 45 45 prefix='/usr/local/' 46 install_items = [prefix+'bin', 47 prefix+'lib', 48 prefix+'include/regfi', 49 prefix+'man'] 50 46 51 env.Install(prefix+'bin', [reglookup, reglookup_recover, 'bin/reglookup-timeline']) 47 52 env.Install(prefix+'lib', [libregfi, libregfi_static]) 48 env.Install(distutils.sysconfig.get_python_lib()+'/pyregfi', ['python/pyregfi/__init__.py', 'python/pyregfi/structures.py'])49 53 env.Install(prefix+'include/regfi', Glob('include/*.h')) 50 54 env.Install(prefix+'man/man1', [man_reglookup, man_reglookup_recover, 51 55 man_reglookup_timeline]) 52 56 53 # Could do this instead, but not sure how to ensure cleanup afterward. 54 #from distutils.core import setup 55 #setup(name='pyregfi', version='0.1', package_dir={'':'python'}, packages=['pyregfi']) 57 if sys.version_info[0] == 2: 58 install_items.append('pyregfi2-install.log') 59 env.Command('pyregfi2-install.log', ['python/pyregfi/__init__.py', 'python/pyregfi/structures.py'], 60 "python pyregfi-distutils.py install | tee pyregfi2-install.log") 61 62 python_path = os.popen('which python3').read() 63 if python_path != '': 64 install_items.append('pyregfi3-install.log') 65 env.Command('pyregfi3-install.log', ['python/pyregfi/__init__.py', 'python/pyregfi/structures.py'], 66 "python3 pyregfi-distutils.py install | tee pyregfi3-install.log") 67 56 68 57 69 # User Friendly Targets 58 70 env.Alias('libregfi', libregfi) 59 env.Alias('pyregfi', distutils.sysconfig.get_python_lib()+'/pyregfi')60 71 env.Alias('reglookup', reglookup) 61 72 env.Alias('reglookup-recover', reglookup_recover) 62 73 env.Alias('bin', [reglookup_recover, reglookup]) 63 74 env.Alias('doc', [man_reglookup,man_reglookup_recover,man_reglookup_timeline]) 64 env.Alias('install', [prefix+'bin', 65 prefix+'lib', 66 prefix+'include/regfi', 67 distutils.sysconfig.get_python_lib()+'/pyregfi', 68 prefix+'man']) 75 env.Alias('install', install_items) 69 76 70 77 Default('bin', libregfi)
Note: See TracChangeset
for help on using the changeset viewer.