[DO-971] ffmpeg recipe with requirements (!9)
Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech> Reviewed-on: https://git.avroid.tech/Conan/conan_build/pulls/9
This commit is contained in:
22
recipes/mpg123/all/patches/0001-msvc-export-symbols.patch
Normal file
22
recipes/mpg123/all/patches/0001-msvc-export-symbols.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
--- a/ports/cmake/src/libout123/CMakeLists.txt
|
||||
+++ b/ports/cmake/src/libout123/CMakeLists.txt
|
||||
@@ -18,7 +18,7 @@ add_library(${TARGET}
|
||||
$<TARGET_OBJECTS:compat>
|
||||
$<$<BOOL:${USE_MODULES}>:$<TARGET_OBJECTS:compat_dl>>)
|
||||
|
||||
-set_target_properties(${TARGET} PROPERTIES OUTPUT_NAME out123)
|
||||
+set_target_properties(${TARGET} PROPERTIES OUTPUT_NAME out123 WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
||||
|
||||
target_link_libraries(${TARGET} PRIVATE
|
||||
$<TARGET_NAME_IF_EXISTS:defaultmodule>
|
||||
--- a/ports/cmake/src/libsyn123/CMakeLists.txt
|
||||
+++ b/ports/cmake/src/libsyn123/CMakeLists.txt
|
||||
@@ -15,7 +15,7 @@ add_library(${TARGET}
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/../../../../src/libsyn123/sampleconv.c"
|
||||
$<TARGET_OBJECTS:compat_str>)
|
||||
|
||||
-set_target_properties(${TARGET} PROPERTIES OUTPUT_NAME syn123)
|
||||
+set_target_properties(${TARGET} PROPERTIES OUTPUT_NAME syn123 WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
||||
|
||||
target_include_directories(${TARGET} INTERFACE
|
||||
"$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>"
|
||||
@@ -0,0 +1,10 @@
|
||||
--- a/ports/cmake/cmake/read_api_version.cmake
|
||||
+++ b/ports/cmake/cmake/read_api_version.cmake
|
||||
@@ -1,6 +1,6 @@
|
||||
function(read_api_version project_version api_version outapi_version synapi_version )
|
||||
|
||||
- file( READ "${CMAKE_SOURCE_DIR}/../../configure.ac" configure_ac )
|
||||
+ file( READ "${CMAKE_CURRENT_SOURCE_DIR}/../../configure.ac" configure_ac )
|
||||
|
||||
string( REGEX MATCH "AC_INIT\\(\\[mpg123\\], \\[([0-9\\.]+)" result ${configure_ac} )
|
||||
set( ${project_version} ${CMAKE_MATCH_1} PARENT_SCOPE )
|
||||
Reference in New Issue
Block a user