forked from mixxxdj/mixxx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
2306 lines (2146 loc) · 78.5 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.")
# 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()
set(CMAKE_POLICY_WARNING_CMP0025 ON)
#######################################################################
# 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()
# 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)
# Speed up builds on HDDs
if(GNU_GCC OR LLVM_CLANG)
add_compile_options(-pipe)
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(NOT OPTIMIZE STREQUAL "off")
if(MSVC)
# 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)
# Don't worry about aligning code on 4KB boundaries
# ALBERT: NOWIN98 is not supported in MSVC 2010.
#add_link_options(mixxx-lib PUBLIC "/OPT:NOWIN98")
# 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")
message(STATUS "Enabling SS2 CPU optimizations (>= Pentium 4)")
# SSE and SSE2 are core instructions on x64
# and consequently raise a warning message from compiler with this flag on x64.
if(NOT CMAKE_SIZEOF_VOID_P EQUAL 8)
add_compile_options(/arch:SSE2)
endif()
add_compile_definitions("__SSE__" "__SSE2__")
elseif(OPTIMIZE STREQUAL "native")
message("Enabling native optimizations for ${CMAKE_SYSTEM_PROCESSOR}")
add_compile_options("/favor:${CMAKE_SYSTEM_PROCESSOR}")
elseif(OPTIMIZE STREQUAL "legacy")
message("Enabling pure i386 code")
else()
message(FATAL_ERROR "Invalid value passed to OPTIMIZE option: ${OPTIMIZE}")
endif()
elseif(GNU_GCC OR LLVM_CLANG)
# 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 EQUAL "arm")
add_compile_options(
-mflat-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 EQUAL "arm")
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()
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL")
# 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=auto")
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()
# 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/controlleroutputmappingtablemodel.cpp
src/controllers/controllerpresetfilehandler.cpp
src/controllers/controllerpresetinfo.cpp
src/controllers/controllerpresetinfoenumerator.cpp
src/controllers/controlpickermenu.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/engine/controllerengine.cpp
src/controllers/engine/controllerenginejsproxy.cpp
src/controllers/engine/colormapper.cpp
src/controllers/engine/colormapperjsproxy.cpp
src/controllers/engine/scriptconnection.cpp
src/controllers/engine/scriptconnectionjsproxy.cpp
src/controllers/keyboard/keyboardeventfilter.cpp
src/controllers/learningutils.cpp
src/controllers/midi/midicontroller.cpp
src/controllers/midi/midicontrollerpreset.cpp
src/controllers/midi/midicontrollerpresetfilehandler.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/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/encoderbroadcastsettings.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/basecoverartdelegate.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/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/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/sidebarmodel.cpp
src/library/songdownloader.cpp
src/library/stardelegate.cpp
src/library/stareditor.cpp
src/library/starrating.cpp
src/library/tableitemdelegate.cpp
src/library/trackcollection.cpp
src/library/trackcollectionmanager.cpp
src/library/trackloader.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/mixxx.cpp
src/mixxxapplication.cpp
src/musicbrainz/chromaprinter.cpp
src/musicbrainz/crc.c
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/webtask.cpp
src/preferences/broadcastprofile.cpp
src/preferences/broadcastsettings.cpp
src/preferences/broadcastsettings_legacy.cpp
src/preferences/broadcastsettingsmodel.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/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/dlgpreferencepage.cpp
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/svgparser.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/soundsource.cpp
src/sources/soundsourceflac.cpp
src/sources/soundsourceoggvorbis.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/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/autohidpi.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/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/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/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/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/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)
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
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
)
endif()
option(WARNINGS_PEDANTIC "Let the compiler show even more warnings" OFF)
if(MSVC)
if(WARNINGS_PEDANTIC)
target_compile_options(mixxx-lib PUBLIC /W4)
else()
target_compile_options(mixxx-lib PUBLIC /W3)
endif()
else()
target_compile_options(mixxx-lib PUBLIC -Wall -Wextra)
if(WARNINGS_PEDANTIC)
target_compile_options(mixxx-lib PUBLIC -pedantic)
endif()
endif()
option(WARNINGS_FATAL "Fail if compiler generates a warning" OFF)
if(WARNINGS_FATAL)
if(MSVC)
target_compile_options(mixxx-lib PUBLIC /WX)
else()
target_compile_options(mixxx-lib PUBLIC -Werror)
endif()
endif()
option(DEBUG_ASSERTIONS_FATAL "Fail if debug become true assertions" OFF)
if(DEBUG_ASSERTIONS_FATAL)
target_compile_definitions(mixxx-lib PUBLIC MIXXX_DEBUG_ASSERTIONS_FATAL)
endif()
target_compile_definitions(mixxx-lib PUBLIC
"${CMAKE_SYSTEM_PROCESSOR}"
$<$<CONFIG:Debug>:MIXXX_BUILD_DEBUG>
$<$<NOT:$<CONFIG:Debug>>:MIXXX_BUILD_RELEASE>
# Disable assert.h assertions in release mode. Some libraries use
# this as a signal for when to enable code that should be disabled
# in release mode.
$<$<NOT:$<CONFIG:Debug>>:NDEBUG>
)
if(WIN32)
target_compile_definitions(mixxx-lib PRIVATE __WINDOWS__)
# Restrict ATL to XP-compatible SDK functions.
# TODO(rryan): Remove once we ditch XP support.
target_compile_definitions(mixxx-lib PUBLIC _ATL_XP_TARGETING)
# Helps prevent duplicate symbols
target_compile_definitions(mixxx-lib PUBLIC _ATL_MIN_CRT)
# Need this on Windows until we have UTF16 support in Mixxx use stl min max
# defines
# http://connect.microsoft.com/VisualStudio/feedback/details/553420/std-cpp-
# max-and-std-cpp-min-not-available-in-visual-c-2010
target_compile_definitions(mixxx-lib PUBLIC NOMINMAX UNICODE)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
target_compile_definitions(mixxx-lib PUBLIC WIN32)
else()
target_compile_definitions(mixxx-lib PUBLIC WIN64)
endif()
target_link_libraries(mixxx-lib PUBLIC shell32)
if(MSVC)
if(NOT STATIC_DEPS OR CMAKE_BUILD_TYPE STREQUAL "Debug")
target_link_options(mixxx-lib PUBLIC /nodefaultlib:LIBCMT.lib /nodefaultlib:LIBCMTd.lib)
endif()
target_link_options(mixxx-lib PUBLIC /entry:mainCRTStartup)
# Force MSVS to generate a manifest (MSVC2010)
target_link_options(mixxx-lib PUBLIC /manifest)
endif()
elseif(UNIX)
if(APPLE)
target_compile_definitions(mixxx-lib PUBLIC __APPLE__)