Skip to content

Commit bdcda68

Browse files
committed
15th attempt to fix GH Actions building
1 parent 5d1338f commit bdcda68

26 files changed

Lines changed: 267 additions & 84 deletions

platforms/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ if(MCPE_WIN32)
77
endif()
88
set(REMCPE_PLATFORM "${DEFAULT_PLATFORM}" CACHE STRING "ReMCPE Platform (Check <root>/platforms)")
99
message(STATUS "Selected Platform: ${REMCPE_PLATFORM}")
10-
add_subdirectory("${REMCPE_PLATFORM}")
10+
add_subdirectory("${REMCPE_PLATFORM}")
11+
12+
# Load Sound
13+
add_subdirectory(sound)

platforms/android/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ add_library(reminecraftpe SHARED
99
android_native_app_glue.c
1010
AppPlatform_android.cpp
1111
main.cpp
12-
SoundSystemSL.cpp
1312
)
1413

1514
# Core
@@ -22,4 +21,4 @@ target_link_libraries(reminecraftpe-core PUBLIC EGL GLESv1_CM)
2221
target_link_libraries(reminecraftpe stb_image)
2322

2423
# Extra Dependencies
25-
target_link_libraries(reminecraftpe android OpenSLES)
24+
target_link_libraries(reminecraftpe android)

platforms/openal/CMakeLists.txt

Lines changed: 0 additions & 33 deletions
This file was deleted.

platforms/sdl/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,4 @@ endif()
7272
if(EMSCRIPTEN)
7373
# Export Resize Function
7474
target_link_options(reminecraftpe PRIVATE -sEXPORTED_FUNCTIONS=_main,_resize_from_js -sEXPORTED_RUNTIME_METHODS=ccall)
75-
endif()
76-
77-
# OpenAL
78-
add_subdirectory(../openal openal)
79-
target_link_libraries(reminecraftpe reminecraftpe-openal)
75+
endif()

platforms/sound/CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
project(reminecraftpe-sound)
2+
3+
# Select & Build
4+
set(DEFAULT_SOUND_PLATFORM "openal")
5+
if(MCPE_WIN32)
6+
set(DEFAULT_SOUND_PLATFORM "directsound")
7+
endif()
8+
set(REMCPE_SOUND_PLATFORM "${DEFAULT_SOUND_PLATFORM}" CACHE STRING "ReMCPE Sound Platform (Check <root>/platforms/sound)")
9+
message(STATUS "Selected Sound Platform: ${REMCPE_SOUND_PLATFORM}")
10+
add_subdirectory("${REMCPE_SOUND_PLATFORM}")
11+
target_link_libraries(reminecraftpe reminecraftpe-sound)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
cmake_minimum_required(VERSION 3.16.0)
2+
project(reminecraftpe-directsound)
3+
4+
# Build
5+
add_library(reminecraftpe-sound STATIC
6+
SoundSystemDS.cpp
7+
)
8+
9+
# Libraries
10+
target_link_libraries(reminecraftpe-sound
11+
reminecraftpe-core
12+
dsound
13+
dxguid
14+
)
15+
16+
# Headers
17+
target_include_directories(reminecraftpe-sound PUBLIC .)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)