Skip to content

Commit

Permalink
External tinycbor library.
Browse files Browse the repository at this point in the history
Note: This is commit 3ef6799f633df19a84b99ccd0f21fb8c02201690 of a PR
against the tinycbor library:
intel/tinycbor#83
  • Loading branch information
ccollins476ad committed Feb 13, 2018
1 parent 9417697 commit 42b2816
Show file tree
Hide file tree
Showing 60 changed files with 13,883 additions and 0 deletions.
35 changes: 35 additions & 0 deletions ext/tinycbor/.appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
version: 0.5-build-{build}
pull_requests:
do_not_increment_build_number: true
image:
- Visual Studio 2015
- Visual Studio 2013
- Visual Studio 2017
install:
- cmd: >-
set tests=1
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)
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)
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)
set path=%PATH%;%QTDIR%\bin
build_script:
- cmd: >-
nmake -f Makefile.nmake -nologo CFLAGS="-W3 -Os -MDd"
cd tests
if /i "%tests%"=="1" qmake CONFIG-=release CONFIG+=debug
if /i "%tests%"=="1" nmake -nologo -s
test_script:
- cmd: >-
if /i "%tests%"=="1" nmake -s -nologo check
if /i "%tests%"=="0" echo Tests skipped.
artifacts:
- path: lib\tinycbor.lib
deploy: off
4 changes: 4 additions & 0 deletions ext/tinycbor/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.tag export-subst
.gitignore export-ignore
.gitattributes export-ignore
.appveyor.yml text
81 changes: 81 additions & 0 deletions ext/tinycbor/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# Frequent generated files
callgrind.out.*
pcviewer.cfg
*~
*.a
*.la
*.core
*.d
*.dylib
*.moc
*.o
*.obj
*.orig
*.swp
*.rej
*.so
*.so.*
*.pbxuser
*.mode1
*.mode1v3
*_pch.h.cpp
*_resource.rc
.#*
*.*#
core
.qmake.cache
.qmake.stash
.qmake.vars
.device.vars
tags
.DS_Store
*.debug
Makefile*
*.prl
*.app
*.pro.user*
*.qmlproject.user*
*.gcov
*.gcda
*.gcno
*.flc
.*.swp
tinycbor.pc

# Visual Studio generated files
*.ib_pdb_index
*.idb
*.ilk
*.pdb
*.sln
*.suo
*.vcproj
*vcproj.*.*.user
*.ncb
*.vcxproj
*.vcxproj.filters
*.vcxproj.user
*.exe.embed.manifest
*.exe_manifest.rc
*.exe_manifest.res

# MinGW generated files
*.Debug
*.Release

# INTEGRITY generated files
*.gpj
*.int
*.ael
*.dla
*.dnm
*.dep
*.map

bin
doc
lib
src/cjson
src/doxygen.log
!/Makefile
.config
1 change: 1 addition & 0 deletions ext/tinycbor/.tag
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$Format:%H$
24 changes: 24 additions & 0 deletions ext/tinycbor/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
language: cpp
os:
- linux
- osx
env:
- CFLAGS="-O0 -g" QMAKEFLAGS="-config debug" PATH=/opt/qt59/bin:/usr/local/opt/qt5/bin:$PATH
addons:
apt:
sources:
- sourceline: 'ppa:beineri/opt-qt593-trusty'
packages:
- qt59base valgrind
install:
- if [ "${TRAVIS_OS_NAME}" != "linux" ]; then
brew update;
brew install qt5;
fi
script:
- make -s -f Makefile.configure configure | tee .config
- make
CFLAGS="$CFLAGS"
all tests/Makefile
- cd tests && make check -k
TESTRUNNER=`which valgrind 2>/dev/null`
15 changes: 15 additions & 0 deletions ext/tinycbor/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
add_library(TINYCBOR INTERFACE)

target_include_directories(TINYCBOR INTERFACE src)

zephyr_library()
zephyr_library_sources(
src/cbor_buf_reader.c
src/cbor_buf_writer.c
src/cborencoder.c
src/cborerrorstrings.c
src/cborparser.c
src/cborparser_dup_string.c
)
zephyr_library_link_libraries(TINYCBOR)
target_link_libraries(TINYCBOR INTERFACE zephyr_interface)
Loading

0 comments on commit 42b2816

Please sign in to comment.