Changeset 295 for trunk/mkspecs


Ignore:
Timestamp:
Nov 6, 2009, 1:59:22 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

mkspecs/features/os2/default_post.prf: Refer to various components of the path to the implicitly generated .DEF file using make variables rather than qmake variables to make sure any future problems like the one fixed in r294 will not affect it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mkspecs/features/os2/default_post.prf

    r293 r295  
    33
    44wlink:build_pass {
    5     # Neither WLINK nor EMXOMFLD does allow us to specify the application type
    6     # of the .EXE on the command line. For this reason, we need an implicit .DEF
     5    # Neither WLINK nor EMXOMFLD allows us to specify the application type of
     6    # the .EXE on the command line. For this reason, we need an implicit .DEF
    77    # file which we create unless an explicit .DEF file is provided in .pro.
    88    contains(TEMPLATE, ".*app") {
    99        isEmpty(DEF_FILE) {
    10             isEmpty(OBJECTS_DIR) {
    11                 DEF_FILE = $${TARGET}.apptype.def
    12             } else {
    13                 DEF_FILE = $${OBJECTS_DIR}/$${TARGET}.apptype.def
    14             }
     10            DEF_FILE = $(OBJECTS_DIR)/$(TARGET).def
    1511
    1612            make_apptype_def.target = $(DEF_FILE)
    1713            make_apptype_def.depends = $(call q,$(MAKEFILE))
    1814            windows {
    19                 make_apptype_def.commands = @echo NAME $$TARGET WINDOWAPI > $(DEF_FILE)
     15                make_apptype_def.commands = @echo NAME $(QMAKE_TARGET) WINDOWAPI > $(DEF_FILE)
    2016            } else {
    21                 make_apptype_def.commands = @echo NAME $$TARGET WINDOWCOMPAT > $(DEF_FILE)
     17                make_apptype_def.commands = @echo NAME $(QMAKE_TARGET) WINDOWCOMPAT > $(DEF_FILE)
    2218            }
    2319            QMAKE_EXTRA_TARGETS += make_apptype_def
Note: See TracChangeset for help on using the changeset viewer.