Add SHOBJPREFIX AND SHOBJSUFFIX.
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Tue, 1 Oct 2002 18:16:15 +0000 (18:16 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Tue, 1 Oct 2002 18:16:15 +0000 (18:16 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@472 fdb21ef1-2011-0410-befe-b5e4ea1792b1

doc/man/scons.1
src/CHANGES.txt
src/engine/SCons/Defaults.py
src/engine/SCons/Platform/cygwin.py
src/engine/SCons/Platform/os2.py
src/engine/SCons/Platform/posix.py
src/engine/SCons/Platform/win32.py

index 6ff35db227d2218efb7a5ad6a151b6fa4152d1f2..47e21410908550c37af7b8274ff91594eaa72a33 100644 (file)
@@ -882,11 +882,12 @@ Source files must have one of the same set of extensions
 specified above for the
 .B StaticObject
 builder.
-The target object file prefix
-(specified by the $OBJPREFIX construction variable; nothing by default)
+The target shared object file prefix
+(specified by the $SHOBJPREFIX construction variable;
+by default, the same as $OBJPREFIX)
 and suffix
-(specified by the $OBJSUFFIX construction variable;
-\.obj on Windows systems, .o on POSIX systems)
+(specified by the $SHOBJSUFFIX construction variable;
+by default, the same as $OBJSUFFIX)
 are automatically added to the target if not already present.
 Examples:
 
@@ -1781,10 +1782,10 @@ General options passed to the linker.
 The command line used to link object files into an executable.
 
 .IP OBJPREFIX 
-The prefix used for object file names.
+The prefix used for (static) object file names.
 
 .IP OBJSUFFIX 
-The suffix used for object file names.
+The suffix used for (static) object file names.
 
 .IP PDFCOM
 The command line used to convert TeX DVI files into a PDF file.
@@ -1875,6 +1876,12 @@ The linker for programs that use shared libraries.
 .IP SHLINKFLAGS
 General options passed to the linker for programs using shared libraries.
 
+.IP SHOBJPREFIX 
+The prefix used for shared object file names.
+
+.IP SHOBJSUFFIX 
+The suffix used for shared object file names.
+
 .IP TAR
 The tar archiver.
 
index 3ad1fc7dfaf250e0d1854a095f91341c7841c2db..0d50628714c787a0437dcac156ed5c2ee3c02914 100644 (file)
@@ -45,6 +45,9 @@ RELEASE 0.09 -
     ...," "done reading SConscript files," "Building targets," and
     "done building targets."
 
+  - Add separate $SHOBJPREFIX and $SHOBJSUFFIX construction variables
+    (by default, the same as $OBJPREFIX and $OBJSUFFIX).
+
  From Jeff Petkau:
 
   - Fix interpretation of '#/../foo' on Win32 systems.
index 136b3e0c5bbd1a6b76f226a79c502e897279fd63..d70be0d28195be477e31058a17ae457ad53f6c7f 100644 (file)
@@ -140,8 +140,8 @@ def StaticObject():
 def SharedObject():
     """A function for generating the shared object Builder."""
     return SCons.Builder.Builder(action = {},
-                                 prefix = '$OBJPREFIX',
-                                 suffix = '$OBJSUFFIX',
+                                 prefix = '$SHOBJPREFIX',
+                                 suffix = '$SHOBJSUFFIX',
                                  src_builder = ['CFile', 'CXXFile'])
 
 ProgScan = SCons.Scanner.Prog.ProgScan()
@@ -157,7 +157,7 @@ SharedLibrary = SCons.Builder.Builder(action=[ SharedCheck, "$SHLINKCOM" ],
                                       prefix = '$SHLIBPREFIX',
                                       suffix = '$SHLIBSUFFIX',
                                       scanner = ProgScan,
-                                      src_suffix = '$OBJSUFFIX',
+                                      src_suffix = '$SHOBJSUFFIX',
                                       src_builder = 'SharedObject')
 
 def DVI():
index c01c022daa2374addcd508324b3329fbb58a3b6b..47b64d661efb80e3cf39749ac5010f9b3b30f8dc 100644 (file)
@@ -40,6 +40,8 @@ def generate(env):
     env['ENV']['PATH']    = '/usr/local/bin:/bin:/usr/bin'
     env['OBJPREFIX']      = ''
     env['OBJSUFFIX']      = '.o'
+    env['SHOBJPREFIX']    = '$OBJPREFIX'
+    env['SHOBJSUFFIX']    = '$OBJSUFFIX'
     env['PROGPREFIX']     = ''
     env['PROGSUFFIX']     = '.exe'
     env['LIBPREFIX']      = 'lib'
index d56150c063826bb286bc4887d3e3303523bbe5d0..c3895219564c9730bed88185ea770012aca49ce6 100644 (file)
@@ -39,6 +39,8 @@ def generate(env):
         env['ENV']        = {}
     env['OBJPREFIX']      = ''
     env['OBJSUFFIX']      = '.obj'
+    env['SHOBJPREFIX']    = '$OBJPREFIX'
+    env['SHOBJSUFFIX']    = '$OBJSUFFIX'
     env['PROGPREFIX']     = ''
     env['PROGSUFFIX']     = '.exe'
     env['LIBPREFIX']      = ''
index ab3fb7fc2d3031bacd1e7fc36ad468502ee4abbf..551265c7a31abc7ac32fe6ce14006ba53c30555b 100644 (file)
@@ -40,6 +40,8 @@ def generate(env):
     env['ENV']['PATH']    = '/usr/local/bin:/bin:/usr/bin'
     env['OBJPREFIX']      = ''
     env['OBJSUFFIX']      = '.o'
+    env['SHOBJPREFIX']    = '$OBJPREFIX'
+    env['SHOBJSUFFIX']    = '$OBJSUFFIX'
     env['PROGPREFIX']     = ''
     env['PROGSUFFIX']     = ''
     env['LIBPREFIX']      = 'lib'
index ea6a23b57aae2385ff438a1c00abdab8e6d98e6b..5ad9ff17720882ded4e58d42b460ff6c8eb9717f 100644 (file)
@@ -40,6 +40,8 @@ def generate(env):
     env['ENV']['PATHEXT'] = '.COM;.EXE;.BAT;.CMD'
     env['OBJPREFIX']      = ''
     env['OBJSUFFIX']      = '.obj'
+    env['SHOBJPREFIX']    = '$OBJPREFIX'
+    env['SHOBJSUFFIX']    = '$OBJSUFFIX'
     env['PROGPREFIX']     = ''
     env['PROGSUFFIX']     = '.exe'
     env['LIBPREFIX']      = ''