|
Last change
on this file since 298 was 298, checked in by Dmitry A. Kuminov, 16 years ago |
|
mkspecs/features: If no 'windows', no 'console' is found when building on OS/2, set default to 'windows' if it's a release build against QtGui and 'console' in all other cases.
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Date Revision Author Id
|
|
File size:
1.0 KB
|
| Line | |
|---|
| 1 | !CONFIG(windows):!CONFIG(console) {
|
|---|
| 2 | CONFIG(release, debug|release):CONFIG(qt):contains(QT, gui) {
|
|---|
| 3 | CONFIG *= windows
|
|---|
| 4 | } else {
|
|---|
| 5 | CONFIG *= console
|
|---|
| 6 | }
|
|---|
| 7 | }
|
|---|
| 8 |
|
|---|
| 9 | # load the global default_post
|
|---|
| 10 | load(default_post)
|
|---|
| 11 |
|
|---|
| 12 | wlink:build_pass {
|
|---|
| 13 | # Neither WLINK nor EMXOMFLD allows us to specify the application type of
|
|---|
| 14 | # the .EXE on the command line. For this reason, we need an implicit .DEF
|
|---|
| 15 | # file which we create unless an explicit .DEF file is provided in .pro.
|
|---|
| 16 | contains(TEMPLATE, ".*app") {
|
|---|
| 17 | isEmpty(DEF_FILE) {
|
|---|
| 18 | DEF_FILE = $(OBJECTS_DIR)/$(TARGET).def
|
|---|
| 19 |
|
|---|
| 20 | make_apptype_def.target = $(DEF_FILE)
|
|---|
| 21 | make_apptype_def.depends = $(call q,$(MAKEFILE))
|
|---|
| 22 | windows {
|
|---|
| 23 | make_apptype_def.commands = @echo NAME $(QMAKE_TARGET) WINDOWAPI > $(DEF_FILE)
|
|---|
| 24 | } else {
|
|---|
| 25 | make_apptype_def.commands = @echo NAME $(QMAKE_TARGET) WINDOWCOMPAT > $(DEF_FILE)
|
|---|
| 26 | }
|
|---|
| 27 | QMAKE_EXTRA_TARGETS += make_apptype_def
|
|---|
| 28 | QMAKE_CLEAN += $(DEF_FILE)
|
|---|
| 29 | }
|
|---|
| 30 | }
|
|---|
| 31 | }
|
|---|
| 32 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.