Skip to content

Commit

Permalink
feat: update libyaml to 0.2.5
Browse files Browse the repository at this point in the history
Fast YAML 1.1 parser and emitter library (development)

Issue: deepin-community/sig-deepin-sysdev-team#544
Log: update repo
  • Loading branch information
xzl01 committed Mar 11, 2024
1 parent 74c115f commit bf7e9e9
Showing 170 changed files with 1,495 additions and 62,006 deletions.
29 changes: 29 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: 0.2.5.{build}

image:
- Visual Studio 2015
- Visual Studio 2013

build_script:

#
# CMake based in-source build and tests using Visual Studio
#

# Use 32-bit default generator ("Visual Studio 12 2013" or "Visual Studio 14 2015")
- cmake .
- cmake --build . --config Release --clean-first
- ctest -C Release

#
# Autoconf based in-source build and tests under Cygwin using gcc
#

# 32-bit cygwin build
- C:\cygwin\bin\sh -c "export PATH=/usr/bin:/usr/local/bin:$PATH && ./bootstrap && ./configure && make && make test && make distclean"
# 64-bit cygwin build
- C:\cygwin64\bin\sh -c "export PATH=/usr/bin:/usr/local/bin:$PATH && ./bootstrap && ./configure && make && make test && make distclean"
# 32-bit mingw-w64 build
- C:\cygwin\bin\sh -c "export PATH=/usr/bin:/usr/local/bin:$PATH && ./bootstrap && ./configure --host=i686-w64-mingw32 --target=i686-w64-mingw32 && make && make test && make distclean"
# 64-bit mingw-w64 build
- C:\cygwin64\bin\sh -c "export PATH=/usr/bin:/usr/local/bin:$PATH && ./bootstrap && ./configure --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 && make && make test && make distclean"
1 change: 0 additions & 1 deletion .gitignore

This file was deleted.

1 change: 1 addition & 0 deletions .indent.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-kr -nut -nce -l250
63 changes: 63 additions & 0 deletions .makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# This file is used for common development targets that can be done with
# needing the cumbersome bootstrapping process.
#
# You can use it like this:
#
# make -f .makefile indent
#
# If you copy or link this file to `GNUmakefile` then you can just do:
#
# make indent
#
# When copied to `GNUmakefile`, this file is can also be used for bootstrapping
# Makefile targets. Since GNUmakefile is loaded before Makefile, we do the
# bootstrapping tasks need to get a Makefile first, then we use the Makefile to
# make our target.

# Remind user when they are using GNUmakefile:
ifeq ($(lastword $(MAKEFILE_LIST)),GNUmakefile)
$(info *** NOTE: GNUmakefile in use. ***)
endif

MAKE_TARGETS := \
all \
all-am \
all-recursive \
install \
test \
test-all \
test-suite \

# SOURCE_FILES := $(shell find . | grep '\.c$$')
SOURCE_FILES := $(shell find tests/run-test-suite | grep '\.c$$')
ifneq ($(shell which gindent),)
INDENT := gindent
else
INDENT := indent
endif

#
# Proxy make targets:
#
default: all

# Proxy these targets to the real Makefile, after bootstrapping is necessary.
$(MAKE_TARGETS): Makefile
@make -f $< $@

Makefile: Makefile.in
./configure

Makefile.in:
./bootstrap

#
# Development make targets:
#
indent:
$(INDENT) $(SOURCE_FILES)

distclean purge:
git clean -dxf -e GNUmakefile
rm -fr tests/run-test-suite
git worktree prune
28 changes: 28 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
language: c

matrix:
include:
- os: linux
compiler: gcc
sudo: required
- os: linux
compiler: clang
sudo: required
- os: osx
compiler: gcc
- os: osx
compiler: clang

before_install:

# Travis branch-specific clone problem workaround:
- git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
- git fetch
- env | sort

- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
pip install --user scikit-ci-addons==0.15.0;
ci_addons travis/install_cmake 3.2.0;
fi

script: tests/run-all-tests.sh
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -4,11 +4,11 @@ project (yaml C)

set (YAML_VERSION_MAJOR 0)
set (YAML_VERSION_MINOR 2)
set (YAML_VERSION_PATCH 2)
set (YAML_VERSION_PATCH 5)
set (YAML_VERSION_STRING "${YAML_VERSION_MAJOR}.${YAML_VERSION_MINOR}.${YAML_VERSION_PATCH}")

option(BUILD_SHARED_LIBS "Build libyaml as a shared library" OFF)
option(YAML_STATIC_LIB_NAME "base name of static library output" yaml)
set(YAML_STATIC_LIB_NAME "yaml" CACHE STRING "Base name of static library output")

#
# Output directories for a build tree
Loading

0 comments on commit bf7e9e9

Please sign in to comment.