f0f78eb0a9
The architecture is detected at compile time based on the predefined macros from the compiler. Don't use QT_ARCH in .pro, .pri, or .prf files. The PNG_NO_ASSEMBLER_CODE define from libpng.pri is not present in the current copy of src/3rdparty/libpng, so no change in functionality is expected. The conditional for the SUPPORT_JIT define in pcre.pri is moved to src/3rdparty/pcre/config.h, again so that we can use the compiler's predefined macros to detect the architecture at compile time. Replace QT_ARCH_ARM, QT_ARCH_MIPS, and QT_ARCH_SPARC with their Q_PROCESSOR_* equivalents. Replace QT_ARCH_INTEGRITY, QT_ARCH_VXWORKS, and QT_ARCH_WINDOWSCE with their Q_OS_* equivalents. Note that this commit also effectively disables the SPARC atomic implementation. An inline implementation for SPARC needs to be added, or we remove the current code and instead rely on the GCC intrinsic or C++11 std::atomic support on SPARC. Note also that this commit does not remove QT_ARCH from configure or qconfig.h. This will continue to be set until all Qt 5 projects can be moved away from using QT_ARCH. Change-Id: I5de747cc4436d21941329974cff3016970f497b8 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
#always install the library
|
|
win32 {
|
|
dlltarget.path=$$[QT_INSTALL_BINS]
|
|
INSTALLS += dlltarget
|
|
}
|
|
target.path=$$[QT_INSTALL_LIBS]
|
|
INSTALLS += target
|
|
|
|
#headers
|
|
qt_install_headers {
|
|
INSTALL_HEADERS = $$SYNCQT.HEADER_FILES
|
|
equals(TARGET, QtCore) {
|
|
#headers created by configure
|
|
INSTALL_HEADERS *= $$QT_BUILD_TREE/src/corelib/global/qconfig.h
|
|
}
|
|
|
|
equals(TARGET, phonon) {
|
|
class_headers.path = $$[QT_INSTALL_HEADERS]/$$TARGET
|
|
} else {
|
|
flat_headers.files = $$INSTALL_HEADERS
|
|
flat_headers.path = $$[QT_INSTALL_HEADERS]/Qt
|
|
INSTALLS += flat_headers
|
|
|
|
class_headers.path = $$[QT_INSTALL_HEADERS]/$$TARGET
|
|
}
|
|
class_headers.files = $$SYNCQT.HEADER_CLASSES
|
|
INSTALLS += class_headers
|
|
|
|
targ_headers.files = $$INSTALL_HEADERS
|
|
targ_headers.path = $$[QT_INSTALL_HEADERS]/$$TARGET
|
|
INSTALLS += targ_headers
|
|
|
|
private_headers.files = $$SYNCQT.PRIVATE_HEADER_FILES
|
|
private_headers.path = $$[QT_INSTALL_HEADERS]/$$TARGET/$$eval(QT.$${MODULE}.VERSION)/$$TARGET/private
|
|
INSTALLS += private_headers
|
|
}
|
|
|
|
embedded: equals(TARGET, QtGui) {
|
|
# install fonts for embedded
|
|
INSTALLS += fonts
|
|
fonts.path = $$[QT_INSTALL_LIBS]/fonts
|
|
fonts.files = $$QT_SOURCE_TREE/lib/fonts/*
|
|
}
|