- DEFINES += WINCEBASIC
-
- INCLUDEPATH += $$PWD/../JavaScriptCore/os-wince
- INCLUDEPATH += $$PWD/../JavaScriptCore/os-win32
-}
-
-
-defineTest(addJavaScriptCoreLib) {
- # Argument is the relative path to JavaScriptCore.pro's qmake output
- pathToJavaScriptCoreOutput = $$ARGS/$$JAVASCRIPTCORE_DESTDIR
-
- win32-msvc*|wince* {
- LIBS += -L$$pathToJavaScriptCoreOutput
- LIBS += -l$$JAVASCRIPTCORE_TARGET
- POST_TARGETDEPS += $${pathToJavaScriptCoreOutput}$${QMAKE_DIR_SEP}$${JAVASCRIPTCORE_TARGET}.lib
- } else:symbian {
- LIBS += -l$${JAVASCRIPTCORE_TARGET}.lib
- # The default symbian build system does not use library paths at all. However when building with
- # qmake's symbian makespec that uses Makefiles
- QMAKE_LIBDIR += $$pathToJavaScriptCoreOutput
- POST_TARGETDEPS += $${pathToJavaScriptCoreOutput}$${QMAKE_DIR_SEP}$${JAVASCRIPTCORE_TARGET}.lib
- } else {
- # Make sure jscore will be early in the list of libraries to workaround a bug in MinGW
- # that can't resolve symbols from QtCore if libjscore comes after.
- QMAKE_LIBDIR = $$pathToJavaScriptCoreOutput $$QMAKE_LIBDIR
- LIBS += -l$$JAVASCRIPTCORE_TARGET
- POST_TARGETDEPS += $${pathToJavaScriptCoreOutput}$${QMAKE_DIR_SEP}lib$${JAVASCRIPTCORE_TARGET}.a
- }
-
- win32-* {
- LIBS += -lwinmm
- }
-
- # 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 and QtScript
- # statically in applications (which isn't used often because, among other things, of licensing obstacles).
- CONFIG -= explicitlib
-
- export(QMAKE_LIBDIR)
- export(LIBS)
- export(POST_TARGETDEPS)
- export(CONFIG)
-
- return(true)