CPPWebFramework.pro 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. #-------------------------------------------------
  2. #
  3. # Project created by QtCreator 2017-06-05T23:53:17
  4. #
  5. #-------------------------------------------------
  6. QT += network xml sql
  7. QT -= gui
  8. TEMPLATE = lib
  9. DEFINES += CPPWEBFRAMEWORK_LIBRARY
  10. # The following define makes your compiler emit warnings if you use
  11. # any feature of Qt which as been marked as deprecated (the exact warnings
  12. # depend on your compiler). Please consult the documentation of the
  13. # deprecated API in order to know how to port your code away from it.
  14. DEFINES += QT_DEPRECATED_WARNINGS
  15. # You can also make your code fail to compile if you use deprecated APIs.
  16. # In order to do so, uncomment the following line.
  17. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  18. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  19. SOURCES += \
  20. cwf/configuration.cpp \
  21. cwf/cppwebapplication.cpp \
  22. cwf/cppwebserver.cpp \
  23. cwf/cstlcompiler.cpp \
  24. cwf/cstlcompilerattributes.cpp \
  25. cwf/cstlcompilerfor.cpp \
  26. cwf/cstlcompilerif.cpp \
  27. cwf/cstlcompilerimport.cpp \
  28. cwf/filemanager.cpp \
  29. cwf/filterchain.cpp \
  30. cwf/httpparser.cpp \
  31. cwf/httpreadrequest.cpp \
  32. cwf/metaclassparser.cpp \
  33. cwf/properties.cpp \
  34. cwf/qlistobject.cpp \
  35. cwf/requestdispatcher.cpp \
  36. cwf/urlencoder.cpp \
  37. cwf/sqlquery.cpp \
  38. cwf/response.cpp \
  39. cwf/request.cpp \
  40. cwf/controller.cpp \
  41. cwf/session.cpp \
  42. cwf/cppwebcontroller.cpp \
  43. cwf/sslloader.cpp \
  44. cwf/filter.cpp \
  45. cwf/model.cpp \
  46. cwf/modelbasicoperation.cpp \
  47. cwf/sqlquerymanager.cpp
  48. HEADERS += \
  49. cwf/cppwebframework_global.h \
  50. cwf/configuration.h \
  51. cwf/constants.h \
  52. cwf/cppwebapplication.h \
  53. cwf/cppwebframework_global.h \
  54. cwf/cppwebserver.h \
  55. cwf/cstlcompiler.h \
  56. cwf/cstlcompilerattributes.h \
  57. cwf/cstlcompilerfor.h \
  58. cwf/cstlcompilerif.h \
  59. cwf/cstlcompilerimport.h \
  60. cwf/cstlcompilerobject.h \
  61. cwf/filemanager.h \
  62. cwf/filter.h \
  63. cwf/filterchain.h \
  64. cwf/httpparser.h \
  65. cwf/httpreadrequest.h \
  66. cwf/metaclassparser.h \
  67. cwf/properties.h \
  68. cwf/qlistobject.h \
  69. cwf/qmapthreadsafety.h \
  70. cwf/requestdispatcher.h \
  71. cwf/urlencoder.h \
  72. cwf/variant.h \
  73. cwf/sqldatabasestorage.h \
  74. cwf/sqlquery.h \
  75. cwf/controller.h \
  76. cwf/request.h \
  77. cwf/response.h \
  78. cwf/session.h \
  79. cwf/cppwebcontroller.h \
  80. cwf/sslloader.h \
  81. cwf/model.h \
  82. cwf/modelbasicoperation.h \
  83. cwf/sqlquerymanager.h
  84. DISTFILES += \
  85. server/config/ssl/my.key \
  86. server/config/ssl/my.cert \
  87. server/config/cppwebserverpages/403.view \
  88. server/config/cppwebserverpages/404.view \
  89. server/config/cppwebserverpages/index.view \
  90. server/config/cppwebserverpages/resources/images/logo.jpg \
  91. server/config/cppwebserverpages/resources/images/favicon.ico \
  92. server/config/cppwebserverpages/resources/css/cppweb.css \
  93. server/config/CPPWeb.ini \
  94. server/config/log/CPPWebServer.log
  95. unix {
  96. headers.path = /usr/lib/cwf
  97. headers.files += $$HEADERS
  98. target.path = /usr/lib
  99. config.path = /usr/lib/server
  100. config.files = server/*
  101. }
  102. macx {
  103. headers.path = /usr/local/lib/cwf
  104. headers.files += $$HEADERS
  105. target.path = /usr/local/lib
  106. config.path = /usr/local/lib/server
  107. config.files = server/*
  108. }
  109. win32 {
  110. headers.path = C:/cwf
  111. headers.files += $$HEADERS
  112. target.path = C:/cwf
  113. config.path = C:/cwf/server
  114. config.files = server/*
  115. }
  116. CONFIG += debug_and_release
  117. CONFIG += build_all
  118. CONFIG(debug, debug|release) {
  119. TARGET = CPPWebFrameworkd
  120. } else {
  121. TARGET = CPPWebFramework
  122. QMAKE_CXXFLAGS_RELEASE -= -O1
  123. QMAKE_CXXFLAGS_RELEASE -= -O2
  124. QMAKE_CXXFLAGS_RELEASE += -O3
  125. }
  126. INSTALLS += target
  127. INSTALLS += headers
  128. INSTALLS += config
  129. QMAKE_CXXFLAGS += -std=c++11
  130. #Strongly recommended
  131. #LIBS += -ljemalloc