forked from mixxxdj/mixxx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
2730 lines (2532 loc) · 98.4 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
cmake_minimum_required(VERSION 3.13.0)
project(mixxx VERSION 2.3.0)
set(CMAKE_PROJECT_HOMEPAGE_URL "https://www.mixxx.org")
set(CMAKE_PROJECT_DESCRIPTION "Mixxx is Free DJ software that gives you everything you need to perform live mixes.")
# Used for force control of color output
set(BUILD_COLORS "auto" CACHE STRING "Try to use colors auto/always/no")
# Option to disable symlinks
set(USE_SYMLINKS ON CACHE BOOL "Use symlinks in build directory when possible")
# Support new IN_LIST if() operator
if(POLICY CMP0057)
cmake_policy(SET CMP0057 NEW)
endif()
# Let AUTOMOC and AUTOUIC process GENERATED files
if(POLICY CMP0071)
cmake_policy(SET CMP0071 NEW)
endif()
# CMAKE_CXX_COMPILER_ID: Distinguish between "AppleClang" and "Clang"
if(POLICY CMP0025)
cmake_policy(SET CMP0025 NEW)
endif()
# MACOSX_RPATH is set by default
if(POLICY CMP0042)
cmake_policy(SET CMP0042 NEW)
endif()
#######################################################################
# Compilers and toolchains
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
# GNU is GNU GCC
set(GNU_GCC true)
else()
set(GNU_GCC false)
endif()
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
# using regular Clang or AppleClang
set(LLVM_CLANG true)
else()
set(LLVM_CLANG false)
endif()
if(APPLE AND CMAKE_OSX_DEPLOYMENT_TARGET VERSION_LESS 10.14)
add_compile_options(-fno-aligned-allocation)
endif()
# CMake implicitly sets the variable MSVC to true for Microsoft
# Visual C++ or another compiler simulating Visual C++.
# https://cmake.org/cmake/help/latest/variable/MSVC.html
#######################################################################
set(CMAKE_CXX_STANDARD 17)
if(MSVC)
# Ensure MSVC populates __cplusplus correctly.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zc:__cplusplus")
endif()
# Speed up builds on HDDs and prevent wearing of SDDs
if(GNU_GCC OR LLVM_CLANG)
option(BUILD_LOW_MEMORY "Store temporary build files on disk by disabling the build option -pipe" OFF)
if(NOT BUILD_LOW_MEMORY)
add_compile_options(-pipe)
endif()
endif()
# Profiling
if(UNIX AND NOT APPLE)
option(PROFILING "Profiling (e.g. gprof) support" OFF)
if(PROFILING)
add_compile_options(-pg)
add_link_options(-pg)
endif()
endif()
#
# Optimizations
#
set(OPTIMIZE "portable" CACHE STRING "Optimization and Tuning (set to off, portable, native, legacy, fastbuild)")
message(STATUS "Optimization level: ${OPTIMIZE}")
if(MSVC)
# Microsoft Visual Studio Compiler
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
# Target architecture is x64 -> x64 has alsways SSE and SSE2 instruction sets
message(STATUS "x64 Enabling SS2 CPU optimizations (>= Pentium 4)")
# Define gcc/clang style defines for SSE and SSE2 for compatibility
add_compile_definitions("__SSE__" "__SSE2__")
endif()
if(NOT OPTIMIZE STREQUAL "off")
# Use the fastest floating point math library
# http://msdn.microsoft.com/en-us/library/e7s85ffb.aspx
# http://msdn.microsoft.com/en-us/library/ms235601.aspx
add_compile_options(/fp:fast)
# Suggested for unused code removal
# http://msdn.microsoft.com/en-us/library/ms235601.aspx
# http://msdn.microsoft.com/en-us/library/xsa71f43.aspx
# http://msdn.microsoft.com/en-us/library/bxwfs976.aspx
add_compile_options(/Gy)
add_link_options(/OPT:REF /OPT:ICF)
# http://msdn.microsoft.com/en-us/library/59a3b321.aspx
# In general, you should pick /O2 over /Ox
add_compile_options($<$<NOT:$<CONFIG:Debug>>:/O2>)
# Remove /RTC1 flag (conflicts with /O2)
string(REGEX REPLACE "/RTC[^ ]*" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
# Re-add /RTC1 for Debug builds
add_compile_options($<$<CONFIG:Debug>:/RTC1>)
if(OPTIMIZE STREQUAL "fastbuild")
# /GL : http://msdn.microsoft.com/en-us/library/0zza0de8.aspx
# !!! /GL is incompatible with /ZI, which is set by mscvdebug
add_compile_options(/GL-)
# Do link-time code generation (and don't show a progress indicator
# -- this relies on ANSI control characters and tends to overwhelm
# Jenkins logs) Should we turn on PGO ?
# http://msdn.microsoft.com/en-us/library/xbf3tbeh.aspx
add_link_options(/LTCG:OFF)
elseif(CMAKE_BUILD_TYPE STREQUAL "Debug")
add_compile_options(/GL-)
else()
add_compile_options(/GL)
add_link_options(/LTCG:NOSTATUS)
endif()
if(OPTIMIZE STREQUAL "portable" OR OPTIMIZE STREQUAL "fastbuild")
if(NOT CMAKE_SIZEOF_VOID_P EQUAL 8)
# Target architecture is x86 with SSE and SSE2
message(STATUS "x86 Enabling SS2 CPU optimizations (>= Pentium 4)")
# Define gcc/clang style defines for SSE and SSE2 for compatibility
add_compile_definitions("__SSE__" "__SSE2__")
# Set compiler option for SSE/SSE2
add_compile_options(/arch:SSE2)
endif()
elseif(OPTIMIZE STREQUAL "native")
message("Enabling optimizations for native system, specified by user")
if(NOT CMAKE_SIZEOF_VOID_P EQUAL 8)
# Target architecture is x86 with SSE and SSE2
message(STATUS "x86 Enabling SS2 CPU optimizations (>= Pentium 4)")
# Define gcc/clang style defines for SSE and SSE2 for compatibility
add_compile_definitions("__SSE__" "__SSE2__")
endif()
# Define the target processor instruction and other compiler optimization flags here:
# https://docs.microsoft.com/en-us/cpp/build/reference/arch-x64?view=msvc-160
# add_compile_options(/arch:AVX512)
message(FATAL_ERROR "User need to set the MSVC compiler flags for the native processor here!")
add_compile_options("/favor:${CMAKE_SYSTEM_PROCESSOR}")
elseif(OPTIMIZE STREQUAL "legacy")
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
message("Enabling pure x64 instruction set (without AVX etc.)")
else()
message("Enabling pure i386 instruction set (without SSE/SSE2 etc.)")
endif()
else()
message(FATAL_ERROR "Invalid value passed to OPTIMIZE option: ${OPTIMIZE}")
endif()
endif()
elseif(GNU_GCC OR LLVM_CLANG)
if(NOT OPTIMIZE STREQUAL "off")
# Common flags to all optimizations.
# -ffast-math will prevent a performance penalty by denormals
# (floating point values almost Zero are treated as Zero)
# unfortunately that work only on 64 bit CPUs or with sse2 enabled
# The following optimisation flags makes the engine code ~3 times
# faster, measured on a Atom CPU.
add_compile_options(
-O3
-ffast-math
-funroll-loops
)
# set -fomit-frame-pointer when we don't profile and are not using
# Clang sanitizers.
# Note: It is only included in -O on machines where it does not
# interfere with debugging
if(NOT PROFILING AND NOT CLANG_SANITIZERS)
add_compile_options(-fomit-frame-pointer)
endif()
if(OPTIMIZE STREQUAL "portable" OR OPTIMIZE STREQUAL "fastbuild")
# portable: sse2 CPU (>= Pentium 4)
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(i[3456]86|x86|x64|x86_64|AMD64)$")
message(STATUS "Enabling SS2 CPU optimizations (>= Pentium 4)")
add_compile_options(-mtune=generic)
# -mtune=generic picks the most common, but compatible options.
# on arm platforms equivalent to -march=arch
if(NOT CMAKE_SIZEOF_VOID_P EQUAL 8)
# the sse flags are not set by default on 32 bit builds
# but are not supported on arm builds
add_compile_options(
-msse2
-mfpmath=sse)
endif()
# TODO(rryan): macOS can use SSE3, and possibly SSE 4.1 once
# we require macOS 10.12.
# https://stackoverflow.com/questions/45917280/mac-osx-minumum-support-sse-version
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm|armv7.*)$") # but not armv8
add_compile_options(
-mfloat-abi=hard
-mfpu=neon
)
endif()
# this sets macros __SSE2_MATH__ __SSE_MATH__ __SSE2__ __SSE__
# This should be our default build for distribution
# It's a little sketchy, but turning on SSE2 will gain
# 100% performance in our filter code and allows us to
# turns on denormal zeroing.
# We don't really support CPU's earlier than Pentium 4,
# which is the class of CPUs this decision affects.
# The downside of this is that we aren't truly
# i386 compatible, so builds that claim 'i386' will crash.
# -- rryan 2/2011
# Note: SSE2 is a core part of x64 CPUs
elseif(OPTIMIZE STREQUAL "native")
message("Enabling native optimizations for ${CMAKE_SYSTEM_PROCESSOR}")
add_compile_options(-march=native)
# Note: requires gcc >= 4.2.0
# macros like __SSE2_MATH__ __SSE_MATH__ __SSE2__ __SSE__
# are set automatically
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm|armv7.*)$") # but not armv8
add_compile_options(
-mfloat-abi=hard
-mfpu=neon
)
endif()
elseif(OPTIMIZE STREQUAL "legacy")
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(i[3456]86|x86|x64|x86_64|AMD64)$")
message("Enabling pure i386 code")
add_compile_options(-mtune=generic)
# -mtune=generic pick the most common, but compatible options.
# on arm platforms equivalent to -march=arch
endif()
else()
message(FATAL_ERROR "Invalid value passed to OPTIMIZE option: ${OPTIMIZE}")
endif()
endif()
endif()
include(CMakeDependentOption)
include(CheckSymbolExists)
include(ExternalProject)
include(GNUInstallDirs)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
if(WIN32)
# Add support for lib prefix on Windows
set(CMAKE_FIND_LIBRARY_PREFIXES "" "lib")
endif()
# Get the current working branch
execute_process(
COMMAND git rev-parse --abbrev-ref HEAD
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE GIT_BRANCH
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_QUIET
)
if(NOT GIT_BRANCH)
set(GIT_BRANCH "unknown")
endif()
message(STATUS "Git branch: ${GIT_BRANCH}")
# Get the latest abbreviated commit hash of the working branch
execute_process(
COMMAND git log -1 --format=%h
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE GIT_COMMIT_HASH
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_QUIET
)
if(NOT GIT_COMMIT_HASH)
set(GIT_COMMIT_HASH "unknown")
endif()
message(STATUS "Git commit: ${GIT_COMMIT_HASH}")
# Get the number of commits on the working branch
execute_process(
COMMAND git rev-list --count --first-parent HEAD
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE GIT_COMMIT_COUNT
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_QUIET
)
if(NOT GIT_COMMIT_COUNT)
set(GIT_COMMIT_COUNT "unknown")
endif()
# Check if the worktree is dirty
execute_process(
COMMAND git diff --quiet
RESULT_VARIABLE GIT_WORKTREE_DIRTY
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
ERROR_QUIET
)
if(GIT_WORKTREE_DIRTY EQUAL "1")
set(GIT_COMMIT_COUNT "${GIT_COMMIT_COUNT}+")
endif()
message(STATUS "Git commit count: ${GIT_COMMIT_COUNT}")
if(MSVC)
# clcache support
find_program(CLCACHE_EXECUTABLE "clcache")
if(CLCACHE_EXECUTABLE)
message(STATUS "Found clcache: ${CLCACHE_EXECUTABLE}")
else()
message(STATUS "Could NOT find clcache (missing executable)")
endif()
cmake_dependent_option(CLCACHE_SUPPORT "Enable clcache support" ON "CLCACHE_EXECUTABLE" OFF)
if(CLCACHE_SUPPORT)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "clcache")
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK "clcache")
endif()
message(STATUS "Support for clcache: ${CLCACHE_SUPPORT}")
else()
# ccache support
find_program(CCACHE_EXECUTABLE "ccache")
if(CCACHE_EXECUTABLE)
message(STATUS "Found ccache: ${CCACHE_EXECUTABLE}")
else()
message(STATUS "Could NOT find ccache (missing executable)")
endif()
cmake_dependent_option(CCACHE_SUPPORT "Enable ccache support" ON "CCACHE_EXECUTABLE" OFF)
if(CCACHE_SUPPORT)
if(GNU_GCC OR LLVM_CLANG)
# without this compiler messages in `make` backend would be uncolored
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fdiagnostics-color=${BUILD_COLORS}")
endif()
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "ccache")
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK "ccache")
endif()
message(STATUS "Support for ccache: ${CCACHE_SUPPORT}")
endif()
set_property(DIRECTORY APPEND
PROPERTY CMAKE_CONFIGURE_DEPENDS
"${CMAKE_SOURCE_DIR}/.git/index")
# uses GIT_BRANCH and GIT_COMMIT_COUNT
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/src/build.h.template"
"${CMAKE_CURRENT_BINARY_DIR}/src/build.h"
)
if(CMAKE_VERSION VERSION_LESS "3.7.0")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
endif()
set(CLANG_TIDY "" CACHE STRING "CMAKE_CXX_CLANG_TIDY equivalent that only applies to mixxx sources, not bundled dependencies")
# Mixxx itself
add_library(mixxx-lib STATIC EXCLUDE_FROM_ALL
src/analyzer/analyzerbeats.cpp
src/analyzer/analyzerebur128.cpp
src/analyzer/analyzergain.cpp
src/analyzer/analyzerkey.cpp
src/analyzer/analyzersilence.cpp
src/analyzer/analyzerthread.cpp
src/analyzer/analyzerwaveform.cpp
src/analyzer/plugins/analyzerqueenmarybeats.cpp
src/analyzer/plugins/analyzerqueenmarykey.cpp
src/analyzer/plugins/analyzersoundtouchbeats.cpp
src/analyzer/plugins/buffering_utils.cpp
src/analyzer/trackanalysisscheduler.cpp
src/audio/types.cpp
src/audio/signalinfo.cpp
src/audio/streaminfo.cpp
src/control/control.cpp
src/control/controlaudiotaperpot.cpp
src/control/controlbehavior.cpp
src/control/controleffectknob.cpp
src/control/controlencoder.cpp
src/control/controlindicator.cpp
src/control/controllinpotmeter.cpp
src/control/controllogpotmeter.cpp
src/control/controlmodel.cpp
src/control/controlobject.cpp
src/control/controlobjectscript.cpp
src/control/controlpotmeter.cpp
src/control/controlproxy.cpp
src/control/controlpushbutton.cpp
src/control/controlttrotary.cpp
src/controllers/controller.cpp
src/controllers/controllerdebug.cpp
src/controllers/controllerenumerator.cpp
src/controllers/controllerinputmappingtablemodel.cpp
src/controllers/controllerlearningeventfilter.cpp
src/controllers/controllermanager.cpp
src/controllers/controllermappingtablemodel.cpp
src/controllers/controllermappinginfo.cpp
src/controllers/controllermappinginfoenumerator.cpp
src/controllers/controlleroutputmappingtablemodel.cpp
src/controllers/controlpickermenu.cpp
src/controllers/legacycontrollermappingfilehandler.cpp
src/controllers/delegates/controldelegate.cpp
src/controllers/delegates/midibytedelegate.cpp
src/controllers/delegates/midichanneldelegate.cpp
src/controllers/delegates/midiopcodedelegate.cpp
src/controllers/delegates/midioptionsdelegate.cpp
src/controllers/dlgcontrollerlearning.cpp
src/controllers/dlgcontrollerlearning.ui
src/controllers/dlgprefcontroller.cpp
src/controllers/dlgprefcontrollerdlg.ui
src/controllers/dlgprefcontrollers.cpp
src/controllers/dlgprefcontrollersdlg.ui
src/controllers/scripting/controllerscriptenginebase.cpp
src/controllers/scripting/controllerscriptmoduleengine.cpp
src/controllers/scripting/colormapper.cpp
src/controllers/scripting/colormapperjsproxy.cpp
src/controllers/scripting/legacy/controllerscriptenginelegacy.cpp
src/controllers/scripting/legacy/controllerscriptinterfacelegacy.cpp
src/controllers/scripting/legacy/scriptconnection.cpp
src/controllers/scripting/legacy/scriptconnectionjsproxy.cpp
src/controllers/keyboard/keyboardeventfilter.cpp
src/controllers/learningutils.cpp
src/controllers/midi/legacymidicontrollermapping.cpp
src/controllers/midi/legacymidicontrollermappingfilehandler.cpp
src/controllers/midi/midicontroller.cpp
src/controllers/midi/midienumerator.cpp
src/controllers/midi/midimessage.cpp
src/controllers/midi/midioutputhandler.cpp
src/controllers/midi/midiutils.cpp
src/controllers/midi/portmidicontroller.cpp
src/controllers/midi/portmidienumerator.cpp
src/controllers/softtakeover.cpp
src/database/mixxxdb.cpp
src/database/schemamanager.cpp
src/dialog/dlgabout.cpp
src/dialog/dlgaboutdlg.ui
src/dialog/dlgdevelopertools.cpp
src/dialog/dlgdevelopertoolsdlg.ui
src/dialog/dlgreplacecuecolor.cpp
src/dialog/dlgreplacecuecolordlg.ui
src/effects/builtin/autopaneffect.cpp
src/effects/builtin/balanceeffect.cpp
src/effects/builtin/bessel4lvmixeqeffect.cpp
src/effects/builtin/bessel8lvmixeqeffect.cpp
src/effects/builtin/biquadfullkilleqeffect.cpp
src/effects/builtin/bitcrushereffect.cpp
src/effects/builtin/builtinbackend.cpp
src/effects/builtin/echoeffect.cpp
src/effects/builtin/filtereffect.cpp
src/effects/builtin/flangereffect.cpp
src/effects/builtin/graphiceqeffect.cpp
src/effects/builtin/linkwitzriley8eqeffect.cpp
src/effects/builtin/loudnesscontoureffect.cpp
src/effects/builtin/metronomeeffect.cpp
src/effects/builtin/whitenoiseeffect.cpp
src/effects/builtin/moogladder4filtereffect.cpp
src/effects/builtin/parametriceqeffect.cpp
src/effects/builtin/phasereffect.cpp
src/effects/builtin/reverbeffect.cpp
src/effects/builtin/threebandbiquadeqeffect.cpp
src/effects/builtin/tremoloeffect.cpp
src/effects/effect.cpp
src/effects/effectbuttonparameterslot.cpp
src/effects/effectchain.cpp
src/effects/effectchainmanager.cpp
src/effects/effectchainslot.cpp
src/effects/effectmanifest.cpp
src/effects/effectmanifestparameter.cpp
src/effects/effectparameter.cpp
src/effects/effectparameterslot.cpp
src/effects/effectparameterslotbase.cpp
src/effects/effectrack.cpp
src/effects/effectsbackend.cpp
src/effects/effectslot.cpp
src/effects/effectsmanager.cpp
src/encoder/encoder.cpp
src/encoder/encoderflacsettings.cpp
src/encoder/encodermp3.cpp
src/encoder/encodermp3settings.cpp
src/encoder/encoderopussettings.cpp
src/encoder/encodersndfileflac.cpp
src/encoder/encodervorbis.cpp
src/encoder/encodervorbissettings.cpp
src/encoder/encoderwave.cpp
src/encoder/encoderwavesettings.cpp
src/engine/bufferscalers/enginebufferscale.cpp
src/engine/bufferscalers/enginebufferscalelinear.cpp
src/engine/bufferscalers/enginebufferscalerubberband.cpp
src/engine/bufferscalers/enginebufferscalest.cpp
src/engine/cachingreader/cachingreader.cpp
src/engine/cachingreader/cachingreaderchunk.cpp
src/engine/cachingreader/cachingreaderworker.cpp
src/engine/channelmixer_autogen.cpp
src/engine/channels/engineaux.cpp
src/engine/channels/enginechannel.cpp
src/engine/channels/enginedeck.cpp
src/engine/channels/enginemicrophone.cpp
src/engine/controls/bpmcontrol.cpp
src/engine/controls/clockcontrol.cpp
src/engine/controls/cuecontrol.cpp
src/engine/controls/enginecontrol.cpp
src/engine/controls/keycontrol.cpp
src/engine/controls/loopingcontrol.cpp
src/engine/controls/quantizecontrol.cpp
src/engine/controls/ratecontrol.cpp
src/engine/effects/engineeffect.cpp
src/engine/effects/engineeffectchain.cpp
src/engine/effects/engineeffectrack.cpp
src/engine/effects/engineeffectsmanager.cpp
src/engine/enginebuffer.cpp
src/engine/enginedelay.cpp
src/engine/enginemaster.cpp
src/engine/engineobject.cpp
src/engine/enginepregain.cpp
src/engine/enginesidechaincompressor.cpp
src/engine/enginetalkoverducking.cpp
src/engine/enginevumeter.cpp
src/engine/engineworker.cpp
src/engine/engineworkerscheduler.cpp
src/engine/enginexfader.cpp
src/engine/filters/enginefilter.cpp
src/engine/filters/enginefilterbessel4.cpp
src/engine/filters/enginefilterbessel8.cpp
src/engine/filters/enginefilterbiquad1.cpp
src/engine/filters/enginefilterbutterworth4.cpp
src/engine/filters/enginefilterbutterworth8.cpp
src/engine/filters/enginefilterlinkwitzriley2.cpp
src/engine/filters/enginefilterlinkwitzriley4.cpp
src/engine/filters/enginefilterlinkwitzriley8.cpp
src/engine/filters/enginefiltermoogladder4.cpp
src/engine/positionscratchcontroller.cpp
src/engine/readaheadmanager.cpp
src/engine/sidechain/enginenetworkstream.cpp
src/engine/sidechain/enginerecord.cpp
src/engine/sidechain/enginesidechain.cpp
src/engine/sidechain/networkinputstreamworker.cpp
src/engine/sidechain/networkoutputstreamworker.cpp
src/engine/sync/basesyncablelistener.cpp
src/engine/sync/enginesync.cpp
src/engine/sync/internalclock.cpp
src/engine/sync/synccontrol.cpp
src/errordialoghandler.cpp
src/library/analysisfeature.cpp
src/library/analysislibrarytablemodel.cpp
src/library/autodj/autodjfeature.cpp
src/library/autodj/autodjprocessor.cpp
src/library/autodj/dlgautodj.cpp
src/library/autodj/dlgautodj.ui
src/library/banshee/bansheedbconnection.cpp
src/library/banshee/bansheefeature.cpp
src/library/banshee/bansheeplaylistmodel.cpp
src/library/baseexternallibraryfeature.cpp
src/library/baseexternalplaylistmodel.cpp
src/library/baseexternaltrackmodel.cpp
src/library/basesqltablemodel.cpp
src/library/basetrackcache.cpp
src/library/basetracktablemodel.cpp
src/library/bpmdelegate.cpp
src/library/browse/browsefeature.cpp
src/library/browse/browsetablemodel.cpp
src/library/browse/browsethread.cpp
src/library/browse/foldertreemodel.cpp
src/library/colordelegate.cpp
src/library/columncache.cpp
src/library/coverart.cpp
src/library/coverartcache.cpp
src/library/coverartdelegate.cpp
src/library/coverartutils.cpp
src/library/dao/analysisdao.cpp
src/library/dao/autodjcratesdao.cpp
src/library/dao/cuedao.cpp
src/library/dao/directorydao.cpp
src/library/dao/libraryhashdao.cpp
src/library/dao/playlistdao.cpp
src/library/dao/settingsdao.cpp
src/library/dao/trackdao.cpp
src/library/dao/trackschema.cpp
src/library/dlganalysis.cpp
src/library/dlganalysis.ui
src/library/dlgcoverartfullsize.cpp
src/library/dlgcoverartfullsize.ui
src/library/dlghidden.cpp
src/library/dlghidden.ui
src/library/dlgmissing.cpp
src/library/dlgmissing.ui
src/library/dlgtagfetcher.cpp
src/library/dlgtagfetcher.ui
src/library/dlgtrackinfo.cpp
src/library/dlgtrackinfo.ui
src/library/dlgtrackmetadataexport.cpp
src/library/export/dlgtrackexport.ui
src/library/export/trackexportdlg.cpp
src/library/export/trackexportwizard.cpp
src/library/export/trackexportworker.cpp
src/library/externaltrackcollection.cpp
src/library/hiddentablemodel.cpp
src/library/itunes/itunesfeature.cpp
src/library/library.cpp
src/library/librarycontrol.cpp
src/library/libraryfeature.cpp
src/library/librarytablemodel.cpp
src/library/locationdelegate.cpp
src/library/missingtablemodel.cpp
src/library/mixxxlibraryfeature.cpp
src/library/parser.cpp
src/library/parsercsv.cpp
src/library/parserm3u.cpp
src/library/parserpls.cpp
src/library/playlisttablemodel.cpp
src/library/previewbuttondelegate.cpp
src/library/proxytrackmodel.cpp
src/library/recording/dlgrecording.cpp
src/library/recording/dlgrecording.ui
src/library/recording/recordingfeature.cpp
src/library/rekordbox/rekordbox_anlz.cpp
src/library/rekordbox/rekordbox_pdb.cpp
src/library/rekordbox/rekordboxfeature.cpp
src/library/rhythmbox/rhythmboxfeature.cpp
src/library/scanner/importfilestask.cpp
src/library/scanner/libraryscanner.cpp
src/library/scanner/libraryscannerdlg.cpp
src/library/scanner/recursivescandirectorytask.cpp
src/library/scanner/scannertask.cpp
src/library/searchquery.cpp
src/library/searchqueryparser.cpp
src/library/serato/seratofeature.cpp
src/library/serato/seratoplaylistmodel.cpp
src/library/sidebarmodel.cpp
src/library/stardelegate.cpp
src/library/stareditor.cpp
src/library/starrating.cpp
src/library/tableitemdelegate.cpp
src/library/trackcollection.cpp
src/library/trackcollectioniterator.cpp
src/library/trackcollectionmanager.cpp
src/library/trackloader.cpp
src/library/trackmodeliterator.cpp
src/library/trackprocessing.cpp
src/library/trackset/baseplaylistfeature.cpp
src/library/trackset/basetracksetfeature.cpp
src/library/trackset/crate/cratefeature.cpp
src/library/trackset/crate/cratefeaturehelper.cpp
src/library/trackset/crate/cratestorage.cpp
src/library/trackset/crate/cratetablemodel.cpp
src/library/trackset/playlistfeature.cpp
src/library/trackset/setlogfeature.cpp
src/library/trackset/tracksettablemodel.cpp
src/library/traktor/traktorfeature.cpp
src/library/treeitem.cpp
src/library/treeitemmodel.cpp
src/mixer/auxiliary.cpp
src/mixer/baseplayer.cpp
src/mixer/basetrackplayer.cpp
src/mixer/deck.cpp
src/mixer/microphone.cpp
src/mixer/playerinfo.cpp
src/mixer/playermanager.cpp
src/mixer/previewdeck.cpp
src/mixer/sampler.cpp
src/mixer/samplerbank.cpp
src/coreservices.cpp
src/mixxx.cpp
src/mixxxapplication.cpp
src/musicbrainz/chromaprinter.cpp
src/musicbrainz/crc.cpp
src/musicbrainz/gzip.cpp
src/musicbrainz/musicbrainz.cpp
src/musicbrainz/musicbrainzxml.cpp
src/musicbrainz/tagfetcher.cpp
src/musicbrainz/web/acoustidlookuptask.cpp
src/musicbrainz/web/musicbrainzrecordingstask.cpp
src/network/jsonwebtask.cpp
src/network/networktask.cpp
src/network/webtask.cpp
src/preferences/configobject.cpp
src/preferences/dialog/dlgprefautodj.cpp
src/preferences/dialog/dlgprefautodjdlg.ui
src/preferences/dialog/dlgprefbeats.cpp
src/preferences/dialog/dlgprefbeatsdlg.ui
src/preferences/dialog/dlgprefcolors.cpp
src/preferences/dialog/dlgprefcolorsdlg.ui
src/preferences/dialog/dlgprefcrossfader.cpp
src/preferences/dialog/dlgprefcrossfaderdlg.ui
src/preferences/dialog/dlgprefdeck.cpp
src/preferences/dialog/dlgprefdeckdlg.ui
src/preferences/dialog/dlgprefeffects.cpp
src/preferences/dialog/dlgprefeffectsdlg.ui
src/preferences/dialog/dlgprefeq.cpp
src/preferences/dialog/dlgprefeqdlg.ui
src/preferences/dialog/dlgpreferencepage.cpp
src/preferences/dialog/dlgpreferences.cpp
src/preferences/dialog/dlgpreferencesdlg.ui
src/preferences/dialog/dlgprefinterface.cpp
src/preferences/dialog/dlgprefinterfacedlg.ui
src/preferences/dialog/dlgprefkey.cpp
src/preferences/dialog/dlgprefkeydlg.ui
src/preferences/dialog/dlgpreflibrary.cpp
src/preferences/dialog/dlgpreflibrarydlg.ui
src/preferences/dialog/dlgpreflv2dlg.ui
src/preferences/dialog/dlgprefnovinyl.cpp
src/preferences/dialog/dlgprefnovinyldlg.ui
src/preferences/dialog/dlgprefrecord.cpp
src/preferences/dialog/dlgprefrecorddlg.ui
src/preferences/dialog/dlgprefreplaygain.cpp
src/preferences/dialog/dlgprefreplaygaindlg.ui
src/preferences/dialog/dlgprefsound.cpp
src/preferences/dialog/dlgprefsounddlg.ui
src/preferences/dialog/dlgprefsounditem.cpp
src/preferences/dialog/dlgprefsounditem.ui
src/preferences/dialog/dlgprefvinyldlg.ui
src/preferences/dialog/dlgprefwaveform.cpp
src/preferences/dialog/dlgprefwaveformdlg.ui
src/preferences/effectsettingsmodel.cpp
src/preferences/colorpaletteeditor.cpp
src/preferences/colorpaletteeditormodel.cpp
src/preferences/colorpalettesettings.cpp
src/preferences/replaygainsettings.cpp
src/preferences/settingsmanager.cpp
src/preferences/upgrade.cpp
src/recording/recordingmanager.cpp
src/skin/colorschemeparser.cpp
src/skin/imgcolor.cpp
src/skin/imginvert.cpp
src/skin/imgloader.cpp
src/skin/launchimage.cpp
src/skin/legacyskinparser.cpp
src/skin/pixmapsource.cpp
src/skin/skincontext.cpp
src/skin/skinloader.cpp
src/skin/tooltips.cpp
src/soundio/sounddevice.cpp
src/soundio/sounddevicenetwork.cpp
src/soundio/sounddeviceportaudio.cpp
src/soundio/soundmanager.cpp
src/soundio/soundmanagerconfig.cpp
src/soundio/soundmanagerutil.cpp
src/sources/audiosource.cpp
src/sources/audiosourcestereoproxy.cpp
src/sources/metadatasourcetaglib.cpp
src/sources/readaheadframebuffer.cpp
src/sources/soundsource.cpp
src/sources/soundsourceflac.cpp
src/sources/soundsourceoggvorbis.cpp
src/sources/soundsourceprovider.cpp
src/sources/soundsourceproviderregistry.cpp
src/sources/soundsourceproxy.cpp
src/sources/soundsourcesndfile.cpp
src/track/albuminfo.cpp
src/track/beatfactory.cpp
src/track/beatgrid.cpp
src/track/beatmap.cpp
src/track/beats.cpp
src/track/beatutils.cpp
src/track/bpm.cpp
src/track/cue.cpp
src/track/cueinfo.cpp
src/track/cueinfoimporter.cpp
src/track/globaltrackcache.cpp
src/track/keyfactory.cpp
src/track/keys.cpp
src/track/keyutils.cpp
src/track/playcounter.cpp
src/track/replaygain.cpp
src/track/serato/beatgrid.cpp
src/track/serato/beatsimporter.cpp
src/track/serato/cueinfoimporter.cpp
src/track/serato/markers.cpp
src/track/serato/markers2.cpp
src/track/serato/tags.cpp
src/track/track.cpp
src/track/trackfile.cpp
src/track/trackinfo.cpp
src/track/trackmetadata.cpp
src/track/tracknumbers.cpp
src/track/trackrecord.cpp
src/track/trackref.cpp
src/track/taglib/trackmetadata_ape.cpp
src/track/taglib/trackmetadata_common.cpp
src/track/taglib/trackmetadata_file.cpp
src/track/taglib/trackmetadata_id3v2.cpp
src/track/taglib/trackmetadata_mp4.cpp
src/track/taglib/trackmetadata_riff.cpp
src/track/taglib/trackmetadata_xiph.cpp
src/util/battery/battery.cpp
src/util/cache.cpp
src/util/cmdlineargs.cpp
src/util/color/color.cpp
src/util/color/colorpalette.cpp
src/util/color/predefinedcolorpalettes.cpp
src/util/console.cpp
src/util/db/dbconnection.cpp
src/util/db/dbconnectionpool.cpp
src/util/db/dbconnectionpooled.cpp
src/util/db/dbconnectionpooler.cpp
src/util/db/dbid.cpp
src/util/db/fwdsqlquery.cpp
src/util/db/fwdsqlqueryselectresult.cpp
src/util/db/sqllikewildcardescaper.cpp
src/util/db/sqlite.cpp
src/util/db/sqlqueryfinisher.cpp
src/util/db/sqlstringformatter.cpp
src/util/db/sqltransaction.cpp
src/util/desktophelper.cpp
src/util/dnd.cpp
src/util/duration.cpp
src/util/experiment.cpp
src/util/file.cpp
src/util/imageutils.cpp
src/util/indexrange.cpp
src/util/logger.cpp
src/util/logging.cpp
src/util/mac.cpp
src/util/movinginterquartilemean.cpp
src/util/performancetimer.cpp
src/util/readaheadsamplebuffer.cpp
src/util/rlimit.cpp
src/util/rotary.cpp
src/util/sample.cpp
src/util/samplebuffer.cpp
src/util/sandbox.cpp
src/util/screensaver.cpp
src/util/sleepableqthread.cpp
src/util/stat.cpp
src/util/statmodel.cpp
src/util/statsmanager.cpp
src/util/tapfilter.cpp
src/util/task.cpp
src/util/taskmonitor.cpp
src/util/threadcputimer.cpp
src/util/time.cpp
src/util/timer.cpp
src/util/valuetransformer.cpp
src/util/version.cpp
src/util/widgethelper.cpp
src/util/widgetrendertimer.cpp
src/util/workerthread.cpp
src/util/workerthreadscheduler.cpp
src/util/xml.cpp
src/waveform/guitick.cpp
src/waveform/renderers/glslwaveformrenderersignal.cpp
src/waveform/renderers/glvsynctestrenderer.cpp
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
src/waveform/renderers/waveformrenderbackground.cpp
src/waveform/renderers/waveformrenderbeat.cpp
src/waveform/renderers/waveformrendererabstract.cpp
src/waveform/renderers/waveformrendererendoftrack.cpp
src/waveform/renderers/waveformrendererfilteredsignal.cpp
src/waveform/renderers/waveformrendererhsv.cpp
src/waveform/renderers/waveformrendererpreroll.cpp
src/waveform/renderers/waveformrendererrgb.cpp
src/waveform/renderers/waveformrenderersignalbase.cpp
src/waveform/renderers/waveformrendermark.cpp
src/waveform/renderers/waveformrendermarkrange.cpp
src/waveform/renderers/waveformsignalcolors.cpp
src/waveform/renderers/waveformwidgetrenderer.cpp
src/waveform/sharedglcontext.cpp
src/waveform/visualplayposition.cpp
src/waveform/visualsmanager.cpp
src/waveform/vsyncthread.cpp
src/waveform/waveform.cpp
src/waveform/waveformfactory.cpp
src/waveform/waveformmarklabel.cpp
src/waveform/waveformwidgetfactory.cpp
src/waveform/widgets/emptywaveformwidget.cpp
src/waveform/widgets/glrgbwaveformwidget.cpp
src/waveform/widgets/glsimplewaveformwidget.cpp
src/waveform/widgets/glslwaveformwidget.cpp
src/waveform/widgets/glvsynctestwidget.cpp
src/waveform/widgets/glwaveformwidget.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
src/widget/controlwidgetconnection.cpp
src/widget/hexspinbox.cpp
src/widget/paintable.cpp
src/widget/wanalysislibrarytableview.cpp
src/widget/wbasewidget.cpp
src/widget/wbattery.cpp
src/widget/wbeatspinbox.cpp
src/widget/wcolorpicker.cpp
src/widget/wcolorpickeraction.cpp
src/widget/wcombobox.cpp
src/widget/wcoverart.cpp
src/widget/wcoverartlabel.cpp
src/widget/wcoverartmenu.cpp
src/widget/wcuemenupopup.cpp
src/widget/wdisplay.cpp
src/widget/weffect.cpp
src/widget/weffectbuttonparameter.cpp
src/widget/weffectchain.cpp
src/widget/weffectparameter.cpp
src/widget/weffectparameterbase.cpp
src/widget/weffectparameterknob.cpp
src/widget/weffectparameterknobcomposed.cpp
src/widget/weffectpushbutton.cpp
src/widget/weffectselector.cpp
src/widget/whotcuebutton.cpp
src/widget/wimagestore.cpp
src/widget/wkey.cpp
src/widget/wknob.cpp
src/widget/wknobcomposed.cpp
src/widget/wlabel.cpp
src/widget/wlibrary.cpp
src/widget/wlibrarysidebar.cpp
src/widget/wlibrarytableview.cpp
src/widget/wlibrarytextbrowser.cpp
src/widget/wmainmenubar.cpp
src/widget/wnumber.cpp
src/widget/wnumberdb.cpp
src/widget/wnumberpos.cpp
src/widget/wnumberrate.cpp
src/widget/woverview.cpp
src/widget/woverviewhsv.cpp
src/widget/woverviewlmh.cpp
src/widget/woverviewrgb.cpp
src/widget/wpixmapstore.cpp
src/widget/wpushbutton.cpp
src/widget/wrecordingduration.cpp
src/widget/wsearchlineedit.cpp
src/widget/wsearchrelatedtracksmenu.cpp
src/widget/wsingletoncontainer.cpp
src/widget/wsizeawarestack.cpp
src/widget/wskincolor.cpp
src/widget/wslidercomposed.cpp
src/widget/wspinny.cpp
src/widget/wsplitter.cpp
src/widget/wstarrating.cpp
src/widget/wstatuslight.cpp
src/widget/wtime.cpp
src/widget/wtrackmenu.cpp
src/widget/wtrackproperty.cpp
src/widget/wtracktableview.cpp
src/widget/wtracktableviewheader.cpp
src/widget/wtracktext.cpp
src/widget/wtrackwidgetgroup.cpp
src/widget/wvumeter.cpp
src/widget/wwaveformviewer.cpp
src/widget/wwidget.cpp
src/widget/wwidgetgroup.cpp
src/widget/wwidgetstack.cpp
)
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")
target_compile_definitions(mixxx-lib PRIVATE SETTINGS_FILE="mixxx.cfg")
if(UNIX AND NOT APPLE)
target_compile_definitions(mixxx-lib PRIVATE SETTINGS_PATH=".mixxx/")
endif()
# Disable warnings in generated source files
set_property(
SOURCE src/library/rekordbox/rekordbox_anlz.cpp
APPEND_STRING
PROPERTY CXX_CLANG_TIDY ""
)
set_property(
SOURCE src/library/rekordbox/rekordbox_pdb.cpp
APPEND_STRING
PROPERTY CXX_CLANG_TIDY ""
)
if(GNU_GCC OR LLVM_CLANG)
set_property(
SOURCE src/library/rekordbox/rekordbox_anlz.cpp
APPEND_STRING
PROPERTY COMPILE_OPTIONS -Wno-unused-parameter
)
set_property(
SOURCE src/library/rekordbox/rekordbox_pdb.cpp
APPEND_STRING
PROPERTY COMPILE_OPTIONS -Wno-unused-parameter -Wno-switch
)
elseif(MSVC)
set_property(
SOURCE src/library/rekordbox/rekordbox_anlz.cpp
APPEND_STRING
PROPERTY COMPILE_OPTIONS /w
)
set_property(
SOURCE src/library/rekordbox/rekordbox_pdb.cpp
APPEND_STRING
PROPERTY COMPILE_OPTIONS /w
)
endif()