]> git.saurik.com Git - wxWidgets.git/commitdiff
1. more borland work
authorVáclav Slavík <vslavik@fastmail.fm>
Fri, 27 Jun 2003 19:22:12 +0000 (19:22 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Fri, 27 Jun 2003 19:22:12 +0000 (19:22 +0000)
2. added optimization and debug info flags

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21449 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

build/bakefiles/common.bkl
build/bakefiles/common_samples.bkl
build/bakefiles/config.bkl
build/bakefiles/files.bkl

index 2b127351a612cad64da3f3592faf2473f40b077c..deb3ed321cef2528af5211c49342d35fb1f21dd7 100644 (file)
         <if cond="WXUNIV=='1'">__WXUNIVERSAL__</if>
     </set>
 
-    <set var="WXNAMEPREFIX">wx</set>
-    <set var="WXNAMEPREFIXGUI">wx_$(PORTNAME)$(WXUNIVNAME)</set>
-    <set var="WXVERSIONTAG">-$(WXVER_MAJOR).$(WXVER_MINOR)</set>
+    <if cond="FORMAT=='autoconf'">
+        <set var="WXNAMEPREFIX">wx</set>
+        <set var="WXNAMEPREFIXGUI">wx_$(PORTNAME)$(WXUNIVNAME)</set>
+        <set var="WXVERSIONTAG">-$(WXVER_MAJOR).$(WXVER_MINOR)</set>
+    </if>
+    <if cond="FORMAT!='autoconf'">
+        <set var="WXNAMEPREFIX">wx$(WXVER_MAJOR)$(WXVER_MINOR)</set>
+        <set var="WXNAMEPREFIXGUI">wx$(PORTNAME)$(WXUNIVNAME)$(WXVER_MAJOR)$(WXVER_MINOR)</set>
+        <set var="WXVERSIONTAG"></set>
+    </if>
 
     <set var="TOOLCHAIN_NAME">
         $(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-$(WXVER_MAJOR).$(WXVER_MINOR)
     <!-- =============================================================== -->
     <!--                        Templates for libs:                      -->
     <!-- =============================================================== -->
+
+    <set var="DEBUGFLAG">
+        <if cond="BUILD=='debug'">on</if>
+        <if cond="BUILD=='release'">off</if>
+    </set>
+    <set var="OPTIMIZEFLAG">
+        <if cond="BUILD=='debug'">speed</if>
+        <if cond="BUILD=='release'">off</if>
+    </set>
     
     <template id="anylib">
         <depends cond="FORMAT!='autoconf' and BUILDING_LIB=='1'">setup.h</depends>
         <dirname>$(LIBDIRNAME)</dirname>
         <install-to>$(LIBDIR)</install-to>
+        
+        <debug-info>$(DEBUGFLAG)</debug-info>
+        <optimize>$(OPTIMIZEFLAG)</optimize>
+        <threading>multi</threading>        
     </template>
 
 
     <!-- =============================================================== -->
     <!--                  Templates for wxWindows libs:                  -->
     <!-- =============================================================== -->
-    
+
     <template id="wx">
         <set var="wxid">$(wxwin.mk_wxid(id))</set>
         <define>__WX$(TOOLKIT)__</define>
         <define>$(WXUNIV_DEFINE)</define>
         <include>$(TOP_SRCDIR)include</include>
-        <lib-path>$(LIBDIRNAME)</lib-path>
+        <lib-path>$(LIBDIRNAME)</lib-path>        
         <include cond="FORMAT!='autoconf'">$(LIBDIRNAME)</include>
         <include>$(INC_TIFF)</include>
         <include>$(INC_JPEG)</include>
     <template id="wx_lib_b" template="wx,anylib">
         <set var="WXLIBNAME">$(wxwin.mkLibName(wxid))</set>
         <libname>$(WXLIBNAME)</libname>
+        <precomp-headers>on</precomp-headers>
+        <precomp-headers-file>wxprec</precomp-headers-file>
     </template>
     
     <template id="wx_dll_b" template="wx_lib_b">
index e3b8c4a6619bc74b4f0ac57e6b86b205e4bc0822..4352f8bcc1b1d7d9a9e7b131630567501d174a6a 100644 (file)
             </if>
         </set>
     </if>
+
+    <set var="DLLFLAG">
+        <if cond="SHARED=='1'">WXUSINGDLL</if>
+    </set>
     
     <template id="wx_sample" template="wx">
         <include>$(SRCDIR)</include>
         <!-- Always link against the wxWin library in monolithic build: -->
         <sys-lib>$(WXLIB_MONO)</sys-lib>
         <ldflags>$(SAMPLES_RPATH_FLAG)</ldflags>
+        <define>$(DLLFLAG)</define>
+        <app-type>gui</app-type>
 
         <mac-res cond="FORMAT=='autoconf'">$(MACOSX_RESOURCES)</mac-res>
     </template>
index 6327f332d8bc0919af075a605ffc65d66a97d270..d6649fd5491daf0f046061fd78df5e4fbbc3f94a 100644 (file)
         <set var="SAMPLES_RPATH_FLAG"/>
         <option name="EXTRALIBS"/>
 
-        <set var="SRCDIR">..</set>
+        <set var="SRCDIR">
+            <if cond="BUILDING_LIB=='1'">..</if>
+            <if cond="BUILDING_LIB=='0'">.</if>
+        </set>
         <set var="TOP_SRCDIR">$(SRCDIR)/$(WXTOPDIR)</set>
         <set var="BUILDDIR">objs_$(COMPILER)</set>
     </if>
index bf106ed8c4601e3bbbca29bd2d2f680bc415303c..114bae708386e84d276b3dd2f0d2323821c833d1 100644 (file)
 <set var="MSW_LOWLEVEL_HDR">
 </set>
 <set var="MSW_SRC">
+    src/generic/statusbr.cpp
+    src/msw/uxtheme.cpp
     src/msw/ole/access.cpp
     src/msw/accel.cpp
     src/msw/bmpbuttn.cpp