JQLibrary.pri 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. #
  2. # This file is part of JQLibrary
  3. #
  4. # Copyright: Jason
  5. #
  6. # Contact email: 188080501@qq.com
  7. #
  8. # GNU Lesser General Public License Usage
  9. # Alternatively, this file may be used under the terms of the GNU Lesser
  10. # General Public License version 2.1 or version 3 as published by the Free
  11. # Software Foundation and appearing in the file LICENSE.LGPLv21 and
  12. # LICENSE.LGPLv3 included in the packaging of this file. Please review the
  13. # following information to ensure the GNU Lesser General Public License
  14. # requirements will be met: https://www.gnu.org/licenses/lgpl.html and
  15. # http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
  16. #
  17. QT *= core gui
  18. CONFIG *= c++11
  19. INCLUDEPATH *= \
  20. $$PWD/include/
  21. exists( $$PWD/src/JQBarcode.cpp ) {
  22. SOURCES *= $$PWD/src/JQBarcode.cpp
  23. HEADERS *= $$PWD/include/JQBarcode.h
  24. }
  25. contains( QT, bluetooth ) {
  26. exists( $$PWD/src/JQBluetooth.cpp ) {
  27. SOURCES *= $$PWD/src/JQBluetooth.cpp
  28. HEADERS *= $$PWD/include/JQBluetooth.h
  29. }
  30. mac | ios {
  31. DEFINES += JQBLUETOOTH_UUIDMODE
  32. }
  33. }
  34. exists( $$PWD/src/JQChecksum.cpp ) {
  35. SOURCES *= $$PWD/src/JQChecksum.cpp
  36. HEADERS *= $$PWD/include/JQChecksum.h
  37. }
  38. exists( $$PWD/src/JQExcel.cpp ) {
  39. SOURCES *= $$PWD/src/JQExcel.cpp
  40. HEADERS *= $$PWD/include/JQExcel.h
  41. }
  42. exists( $$PWD/src/JQFile.cpp ) {
  43. SOURCES *= $$PWD/src/JQFile.cpp
  44. HEADERS *= $$PWD/include/JQFile.h
  45. }
  46. unix | linux | mingw {
  47. exists( $$PWD/src/JQFilePack.cpp ) {
  48. SOURCES *= $$PWD/src/JQFilePack.cpp
  49. HEADERS *= $$PWD/include/JQFilePack.h
  50. }
  51. }
  52. exists( $$PWD/src/JQFoundation.cpp ) {
  53. DEFINES += JQFOUNDATION_LIB
  54. SOURCES *= $$PWD/src/JQFoundation.cpp
  55. HEADERS *= $$PWD/include/JQFoundation.h
  56. HEADERS *= $$PWD/include/jqdeclare.hpp
  57. }
  58. exists( $$PWD/src/jqgpio.cpp ) {
  59. SOURCES *= $$PWD/src/jqgpio.cpp
  60. HEADERS *= $$PWD/include/jqgpio.h
  61. }
  62. contains( QT, network ) {
  63. contains( QT, concurrent ) {
  64. exists( $$PWD/src/JQHttpServer.cpp ) {
  65. SOURCES *= $$PWD/src/JQHttpServer.cpp
  66. HEADERS *= $$PWD/include/JQHttpServer.h
  67. }
  68. }
  69. }
  70. ios {
  71. exists( $$PWD/src/JQiOS.cpp ) {
  72. LIBS *= -framework Foundation -framework UIKit
  73. OBJECTIVE_SOURCES *= $$PWD/src/JQiOS.mm
  74. HEADERS *= $$PWD/include/JQiOS.h
  75. }
  76. }
  77. exists( $$PWD/src/JQLanguage.cpp ) {
  78. SOURCES *= $$PWD/src/JQLanguage.cpp
  79. HEADERS *= $$PWD/include/JQLanguage.h
  80. }
  81. exists( $$PWD/src/JQNet.cpp ) {
  82. SOURCES *= $$PWD/src/JQNet.cpp
  83. HEADERS *= $$PWD/include/JQNet.h
  84. }
  85. exists( $$PWD/src/JQPropertyAnimation.cpp ) {
  86. SOURCES *= $$PWD/src/JQPropertyAnimation.cpp
  87. HEADERS *= $$PWD/include/JQPropertyAnimation.h
  88. }
  89. contains( QT, serialport ) {
  90. exists( $$PWD/src/JQSerialPort.cpp ) {
  91. SOURCES *= $$PWD/src/JQSerialPort.cpp
  92. HEADERS *= $$PWD/include/JQSerialPort.h
  93. }
  94. }
  95. exists( $$PWD/src/JQSettings.cpp ) {
  96. SOURCES *= $$PWD/src/JQSettings.cpp
  97. HEADERS *= $$PWD/include/JQSettings.h
  98. }
  99. exists( $$PWD/src/JQSms.cpp ) {
  100. SOURCES *= $$PWD/src/JQSms.cpp
  101. HEADERS *= $$PWD/include/JQSms.h
  102. }
  103. contains( QT, network ) {
  104. exists( $$PWD/src/JQSystemFlag.cpp ) {
  105. SOURCES *= $$PWD/src/JQSystemFlag.cpp
  106. HEADERS *= $$PWD/include/JQSystemFlag.h
  107. }
  108. }
  109. exists( $$PWD/src/jqthread.cpp ) {
  110. SOURCES *= $$PWD/src/jqthread.cpp
  111. HEADERS *= $$PWD/include/jqthread.h
  112. }
  113. contains( QT, multimedia | concurrent ) {
  114. exists( $$PWD/src/JQVop.cpp ) {
  115. SOURCES *= $$PWD/src/JQVop.cpp
  116. HEADERS *= $$PWD/include/JQVop.h
  117. }
  118. }
  119. exists( $$PWD/src/JQWeather.cpp ) {
  120. SOURCES *= $$PWD/src/JQWeather.cpp
  121. HEADERS *= $$PWD/include/JQWeather.h
  122. }
  123. contains( QT, webenginewidgets ) {
  124. exists( $$PWD/src/JQWebEngine.cpp ) {
  125. SOURCES *= $$PWD/src/JQWebEngine.cpp
  126. HEADERS *= $$PWD/include/JQWebEngine.h
  127. }
  128. }