mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-16 19:07:52 +00:00
Move dead submodules in-tree
Signed-off-by: swurl <swurl@swurl.xyz>
This commit is contained in:
parent
c0cceff365
commit
6c655321e6
4081 changed files with 1185566 additions and 45 deletions
78
externals/oboe/samples/RhythmGame/CMakeLists.txt
vendored
Normal file
78
externals/oboe/samples/RhythmGame/CMakeLists.txt
vendored
Normal file
|
@ -0,0 +1,78 @@
|
|||
cmake_minimum_required(VERSION 3.4.1)
|
||||
|
||||
include_directories(third_party)
|
||||
|
||||
include_directories(src/main/cpp/)
|
||||
|
||||
add_library( native-lib
|
||||
SHARED
|
||||
|
||||
# main game files
|
||||
src/main/cpp/native-lib.cpp
|
||||
src/main/cpp/Game.cpp
|
||||
|
||||
# audio engine
|
||||
src/main/cpp/audio/AAssetDataSource.cpp
|
||||
src/main/cpp/audio/Player.cpp
|
||||
|
||||
# UI engine
|
||||
src/main/cpp/ui/OpenGLFunctions.cpp
|
||||
|
||||
# utility functions
|
||||
src/main/cpp/utils/logging.h
|
||||
src/main/cpp/utils/UtilityFunctions.cpp
|
||||
|
||||
)
|
||||
|
||||
set (TARGET_LIBS log android oboe GLESv2)
|
||||
|
||||
if(${USE_FFMPEG})
|
||||
|
||||
MESSAGE(STATUS "Using FFmpeg extractor")
|
||||
|
||||
add_definitions(-DUSE_FFMPEG=1)
|
||||
target_sources( native-lib PRIVATE src/main/cpp/audio/FFMpegExtractor.cpp )
|
||||
|
||||
# Add the local path to FFmpeg, you can use the ${ANDROID_ABI} variable to specify the ABI name
|
||||
# e.g. /Users/donturner/Code/ffmpeg/build/${ANDROID_ABI}
|
||||
set(FFMPEG_DIR "/path/to/ffmpeg")
|
||||
|
||||
include_directories(native-lib ${FFMPEG_DIR}/include)
|
||||
|
||||
add_library( avformat SHARED IMPORTED)
|
||||
set_target_properties(avformat PROPERTIES IMPORTED_LOCATION
|
||||
${FFMPEG_DIR}/lib/libavformat.so)
|
||||
add_library( avutil SHARED IMPORTED)
|
||||
set_target_properties(avutil PROPERTIES IMPORTED_LOCATION
|
||||
${FFMPEG_DIR}/lib/libavutil.so)
|
||||
add_library( avcodec SHARED IMPORTED)
|
||||
set_target_properties(avcodec PROPERTIES IMPORTED_LOCATION
|
||||
${FFMPEG_DIR}/lib/libavcodec.so)
|
||||
add_library( swresample SHARED IMPORTED)
|
||||
set_target_properties(swresample PROPERTIES IMPORTED_LOCATION
|
||||
${FFMPEG_DIR}/lib/libswresample.so)
|
||||
set (TARGET_LIBS ${TARGET_LIBS} avformat avutil avcodec swresample)
|
||||
|
||||
else()
|
||||
MESSAGE(STATUS "Using NDK media extractor")
|
||||
add_definitions(-DUSE_FFMPEG=0)
|
||||
target_sources( native-lib PRIVATE src/main/cpp/audio/NDKExtractor.cpp )
|
||||
set (TARGET_LIBS ${TARGET_LIBS} mediandk)
|
||||
endif()
|
||||
|
||||
target_link_libraries(native-lib ${TARGET_LIBS} )
|
||||
target_link_options(native-lib PRIVATE "-Wl,-z,max-page-size=16384")
|
||||
|
||||
# Set the path to the Oboe directory.
|
||||
set (OBOE_DIR ../..)
|
||||
|
||||
# Add the Oboe library as a subdirectory in your project.
|
||||
add_subdirectory (${OBOE_DIR} ./oboe-bin)
|
||||
|
||||
# Specify the path to the Oboe header files.
|
||||
include_directories (${OBOE_DIR}/include ${OBOE_DIR}/samples)
|
||||
|
||||
# Enable optimization flags: if having problems with source level debugging,
|
||||
# disable -Ofast ( and debug ), re-enable after done debugging.
|
||||
target_compile_options(native-lib
|
||||
PRIVATE -std=c++17 -Wall -Werror "$<$<CONFIG:RELEASE>:-Ofast>")
|
Loading…
Add table
Add a link
Reference in a new issue