title: Different target directory for import library building with SCons
body: <p>I build my shared library:</p>
  
  <pre><code>env.SharedLibrary(target,Split(sources))
  </code></pre>
  
  <p>Documentation says
  "On Windows systems, the SharedLibrary builder method will always build an import (.lib) library in addition to the shared (.dll) library, adding a .lib library with the same basename". That is right but I need another directory for it, so my question:</p>
  
  <p>Is it possible to set another target directory for import library?
  I want .dll and .lib in different directories:</p>
  
  <pre><code>bin/target.dll
  lib/target.lib
  </code></pre>
  
  <p>It is possible to do it in VS projects but I also need a decision for Scons.
  Thanks.</p>
  
  <p>UPD:
  We have the following structure</p>
  
  <pre><code>/project
         /bin
         /lib
         /include
         /source
             SConstruct
             /library
               lib.cpp
               SConscript
  
             /app
                SConscript
                main.cpp
  </code></pre>
  
  <p>app depends on library.<br>
  The following scripts are very simplified.<br>
  <strong>SConstruct</strong>  </p>
  
  <pre><code>g_env = Environment()
  ...
  g_target = 'Library_' + g_arch
  if g_debug: g_target += 'd'
  SConscript('library/SConscript')
  SConscript('app/SConscript')
  </code></pre>
  
  <p><strong>library/SConscript</strong>  </p>
  
  <pre><code>sources = [ .. ]
  env_lib = g_env.Clone()
  ...
  env_lib.SharedLibrary('#../lib/' + g_target,sources)
  </code></pre>
  
  <p><strong>app/SConscript</strong>  </p>
  
  <pre><code>sources = [ .. ]
  app_env = g_env.Clone()
  app_env.Append(LIBPATH = Split('#../lib'))
  app_env.Append(LIBS = Split(g_target))
  app_env.Program('app',sources)  
  </code></pre>
  
  <p>If I go to <code>app</code> dir and run </p>
  
  <pre><code>scons -u 
  </code></pre>
  
  <p>I get all I need:</p>
  
  <pre><code>lib/Library.dll
  lib/Library.lib
  source/app/app.exe
  </code></pre>
  
  <p>But if I want just to rebuild Library running<br>
  <code>scons -u</code><br>
  from <code>library</code> directory - just builds me .obj files, there is no final shared library.<br>
  I have no idea why it works so, I'm not quite familiar with it. But now we need to get final libraries in different directories (.lib in lib, .dll in bin) as I mentioned above.</p>