socketdemo.pro 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # Copyright (c) 2011 Nokia Corporation.
  2. QT += core gui declarative network
  3. CONFIG += qt-components
  4. TARGET = socketdemo
  5. TEMPLATE = app
  6. VERSION = 0.0.1
  7. SOURCES += main.cpp \
  8. serversocket.cpp \
  9. clientsocket.cpp
  10. HEADERS += \
  11. serversocket.h \
  12. clientsocket.h
  13. # Publish the app version to source code.
  14. DEFINES += APP_VERSION=\\\"$$VERSION\\\"
  15. # Symbian specific
  16. symbian {
  17. message(Symbian build)
  18. TARGET = SocketDemo
  19. TARGET.UID3 = 0xea6c2794
  20. TARGET.CAPABILITY += NetworkServices
  21. TARGET.EPOCSTACKSIZE = 0x14000
  22. TARGET.EPOCHEAPSIZE = 0x1000 0x1800000 # 24MB
  23. #ICON = icon.svg
  24. # Define the preprocessor macro to get the version in our app.
  25. contains(SYMBIAN_VERSION, Symbian3) {
  26. message(Symbian^3 build)
  27. DEFINES += APP_VERSION=\"$$VERSION\"
  28. }
  29. else {
  30. message(Symbian^1 build)
  31. DEFINES += Q_OS_SYMBIAN_1
  32. }
  33. OTHER_FILES += qml/SocketDemo/*.qml
  34. qmlfiles.sources = qml
  35. DEPLOYMENT += qmlfiles
  36. }
  37. # Simulator
  38. simulator {
  39. message(Simulator build)
  40. OTHER_FILES += qml/SocketDemo/*.qml
  41. system(mkdir ..\\SocketDemo-build-simulator\\qml\\symbian)
  42. system(mkdir ..\\SocketDemo-build-simulator\\qml\\common)
  43. system(copy qml\\SocketDemo\\*.* ..\\SocketDemo-build-simulator\\qml\\SocketDemo)
  44. }