mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 20:37:35 +00:00
Ports: Move SDL_sound to SDL2_sound
This commit is contained in:
parent
27f93a3052
commit
de31f51bbe
5 changed files with 10 additions and 10 deletions
|
@ -0,0 +1,25 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: xSlendiX <gamingxslendix@gmail.com>
|
||||
Date: Sun, 19 Sep 2021 22:46:10 +0300
|
||||
Subject: [PATCH] Use pkgconfig to find SDL2
|
||||
|
||||
---
|
||||
CMakeLists.txt | 5 ++++-
|
||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index c1b9241..a659246 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -24,7 +24,10 @@ if(CMAKE_C_COMPILER_ID STREQUAL "SunPro")
|
||||
add_definitions(-xldscope=hidden)
|
||||
endif()
|
||||
|
||||
-find_package(SDL2 REQUIRED)
|
||||
+INCLUDE(FindPkgConfig)
|
||||
+
|
||||
+PKG_SEARCH_MODULE(SDL2 REQUIRED sdl2)
|
||||
+
|
||||
include_directories(${SDL2_INCLUDE_DIRS} ${SDL2_INCLUDE_DIR})
|
||||
if(WIN32)
|
||||
# -lmingw32: gcc adds it automatically.
|
7
Ports/SDL2_sound/patches/ReadMe.md
Normal file
7
Ports/SDL2_sound/patches/ReadMe.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Patches for SDL2_sound on SerenityOS
|
||||
|
||||
## `0001-Use-pkgconfig-to-find-SDL2.patch`
|
||||
|
||||
Use pkgconfig to find SDL2
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue