Changed slightly the meaning of the Hybrid build. It is now
authorRobin Dunn <robin@alldunn.com>
Sun, 25 Aug 2002 01:43:22 +0000 (01:43 +0000)
committerRobin Dunn <robin@alldunn.com>
Sun, 25 Aug 2002 01:43:22 +0000 (01:43 +0000)
essentially a release build (no debug info, optimiztions turned on)
with the addition of __WXDEBUG__ being defined.

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

src/makevc.env
src/zlib/makefile.vc
wxPython/setup.py

index 1ab59146d1a8103111d195d612ba7699c806c2cb..7fb8a0bb856885210ab98d97614e5ae31071f238 100644 (file)
@@ -207,9 +207,9 @@ LINK_DEBUG_FLAGS=-debug:full -debugtype:cv # /PDB:NONE
 _CRTFLAG=/MDd
 
 !else if "$(FINAL)" == "hybrid"
-OPT = /Od /Gy
-DEBUG_FLAGS= /Zi /D__WXDEBUG__ /D__NO_VC_CRTDBG__
-LINK_DEBUG_FLAGS=-debug:full -debugtype:cv
+OPT = /Ox /Gy
+DEBUG_FLAGS= /D__WXDEBUG__ /D__NO_VC_CRTDBG__
+LINK_DEBUG_FLAGS=/RELEASE
 _CRTFLAG=/MD
 
 !else
index 057aaa6c4d05480e8e39c79996d4812438b5d7bf..a3c748896337d270c87b2b08577d8e317bb3fd91 100644 (file)
@@ -18,7 +18,7 @@ FINAL=0
 CFLAGS=/nologo /Od $(CRTFLAG) /GX /Fo$@
 _CRTFLAG=/MDd
 !else if "$(FINAL)" == "hybrid"
-CFLAGS=/nologo /Od $(CRTFLAG) /GX /Fo$@
+CFLAGS=/nologo /Ox $(CRTFLAG) /GX /Fo$@
 _CRTFLAG=/MD
 !else
 CFLAGS=/nologo -O2 $(CRTFLAG) /GX /Fo$@
index f9ed42d4c796332764be54145931ecb22a9e86a0..d1f624e9a88c307328bd6ba001d1cbe962cff744 100755 (executable)
@@ -76,11 +76,11 @@ BUILD_BASE = "build"
 
 # Some MSW build settings
 
-FINAL = 1          # Mirrors use of same flag in wx makefiles,
+FINAL = 0          # Mirrors use of same flag in wx makefiles,
                    # (0 or 1 only) should probably find a way to
                    # autodetect this...
 
-HYBRID = 0         # If set and not debug or FINAL, then build a
+HYBRID = 1         # If set and not debug or FINAL, then build a
                    # hybrid extension that can be used by the
                    # non-debug version of python, but contains
                    # debugging symbols for wxWindows and wxPython.
@@ -251,12 +251,12 @@ if os.name == 'nt':
     if not FINAL or HYBRID:
         defines.append( ('__WXDEBUG__', None) )
 
-    libdirs = [opj(WXDIR, 'lib'), 'build\\ilib']
+    libdirs = [ opj(WXDIR, 'lib') ]
     wxdll = 'wxmsw' + WXDLLVER + libFlag()
-    libs = [wxdll]
+    libs = [ wxdll ]
 
     if bcpp_compiling:
-        libs = ['wx'+WXBCPPLIBVER]
+        libs = [ 'wx'+WXBCPPLIBVER ]
 
     libs = libs + ['kernel32', 'user32', 'gdi32', 'comdlg32',
             'winspool', 'winmm', 'shell32', 'oldnames', 'comctl32',
@@ -264,28 +264,32 @@ if os.name == 'nt':
             'advapi32', 'wsock32']
 
 
-    cflags = [
+    cflags = [ '/Gy',
              # '/GX-'  # workaround for internal compiler error in MSVC on some machines
              ]
     lflags = None
 
 
-    if bcpp_compiling:  # overwrite it
+    if bcpp_compiling:  # BCC flags
         cflags = ['-5', '-VF',  ### To support MSVC spurious semicolons in the class scope
                   ### else, all semicolons at the end of all DECLARE_...CALLBACK... macros must be eliminated
                   '-Hc', '-H=' + opj(WXDIR, '\src\msw\wx32.csm'),
                   '@' + opj(WXDIR, '\src\msw\wxwin32.cfg')
                   ]
+        if not FINAL:
+            cflags = cflags + ['/Od', '/v', '/y']
+            lflags = lflags + ['/v', ]
+
+    else:  # MSVC flags
+        if FINAL:
+            pass #cflags = cflags + ['/O1']
+        elif HYBRID :
+            pass #cflags = cflags + ['/Ox']
+        else:
+            pass # cflags = cflags + ['/Od', '/Z7']
+                 # lflags = ['/DEBUG', ]
 
 
-    if not FINAL and HYBRID and not bcpp_compiling:
-        cflags = cflags + ['/Od', '/Z7']
-        lflags = ['/DEBUG', ]
-
-    elif bcpp_compiling and not FINAL:
-        cflags = cflags + ['/Od', '/v', '/y']
-        lflags = lflags + ['/v', ]
-
 
 
 elif os.name == 'posix' and sys.platform[:6] == "darwin":