]> git.lyx.org Git - features.git/commitdiff
Scons: two small bug fixes, and a bit more about msvc
authorBo Peng <bpeng@lyx.org>
Thu, 1 Jun 2006 03:01:46 +0000 (03:01 +0000)
committerBo Peng <bpeng@lyx.org>
Thu, 1 Jun 2006 03:01:46 +0000 (03:01 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13975 a592a061-630c-0410-9148-cb99ea01b6c8

development/scons/SConscript
development/scons/SConstruct

index fc71962353fddcfd8498a5efbc213e1acddbca4e..d9f990e680b50899372fa351f67148556a9197c2 100644 (file)
@@ -58,7 +58,7 @@ if rebuild_targets:
 # sync frontend and env['frontend'] (maybe build qt4 with frontend=qt3)
 if build_qt3:
   frontend = 'qt3'
-  env['frontend'] = 'qt4'
+  env['frontend'] = 'qt3'
 elif build_qt4:
   frontend = 'qt4'
   env['frontend'] = 'qt4'
@@ -145,7 +145,7 @@ if build_intl:
   intlenv = env.Copy()
   # we need the original C compiler for these files
   intlenv['CC'] = intlenv['C_COMPILER']
-  intlenv['CCFLAGS'] = intlenv['C_CCFLAGS']
+  intlenv['CCFLAGS'] = intlenv['C_CCFLAGS'].split()
   intlenv['CPPPATH'] += ['intl']
   
   intlenv.Append(CCFLAGS = [
index e0d84c6c310d91ed2cc97a6f7156c7c6a1ae2015..e6f2eb537c5f8216c4c4c5ef92876fd18caa82dc 100644 (file)
@@ -521,6 +521,9 @@ else:
   #   in the current code page (number)
   # C4996: foo was decleared deprecated
   env.Append(CCFLAGS=['/TP', '/EHsc', '/wd4819', '/wd4996'])
+  env['LINKFLAGS'] = [env['LINKFLAGS'], '/MANIFEST']
+  env['LINKCOM' ] = [env['LINKCOM'], 'mt /manifest ${TARGET}.manifest /outputresource:$TARGET']
+  env['SHLINKCOM'] = [env['SHLINKCOM'], 'mt /manifest ${TARGET}.manifest -outputresource:$TARGET;#2']
 
 
 #----------------------------------------------------------
@@ -551,8 +554,10 @@ else:
   env['HAS_PKG_CONFIG'] = env_cache['HAS_PKG_CONFIG']
 
 # zlib? This is required. (fast_start assumes the existance of zlib)
-if not fast_start and not conf.CheckLibWithHeader('z', 'zlib.h', 'C'):
-    print 'Did not find libz or zlib.h, exiting!'
+if not fast_start:
+  if (not use_vc and not conf.CheckLibWithHeader('z', 'zlib.h', 'C')) \
+    or (use_vc and not conf.CheckLibWithHeader('zdll', 'zlib.h', 'C')):
+    print 'Did not find zdll.lib or zlib.h, exiting!'
     Exit(1)
 
 # qt libraries?
@@ -1124,11 +1129,10 @@ except:
 if platform_name in ['win32', 'cygwin']:
   # the final link step needs stdc++ to succeed under mingw
   # FIXME: shouldn't g++ automatically link to stdc++?
-  env['SYSTEM_LIBS'] = ['shlwapi', 'z']
   if use_vc:
-    env['SYSTEM_LIBS'].extend(['gdi32', 'shell32', 'advapi32'])
+    env['SYSTEM_LIBS'] = ['shlwapi', 'gdi32', 'shell32', 'advapi32', 'zdll']
   else:
-    env['SYSTEM_LIBS'].append('stdc++')
+    env['SYSTEM_LIBS'] = ['shlwapi', 'stdc++', 'z']
 else:
   env['SYSTEM_LIBS'] = ['z']