Changeset 93
- Timestamp:
- May 1, 2006, 11:16:33 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.cmd
r91 r93 63 63 Opt.!GIF = 0 /* WARNING: license restrictions apply when setting to 1! */ 64 64 65 Opt.!QTCustomDefines = '' 66 67 /* 68 * Defines to disable various Qt features that haven't been implemented 69 * yet on OS/2. NOTE: don't touch this variable! 70 */ 71 G.!QTMandatoryDefines = 'QT_NO_DRAGANDDROP QT_NO_PRINTER QT_NO_IPV6' 72 65 73 /* Configuration cache file */ 66 74 G.!ConfigCache = '.configure.cache' … … 70 78 G.!QMakeCache = '.qmake.cache' 71 79 G.!QtOS2Config = '.qtos2config' 80 G.!QtBuild = '.qtbuild' 72 81 G.!QModulesH = 'include\qmodules.h' 73 82 G.!QConfigH = 'include\qconfig.h' … … 153 162 G.!QMakeCache = G.!QTDirP'\'G.!QMakeCache 154 163 G.!QtOS2Config = G.!QTDirP'\'G.!QtOS2Config 164 G.!QtBuild = G.!QTDirP'\'G.!QtBuild 155 165 G.!QModulesH = G.!QTDirP'\'G.!QModulesH 156 166 G.!QConfigH = G.!QTDirP'\'G.!QConfigH … … 264 274 call WriteVar G.!ConfigCache, 'Opt.!GIF' 265 275 276 call WriteVar G.!ConfigCache, 'Opt.!QTCustomDefines' 277 266 278 call lineout G.!ConfigCache 267 279 … … 510 522 Opt.!DLL = -choice + 2 511 523 512 MagicConfig = ''524 OfficialBuildConfig = '' 513 525 514 526 if (Opt.!DLL == 1) then do … … 527 539 if (name == 'qt_official_build') then do 528 540 /* magic CONFIG keyword to mark the Qt build as official */ 529 MagicConfig = 'qt_official_build ' 530 name = Opt.!CustomDLLName 541 OfficialBuildConfig = 'qt_official_build ' 531 542 leave 532 543 end … … 534 545 if (upperName \= '' & length(upperName) <= 8 &, 535 546 verify(upperName,'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_') == 0 &, 536 left(upperName, 2) \= 'QT') then leave 547 left(upperName, 2) \= 'QT') then do 548 Opt.!CustomDLLName = name 549 call DeleteFile G.!QtBuild 550 leave 551 end 537 552 call SayErr 'The entered name is not valid.' 538 553 say 539 554 end 540 Opt.!CustomDLLName = name541 555 end 542 556 … … 565 579 end 566 580 581 if (OfficialBuildConfig == '') then do 582 call SaySay 'Enter a list of custom Qt defines separated by spaces' 583 Opt.!QTCustomDefines =, 584 InputLine('(if you don''t know what it is, just press Enter):',, 585 Opt.!QTCustomDefines) 586 Opt.!QTCustomDefines = strip(Opt.!QTCustomDefines) 587 end 588 567 589 call WriteConfigCache 568 590 … … 679 701 call SaySay 'Library type : 'DllOrStatic', 'ReleaseOrDebug', multithreaded' 680 702 if (Opt.!DLL == 1) then do 681 if ( MagicConfig == '') then703 if (OfficialBuildConfig == '') then 682 704 call SaySay 'Library name : 'Opt.!CustomDLLName 683 705 else … … 686 708 call SaySay 'Modules : 'BasicModules OptionalModules 687 709 call SaySay 'Other features : 'OptionalConfig 710 if (Opt.!QTCustomDefines \= '') then 711 call SaySay 'Custom defines : 'Opt.!QTCustomDefines 688 712 say 689 713 … … 714 738 call lineout qmake_cache, 'imageformat-plugins+=' 715 739 call lineout qmake_cache, 'QT_PRODUCT=qt-enterprise' 716 call lineout qmake_cache, 'CONFIG+=' MagicConfig'nocrosscompiler',740 call lineout qmake_cache, 'CONFIG+='OfficialBuildConfig'nocrosscompiler', 717 741 BasicModules OptionalModules, 718 742 'minimal-config small-config medium-config large-config full-config ', … … 733 757 call lineout qmake_cache 734 758 735 if (Opt.!DLL == 1 ) then759 if (Opt.!DLL == 1 & OfficialBuildConfig == '') then 736 760 call lineout qtos2config, 'QMAKE_QT_DLL_TARGET = 'Opt.!CustomDLLName 737 call lineout qtos2config, 'CONFIG += 'SharedOrNot' thread 'ReleaseOrDebug 738 call lineout qtos2config, ' exists( $(QTDIR)\.qtos2defines ) {'739 call lineout qtos2config, ' include( $(QTDIR)\.qtos2defines )'740 call lineout qtos2config, ' QMAKE_INTERNAL_INCLUDED_FILES += $(QTDIR)\.qtos2defines'741 call lineout qtos2config, ' }'761 call lineout qtos2config, 'CONFIG += 'SharedOrNot' thread 'ReleaseOrDebug' no_mocdepend' 762 call lineout qtos2config, 'QMAKE_DEFINES_QT += 'G.!QTMandatoryDefines 763 if (OfficialBuildConfig == '' & Opt.!QTCustomDefines \= '') then 764 call lineout qtos2config, 'QMAKE_DEFINES_QT += 'Opt.!QTCustomDefines 765 call lineout qtos2config, 'QMAKE_INTERNAL_INCLUDED_FILES += $(QTDIR)\.qtos2config' 742 766 call lineout qtos2config 743 767 … … 830 854 831 855 if (\no_cleanup_query) then do 832 call SaySay "Clean up the previous build?"856 call SaySay "Clean up *everything* before compiling?" 833 857 do_cleanup =, 834 858 GetYesNo("(answering N (no) is usually the best choice)", 'N') -
trunk/mkspecs/os2-g++/qmake.conf
r90 r93 16 16 17 17 exists( $(QTDIR)\.qtos2config ) { 18 18 include( $(QTDIR)\.qtos2config ) 19 19 } 20 exists( $(QTDIR)\. build ) {21 include( $(QTDIR)\. build )20 exists( $(QTDIR)\.qtbuild ) { 21 include( $(QTDIR)\.qtbuild ) 22 22 } 23 23 … … 66 66 QMAKE_LIBDIR_QT = $(QTDIR)\lib 67 67 QMAKE_LIBDIR_QT_DEBUG = $(QTDIR)\lib\debug 68 69 QMAKE_DEFINES_QT += 68 70 69 71 # As a workaround for the CMD.EXE command line length limitation (1024 chars) -
trunk/os2-doc/doc.html
r89 r93 342 342 <kbd>debug</kbd> keywords in the <code>CONFIG</code> statement.</p> 343 343 344 <p>21. The <code>VERSION</code> project variable is copied by qmake (as345 is) to the generated makefile. Note that its value does not affect the346 name of the generated DLL target anymore (for projects with the347 <kbd>lib</kbd> template and with the <kbd>dll</kbd> keyword in344 <p>21. The <code>VERSION</code> project variable is copied by 345 <kbd>qmake</kbd> (as is) to the generated makefile. Note that its value 346 does not affect the name of the generated DLL target anymore (for projects 347 with the <kbd>lib</kbd> template and with the <kbd>dll</kbd> keyword in 348 348 <code>CONFIG</code>), as opposed to other qmake backends. Appending a 349 349 version number to the DLL name could implicitly lead to running out of the … … 352 352 be used by qmake compiler specifications to embed the version to the 353 353 generated DLL file itself (as the GCC specification does).</p> 354 355 <p>22. Added the internal qmake variable <code>QMAKE_DEFINES_QT</code>. It 356 is intended to list a set of C/C++ defines to be used during compilation 357 of C/C++ sources when either <kbd>qt</kbd>, <kbd>qtinc</kbd> or 358 <kbd>build_qt</kbd> is present in the <code>CONFIG</code> statement. Using 359 this variable instead of <code>DEFINES</code> keeps non-Qt projects free 360 from Qt-only related defines (otherwise added to every Makefile generated 361 by <kbd>qmake</kbd> from any project file).</p> 354 362 </body> 355 363 </html> -
trunk/qmake/generators/os2/gnumake.cpp
r89 r93 450 450 if (project->isActiveConfig("qt") && project->isActiveConfig("shared")) 451 451 project->variables()["DEFINES"].append("QT_DLL"); 452 453 if (!project->variables()["QMAKE_DEFINES_QT"].isEmpty() && 454 (is_qt || project->isActiveConfig("qt") || project->isActiveConfig("qtinc"))) { 455 QStringList &defs = project->variables()["DEFINES"]; 456 QStringList &qtdefs = project->variables()["QMAKE_DEFINES_QT"]; 457 QStringList::ConstIterator it = qtdefs.end(); 458 while (it != qtdefs.begin()) { 459 --it; 460 if (!defs.contains(*it)) 461 defs.prepend(*it); 462 } 463 } 452 464 453 465 if (project->isActiveConfig("qt_dll")) -
trunk/src/qt.pro
r86 r93 178 178 shared:os2:qt_official_build { 179 179 TARGET = qt$$split(VERSION,.,) 180 system( echo QMAKE_QT_DLL_TARGET = $$TARGET > ..\. build )180 system( echo QMAKE_QT_DLL_TARGET = $$TARGET > ..\.qtbuild ) 181 181 } else { 182 182 TARGET = $$QMAKE_QT_DLL_TARGET
Note:
See TracChangeset
for help on using the changeset viewer.