Skip to content

Commit 91b7ff8

Browse files
committed
Merge commit 'd7467484571f4e56f3b6ff15acfa7bb383df2737' as 'libs/tinycbor'
2 parents eb191f2 + d746748 commit 91b7ff8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+11541
-0
lines changed

libs/tinycbor/.appveyor.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
version: 0.5.4-build-{build}
2+
pull_requests:
3+
do_not_increment_build_number: true
4+
image:
5+
- Visual Studio 2015
6+
- Visual Studio 2017
7+
- Visual Studio 2019
8+
install:
9+
- cmd: >-
10+
set tests=1
11+
12+
if /i "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86) & (set QTDIR=C:\Qt\5.9\msvc2015)
13+
14+
if /i "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" (call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64) & (set QTDIR=C:\Qt\5.12\msvc2017_64)
15+
16+
if /i "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2019" (call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64) & (set QTDIR=C:\Qt\5.15\msvc2019_64) & set CFLAGS=/arch:AVX2
17+
18+
set path=%PATH%;%QTDIR%\bin
19+
build_script:
20+
- cmd: >-
21+
nmake -f Makefile.nmake -nologo CFLAGS="%CFLAGS% -W3 -Os -MDd"
22+
23+
cd tests
24+
25+
if /i "%tests%"=="1" qmake CONFIG-=release CONFIG+=debug
26+
27+
if /i "%tests%"=="1" nmake -nologo -s
28+
test_script:
29+
- cmd: >-
30+
if /i "%tests%"=="1" nmake -s -nologo TESTARGS=-silent check
31+
32+
if /i "%tests%"=="0" echo Tests skipped.
33+
artifacts:
34+
- path: lib\tinycbor.lib
35+
deploy: off

libs/tinycbor/.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.tag export-subst
2+
.gitignore export-ignore
3+
.gitattributes export-ignore
4+
.appveyor.yml text

libs/tinycbor/.gitignore

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# Frequent generated files
2+
callgrind.out.*
3+
pcviewer.cfg
4+
*~
5+
*.a
6+
*.la
7+
*.core
8+
*.d
9+
*.dylib
10+
*.moc
11+
*.o
12+
*.obj
13+
*.orig
14+
*.swp
15+
*.rej
16+
*.so
17+
*.so.*
18+
*.pbxuser
19+
*.mode1
20+
*.mode1v3
21+
*_pch.h.cpp
22+
*_resource.rc
23+
.#*
24+
*.*#
25+
core
26+
.qmake.cache
27+
.qmake.stash
28+
.qmake.vars
29+
.device.vars
30+
tags
31+
.DS_Store
32+
*.debug
33+
Makefile*
34+
*.prl
35+
*.app
36+
*.pro.user*
37+
*.qmlproject.user*
38+
*.gcov
39+
*.gcda
40+
*.gcno
41+
*.flc
42+
.*.swp
43+
tinycbor.pc
44+
45+
# Visual Studio generated files
46+
*.ib_pdb_index
47+
*.idb
48+
*.ilk
49+
*.pdb
50+
*.sln
51+
*.suo
52+
*.vcproj
53+
*vcproj.*.*.user
54+
*.ncb
55+
*.vcxproj
56+
*.vcxproj.filters
57+
*.vcxproj.user
58+
*.exe.embed.manifest
59+
*.exe_manifest.rc
60+
*.exe_manifest.res
61+
62+
# MinGW generated files
63+
*.Debug
64+
*.Release
65+
66+
# INTEGRITY generated files
67+
*.gpj
68+
*.int
69+
*.ael
70+
*.dla
71+
*.dnm
72+
*.dep
73+
*.map
74+
75+
bin
76+
doc
77+
lib
78+
src/cjson
79+
src/doxygen.log
80+
!/Makefile
81+
.config

libs/tinycbor/.tag

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$Format:%H$

