-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #589 from novelrt/feature/audio-rework-v2.1
Move Audio to new header format
- Loading branch information
Showing
11 changed files
with
71 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
add_library(NovelRT-Audio STATIC | ||
AudioService.cpp | ||
) | ||
|
||
target_sources(NovelRT-Audio | ||
PUBLIC | ||
FILE_SET public_headers | ||
TYPE HEADERS | ||
BASE_DIRS include | ||
FILES | ||
include/NovelRT/Audio/Audio.hpp | ||
include/NovelRT/Audio/AudioService.hpp | ||
) | ||
|
||
set_target_properties(NovelRT-Audio | ||
PROPERTIES | ||
EXPORT_NAME Audio | ||
POSITION_INDEPENDENT_CODE ON | ||
) | ||
|
||
target_compile_features(NovelRT-Audio | ||
PUBLIC | ||
cxx_std_17 | ||
) | ||
|
||
target_compile_options(NovelRT-Audio | ||
PRIVATE | ||
$<$<CXX_COMPILER_ID:GNU>:-Wall> | ||
$<$<CXX_COMPILER_ID:GNU>:-Wabi> | ||
$<$<CXX_COMPILER_ID:GNU>:-Werror> | ||
$<$<CXX_COMPILER_ID:GNU>:-Wextra> | ||
$<$<CXX_COMPILER_ID:GNU>:-Wpedantic> | ||
$<$<CXX_COMPILER_ID:GNU>:-pedantic-errors> | ||
|
||
$<$<CXX_COMPILER_ID:Clang>:-Wall> | ||
$<$<CXX_COMPILER_ID:Clang>:-Werror> | ||
$<$<CXX_COMPILER_ID:Clang>:-Wextra> | ||
$<$<CXX_COMPILER_ID:Clang>:-Wpedantic> | ||
$<$<CXX_COMPILER_ID:Clang>:-pedantic-errors> | ||
|
||
$<$<CXX_COMPILER_ID:MSVC>:/W4> | ||
$<$<CXX_COMPILER_ID:MSVC>:/WX> | ||
$<$<CXX_COMPILER_ID:MSVC>:/permissive-> | ||
) | ||
|
||
target_include_directories(NovelRT-Audio PRIVATE "$<TARGET_PROPERTY:Engine,INCLUDE_DIRECTORIES>") | ||
target_link_libraries(NovelRT-Audio | ||
PUBLIC | ||
spdlog | ||
OpenAL | ||
) | ||
|
||
install( | ||
TARGETS NovelRT-Audio | ||
EXPORT NovelRTConfig | ||
LIBRARY DESTINATION lib | ||
FILE_SET public_headers DESTINATION include | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters