@@ -5,8 +5,6 @@ set(tag_HDR_DIRS
55 ${CMAKE_CURRENT_SOURCE_DIR} /mpeg/id3v2
66 ${CMAKE_CURRENT_SOURCE_DIR} /mpeg/id3v2/frames
77 ${CMAKE_CURRENT_SOURCE_DIR} /mpeg/id3v1
8- ${CMAKE_CURRENT_SOURCE_DIR} /matroska
9- ${CMAKE_CURRENT_SOURCE_DIR} /matroska/ebml
108)
119if (WITH_ASF)
1210 set (tag_HDR_DIRS ${tag_HDR_DIRS}
@@ -66,9 +64,15 @@ if(WITH_SHORTEN)
6664 ${CMAKE_CURRENT_SOURCE_DIR} /shorten
6765 )
6866endif ()
67+ if (WITH_MATROSKA)
68+ set (tag_HDR_DIRS ${tag_HDR_DIRS}
69+ ${CMAKE_CURRENT_SOURCE_DIR} /matroska
70+ ${CMAKE_CURRENT_SOURCE_DIR} /matroska/ebml
71+ )
72+ endif ()
6973include_directories (${tag_HDR_DIRS} )
7074
71- set (tag_PUBLIC_HDRS
75+ set (tag_HDRS
7276 tag.h
7377 fileref.h
7478 audioproperties.h
@@ -92,12 +96,6 @@ set(tag_PUBLIC_HDRS
9296 toolkit/tpropertymap.h
9397 toolkit/tdebuglistener.h
9498 toolkit/tversionnumber.h
95- matroska/matroskaattachedfile.h
96- matroska/matroskaattachments.h
97- matroska/matroskafile.h
98- matroska/matroskatag.h
99- matroska/matroskasimpletag.h
100- matroska/matroskaelement.h
10199 mpeg/mpegfile.h
102100 mpeg/mpegproperties.h
103101 mpeg/mpegheader.h
@@ -228,49 +226,32 @@ if(WITH_SHORTEN)
228226 shorten/shortentag.h
229227 )
230228endif ()
231-
232- set (tag_PRIVATE_HDRS
233- matroska/matroskaseekhead.h
234- matroska/matroskasegment.h
235- matroska/ebml/ebmlbinaryelement.h
236- matroska/ebml/ebmlelement.h
237- matroska/ebml/ebmlmasterelement.h
238- matroska/ebml/ebmlmkattachments.h
239- matroska/ebml/ebmlmkseekhead.h
240- matroska/ebml/ebmlmksegment.h
241- matroska/ebml/ebmlmktags.h
242- matroska/ebml/ebmlstringelement.h
243- matroska/ebml/ebmluintelement.h
244- matroska/ebml/ebmlutils.h
245- matroska/ebml/ebmlvoidelement.h
246- )
247-
248- set (tag_HDRS ${tag_PUBLIC_HDRS} ${tag_PRIVATE_HDRS} )
249-
250- set (matroska_SRCS
251- matroska/matroskaattachedfile.cpp
252- matroska/matroskaattachments.cpp
253- matroska/matroskaelement.cpp
254- matroska/matroskafile.cpp
255- matroska/matroskaseekhead.cpp
256- matroska/matroskasegment.cpp
257- matroska/matroskasimpletag.cpp
258- matroska/matroskatag.cpp
259- )
260-
261- set (ebml_SRCS
262- matroska/ebml/ebmlbinaryelement.cpp
263- matroska/ebml/ebmlelement.cpp
264- matroska/ebml/ebmlmasterelement.cpp
265- matroska/ebml/ebmlmkattachments.cpp
266- matroska/ebml/ebmlmkseekhead.cpp
267- matroska/ebml/ebmlmksegment.cpp
268- matroska/ebml/ebmlmktags.cpp
269- matroska/ebml/ebmlstringelement.cpp
270- matroska/ebml/ebmluintelement.cpp
271- matroska/ebml/ebmlutils.cpp
272- matroska/ebml/ebmlvoidelement.cpp
273- )
229+ if (WITH_MATROSKA)
230+ set (tag_HDRS ${tag_HDRS}
231+ matroska/matroskafile.h
232+ matroska/matroskatag.h
233+ matroska/matroskasimpletag.h
234+ matroska/matroskaattachedfile.h
235+ matroska/matroskaattachments.h
236+ matroska/matroskafile.h
237+ matroska/matroskatag.h
238+ matroska/matroskasimpletag.h
239+ matroska/matroskaelement.h
240+ matroska/matroskaseekhead.h
241+ matroska/matroskasegment.h
242+ matroska/ebml/ebmlbinaryelement.h
243+ matroska/ebml/ebmlelement.h
244+ matroska/ebml/ebmlmasterelement.h
245+ matroska/ebml/ebmlmkattachments.h
246+ matroska/ebml/ebmlmkseekhead.h
247+ matroska/ebml/ebmlmksegment.h
248+ matroska/ebml/ebmlmktags.h
249+ matroska/ebml/ebmlstringelement.h
250+ matroska/ebml/ebmluintelement.h
251+ matroska/ebml/ebmlutils.h
252+ matroska/ebml/ebmlvoidelement.h
253+ )
254+ endif ()
274255
275256set (mpeg_SRCS
276257 mpeg/mpegfile.cpp
@@ -461,6 +442,33 @@ if(WITH_SHORTEN)
461442 )
462443endif ()
463444
445+ if (WITH_MATROSKA)
446+ set (matroska_SRCS
447+ matroska/matroskaattachedfile.cpp
448+ matroska/matroskaattachments.cpp
449+ matroska/matroskaelement.cpp
450+ matroska/matroskafile.cpp
451+ matroska/matroskaseekhead.cpp
452+ matroska/matroskasegment.cpp
453+ matroska/matroskasimpletag.cpp
454+ matroska/matroskatag.cpp
455+ )
456+
457+ set (ebml_SRCS
458+ matroska/ebml/ebmlbinaryelement.cpp
459+ matroska/ebml/ebmlelement.cpp
460+ matroska/ebml/ebmlmasterelement.cpp
461+ matroska/ebml/ebmlmkattachments.cpp
462+ matroska/ebml/ebmlmkseekhead.cpp
463+ matroska/ebml/ebmlmksegment.cpp
464+ matroska/ebml/ebmlmktags.cpp
465+ matroska/ebml/ebmlstringelement.cpp
466+ matroska/ebml/ebmluintelement.cpp
467+ matroska/ebml/ebmlutils.cpp
468+ matroska/ebml/ebmlvoidelement.cpp
469+ )
470+ endif ()
471+
464472set (toolkit_SRCS
465473 toolkit/tstring.cpp
466474 toolkit/tstringlist.cpp
@@ -480,11 +488,11 @@ set(toolkit_SRCS
480488)
481489
482490set (tag_LIB_SRCS
483- ${matroska_SRCS} ${ebml_SRCS} ${ mpeg_SRCS} ${id3v1_SRCS} ${id3v2_SRCS} ${frames_SRCS} ${ogg_SRCS}
491+ ${mpeg_SRCS} ${id3v1_SRCS} ${id3v2_SRCS} ${frames_SRCS} ${ogg_SRCS}
484492 ${vorbis_SRCS} ${oggflacs_SRCS} ${mpc_SRCS} ${ape_SRCS} ${toolkit_SRCS} ${flacs_SRCS}
485493 ${wavpack_SRCS} ${speex_SRCS} ${trueaudio_SRCS} ${riff_SRCS} ${aiff_SRCS} ${wav_SRCS}
486494 ${asf_SRCS} ${mp4_SRCS} ${mod_SRCS} ${s3m_SRCS} ${it_SRCS} ${xm_SRCS} ${opus_SRCS}
487- ${dsf_SRCS} ${dsdiff_SRCS} ${shorten_SRCS}
495+ ${dsf_SRCS} ${dsdiff_SRCS} ${shorten_SRCS} ${matroska_SRCS} ${ebml_SRCS}
488496 tag.cpp
489497 tagunion.cpp
490498 fileref.cpp
@@ -509,13 +517,8 @@ set_target_properties(tag PROPERTIES
509517 SOVERSION ${TAGLIB_SOVERSION_MAJOR}
510518 INSTALL_NAME_DIR ${CMAKE_INSTALL_FULL_LIBDIR}
511519 DEFINE_SYMBOL MAKE_TAGLIB_LIB
512- <<<<<<< HEAD
513520 INTERFACE_LINK_LIBRARIES "${ZLIB_INTERFACE_LINK_LIBRARIES} "
514521 PUBLIC_HEADER "${tag_HDRS} "
515- =======
516- LINK_INTERFACE_LIBRARIES ""
517- PUBLIC_HEADER "${tag_PUBLIC_HDRS} "
518- >>>>>>> 770c1012 (Initial matroska support )
519522)
520523if (NOT BUILD_SHARED_LIBS )
521524 target_compile_definitions (tag PUBLIC TAGLIB_STATIC )
0 commit comments