Skip to content

Commit 3f85f24

Browse files
committed
ext: lib: tinycbor: Add tinyCBOR as an ext lib
The TinyCBOR library is a small Concise Binary Object Representation (CBOR) encoder and decoder library, optimized for very fast operation with very small footprint. Origin: TinyCBOR License: MIT URL: https://github.com/intel/tinycbor Version: 0.5.0-beta1 commit: 497066ee87dd54341adaa1195bf15ad11ee33b20 Purpose: Introduction of TinyCBOR Maintained-by: External Signed-off-by: Vipul Rahane <[email protected]>
1 parent 578e6fd commit 3f85f24

Some content is hidden

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

51 files changed

+13414
-0
lines changed

Diff for: ext/lib/encoding/tinycbor/.appveyor.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
version: 0.5-build-{build}
2+
pull_requests:
3+
do_not_increment_build_number: true
4+
image:
5+
- Visual Studio 2015
6+
- Visual Studio 2013
7+
- Visual Studio 2017
8+
install:
9+
- cmd: >-
10+
set tests=1
11+
12+
if /i "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2013" (call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64) & (set tests=0)
13+
14+
if /i "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64) & (set QTDIR=C:\Qt\5.9\msvc2015_64)
15+
16+
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.9\msvc2017_64)
17+
18+
set path=%PATH%;%QTDIR%\bin
19+
build_script:
20+
- cmd: >-
21+
nmake -f Makefile.nmake -nologo 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 check
31+
32+
if /i "%tests%"=="0" echo Tests skipped.
33+
artifacts:
34+
- path: lib\tinycbor.lib
35+
deploy: off

Diff for: ext/lib/encoding/tinycbor/.gitattributes

+4
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

Diff for: ext/lib/encoding/tinycbor/.gitignore

+81
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

Diff for: ext/lib/encoding/tinycbor/.tag

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
$Format:%H$

Diff for: ext/lib/encoding/tinycbor/.travis.yml

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
language: cpp
2+
matrix:
3+
include:
4+
- os: linux
5+
addons:
6+
apt:
7+
sources:
8+
- ubuntu-toolchain-r-test
9+
- sourceline: 'ppa:beineri/opt-qt593-trusty'
10+
packages:
11+
- qt59base valgrind
12+
- g++-7
13+
env:
14+
- QMAKESPEC=linux-g++
15+
- EVAL="CC=gcc-7 && CXX=g++-7"
16+
- CFLAGS="-Os"
17+
- QMAKEFLAGS="-config release"
18+
- os: linux
19+
addons:
20+
apt:
21+
sources:
22+
- ubuntu-toolchain-r-test
23+
- llvm-toolchain-trusty-5.0
24+
- sourceline: 'ppa:beineri/opt-qt593-trusty'
25+
packages:
26+
- qt59base
27+
- clang-5.0
28+
env:
29+
- QMAKESPEC=linux-clang
30+
- EVAL="CC=clang-5.0 && CXX=clang++-5.0"
31+
- CFLAGS="-Oz"
32+
- QMAKEFLAGS="-config release"
33+
- os: osx
34+
env:
35+
- QMAKESPEC=macx-clang
36+
- CFLAGS="-Oz"
37+
- QMAKEFLAGS="-config debug"
38+
- PATH=/usr/local/opt/qt5/bin:$PATH
39+
install:
40+
- if [ "${TRAVIS_OS_NAME}" != "linux" ]; then
41+
brew update;
42+
brew install qt5;
43+
fi
44+
script:
45+
- PATH=`echo /opt/qt*/bin`:$PATH
46+
- eval "$EVAL"
47+
- make -s -f Makefile.configure configure | tee .config
48+
- make -k
49+
CFLAGS="$CFLAGS -march=native -g1 -Wall -Wextra -Werror"
50+
CPPFLAGS="-DNDEBUG"
51+
lib/libtinycbor.a
52+
- size lib/libtinycbor.a
53+
- make clean
54+
- make -k
55+
CFLAGS="$CFLAGS -O0 -g"
56+
- make
57+
QMAKEFLAGS="$QMAKEFLAGS QMAKE_CXX=$CXX"
58+
tests/Makefile
59+
- cd tests && make check -k
60+
TESTRUNNER=`which valgrind 2>/dev/null`

0 commit comments

Comments
 (0)