mirror of
https://codeberg.org/armin/justasample.git
synced 2026-09-01 04:10:48 +02:00
fixes, changes to gitignore
This commit is contained in:
parent
2ab046489f
commit
11d81cf1fd
17 changed files with 1160 additions and 16 deletions
|
|
@ -207,6 +207,8 @@ target_sources(JustASample PRIVATE
|
|||
Source/Components/FxDragTarget.h
|
||||
Source/Components/FxModule.cpp
|
||||
Source/Components/FxModule.h
|
||||
Source/Components/ModulationSection.cpp
|
||||
Source/Components/ModulationSection.h
|
||||
Source/Components/InputDeviceSelector.cpp
|
||||
Source/Components/InputDeviceSelector.h
|
||||
Source/Components/Prompt.h
|
||||
|
|
@ -235,7 +237,11 @@ target_sources(JustASample PRIVATE
|
|||
Source/Sampler/Effects/Chorus.h
|
||||
Source/Sampler/Effects/Distortion.h
|
||||
Source/Sampler/Effects/Effect.h
|
||||
Source/Sampler/Effects/ModFilter.h
|
||||
Source/Sampler/Effects/Phaser.h
|
||||
Source/Sampler/Effects/Reverb.h
|
||||
Source/Sampler/Effects/RingMod.h
|
||||
Source/Sampler/LFO.h
|
||||
External/Gin/gin_distortion.h
|
||||
External/Gin/gin_simpleverb.cpp
|
||||
External/Gin/gin_simpleverb.h
|
||||
|
|
@ -315,6 +321,52 @@ target_compile_definitions(JustASample PUBLIC
|
|||
JAS_VST3_REAPER_INTEGRATION=$<BOOL:${JAS_VST3_REAPER_INTEGRATION}>
|
||||
)
|
||||
|
||||
target_compile_options(JustASample PUBLIC
|
||||
-Wno-shadow-field-in-constructor
|
||||
-Wno-nan-infinity-disabled
|
||||
-Wno-implicit-int-float-conversion
|
||||
-Wno-sign-conversion
|
||||
-Wno-sign-compare
|
||||
-Wno-unknown-pragmas
|
||||
-Wno-extra-semi
|
||||
-Wno-missing-field-initializers
|
||||
-Wno-unused-variable
|
||||
-Wno-unused-but-set-variable
|
||||
-Wno-unused-parameter
|
||||
-Wno-switch
|
||||
-Wno-switch-enum
|
||||
-Wno-c++98-compat-extra-semi
|
||||
)
|
||||
|
||||
# Force-include a suppression header to override JUCE's warning flags
|
||||
# (JUCE's PUBLIC flags appear after ours on the command line, so -Wno-* from
|
||||
# target_compile_options can be overridden. Pragma directives are processed in
|
||||
# order and the last one wins, so placing them in a forced-include ensures they
|
||||
# take effect after the -W flags.)
|
||||
file(WRITE "${CMAKE_BINARY_DIR}/suppress_preexisting_warnings.h"
|
||||
"#pragma once\n"
|
||||
"#ifdef __clang__\n"
|
||||
"#pragma clang diagnostic ignored \"-Wshadow-field-in-constructor\"\n"
|
||||
"#pragma clang diagnostic ignored \"-Wnan-infinity-disabled\"\n"
|
||||
"#pragma clang diagnostic ignored \"-Wimplicit-int-float-conversion\"\n"
|
||||
"#pragma clang diagnostic ignored \"-Wsign-conversion\"\n"
|
||||
"#pragma clang diagnostic ignored \"-Wsign-compare\"\n"
|
||||
"#pragma clang diagnostic ignored \"-Wunknown-pragmas\"\n"
|
||||
"#pragma clang diagnostic ignored \"-Wextra-semi\"\n"
|
||||
"#pragma clang diagnostic ignored \"-Wmissing-field-initializers\"\n"
|
||||
"#pragma clang diagnostic ignored \"-Wunused-variable\"\n"
|
||||
"#pragma clang diagnostic ignored \"-Wunused-but-set-variable\"\n"
|
||||
"#pragma clang diagnostic ignored \"-Wunused-parameter\"\n"
|
||||
"#pragma clang diagnostic ignored \"-Wswitch\"\n"
|
||||
"#pragma clang diagnostic ignored \"-Wswitch-enum\"\n"
|
||||
"#pragma clang diagnostic ignored \"-Wc++98-compat-extra-semi\"\n"
|
||||
"#pragma clang diagnostic ignored \"-Wimplicit-float-conversion\"\n"
|
||||
"#elif defined(_MSC_VER)\n"
|
||||
"#pragma warning(disable: 4244 4267 4305 4018 4996)\n"
|
||||
"#endif\n"
|
||||
)
|
||||
target_compile_options(JustASample PRIVATE "SHELL:-include ${CMAKE_BINARY_DIR}/suppress_preexisting_warnings.h")
|
||||
|
||||
add_dependencies(JustASample GenerateBuildInfo)
|
||||
|
||||
# JustASample itself already gets LTO via juce::juce_recommended_lto_flags
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue