Rosen Penev
7646184d6b
unused includes ( #1133 )
...
* unused includes
Signed-off-by: Rosen Penev <rosenp@gmail.com>
* Use consistent order of includes
Always include in the following order:
- Own header files
- Standard header files
- System header files
- Project header files (toolkit first)
Exceptions:
- cppunit/extensions/HelperMacros.h must be included after
header files declaring stream operators
- config.h must be included before its definitions are used
---------
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Co-authored-by: Urs Fleisch <ufleisch@users.sourceforge.net>
2023-09-16 08:22:36 +02:00
Rosen Penev
524b588a1e
manual range loop conversions ( #1126 )
...
* manual range loop conversions
Signed-off-by: Rosen Penev <rosenp@gmail.com>
* Restore const containers where non const temporaries are iterated
* Use std::as_const() instead of const container copies where possible
---------
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Co-authored-by: Urs Fleisch <ufleisch@users.sourceforge.net>
2023-09-06 20:58:13 +02:00
Urs Fleisch
cc7d23cdf5
Consistently use quote form when including our own headers
2023-07-22 07:09:58 +02:00
Urs Fleisch
2a1fb27735
clang-tidy: Replace C headers with C++ alternatives
...
run-clang-tidy -header-filter='.*' -checks='-*,modernize-deprecated-headers'
Fixed manually as automatic fix would shuffle headers around.
2023-07-22 07:09:58 +02:00
Urs Fleisch
c2c9e8989c
clang-tidy: Use auto where it improves the readability
...
run-clang-tidy -header-filter='.*' -checks='-*,modernize-use-auto' \
-config="{CheckOptions: [{key: modernize-use-auto.RemoveStars, value: '1'}]}" \
-fix
Manually fixed some wrong `const auto` replacements and verified
that all types are deduced correctly.
2023-07-22 07:09:58 +02:00
Urs Fleisch
63922f2676
Avoid unnecessary detaching of containers
...
If only a constant iterator is needed, make the container const if
possible, otherwise use cbegin() and cend() to get a constant iterator
without detaching the container.
These fixes are needed so that `auto` can deduce the correct
iterator type.
2023-07-22 07:09:58 +02:00
whatdoineed2do
e20a53afbb
C bindings - properties i/f ( #1091 )
...
Support properties in C bindings
---------
Co-authored-by: whatdoineed2do/Ray <whatdoineed2do@nospam.gmail.com>
Co-authored-by: Urs Fleisch <ufleisch@users.sourceforge.net>
2023-07-09 19:48:27 +02:00
Urs Fleisch
a33cc0635a
Remove deprecated stuff
2023-07-09 07:01:37 +02:00
dabrain34
967c0eefed
cmake: generate pc files with the use of prefix ( #1071 )
2022-12-04 13:27:58 +01:00
Ryan Schmidt
8aa7dd81d8
Fix macOS dylib install name to be absolute path
...
Closes #1065
2022-10-28 18:04:34 +02:00
Rosen Penev
38d1d4c21c
clang-tidy: add ending namespace comments
...
Found with google-readability-namespace-comments
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-06-21 06:49:32 +02:00
Andreas Sturmlechner
507a42871c
Use GNUInstallDirs
...
Well-established CMake standard for installation directories.
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-03-06 14:52:25 +01:00
evpobr
bfed3797a0
Improve CMake VISIBILITY_HIDDEN option handling ( #810 )
...
Use standard CMake's CXX_VISIBILITY_PRESET property.
2018-10-26 19:26:53 -05:00
Svyatoslav Mishyn
1b878102f0
c: fix a typo
...
readble => readable
2016-04-22 16:46:15 +03:00
Tsuda Kageyu
46eacaeba4
Inline functions had better have internal linkages.
...
This also removes useless inline specifiers.
2016-02-15 20:53:27 +09:00
Tsuda Kageyu
bc8b60ea46
Remove an unreachable statement.
2015-12-02 14:08:20 +09:00
Tsuda Kageyu
72a807def1
Fix a string conversion bug in tag_c.cpp.
2015-11-19 11:50:39 +09:00
Tsuda Kageyu
86c7e905ba
Silence some MSVC security warnings by replacing strdup() with _strdup().
...
Backported from taglib2.
2015-11-13 10:06:01 +09:00
Lukáš Lalinský
29ed265281
Skip the patch version if it's 0
2015-08-25 17:04:34 +02:00
Bart van der Velden
fb1c744daf
Compile without warnings with MSVC
2014-12-08 09:42:04 -08:00
Tsuda Kageyu
2971891c69
Reduce useless detach operations by making some non-const iterators const.
2014-08-21 16:35:35 +09:00
Rafaël Carré
c45a0694f9
Also build/install taglib.pc when targetting windows
...
.pc file is notably used when cross-compiling windows software
2014-01-13 22:49:17 +01:00
Lukáš Lalinský
fdb8a6b065
Reintroduce HAVE_CONFIG_H so that TagLib can be built without CMake
2013-06-20 15:07:25 +02:00
Tsuda Kageyu
b0938a3cf1
Removed config.h and moved macros into taglib_config.h
2013-05-02 20:41:59 +09:00
Jasper St. Pierre
d52e97dfcd
c: Add support for TAGLIB_STATIC to the C bindings
...
Otherwise, we'll fail with dllimport/dllexport linking errors on
Windows.
2013-01-01 04:28:00 -05:00
Birunthan Mohanathas
06597123b8
Remove trailing whitespace
2012-04-19 13:09:45 +03:00
Birunthan Mohanathas
e5ede410bc
Tabs to spaces
2012-04-19 13:04:42 +03:00
Johannes Pfau
22b57f4463
Add taglib_free function to C binding
2011-08-05 13:17:42 +02:00
Lukáš Lalinský
dd846904cb
Remove the options to disable MP4/ASF support
2011-06-24 08:49:50 +02:00
Wolfgang Plaschg
7448bb353b
Include of "tag_c.h" after system libraries.
2011-06-20 03:08:24 +02:00
Lukáš Lalinský
a38d2b2995
Simplify static builds
2011-05-08 15:57:34 +02:00
Lukáš Lalinský
b5b8387aee
Don't install pkg-config files when building a framework
2011-05-08 15:50:44 +02:00
Lukáš Lalinský
c337694165
Make it possible to build an OS X framework
2011-05-08 15:46:19 +02:00
Lukáš Lalinský
d03ef3c312
Use the PUBLIC_HEADER property to prepare for building an OS X framework
2011-04-18 16:52:47 +02:00
Lukáš Lalinský
2fa8c93776
The website has more up-to-date links
2011-04-09 20:15:00 +02:00
Lukáš Lalinský
ee920a461c
Clean up the library CMakeLists.txt file
2011-04-09 20:05:50 +02:00
Lukáš Lalinský
1596dc7c69
Clean up the main CMakeLists.txt file
2011-04-09 19:51:23 +02:00
M.A. Brand Consulting
8f42d5b594
Make it possible to build a static version of the C bindings
...
https://bugs.kde.org/show_bug.cgi?id=268441
2011-03-19 08:28:35 +01:00
Lukáš Lalinský
2f9838a440
*poof*
...
I've warned people about removing autoconf/automake support for a long time,
so let's make it happen for 1.7. CMake is now the only supported build system.
I'll update build docs in a following commit.
CCMAIL:taglib-devel@kde.org
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@1220235 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
2011-02-13 11:50:25 +00:00
Lukáš Lalinský
4b00ef4acb
Set the version number to 1.7
...
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@1220230 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
2011-02-13 10:59:33 +00:00
Lukáš Lalinský
32a10b53d5
Fix Automake build
...
Patch by Stephen F. Booth
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@1167433 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
2010-08-24 15:50:35 +00:00
Lukáš Lalinský
dcef0fbad2
Read-only support for FLAC picture blocks
...
CCBUG:218696
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@1154376 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
2010-07-25 11:06:36 +00:00
Lukáš Lalinský
d5eb51e452
Update all version numbers to 1.6.3
...
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@1114073 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
2010-04-12 17:43:03 +00:00
Lukáš Lalinský
b1cac7175f
Increment version number
...
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@1110983 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
2010-04-04 15:01:21 +00:00
Alexander Neundorf
1b6ab18080
this patch should make taglib build with the Sun Studio compiler ( http://bugs.kde.org/show_bug.cgi?id=215225 )
...
Alex
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@1054212 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
2009-11-25 18:45:13 +00:00
Lukáš Lalinský
dcf4c7458b
A few more version numbers. We really need a way to automate this :(
...
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@1042960 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
2009-10-31 09:57:13 +00:00
Lukáš Lalinský
03c63a11a5
Set visibility("default") for GCC on exported symbols
...
This does nothing with the current configuration, but it's useful if you compile the library with -fvisibility=hidden
Patch by Modestas Vainius
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@1039693 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
2009-10-24 11:07:41 +00:00
Lukáš Lalinský
af65fefef7
Fix typo in taglib_c.pc
...
Patch by Modestas Vainius to fix a bug reported in Debian - http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=524696
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@1038111 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
2009-10-20 16:41:59 +00:00
Lukáš Lalinský
9b17ca219c
Add option for building a static version of taglib
...
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@1021124 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
2009-09-08 08:52:57 +00:00
Lukáš Lalinský
06f405f719
Add support for a global, installable config header
...
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@1019671 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
2009-09-04 09:29:59 +00:00