forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[openal-soft] Revert microsoft#12047 (microsoft#12318)
* [openal-soft] Revert microsoft#12047 * [openal-soft] Prevent addition of extra Windows SDK Co-authored-by: Robert Schumacher <[email protected]>
- Loading branch information
1 parent
4953c8a
commit 006a133
Showing
3 changed files
with
69 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
Source: openal-soft | ||
Version: 1.20.1-2 | ||
Version: 1.20.1 | ||
Port-Version: 4 | ||
Homepage: https://github.com/kcat/openal-soft | ||
Description: OpenAL Soft is an LGPL-licensed, cross-platform, software implementation of the OpenAL 3D audio API. | ||
Supports: !uwp |
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,63 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 98f9ad49..50b4297f 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -1193,6 +1193,7 @@ SET_TARGET_PROPERTIES(common PROPERTIES POSITION_INDEPENDENT_CODE TRUE) | ||
UNSET(HAS_ROUTER) | ||
SET(IMPL_TARGET OpenAL) # Either OpenAL or soft_oal. | ||
SET(SUBSYS_FLAG ) | ||
+SET(COMMON_LIB ) | ||
|
||
# Build main library | ||
IF(LIBTYPE STREQUAL "STATIC") | ||
@@ -1203,12 +1204,15 @@ IF(LIBTYPE STREQUAL "STATIC") | ||
ADD_LIBRARY(${IMPL_TARGET} STATIC ${COMMON_OBJS} ${OPENAL_OBJS} ${ALC_OBJS}) | ||
TARGET_LINK_LIBRARIES(${IMPL_TARGET} PRIVATE ${LINKER_FLAGS} ${EXTRA_LIBS} ${MATH_LIB}) | ||
ELSE() | ||
+ SET(COMMON_LIB common) | ||
+ | ||
IF(WIN32) | ||
IF(MSVC) | ||
SET(SUBSYS_FLAG ${SUBSYS_FLAG} "/SUBSYSTEM:WINDOWS") | ||
ELSEIF(CMAKE_COMPILER_IS_GNUCC) | ||
SET(SUBSYS_FLAG ${SUBSYS_FLAG} "-mwindows") | ||
ENDIF() | ||
+ set(COMMON_LIB ${COMMON_LIB} shell32 ole32) | ||
ENDIF() | ||
|
||
SET(RC_CONFIG resources/openal32.rc) | ||
@@ -1223,7 +1227,7 @@ ELSE() | ||
TARGET_COMPILE_DEFINITIONS(OpenAL | ||
PRIVATE AL_BUILD_LIBRARY AL_ALEXT_PROTOTYPES ${CPP_DEFS}) | ||
TARGET_COMPILE_OPTIONS(OpenAL PRIVATE ${C_FLAGS}) | ||
- TARGET_LINK_LIBRARIES(OpenAL PRIVATE common ${LINKER_FLAGS}) | ||
+ TARGET_LINK_LIBRARIES(OpenAL PRIVATE ${COMMON_LIB} ${LINKER_FLAGS}) | ||
TARGET_INCLUDE_DIRECTORIES(OpenAL | ||
PUBLIC | ||
$<BUILD_INTERFACE:${OpenAL_SOURCE_DIR}/include> | ||
@@ -1248,7 +1252,7 @@ ELSE() | ||
IF(WIN32) | ||
SET_TARGET_PROPERTIES(${IMPL_TARGET} PROPERTIES PREFIX "") | ||
ENDIF() | ||
- TARGET_LINK_LIBRARIES(${IMPL_TARGET} PRIVATE common ${LINKER_FLAGS} ${EXTRA_LIBS} ${MATH_LIB}) | ||
+ TARGET_LINK_LIBRARIES(${IMPL_TARGET} PRIVATE ${COMMON_LIB} ${LINKER_FLAGS} ${EXTRA_LIBS} ${MATH_LIB}) | ||
ENDIF() | ||
|
||
TARGET_INCLUDE_DIRECTORIES(${IMPL_TARGET} | ||
diff --git a/native-tools/CMakeLists.txt b/native-tools/CMakeLists.txt | ||
index 5e816bba..5d7919f6 100644 | ||
--- a/native-tools/CMakeLists.txt | ||
+++ b/native-tools/CMakeLists.txt | ||
@@ -24,6 +24,11 @@ set_target_properties(bsincgen PROPERTIES OUTPUT_NAME bsincgen) | ||
set_target_properties(bsincgen PROPERTIES RUNTIME_OUTPUT_DIRECTORY_DEBUG "${CMAKE_BINARY_DIR}") | ||
set_target_properties(bsincgen PROPERTIES RUNTIME_OUTPUT_DIRECTORY_RELEASE "${CMAKE_BINARY_DIR}") | ||
target_compile_definitions(bsincgen PRIVATE ${CPP_DEFS}) | ||
+set(BSINCGEN_LIB ) | ||
if(HAVE_LIBM) | ||
- target_link_libraries(bsincgen m) | ||
+ set(BSINCGEN_LIB ${BSINCGEN_LIB} m) | ||
endif(HAVE_LIBM) | ||
+if(WIN32) | ||
+ set(BSINCGEN_LIB ${BSINCGEN_LIB} shell32) | ||
+endif() | ||
+target_link_libraries(bsincgen ${BSINCGEN_LIB}) |
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