Almond.pro 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. #-------------------------------------------------
  2. #
  3. # Project created by QtCreator 2019-05-03T18:16:23
  4. #
  5. #-------------------------------------------------
  6. QT += core gui opengl xml
  7. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  8. TARGET = Almond
  9. TEMPLATE = app
  10. RC_ICONS = almond.ico
  11. # The following define makes your compiler emit warnings if you use
  12. # any feature of Qt which has been marked as deprecated (the exact warnings
  13. # depend on your compiler). Please consult the documentation of the
  14. # deprecated API in order to know how to port your code away from it.
  15. DEFINES += QT_DEPRECATED_WARNINGS
  16. # You can also make your code fail to compile if you use deprecated APIs.
  17. # In order to do so, uncomment the following line.
  18. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  19. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  20. CONFIG += c++17
  21. @CONFIG += debug_and_release@
  22. QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.12
  23. SOURCES += \
  24. Almond.cpp \
  25. AlmondMenuWidget.cpp \
  26. BackgroundTask.cpp \
  27. Color.cpp \
  28. EscapeTimeVisualWidget.cpp \
  29. ExportImageMenu.cpp \
  30. ExportVideoMenu.cpp \
  31. FractalWidget.cpp \
  32. FractalWidgetUtils.cpp \
  33. FractalZoomWidget.cpp \
  34. GradientMenu.cpp \
  35. GradientWidget.cpp \
  36. MandelWidget.cpp \
  37. choosegenerators.cpp \
  38. customgenerator.cpp \
  39. exportdialogs.cpp \
  40. gradientchoosedialog.cpp \
  41. GridFlowLayout.cpp \
  42. main.cpp
  43. HEADERS += \
  44. Almond.h \
  45. AlmondMenuWidget.h \
  46. BackgroundTask.h \
  47. Color.h \
  48. EscapeTimeVisualWidget.h \
  49. ExportImageMenu.h \
  50. ExportVideoMenu.h \
  51. FractalWidget.h \
  52. FractalWidgetUtils.h \
  53. FractalZoomWidget.h \
  54. GradientMenu.h \
  55. GradientWidget.h \
  56. MandelWidget.h \
  57. choosegenerators.h \
  58. customgenerator.h \
  59. exportdialogs.h \
  60. GridFlowLayout.h \
  61. gradientchoosedialog.h
  62. FORMS += \
  63. Almond.ui \
  64. ExportImageMenu.ui \
  65. ExportVideoMenu.ui \
  66. GradientMenu.ui \
  67. choosegenerators.ui \
  68. customgenerator.ui \
  69. exportimagedialog.ui \
  70. exportvideodialog.ui \
  71. gradientchooser.ui
  72. # Default rules for deployment.
  73. qnx: target.path = /tmp/$${TARGET}/bin
  74. else: unix:!android: target.path = /opt/$${TARGET}/bin
  75. !isEmpty(target.path): INSTALLS += target
  76. win32:QMAKE_CXXFLAGS += -openmp
  77. else:unix:QMAKE_CXXFLAGS += -fopenmp
  78. win32:QMAKE_LFLAGS += -openmp
  79. else:unix:QMAKE_LFLAGS+= -fopenmp
  80. LIBS += -fopenmp
  81. unix:LIBS += -lm -latomic
  82. win32:CONFIG(release, debug|profile|release): LIBS += -L$$PWD/../libs/ffmpeg-20200216-8578433-win64-dev/lib/ -lavcodec
  83. else:win32:CONFIG(debug, debug|profile|release): LIBS += -L$$PWD/../libs/ffmpeg-20200216-8578433-win64-dev/lib/ -lavcodec
  84. else:unix: LIBS += -lavcodec
  85. win32:FFMPEGPATH = $$PWD/../libs/ffmpeg-20200216-8578433-win64-dev/lib/
  86. win32:INCLUDEPATH += $$PWD/../libs/ffmpeg-20200216-8578433-win64-dev/include
  87. win32:DEPENDPATH += $$PWD/../libs/ffmpeg-20200216-8578433-win64-dev/include
  88. win32:INCLUDEPATH += ../libs/boost_1_72_0
  89. DEFINES += WITH_BOOST=1
  90. win32:LIBS += -L$$PWD/../libs/libjpeg-turbo-2.0.4/libjpeg-turbo-2.0.4/build/Release
  91. win32:INCLUDEPATH += $$PWD/../libs/libjpeg-turbo-2.0.4/libjpeg-turbo-2.0.4
  92. #win32:CONFIG(release, debug|release): LIBS += -L$$PWD/'../../../../../Program Files (x86)/AMD APP SDK/3.0/lib/x86/' -lOpenCL
  93. #else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/'../../../../../Program Files (x86)/AMD APP SDK/3.0/lib/x86/' -lOpenCL
  94. #else:unix: LIBS += -lOpenCL
  95. win32:INCLUDEPATH += $$PWD/'../../../../../Program Files (x86)/AMD APP SDK/3.0/include'
  96. win32:DEPENDPATH += $$PWD/'../../../../../Program Files (x86)/AMD APP SDK/3.0/include'
  97. win32:CONFIG(release, debug|release): LIBS += -L$FFMPEGPATH -lavformat
  98. else:win32:CONFIG(debug, debug|release): LIBS += -L$FFMPEGPATH -lavformat
  99. else:unix: LIBS += -L$FFMPEGPATH -lavformat
  100. #INCLUDEPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  101. #DEPENDPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  102. unix|win32: LIBS += -L$FFMPEGPATH -lavdevice
  103. #INCLUDEPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  104. #DEPENDPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  105. unix|win32: LIBS += -L$FFMPEGPATH -lavfilter
  106. #INCLUDEPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  107. #DEPENDPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  108. unix|win32: LIBS += -L$FFMPEGPATH -lavutil
  109. #INCLUDEPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  110. #DEPENDPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  111. unix|win32: LIBS += -L$FFMPEGPATH -lswscale
  112. #INCLUDEPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  113. #DEPENDPATH += $$PWD/../libs/ffmpeg-4.1.1-win32-dev/include
  114. RESOURCES += Almond.qrc \
  115. splash.qrc
  116. win32:LIBS += -llibpng16_static -lzlibstatic -ljpeg
  117. unix|win32: LIBS += -L$$PWD/libmandel/ -L$$PWD/libalmond/ -lmandel -lqd -lasmjit -lalmond
  118. unix: LIBS += -lrt -lpng -ljpeg -lavcodec -lavdevice -lavformat -lavutil -lswscale -lavfilter
  119. INCLUDEPATH += $$PWD/libmandel/include $$PWD/libmandel/qd-2.3.22/include $$PWD/libalmond/include
  120. DEPENDPATH += $$PWD/libmandel/include $$PWD/libmandel/qd-2.3.22/include $$PWD/libalmond/include
  121. INCLUDEPATH += $$PWD/libmandel/include $$PWD/libmandel/asmjit/src $$PWD/libalmond/include
  122. DEPENDPATH += $$PWD/libmandel/include $$PWD/libmandel/asmjit/stc $$PWD/libalmond/include
  123. win32:!win32-g++: PRE_TARGETDEPS += $$PWD/libmandel/asmjit.lib $$PWD/libmandel/mandel.lib $$PWD/libmandel/qd.lib $$PWD/libalmond/almond.lib
  124. else:unix|win32-g++: PRE_TARGETDEPS += $$PWD/libmandel/libmandel.a $$PWD/libmandel/libqd.a $$PWD/libmandel/libasmjit.a $$PWD/libalmond/libalmond.a
  125. win32:CONFIG(release, debug|release): LIBS += -L$$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/lib/x86_64/' -lopencl
  126. else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/lib/x86_64/' -lopencl
  127. else:unix: LIBS += -lOpenCL
  128. win32:INCLUDEPATH += $$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/include'
  129. win32:DEPENDPATH += $$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/include'
  130. macx:INCLUDEPATH += /usr/local/Cellar/ffmpeg/4.2.2_2/include/
  131. macx:INCLUDEPATH += /usr/local/Cellar/boost/1.72.0_1/include/
  132. win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/lib/x86_64/libopencl.a'
  133. else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/lib/x86_64/libopencl.a'
  134. else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/lib/x86_64/opencl.lib'
  135. else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/'../../../../../Program Files (x86)/OCL_SDK_Light/lib/x86_64/opencl.lib'