forked from GaijinEntertainment/daScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
3,393 additions
and
9 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
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,54 @@ | ||
|
||
IF ((NOT DAS_AUDIO_INCLUDED) AND ((NOT ${DAS_AUDIO_DISABLED}) OR (NOT DEFINED DAS_AUDIO_DISABLED))) | ||
SET(DAS_AUDIO_INCLUDED TRUE) | ||
MESSAGE(STATUS "dasAudio module included.") | ||
|
||
SET(DAS_AUDIO_DIR ${PROJECT_SOURCE_DIR}/modules/dasAudio) | ||
SET(SOUND_INCLUDE_DIR ${DAS_AUDIO_DIR}/src ${DAS_AUDIO_DIR}/miniaudio) | ||
|
||
LIST(APPEND CMAKE_MODULE_PATH ${DAS_AUDIO_DIR}) | ||
|
||
SET(NUKED_OPL3_INCLUDE_DIR ${DAS_AUDIO_DIR}/Nuked-OPL3) | ||
|
||
SET(NUKED_OPL3_SOURCE | ||
${NUKED_OPL3_INCLUDE_DIR}/opl3.h | ||
${NUKED_OPL3_INCLUDE_DIR}/opl3.c | ||
) | ||
|
||
# libDasModuleSound | ||
SET(DAS_AUDIO_MODULE_SRC | ||
${DAS_AUDIO_DIR}/src/dasAudio.h | ||
${DAS_AUDIO_DIR}/src/dasAudio.cpp | ||
) | ||
|
||
ADD_MODULE_LIB(libDasModuleSound) | ||
ADD_MODULE_CPP(Audio) | ||
# ADD_MODULE_NATIVE(SOUND_boost) | ||
ADD_LIBRARY(libDasModuleSound ${DAS_AUDIO_MODULE_SRC} ${DAS_AUDIO_MODULE_PLATFORM_SRC} ${NUKED_OPL3_SOURCE}) | ||
TARGET_LINK_LIBRARIES(libDasModuleSound ${SOUND_LIBRARIES}) | ||
# ADD_DEPENDENCIES(libDasModuleSound) | ||
TARGET_INCLUDE_DIRECTORIES(libDasModuleSound PUBLIC ${SOUND_INCLUDE_DIR} ${NUKED_OPL3_INCLUDE_DIR}) | ||
|
||
SETUP_CPP11(libDasModuleSound) | ||
|
||
#ADD_MODULE_DAS(medialib medialib dasbox_sound_utils) | ||
ADD_MODULE_DAS(audio audio opl3) | ||
ADD_MODULE_DAS(audio audio audio_boost) | ||
|
||
install(DIRECTORY ${PROJECT_SOURCE_DIR}/modules/dasAudio/medialib | ||
DESTINATION modules/dasAudio | ||
FILES_MATCHING | ||
PATTERN "*.das" | ||
) | ||
|
||
file(GLOB DAS_AUDIO_EXAMPLES | ||
${PROJECT_SOURCE_DIR}/modules/dasAudio/examples/*.das | ||
) | ||
install(FILES ${DAS_AUDIO_EXAMPLES} | ||
DESTINATION examples/audio | ||
) | ||
|
||
install(FILES ${PROJECT_SOURCE_DIR}/modules/dasAudio/miniaudio/LICENSE DESTINATION . RENAME MINIAUDIO.LICENSE) | ||
install(FILES ${PROJECT_SOURCE_DIR}/modules/dasAudio/Nuked-OPL3/LICENSE DESTINATION . RENAME NUKED-OPL3.LICENSE) | ||
|
||
ENDIF() |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.