mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Scons-build system moves to development/scons, from Bo Peng (ben.bob@gmail.com)
* remove SConstruct config/scons_utils.py config/qt4.py * add development/scons/qt4.py SConscript SConstruct scons_utils.py git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13829 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
98f299e223
commit
bee53b6c8d
1087
development/scons/SConscript
Normal file
1087
development/scons/SConscript
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -26,12 +26,12 @@ def writeToFile(filename, lines, append = False):
|
||||
file.close()
|
||||
|
||||
|
||||
def addToConfig(lines):
|
||||
def addToConfig(lines, top_src_dir):
|
||||
''' utility function: shortcut for appending lines to outfile
|
||||
add newline at the end of lines.
|
||||
'''
|
||||
if lines.strip() != '':
|
||||
writeToFile(config_h, lines + '\n\n', append = True)
|
||||
writeToFile(os.path.join(top_src_dir, config_h), lines + '\n\n', append = True)
|
||||
|
||||
|
||||
def printEnvironment(env, keys=[]):
|
||||
@ -95,9 +95,9 @@ def checkPackage(conf, pkg):
|
||||
return ret
|
||||
|
||||
|
||||
def startConfigH():
|
||||
def startConfigH(top_src_dir):
|
||||
''' Write the first part of config.h '''
|
||||
writeToFile(config_h,
|
||||
writeToFile(os.path.join(top_src_dir, config_h),
|
||||
'''/* src/config.h. Generated by scon. */
|
||||
|
||||
/* -*- C++ -*- */
|
||||
@ -117,9 +117,9 @@ def startConfigH():
|
||||
''')
|
||||
|
||||
|
||||
def endConfigH():
|
||||
def endConfigH(top_src_dir):
|
||||
''' Write the last part of config.h '''
|
||||
writeToFile(config_h, '''
|
||||
writeToFile(os.path.join(top_src_dir, config_h), '''
|
||||
/************************************************************
|
||||
** You should not need to change anything beyond this point */
|
||||
|
Loading…
Reference in New Issue
Block a user