+2012-06-27 Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
+
+ [Qt] Use LIBS_PRIVATE instead of putting dependencies into LIBS
+
+ Reviewed by Tor Arne Vestbø..
+
+ * qmake/mkspecs/features/default_post.prf:
+ * qmake/mkspecs/features/functions.prf:
+
2012-06-28 Ryosuke Niwa <rniwa@webkit.org>
DOMHTMLCollection::item may return a wrong element after namedItem is called
# More juggling
dependent_libs = $$LIBS
- unset(LIBS)
+ LIBS = $$existing_libs
# But we might also need to link against it
needToLink() {
linkAgainstLibrary($$library, $$eval(WEBKIT.$${library_identifier}.root_source_dir))
- LIBS += $$dependent_libs
+ LIBS_PRIVATE += $$dependent_libs
}
-
- LIBS = $$existing_libs $$LIBS
}
equals(_PRO_FILE_, $${ROOT_WEBKIT_DIR}/WebKit.pro):!isEmpty(OVERRIDE_SUBDIRS) {
path = $$replace(source_dir, $${ROOT_WEBKIT_DIR}, $${ROOT_BUILD_DIR})/$$activeBuildConfig()
force_static_libs_as_shared {
- LIBS += -L$${ROOT_BUILD_DIR}/lib -l$$target
+ LIBS_PRIVATE += -L$${ROOT_BUILD_DIR}/lib -l$$target
} else {
mac {
- LIBS += -Wl,-force_load,$${path}$${QMAKE_DIR_SEP}lib$${target}.a
+ LIBS_PRIVATE += -Wl,-force_load,$${path}$${QMAKE_DIR_SEP}lib$${target}.a
} else:win32-msvc*|wince*|win32-icc {
- LIBS += /OPT:REF -l$$target
+ LIBS_PRIVATE += /OPT:REF -l$$target
} else {
- LIBS += -Wl,-whole-archive -l$$target -Wl,-no-whole-archive
+ LIBS_PRIVATE += -Wl,-whole-archive -l$$target -Wl,-no-whole-archive
}
win32-msvc*|wince*|win32-icc {
- LIBS += -L$$path
+ LIBS_PRIVATE += -L$$path
POST_TARGETDEPS += $${path}$${QMAKE_DIR_SEP}$${target}.lib
} else {
QMAKE_LIBDIR += $$path
POST_TARGETDEPS += $${path}$${QMAKE_DIR_SEP}lib$${target}.a
}
-
- # The following line is to prevent qmake from adding jscore to libQtWebKit's prl dependencies.
- # The compromise we have to accept by disabling explicitlib is to drop support to link QtWebKit
- # statically in applications (which isn't used often because, among other things, of licensing obstacles).
- CONFIG -= explicitlib
- CONFIG -= staticlib
}
- export(LIBS)
+ export(LIBS_PRIVATE)
export(QMAKE_LIBDIR)
export(POST_TARGETDEPS)
- export(CONFIG)
return(true)
}