Changeset 406
- Timestamp:
- Dec 10, 2009, 12:56:17 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.cmd
r393 r406 51 51 "QT_NO_PRINTER QT_NO_PRINTDIALOG QT_NO_DRAGANDDROP" 52 52 53 G.QT_DEFAULT_BUILD_PARTS = "libs tools " /* examples demos docs translations */53 G.QT_DEFAULT_BUILD_PARTS = "libs tools qmake" /* examples demos docs translations */ 54 54 55 55 /* all globals to be exposed in procedures */ … … 559 559 G.QMAKE_EXEPACK_POST_FLAGS = "" 560 560 end 561 /* export EXEPACK variables for building qmake (used by Makefile.os2-g++) */ 562 call SetEnv "QMAKE_EXEPACK", G.QMAKE_EXEPACK 563 call SetEnv "QMAKE_EXEPACK_FLAGS", G.QMAKE_EXEPACK_FLAGS 564 call SetEnv "QMAKE_EXEPACK_POST_FLAGS", G.QMAKE_EXEPACK_POST_FLAGS 561 565 562 566 /*-------------------------------------------------------------------------- … … 1723 1727 1724 1728 /*-------------------------------------------------------------------------- 1725 re-build qmake using the .pro file1726 --------------------------------------------------------------------------*/1727 1728 call SaySay "Rebuilding qmake. Please wait..."1729 1730 /* this is necessary to to get all the fancy things such as embedded1731 * version information */1732 1733 curdir = directory()1734 call directory G.RelPath"\qmake"1735 1736 /* first, generate a Makefile from .pro */1737 address "cmd" G.OutPath"\bin\qmake.exe"1738 make_rc = rc1739 1740 if (make_rc == 0) then do1741 /* now, run make */1742 address "cmd" G.MAKE "release"1743 make_rc = rc1744 end1745 call SaySay1746 1747 call directory curdir1748 1749 /* exit on failure */1750 if (make_rc \= 0) then1751 call Done 21752 1753 /*--------------------------------------------------------------------------1754 1729 build makefiles based on the configuration 1755 1730 --------------------------------------------------------------------------*/ … … 1763 1738 1764 1739 /* generate the root makefile */ 1765 address "cmd" G.OutPath"\bin\qmake.exe" G.RelPath"\projects.pro -o" G.OutPath"\Makefile" 1740 str = G.OutPath"\bin\qmake.exe" G.RelPath"\projects.pro -o" G.OutPath"\Makefile" 1741 say str 1742 address "cmd" str 1766 1743 make_rc = rc 1767 1744 /* exit on failure */ 1768 1745 if (make_rc \= 0) then 1769 1746 call Done 2 1747 1748 if (pos("qmake", G.CFG_BUILD_PARTS) > 0) then do 1749 /* generate the qmake makefile as well to overwrite the bootstrapped Makefile */ 1750 str = G.OutPath"\bin\qmake.exe" G.RelPath"\qmake\qmake.pro -o" G.OutPath"\qmake\Makefile" 1751 say str 1752 address "cmd" str 1753 make_rc = rc 1754 /* exit on failure */ 1755 if (make_rc \= 0) then 1756 call Done 2 1757 end 1770 1758 1771 1759 /* generate the immediate child makefiles, otherwise 'make release|debug' -
trunk/projects.pro
r236 r406 40 40 contains(QT_BUILD_PARTS, tools):include(translations/translations.pri) 41 41 } else:isEqual(PROJECT, qmake) { 42 #SUBDIRS += qmake42 os2:SUBDIRS += qmake 43 43 } else { 44 44 message(Unknown PROJECT: $$PROJECT) -
trunk/qmake/Makefile.os2-g++
r394 r406 38 38 endif 39 39 40 OBJECTS_DIR = release- shared40 OBJECTS_DIR = release-bootstrap 41 41 42 42 # qmake code … … 152 152 OBJECTS = $(foreach src,$(SOURCES),$(call SRC_TO_OBJ,$(src))) 153 153 154 $(BUILD_PATH)\bin\qmake.exe:$(OBJECTS)154 qmake.exe: $(OBJECTS_DIR) $(OBJECTS) 155 155 $(LINK) -o $@ $(OBJECTS) $(LIBS) 156 ifneq "$(QMAKE_EXEPACK)" "" 157 $(QMAKE_EXEPACK) $(QMAKE_EXEPACK_FLAGS) $@ $(QMAKE_EXEPACK_POST_FLAGS) 158 endif 159 copy $@ $(BUILD_PATH)\bin\ 160 161 $(OBJECTS_DIR): 162 @mkdir $(OBJECTS_DIR) 156 163 157 164 Makefile: Makefile.os2-g++ … … 166 173 167 174 distclean:: clean 168 -del $(BUILD_PATH)\bin\qmake.exe >nul 2>&1175 -del qmake.exe >nul 2>&1 169 176 170 177 .SUFFIXES: .cpp .c … … 178 185 define SRC_TO_OBJ_RULE 179 186 $(call SRC_TO_OBJ,$(1)): $(1) 180 @if not exist $(OBJECTS_DIR) mkdir $(OBJECTS_DIR)181 187 $(CXX) -c $(CXXFLAGS) -o $$@ $$< 182 188 endef -
trunk/qmake/qmake.pri
r389 r406 1 1 CONFIG += depend_includepath 2 3 QMAKE_INCREMENTAL =4 SKIP_DEPENDS += qconfig.h qmodules.h5 DEFINES += QT_NO_TEXTCODEC QT_NO_LIBRARY QT_NO_STL QT_NO_COMPRESS QT_NO_UNICODETABLES \6 QT_NO_GEOM_VARIANT QT_NO_DATASTREAM7 2 8 3 #qmake code … … 29 24 30 25 bootstrap { #Qt code 26 QMAKE_INCREMENTAL = 27 SKIP_DEPENDS += qconfig.h qmodules.h 28 DEFINES += QT_NO_TEXTCODEC QT_NO_LIBRARY QT_NO_STL QT_NO_COMPRESS QT_NO_UNICODETABLES \ 29 QT_NO_GEOM_VARIANT QT_NO_DATASTREAM 31 30 DEFINES+=QT_NODLL QT_NO_THREAD 32 31 SOURCES+= \ -
trunk/qmake/qmake.pro
r389 r406 4 4 #platform than either of the generic makefiles 5 5 6 CONFIG += console bootstrap 7 CONFIG -= qt shared app_bundle uic 8 DEFINES += QT_BUILD_QMAKE QT_BOOTSTRAPPED 6 os2 { 7 # using this .pro, we build non-bootstrapped qmake which links to Qt DLLs 8 CONFIG += console 9 CONFIG -= uic 10 } else { 11 CONFIG += console bootstrap 12 CONFIG -= qt shared app_bundle uic 13 DEFINES += QT_BUILD_QMAKE QT_BOOTSTRAPPED 14 } 9 15 DESTDIR = ../bin/ 10 16 … … 17 23 $$QT_SOURCE_TREE/src/corelib/kernel \ 18 24 $$QT_SOURCE_TREE/src/corelib/plugin \ 19 20 25 $$QT_SOURCE_TREE/src/corelib/io \ 26 $$QT_SOURCE_TREE/src/script 21 27 INCPATH += generators generators/unix generators/win32 generators/os2 generators/mac \ 22 28 $$QT_SOURCE_TREE/include $$QT_SOURCE_TREE/include/QtCore \
Note:
See TracChangeset
for help on using the changeset viewer.