libs/tinycbor/.travis.yml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
env:
2+
- BUILD_DOCS=false
3+
jobs:
4+
include:
5+
- # only build docs on master
6+
if: branch = master
7+
env: BUILD_DOCS=true
8+
9+
language: cpp
10+
matrix:
11+
include:
12+
- os: linux
13+
dist: xenial
14+
addons:
15+
apt:
16+
sources:
17+
- sourceline: 'ppa:beineri/opt-qt-5.12.1-xenial'
18+
packages:
19+
- qt512base valgrind
20+
- doxygen
21+
env:
22+
- QMAKESPEC=linux-g++
23+
- EVAL="CC=gcc && CXX=g++"
24+
- CFLAGS="-Os"
25+
- LDFLAGS="-Wl,--no-undefined -lm"
26+
- QMAKEFLAGS="-config release"
27+
- QT_NO_CPU_FEATURE=rdrnd
28+
- os: linux
29+
dist: xenial
30+
addons:
31+
apt:
32+
sources:
33+
- sourceline: 'ppa:beineri/opt-qt-5.12.1-xenial'
34+
packages:
35+
- qt512base
36+
env:
37+
- QMAKESPEC=linux-clang
38+
- EVAL="CC=clang && CXX=clang++"
39+
- CFLAGS="-Oz"
40+
- LDFLAGS="-Wl,--no-undefined -lm"
41+
- QMAKEFLAGS="-config release"
42+
- MAKEFLAGS=-s
43+
- TESTARGS=-silent
44+
- os: linux
45+
dist: xenial
46+
env:
47+
- QMAKESPEC=linux-gcc-freestanding
48+
- EVAL="CXX=false"
49+
- CFLAGS="-ffreestanding -Os"
50+
- LDFLAGS="-Wl,--no-undefined -lm"
51+
- os: linux
52+
dist: xenial
53+
env:
54+
- QMAKESPEC=linux-gcc-no-math
55+
- EVAL="CXX=false && touch src/math.h src/float.h"
56+
- CFLAGS="-ffreestanding -DCBOR_NO_FLOATING_POINT -Os"
57+
- LDFLAGS="-Wl,--no-undefined"
58+
- LDLIBS=""
59+
- os: osx
60+
env:
61+
- QMAKESPEC=macx-clang
62+
- CFLAGS="-Oz"
63+
- QMAKEFLAGS="-config debug"
64+
- MAKEFLAGS=-s
65+
- TESTARGS=-silent
66+
- PATH=/usr/local/opt/qt5/bin:$PATH
67+
install:
68+
- if [ "${TRAVIS_OS_NAME}" != "linux" ]; then
69+
brew update;
70+
brew install qt5;
71+
fi
72+
script:
73+
- PATH=`echo /opt/qt*/bin`:$PATH
74+
- eval "$EVAL"
75+
- make -s -f Makefile.configure configure | tee .config
76+
- make -k
77+
CFLAGS="$CFLAGS -march=native -g1 -Wall -Wextra -Werror"
78+
CPPFLAGS="-DNDEBUG"
79+
lib/libtinycbor.a
80+
- size lib/libtinycbor.a | tee sizes
81+
- make -s clean
82+
- make -k
83+
CFLAGS="$CFLAGS -O0 -g"
84+
LDFLAGS="$LDFLAGS" ${LDLIBS+LDLIBS="$LDLIBS"}
85+
- grep -q freestanding-pass .config || make
86+
QMAKEFLAGS="$QMAKEFLAGS QMAKE_CXX=$CXX"
87+
tests/Makefile
88+
- grep -q freestanding-pass .config ||
89+
(cd tests && make TESTARGS=-silent check -k
90+
TESTRUNNER=`which valgrind 2>/dev/null`)
91+
- make -s clean
92+
- ! [ $BUILD_DOCS ] || ./scripts/update-docs.sh

libs/tinycbor/Doxyfile

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
PROJECT_NAME = "TinyCBOR $(VERSION) API"
2+
OUTPUT_DIRECTORY = ../doc
3+
ABBREVIATE_BRIEF =
4+
SHORT_NAMES = YES
5+
JAVADOC_AUTOBRIEF = YES
6+
QT_AUTOBRIEF = YES
7+
TAB_SIZE = 8
8+
ALIASES = "value=\arg \c"
9+
OPTIMIZE_OUTPUT_FOR_C = YES
10+
EXTRACT_STATIC = YES
11+
EXTRACT_LOCAL_CLASSES = NO
12+
HIDE_UNDOC_MEMBERS = YES
13+
HIDE_UNDOC_CLASSES = YES
14+
GENERATE_TODOLIST = NO
15+
GENERATE_TESTLIST = NO
16+
GENERATE_BUGLIST = NO
17+
GENERATE_DEPRECATEDLIST= NO
18+
SHOW_USED_FILES = NO
19+
WARN_IF_UNDOCUMENTED = NO
20+
WARN_LOGFILE = doxygen.log
21+
INPUT = .
22+
FILE_PATTERNS = *.h \
23+
*.c \
24+
*.dox
25+
EXCLUDE_PATTERNS = *_p.h
26+
STRIP_CODE_COMMENTS = NO
27+
REFERENCED_BY_RELATION = YES
28+
IGNORE_PREFIX = cbor_ \
29+
Cbor
30+
HTML_TIMESTAMP = NO
31+
GENERATE_HTMLHELP = YES
32+
GENERATE_CHI = YES
33+
BINARY_TOC = YES
34+
TOC_EXPAND = YES
35+
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
36+
SEARCHENGINE = NO
37+
GENERATE_LATEX = NO
38+
COMPACT_LATEX = YES
39+
MACRO_EXPANSION = YES
40+
PREDEFINED = DOXYGEN \
41+
CBOR_INLINE_API=
42+
CLASS_DIAGRAMS = NO
43+
CLASS_GRAPH = NO
44+
COLLABORATION_GRAPH = NO
45+
GROUP_GRAPHS = NO
46+
INCLUDE_GRAPH = NO
47+
INCLUDED_BY_GRAPH = NO
48+
GRAPHICAL_HIERARCHY = NO
49+
DIRECTORY_GRAPH = NO

libs/tinycbor/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017 Intel Corporation
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)