mirror of
https://github.com/Ryujinx/libsoundio.git
synced 2024-12-23 03:55:33 +00:00
build: no need to generate .def file
mingw generates .dll.a files which MSVC accepts in addition to .lib files.
This commit is contained in:
parent
3b49292897
commit
bc7b22f61c
|
@ -183,12 +183,6 @@ configure_file (
|
||||||
${CONFIGURE_OUT_FILE}
|
${CONFIGURE_OUT_FILE}
|
||||||
)
|
)
|
||||||
|
|
||||||
if(MINGW)
|
|
||||||
set(LIB_LINK_FLAGS "-Wl,--output-def,libsoundio.def")
|
|
||||||
else()
|
|
||||||
set(LIB_LINK_FLAGS " ")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
add_library(libsoundio_shared SHARED ${LIBSOUNDIO_SOURCES})
|
add_library(libsoundio_shared SHARED ${LIBSOUNDIO_SOURCES})
|
||||||
set_target_properties(libsoundio_shared PROPERTIES
|
set_target_properties(libsoundio_shared PROPERTIES
|
||||||
OUTPUT_NAME soundio
|
OUTPUT_NAME soundio
|
||||||
|
@ -196,7 +190,6 @@ set_target_properties(libsoundio_shared PROPERTIES
|
||||||
VERSION ${LIBSOUNDIO_VERSION}
|
VERSION ${LIBSOUNDIO_VERSION}
|
||||||
COMPILE_FLAGS ${LIB_CFLAGS}
|
COMPILE_FLAGS ${LIB_CFLAGS}
|
||||||
LINKER_LANGUAGE C
|
LINKER_LANGUAGE C
|
||||||
LINK_FLAGS ${LIB_LINK_FLAGS}
|
|
||||||
)
|
)
|
||||||
include_directories(
|
include_directories(
|
||||||
${CMAKE_SOURCE_DIR}
|
${CMAKE_SOURCE_DIR}
|
||||||
|
|
Loading…
Reference in a new issue