Changeset 406 for trunk/qmake


Ignore:
Timestamp:
Dec 10, 2009, 12:56:17 AM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

qmake: Build qmake second time after building all DLLs using its .pro and link it to Qt DLLs on OS/2 (this became possible after the fix in #405). This greatly reduces its size and finally fixes the national characters in the date printed in the generarted Makefile headers.

Location:
trunk/qmake
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/qmake/Makefile.os2-g++

    r394 r406  
    3838endif
    3939
    40 OBJECTS_DIR = release-shared
     40OBJECTS_DIR = release-bootstrap
    4141
    4242# qmake code
     
    152152OBJECTS     = $(foreach src,$(SOURCES),$(call SRC_TO_OBJ,$(src)))
    153153
    154 $(BUILD_PATH)\bin\qmake.exe: $(OBJECTS)
     154qmake.exe: $(OBJECTS_DIR) $(OBJECTS)
    155155        $(LINK) -o $@ $(OBJECTS) $(LIBS)
     156ifneq "$(QMAKE_EXEPACK)" ""
     157        $(QMAKE_EXEPACK) $(QMAKE_EXEPACK_FLAGS) $@ $(QMAKE_EXEPACK_POST_FLAGS)
     158endif
     159        copy $@ $(BUILD_PATH)\bin\
     160
     161$(OBJECTS_DIR):
     162        @mkdir $(OBJECTS_DIR)
    156163
    157164Makefile: Makefile.os2-g++
     
    166173
    167174distclean:: clean
    168         -del $(BUILD_PATH)\bin\qmake.exe >nul 2>&1
     175        -del qmake.exe >nul 2>&1
    169176
    170177.SUFFIXES: .cpp .c
     
    178185define SRC_TO_OBJ_RULE
    179186$(call SRC_TO_OBJ,$(1)): $(1)
    180         @if not exist $(OBJECTS_DIR) mkdir $(OBJECTS_DIR)
    181187        $(CXX) -c $(CXXFLAGS) -o $$@ $$<
    182188endef
  • trunk/qmake/qmake.pri

    r389 r406  
    11CONFIG += depend_includepath
    2 
    3 QMAKE_INCREMENTAL =
    4 SKIP_DEPENDS += qconfig.h qmodules.h
    5 DEFINES += QT_NO_TEXTCODEC QT_NO_LIBRARY QT_NO_STL QT_NO_COMPRESS QT_NO_UNICODETABLES \
    6            QT_NO_GEOM_VARIANT QT_NO_DATASTREAM
    72
    83#qmake code
     
    2924
    3025bootstrap { #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
    3130   DEFINES+=QT_NODLL QT_NO_THREAD
    3231   SOURCES+= \
  • trunk/qmake/qmake.pro

    r389 r406  
    44#platform than either of the generic makefiles
    55
    6 CONFIG += console bootstrap
    7 CONFIG -= qt shared app_bundle uic
    8 DEFINES += QT_BUILD_QMAKE QT_BOOTSTRAPPED
     6os2 {
     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}
    915DESTDIR = ../bin/
    1016
     
    1723         $$QT_SOURCE_TREE/src/corelib/kernel \
    1824         $$QT_SOURCE_TREE/src/corelib/plugin \
    19         $$QT_SOURCE_TREE/src/corelib/io \
    20         $$QT_SOURCE_TREE/src/script
     25        $$QT_SOURCE_TREE/src/corelib/io \
     26        $$QT_SOURCE_TREE/src/script
    2127INCPATH += generators generators/unix generators/win32 generators/os2 generators/mac \
    2228           $$QT_SOURCE_TREE/include $$QT_SOURCE_TREE/include/QtCore \
Note: See TracChangeset for help on using the changeset viewer.