22 Commits

Author SHA1 Message Date
Tina Müller 2c891fc7a7 Changes for v0.2.5 release 2020-06-01 23:19:50 +02:00
Tina Müller 72e2f75277 Changes for v0.2.4 release 2020-04-19 13:15:10 +02:00
Tina Müller bf52902899 Changes for v0.2.3 release 2020-04-11 19:08:22 +02:00
Ingy döt Net 690a781ef6 Update configure.ac for 0.2.2 2019-03-12 18:04:00 -07:00
Marty E. Plummer 12dc1bef1f build: do not install config.h
'config.h' is meant to be a convenience header to be #included at build
time, but not installed. Installing it can cause a host of problems for
various other projects (for instance, attempting to build u-boot from
source while another project's 'config.h' exists in the compiler search
path will cause build failures similar to:
https://github.com/pepe2k/u-boot_mod/issues/148

Further, I've changed '#include <config.h>' to '#include "config.h"',
which should constrain the search path to the current build directories,
so if another package with a bugged build has this file installed, it
will not cause yaml to miscompile/fail.

If you have a file `/usr/include/config.h` on your filesystem, query
your package manager to find out what package owns it, and file a bug
report against it with your distro maintainers.

Signed-off-by: Marty E. Plummer <hanetzer@protonmail.com>
2018-07-19 14:49:53 -07:00
Ingy döt Net f6e09f829b Changes for 0.2.1 release 2018-06-26 14:43:59 -07:00
Jean-Christophe Fillion-Robin fe3d086fa7 Improve CMake build system
New build options
-----------------

* Add option BUILD_TESTING by default ON
See https://cmake.org/cmake/help/v2.8.12/cmake.html#module:CTest

* Simplify library type selection using standard option BUILD_SHARED_LIBS
See https://cmake.org/cmake/help/v3.0/variable/BUILD_SHARED_LIBS.html

yamlConfig.cmake
----------------

* Generate and install yamlConfig.cmake, yamlConfigVersion.cmake and yamlTargets.cmake

* Bump CMake version and explicitly associate include dirs with targets
See https://cmake.org/cmake/help/v3.0/manual/cmake-buildsystem.7.html#include-directories-and-usage-requirements

* Ensure building against libyaml using "find_package(yaml)" uses expected compile options: Set HAVE_CONFIG_H
as private compile option, YAML_DECLARE_STATIC as public

Testing
-------

* Build all examples from "tests" directory

CMake Best practices
--------------------

* configure "config.h" based on version info found in CMakeLists.txt

* Ensure buildsystem re-generation listing sources (best-practice)

It is not recommended to use GLOB to collect a list of source files from
the source tree. If no CMakeLists.txt file changes when a source is added
or removed then the generated build system cannot know when to ask CMake
to regenerate.

See https://cmake.org/cmake/help/v3.8/command/file.html

Compilation warnings
--------------------

* Set _CRT_SECURE_NO_WARNINGS if building using VisualStudio

This will avoid warnings like this one:

```
C:\projects\libyaml\tests\run-emitter.c(268): warning C4996: 'fopen':
This function or variable may be unsafe. Consider using fopen_s instead.
To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for
details.
```

Continuous Integration
----------------------

* travis: Install CMake >= 3.x using scikit-ci-addons

* Add comments to appveyor.yml and run-tests.sh
2017-11-30 07:14:27 -06:00
Ian Cordasco d55b4f83bd Update bug report URL in LibYAML
Previously we pointed at BitBucket, but we're using GitHub now, so we
should update that.
2016-12-08 06:23:37 -06:00
Kirill Simonov b608c76fa5 Updated the link to the bug tracker. 2016-06-20 17:30:02 -05:00
Kirill Simonov 686b2d8507 Fixed segfault in yaml_string_write_handler. 2016-06-05 13:02:56 -05:00
Kirill Simonov d1003a9d40 Fixed heap overflow in yaml_parser_scan_uri_escapes (Thanks Ivan Fratric of the Google Security Team). 2014-03-26 07:03:17 -05:00
Kirill Simonov df33f257e5 Bumped the version number. 2014-01-12 21:50:39 -06:00
Kirill Simonov adf7261933 Bumped the version number and updated the announcement. 2011-05-29 05:52:36 +00:00
Kirill Simonov 242a44b6a6 Added support for pkg-config. 2011-05-29 05:29:39 +00:00
Kirill Simonov 0be7421be5 Preparing the 0.1.3 release. 2009-08-29 23:08:25 +00:00
Kirill Simonov 45bc975e7b Set YAML_AGE to 0 as the current interface is not really compatible with the previous one. 2009-01-05 09:30:07 +00:00
Kirill Simonov dded84b14d Added autoconf rules to distribute win32 project files. 2008-12-27 22:55:39 +00:00
Kirill Simonov 7e26b2e9af Bumped the version number. 2008-12-27 19:17:42 +00:00
Kirill Simonov 6ac56d3141 Bumped the version number in the stable branch. 2008-07-31 20:23:33 +00:00
Kirill Simonov e27a3c886e Add functions for constructing, parsing and emitting YAML documents. 2007-01-07 20:11:16 +00:00
Kirill Simonov 721c1923e4 Add doxygen support. 2006-05-21 14:58:32 +00:00
Kirill Simonov cec6fc98eb Add the basic autoconf infrastructure. 2006-05-20 22:43:15 +00:00