From 168d3ef631087a684848f824b7e98c11fbfce7c9 Mon Sep 17 00:00:00 2001 From: Bo Peng Date: Sun, 28 Jan 2007 06:58:03 +0000 Subject: [PATCH] Scons: continue refining scons installer git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16900 a592a061-630c-0410-9148-cb99ea01b6c8 --- .../Win32/packaging/installer/settings.user.nsh | 16 ++++++++++++---- development/scons/SConstruct | 13 ++++++------- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/development/Win32/packaging/installer/settings.user.nsh b/development/Win32/packaging/installer/settings.user.nsh index f0f45842df..f2e85509f8 100644 --- a/development/Win32/packaging/installer/settings.user.nsh +++ b/development/Win32/packaging/installer/settings.user.nsh @@ -4,22 +4,30 @@ ;Location of LyX files and dependencies -!ifndef FilesLyX +!ifdef FilesLyX +!define FILES_LYX "${FilesLyX}" +!else !define FILES_LYX "..\..\..\..\build-msvc" !endif -!ifndef FilesDeps +!ifdef FilesDeps +!define FILES_DEPS "${FilesDeps}" +!else !define FILES_DEPS "..\..\..\..\lyx-windows-deps-msvc-qt4" !endif ;Location of Windows installation -!ifndef FilesWindows +!ifdef FilesWindows +!define FILES_WINDOWS "${FilesWindows}" +!else !define FILES_WINDOWS "C:\WINDOWS" !endif ;Location of Python 2.5 -!ifndef FilesPython +!ifdef FilesPython +!define FILES_PYTHON "${FilesPython}" +!else !define FILES_PYTHON "C:\Python25" !endif diff --git a/development/scons/SConstruct b/development/scons/SConstruct index 20d1eb0f9d..1a56cf332f 100644 --- a/development/scons/SConstruct +++ b/development/scons/SConstruct @@ -1486,10 +1486,11 @@ def appExists(apppath, appname): return os.path.isfile(File(env.subst('$BUILDDIR/common/%s/${PROGPREFIX}%s$PROGSUFFIX' % (apppath, appname))).abspath) targets = BUILD_TARGETS +build_install = 'install' in targets or 'installer' in targets build_installer = 'installer' in targets # msvc need to pass full target name, so I have to look for path/lyx etc build_lyx = build_installer or targets == [] or True in ['lyx' in x for x in targets] \ - or 'install' in targets or 'all' in targets + or build_install or 'all' in targets build_boost = (included_boost and not libExists('boost_regex')) or 'boost' in targets build_intl = (included_gettext and not libExists('included_intl')) or 'intl' in targets build_support = build_lyx or True in [x in targets for x in ['support', 'client', 'tex2lyx']] @@ -1499,11 +1500,11 @@ build_frontends = build_lyx or 'frontends' in targets build_graphics = build_lyx or 'graphics' in targets build_controllers = build_lyx or 'controllers' in targets build_client = True in ['client' in x for x in targets] \ - or 'install' in targets or 'all' in targets or build_installer + or build_install or 'all' in targets or build_installer build_tex2lyx = True in ['tex2lyx' in x for x in targets] \ - or 'install' in targets or 'all' in targets or build_installer + or build_install or 'all' in targets or build_installer build_lyxbase = build_lyx or 'lyxbase' in targets -build_po = 'po' in targets or 'install' in targets or 'all' in targets +build_po = 'po' in targets or build_install or 'all' in targets build_qt4 = (build_lyx and frontend == 'qt4') or 'qt4' in targets build_msvs_projects = use_vc and 'msvs_projects' in targets @@ -1997,9 +1998,7 @@ if build_po: gmo_files.extend(env.Transfiles(f)) - - -if 'install' in targets or 'installer' in targets: +if build_install: # # this part is a bit messy right now. Since scons will provide # --DESTDIR option soon, at least the dest_dir handling can be