Skip to content

Commit 252b73f

Browse files
committed
CMake support for ID3 writing with LAME
1 parent d4556e7 commit 252b73f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,14 @@ endif (HAVE_LAME_LAME_H OR HAVE_MAD_H OR HAVE_MPG123_H)
169169

170170
set(CMAKE_REQUIRED_LIBRARIES mp3lame m)
171171
check_function_exists("lame_set_VBR_quality" HAVE_LAME_SET_VBR_QUALITY)
172+
check_function_exists("id3tag_set_fieldvalue" HAVE_LAME_ID3TAG)
173+
174+
if (HAVE_LAME_LAME_H AND (NOT WIN32))
175+
check_library_exists(iconv iconv "" HAVE_ICONV)
176+
if (HAVE_ICONV)
177+
set(optional_libs ${optional_libs} iconv)
178+
endif (HAVE_ICONV)
179+
endif (HAVE_LAME_LAME_H AND (NOT WIN32))
172180

173181
if (HAVE_SUN_AUDIOIO_H OR HAVE_SYS_AUDIOIO_H)
174182
set(HAVE_SUN_AUDIO 1)

src/soxconfig.h.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515
#cmakedefine HAVE_GETTIMEOFDAY 1
1616
#cmakedefine HAVE_GLOB_H 1
1717
#define HAVE_GSM 1
18+
#cmakedefine HAVE_ICONV 1
1819
#cmakedefine HAVE_ID3TAG 1
1920
#cmakedefine HAVE_INTTYPES_H 1
2021
#cmakedefine HAVE_IO_H 1
22+
#cmakedefine HAVE_LAME_ID3TAG 1
2123
#cmakedefine HAVE_LAME_LAME_H 1
2224
#cmakedefine HAVE_LAME_SET_VBR_QUALITY 1
2325
#define HAVE_LPC10 1

0 commit comments

Comments
 (0)