]> git.saurik.com Git - wxWidgets.git/commitdiff
change MSW libs directories so that libraries are shared by builds
authorVáclav Slavík <vslavik@fastmail.fm>
Fri, 15 Aug 2003 21:20:32 +0000 (21:20 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Fri, 15 Aug 2003 21:20:32 +0000 (21:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22917 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

build/bakefiles/common.bkl
build/bakefiles/jpeg.bkl
build/bakefiles/wx.bkl
build/bakefiles/wxwin.py

index a700aa95eef08e6af97ac6775f8b96ff904cf350..6747e1edc81f6e9b4ad044cf6ebadf6ad87918c1 100644 (file)
     
     <set var="LIBDIRNAME" make_var="1">
         <if cond="FORMAT=='autoconf'">$(top_builddir)lib</if>
-        <if cond="FORMAT!='autoconf'">
-            $(nativePaths(TOP_SRCDIR))lib$(DIRSEP)$(COMPILER)_$(CFG_NAME_PART)
+        <if cond="FORMAT!='autoconf' and SHARED=='0'">
+            $(nativePaths(TOP_SRCDIR))lib$(DIRSEP)$(COMPILER)_lib$(CFG)
+        </if>
+        <if cond="FORMAT!='autoconf' and SHARED=='1'">
+            $(nativePaths(TOP_SRCDIR))lib$(DIRSEP)$(COMPILER)_dll$(CFG)
         </if>
     </set>
+    
+    <if cond="FORMAT!='autoconf'">
+        <set var="SETUPHDIR" make_var="1">
+            $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
+        </set>
+    </if>
+    
 
     
     <!-- =============================================================== -->
         <define>$(UNICODE_DEFINE)</define>
         <include>$(TOP_SRCDIR)include</include>
         <lib-path>$(LIBDIRNAME)</lib-path>        
-        <include cond="FORMAT!='autoconf'">$(LIBDIRNAME)</include>
-        <include>$(INC_TIFF)</include>
-        <include>$(INC_JPEG)</include>
-        <include>$(INC_PNG)</include>
-        <include>$(INC_ZLIB)</include>
-        <include>$(INC_ODBC)</include>
-        <include>$(INC_REGEX)</include>
-        <include>$(INC_EXPAT)</include>
+        <include cond="FORMAT!='autoconf'">$(SETUPHDIR)</include>
     </template>
 
     <!-- for both GUI and wxBase libs/samples: -->
@@ -400,16 +403,28 @@ $(TAB)copy "$(DOLLAR)(InputPath)" $(LIBDIRNAME)\wx\setup.h
         <depends cond="FORMAT=='autoconf'">wxodbc</depends>
         <depends>wxregex</depends>
     </template>
+
+    <template id="wx_3rdparty_includes">
+        <include>$(INC_TIFF)</include>
+        <include>$(INC_JPEG)</include>
+        <include>$(INC_PNG)</include>
+        <include>$(INC_ZLIB)</include>
+        <include>$(INC_ODBC)</include>
+        <include>$(INC_REGEX)</include>
+        <include>$(INC_EXPAT)</include>
+    </template>
     
-    <template id="wx_lib" template="wx_lib_b"/>
-    <template id="wx_base_lib" template="wx_lib_b">
+    <template id="wx_lib" template="wx_lib_b,wx_3rdparty_includes"/>
+    <template id="wx_base_lib" template="wx_lib_b,wx_3rdparty_includes">
         <define>wxUSE_GUI=0</define> 
     </template>
 
-    <template id="wx_dll" template="wx_dll_b,wx_3rdparty_dependencies"
-                          template_append="wx_append_nomono"/>
-    <template id="wx_base_dll" template="wx_dll_b,wx_3rdparty_dependencies"
-                               template_append="wx_append_base_nomono">
+    <template id="wx_dll"
+              template="wx_dll_b,wx_3rdparty_dependencies,wx_3rdparty_includes"
+              template_append="wx_append_nomono"/>
+    <template id="wx_base_dll"
+              template="wx_dll_b,wx_3rdparty_dependencies,wx_3rdparty_includes"
+              template_append="wx_append_base_nomono">
         <define>wxUSE_GUI=0</define> 
     </template>
                            
index 66b17c91f68e0702f506c954c46f79ebbe09263d..66aab149c54e2b43f5c3fc68a4846458b60ce477 100644 (file)
@@ -19,7 +19,7 @@
     <lib id="wxjpeg" template="3rdparty_lib"
          cond="wxUSE_LIBJPEG=='builtin' and USE_GUI=='1' and BUILDING_LIB=='1'">
         <dirname>$(LIBDIRNAME)</dirname>
-        <include cond="FORMAT!='autoconf'">$(LIBDIRNAME)</include>
+        <include cond="FORMAT!='autoconf'">$(SETUPHDIR)</include>
         <cflags-borland>-w-8004 -w-8008 -w-8057 -w-8066</cflags-borland>
         <sources>
             src/jpeg/jcomapi.c
index 30358874cb1faf2f53219160a9496d2f61515e77..feded73cb9d608fdd357e2ee0bd5344a4988be10 100644 (file)
         <mkdir id="libdir">
             <dir>$(LIBDIRNAME)</dir>
         </mkdir>
-        <mkdir id="libdir_wx">
+        <mkdir id="libdir_setup">
             <depends>libdir</depends>
+            <dir>$(SETUPHDIR)</dir>            
+        </mkdir>
+        <mkdir id="libdir_setup_wx">
+            <depends>libdir_setup</depends>
             <dependency-of>setup_h</dependency-of>
-            <dir>$(LIBDIRNAME)/wx</dir>            
+            <dir>$(SETUPHDIR)/wx</dir>            
         </mkdir>
 
-        <set var="SETUP_H_DIR">
+        <set var="SETUP_H_SUBDIR">
             <if cond="WXUNIV=='1'">univ</if>
             <if cond="WXUNIV=='0'">msw</if>
         </set>
         
         <copy-file-to-file-if-not-exist id="master_setup.h">
-            <src>$(SRCDIR)/include/wx/$(SETUP_H_DIR)/setup0.h</src>
-            <dst>$(SRCDIR)/include/wx/$(SETUP_H_DIR)/setup.h</dst>
+            <src>$(SRCDIR)/include/wx/$(SETUP_H_SUBDIR)/setup0.h</src>
+            <dst>$(SRCDIR)/include/wx/$(SETUP_H_SUBDIR)/setup.h</dst>
             <dependency-of>setup_h</dependency-of>
         </copy-file-to-file-if-not-exist>
         <copy-file-to-file-if-not-exist id="setup.h">
             <dependency-of>setup_h</dependency-of>
-            <src>$(SRCDIR)/include/wx/$(SETUP_H_DIR)/setup.h</src>
-            <dst>$(LIBDIRNAME)/wx/setup.h</dst>
+            <src>$(SRCDIR)/include/wx/$(SETUP_H_SUBDIR)/setup.h</src>
+            <dst>$(SETUPHDIR)/wx/setup.h</dst>
         </copy-file-to-file-if-not-exist>
     </if>
 
index 3423c64a8b5c1b3ed2d86a35d9d62f25e38bf9dc..a87a235cb6e64b50e165df36cf8815a2cb1eb3f6 100644 (file)
@@ -15,6 +15,7 @@ def __noopSubst(func, name):
     return '$(%s)' % name
 utils.addSubstituteCallback('CFG', __noopSubst)
 utils.addSubstituteCallback('LIBDIRNAME', __noopSubst)
+utils.addSubstituteCallback('SETUPHDIR', __noopSubst)
 utils.addSubstituteCallback('OBJS', __noopSubst)