2016-01-06 12:01:22 +00:00
|
|
|
build_pass:console {
|
2011-04-27 10:05:43 +00:00
|
|
|
warning("QAxServer applications cannot be console applications.")
|
|
|
|
warning("Remove 'console' from your CONFIG.")
|
|
|
|
}
|
|
|
|
|
2012-11-29 12:14:31 +00:00
|
|
|
# Do not link qtmain.lib
|
|
|
|
QMAKE_LIBS_QT_ENTRY =
|
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
ACTIVEQT_VERSION = $$VERSION
|
|
|
|
isEmpty(ACTIVEQT_VERSION):ACTIVEQT_VERSION = 1.0
|
|
|
|
|
2012-09-13 15:34:35 +00:00
|
|
|
qtPrepareTool(QMAKE_IDC, idc)
|
2011-04-27 10:05:43 +00:00
|
|
|
contains(TEMPLATE, "vc.*") {
|
2012-05-22 13:28:48 +00:00
|
|
|
ACTIVEQT_IDC = $${QMAKE_IDC}
|
2011-04-27 10:05:43 +00:00
|
|
|
ACTIVEQT_IDL = $${QMAKE_IDL}
|
2015-02-25 14:28:36 +00:00
|
|
|
ACTIVEQT_TARGET = \"$(TargetPath)\"
|
2017-05-22 14:35:39 +00:00
|
|
|
ACTIVEQT_NEWLINE = $$escape_expand(\\n\\t)
|
|
|
|
ACTIVEQT_OUTPUT = $(IntDir)$${TARGET}
|
2015-02-25 14:28:36 +00:00
|
|
|
ACTIVEQT_TLBOUT = \"$(TargetDir)/$${TARGET}.tlb\"
|
2011-04-27 10:05:43 +00:00
|
|
|
GENERATED += $${OBJECTS_DIR}/$${TARGET}.idl $${ACTIVEQT_TLBOUT}
|
|
|
|
} else {
|
|
|
|
ACTIVEQT_IDC = -$(IDC)
|
|
|
|
ACTIVEQT_IDL = -$(IDL)
|
|
|
|
ACTIVEQT_NEWLINE = $$escape_expand(\\n\\t)
|
|
|
|
ACTIVEQT_TARGET = $(DESTDIR_TARGET)
|
|
|
|
ACTIVEQT_OUTPUT = $(OBJECTS_DIR)/$${TARGET}
|
|
|
|
isEmpty(DESTDIR) {
|
|
|
|
ACTIVEQT_TLBOUT = $${TARGET}.tlb
|
|
|
|
} else {
|
|
|
|
ACTIVEQT_TLBOUT = $${DESTDIR}/$${TARGET}.tlb
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
!qaxserver_no_postlink {
|
|
|
|
!isEmpty(QMAKE_POST_LINK):QMAKE_POST_LINK += $$quote($$ACTIVEQT_NEWLINE)
|
|
|
|
QMAKE_POST_LINK += $$quote($$ACTIVEQT_IDC $${ACTIVEQT_TARGET} /idl $${ACTIVEQT_OUTPUT}.idl -version $${ACTIVEQT_VERSION}$${ACTIVEQT_NEWLINE})
|
|
|
|
!isEmpty(RC_FILE) {
|
|
|
|
QMAKE_POST_LINK += $$quote($$ACTIVEQT_IDL "$${ACTIVEQT_OUTPUT}.idl" /nologo /tlb "$${ACTIVEQT_OUTPUT}.tlb"$$ACTIVEQT_NEWLINE)
|
|
|
|
QMAKE_POST_LINK += $$quote($$ACTIVEQT_IDC $${ACTIVEQT_TARGET} /tlb $${ACTIVEQT_OUTPUT}.tlb$$ACTIVEQT_NEWLINE)
|
|
|
|
} else {
|
|
|
|
QMAKE_POST_LINK += $$quote($$ACTIVEQT_IDL "$${ACTIVEQT_OUTPUT}.idl" /nologo /tlb "$${ACTIVEQT_TLBOUT}"$$ACTIVEQT_NEWLINE)
|
|
|
|
message("No rc-file linked into project; type library will be a separate file.")
|
|
|
|
}
|
2015-03-16 16:21:40 +00:00
|
|
|
!qaxserver_no_register: \
|
|
|
|
QMAKE_POST_LINK += $$quote($$ACTIVEQT_IDC $${ACTIVEQT_TARGET} /regserver)
|
2011-04-27 10:05:43 +00:00
|
|
|
QMAKE_CLEAN += $${ACTIVEQT_OUTPUT}.idl $${ACTIVEQT_OUTPUT}.tlb
|
|
|
|
}
|
|
|
|
|