Skip to content

Commit dce8b05

Browse files
committed
External tinycbor library.
Note: This is commit 3ef6799f633df19a84b99ccd0f21fb8c02201690 of a PR against the tinycbor library: intel/tinycbor#83
1 parent 1db7199 commit dce8b05

Some content is hidden

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

60 files changed

+13883
-0
lines changed

Diff for: ext/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/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/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/tinycbor/.tag

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

Diff for: ext/tinycbor/.travis.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
language: cpp
2+
os:
3+
- linux
4+
- osx
5+
env:
6+
- CFLAGS="-O0 -g" QMAKEFLAGS="-config debug" PATH=/opt/qt59/bin:/usr/local/opt/qt5/bin:$PATH
7+
addons:
8+
apt:
9+
sources:
10+
- sourceline: 'ppa:beineri/opt-qt593-trusty'
11+
packages:
12+
- qt59base valgrind
13+
install:
14+
- if [ "${TRAVIS_OS_NAME}" != "linux" ]; then
15+
brew update;
16+
brew install qt5;
17+
fi
18+
script:
19+
- make -s -f Makefile.configure configure | tee .config
20+
- make
21+
CFLAGS="$CFLAGS"
22+
all tests/Makefile
23+
- cd tests && make check -k
24+
TESTRUNNER=`which valgrind 2>/dev/null`

Diff for: ext/tinycbor/CMakeLists.txt

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
add_library(TINYCBOR INTERFACE)
2+
3+
target_include_directories(TINYCBOR INTERFACE src)
4+
5+
zephyr_library()
6+
zephyr_library_sources(
7+
src/cbor_buf_reader.c
8+
src/cbor_buf_writer.c
9+
src/cborencoder.c
10+
src/cborerrorstrings.c
11+
src/cborparser.c
12+
src/cborparser_dup_string.c
13+
)
14+
zephyr_library_link_libraries(TINYCBOR)
15+
target_link_libraries(TINYCBOR INTERFACE zephyr_interface)

0 commit comments

Comments
 (0)