WTF.pri 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # -------------------------------------------------------------------
  2. # This file contains shared rules used both when building WTF itself
  3. # and for targets that depend in some way on WTF.
  4. #
  5. # See 'Tools/qmake/README' for an overview of the build system
  6. # -------------------------------------------------------------------
  7. # All external modules should include WTF headers by prefixing with "wtf" (#include <wtf/some/thing.h>).
  8. INCLUDEPATH += $$PWD
  9. mac {
  10. # Mac OS does ship libicu but not the associated header files.
  11. # Therefore WebKit provides adequate header files.
  12. INCLUDEPATH += $${ROOT_WEBKIT_DIR}/Source/WTF/icu
  13. LIBS += -licucore
  14. } else {
  15. contains(QT_CONFIG,icu) {
  16. win32: LIBS += -licuin -licuuc -licudt
  17. else: LIBS += -licui18n -licuuc -licudata
  18. }
  19. }
  20. linux-*:use?(GSTREAMER) {
  21. DEFINES += WTF_USE_GLIB=1
  22. PKGCONFIG += glib-2.0 gio-2.0
  23. }
  24. win32-* {
  25. LIBS += -lwinmm
  26. LIBS += -lgdi32
  27. }
  28. qnx {
  29. # required for timegm
  30. LIBS += -lnbutil
  31. }
  32. mac {
  33. LIBS += -framework AppKit
  34. }
  35. # MSVC is lacking stdint.h as well as inttypes.h.
  36. win32-msvc*|win32-icc|wince*: INCLUDEPATH += $$ROOT_WEBKIT_DIR/Source/JavaScriptCore/os-win32