diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 70 |
1 files changed, 59 insertions, 11 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2e096f9780..c34a6a1777 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -110,6 +110,11 @@ endif() option(QT6 "Build with Qt6" OFF) +option(QOPENGL "Use QOpenGLWindow based widget instead of QGLWidget" ON) +if(QOPENGL) + add_compile_definitions(MIXXX_USE_QOPENGL) +endif() + if(APPLE) if(QT6) # Minimum macOS version supported by Qt 6 @@ -964,6 +969,7 @@ add_library(mixxx-lib STATIC EXCLUDE_FROM_ALL src/util/battery/battery.cpp src/util/cache.cpp src/util/cmdlineargs.cpp + src/util/colorcomponents.cpp src/util/color/color.cpp src/util/color/colorpalette.cpp src/util/color/predefinedcolorpalettes.cpp @@ -1020,7 +1026,6 @@ add_library(mixxx-lib STATIC EXCLUDE_FROM_ALL src/util/valuetransformer.cpp src/util/versionstore.cpp src/util/widgethelper.cpp - src/util/widgetrendertimer.cpp src/util/workerthread.cpp src/util/workerthreadscheduler.cpp src/util/xml.cpp @@ -1094,7 +1099,6 @@ add_library(mixxx-lib STATIC EXCLUDE_FROM_ALL src/widget/wtracktableviewheader.cpp src/widget/wtracktext.cpp src/widget/wtrackwidgetgroup.cpp - src/widget/wvumeter.cpp src/widget/wwidget.cpp src/widget/wwidgetgroup.cpp src/widget/wwidgetstack.cpp @@ -1126,9 +1130,6 @@ else() src/waveform/renderers/glwaveformrendererfilteredsignal.cpp src/waveform/renderers/glwaveformrendererrgb.cpp src/waveform/renderers/glwaveformrenderersimplesignal.cpp - src/waveform/renderers/qtvsynctestrenderer.cpp - src/waveform/renderers/qtwaveformrendererfilteredsignal.cpp - src/waveform/renderers/qtwaveformrenderersimplesignal.cpp src/waveform/renderers/waveformmark.cpp src/waveform/renderers/waveformmarkrange.cpp src/waveform/renderers/waveformmarkset.cpp @@ -1156,12 +1157,8 @@ else() src/waveform/widgets/glslwaveformwidget.cpp src/waveform/widgets/glvsynctestwidget.cpp src/waveform/widgets/glwaveformwidget.cpp + src/waveform/widgets/glwaveformwidgetabstract.cpp src/waveform/widgets/hsvwaveformwidget.cpp - src/waveform/widgets/qthsvwaveformwidget.cpp - src/waveform/widgets/qtrgbwaveformwidget.cpp - src/waveform/widgets/qtsimplewaveformwidget.cpp - src/waveform/widgets/qtvsynctestwidget.cpp - src/waveform/widgets/qtwaveformwidget.cpp src/waveform/widgets/rgbwaveformwidget.cpp src/waveform/widgets/softwarewaveformwidget.cpp src/waveform/widgets/waveformwidgetabstract.cpp @@ -1170,10 +1167,61 @@ else() src/widget/woverviewlmh.cpp src/widget/woverviewrgb.cpp src/widget/wspinny.cpp - src/widget/wvumetergl.cpp + src/widget/wspinnybase.cpp + src/widget/wvumeter.cpp + src/widget/wvumeterbase.cpp + src/widget/wvumeterlegacy.cpp src/widget/wwaveformviewer.cpp ) + if(QOPENGL) + target_sources(mixxx-lib PRIVATE + src/shaders/endoftrackshader.cpp + src/shaders/rgbashader.cpp + src/shaders/rgbshader.cpp + src/shaders/shader.cpp + src/shaders/textureshader.cpp + src/shaders/unicolorshader.cpp + src/util/texture.cpp + src/waveform/renderers/allshader/matrixforwidgetgeometry.cpp + src/waveform/renderers/allshader/waveformrenderbackground.cpp + src/waveform/renderers/allshader/waveformrenderbeat.cpp + src/waveform/renderers/allshader/waveformrenderer.cpp + src/waveform/renderers/allshader/waveformrendererendoftrack.cpp + src/waveform/renderers/allshader/waveformrendererfiltered.cpp + src/waveform/renderers/allshader/waveformrendererlrrgb.cpp + src/waveform/renderers/allshader/waveformrendererpreroll.cpp + src/waveform/renderers/allshader/waveformrendererrgb.cpp + src/waveform/renderers/allshader/waveformrenderersignalbase.cpp + src/waveform/renderers/allshader/waveformrenderersimple.cpp + src/waveform/renderers/allshader/waveformrendermark.cpp + src/waveform/renderers/allshader/waveformrendermarkrange.cpp + src/waveform/widgets/allshader/filteredwaveformwidget.cpp + src/waveform/widgets/allshader/lrrgbwaveformwidget.cpp + src/waveform/widgets/allshader/rgbwaveformwidget.cpp + src/waveform/widgets/allshader/simplewaveformwidget.cpp + src/waveform/widgets/allshader/waveformwidget.cpp + src/widget/openglwindow.cpp + src/widget/tooltipqopengl.cpp + src/widget/wglwidgetqopengl.cpp + src/widget/winitialglwidget.cpp + src/widget/wspinnyglsl.cpp + src/widget/wvumeterglsl.cpp + ) + else() + target_sources(mixxx-lib PRIVATE + src/waveform/renderers/qtvsynctestrenderer.cpp + src/waveform/renderers/qtwaveformrendererfilteredsignal.cpp + src/waveform/renderers/qtwaveformrenderersimplesignal.cpp + src/waveform/widgets/qthsvwaveformwidget.cpp + src/waveform/widgets/qtrgbwaveformwidget.cpp + src/waveform/widgets/qtsimplewaveformwidget.cpp + src/waveform/widgets/qtvsynctestwidget.cpp + src/waveform/widgets/qtwaveformwidget.cpp + src/widget/wglwidgetqglwidget.cpp + ) + endif() endif() + set_target_properties(mixxx-lib PROPERTIES AUTOMOC ON AUTOUIC ON CXX_CLANG_TIDY "${CLANG_TIDY}") target_include_directories(mixxx-lib PUBLIC src "${CMAKE_CURRENT_BINARY_DIR}/src") if(UNIX AND NOT APPLE) |