Changeset 507 for trunk


Ignore:
Timestamp:
Feb 3, 2010, 4:47:59 AM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

general: Don't use the debug_and_release setup unless it is configured so by configure.cmd. Make sure the release setup is used for the official build.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.cmd

    r495 r507  
    2929G.ScreenHeight  = -1
    3030G.Verbose       = 1
     31
    3132
    3233/* initialize global variables */
     
    169170    build = linein(G.RelPath"\official_build")
    170171    if (build \== "") then do
     172
    171173        G.QT_BUILD_VERSION = build
    172174        G.QT_CONFIG = "official_build"
     
    174176        call SaySay "WARNING:"
    175177        call SaySay "You are going to configure an official build of Qt4 for OS/2!"
    176         call SaySay "Full version number is: "G.QT_VERSION"-"G.QT_BUILD_VERSION
     178        call SaySay "Full version number is: "G.QT_VERSION""G.QT_BUILD_VERSION
    177179        call SaySay
    178180        call SaySay "If you understand what it means and want to continue,"
     
    459461        /* detect build style */
    460462        if (G.CFG_DEBUG == "auto") then do
    461             G.CFG_DEBUG_RELEASE = "yes"
    462             G.CFG_DEBUG = "yes"
     463            if (G.OfficialBuild) then do
     464                G.CFG_DEBUG_RELEASE = "no"
     465                G.CFG_DEBUG = "no"
     466            end
     467            else do
     468                G.CFG_DEBUG_RELEASE = "yes"
     469                G.CFG_DEBUG = "yes"
     470            end
    463471        end
    464472        if (G.CFG_DEBUG_RELEASE == "yes") then
     
    14781486    if (G.CFG_DEBUG == "yes") then do
    14791487        G.QTCONFIG_CONFIG = Join(G.QTCONFIG_CONFIG, "debug")
    1480         if (G.CFG_DEBUG_RELEASE == "yes") then
     1488        G.QT_CONFIG = Join(G.QT_CONFIG, "debug")
     1489        if (G.CFG_DEBUG_RELEASE == "yes") then do
     1490            G.QTCONFIG_CONFIG = Join(G.QTCONFIG_CONFIG, "debug_and_release")
     1491            G.QTCONFIG_CONFIG = Join(G.QTCONFIG_CONFIG, "debug_and_release_target")
    14811492            G.QT_CONFIG = Join(G.QT_CONFIG, "release")
    1482         G.QT_CONFIG = Join(G.QT_CONFIG, "debug")
     1493       
    14831494    end
    14841495    else if (G.CFG_DEBUG == "no") then do
    14851496        G.QTCONFIG_CONFIG = Join(G.QTCONFIG_CONFIG, "release")
    1486         if (G.CFG_DEBUG_RELEASE == "yes") then
     1497        G.QT_CONFIG = Join(G.QT_CONFIG, "release")
     1498        if (G.CFG_DEBUG_RELEASE == "yes") then do
     1499            G.QTCONFIG_CONFIG = Join(G.QTCONFIG_CONFIG, "debug_and_release")
     1500            G.QTCONFIG_CONFIG = Join(G.QTCONFIG_CONFIG, "debug_and_release_target")
    14871501            G.QT_CONFIG = Join(G.QT_CONFIG, "debug")
    1488         G.QT_CONFIG = Join(G.QT_CONFIG, "release")
     1502       
    14891503    end
    14901504
  • trunk/mkspecs/os2-g++/qmake.conf

    r417 r507  
    77MAKEFILE_GENERATOR  = GNUMAKE
    88TEMPLATE        = app
    9 CONFIG          += qt warn_on release link_prl copy_dir_files debug_and_release debug_and_release_target
     9CONFIG          += qt warn_on release link_prl copy_dir_files
    1010QT              += core gui
    1111# @todo
Note: See TracChangeset for help on using the changeset viewer.