Permalink
Browse files

Add travis-ci and tea-ci support, mingw support

  • Loading branch information...
stephengroat committed Mar 7, 2017
1 parent 3a66783 commit 036cd0bc95cb0cfb6a10941a92f4b851a69c24c9
Showing with 129 additions and 0 deletions.
  1. +16 −0 .drone.yml
  2. +88 −0 .gitignore
  3. +16 −0 .travis.yml
  4. +1 −0 README.md
  5. +4 −0 src/libswd_app.c
  6. +4 −0 src/libswd_app.h
View
@@ -0,0 +1,16 @@
build:
image: teaci/msys$$arch
shell: mingw$$arch
pull: true
commands:
- if [ $$arch = 32 ]; then target=i686; fi
- if [ $$arch = 64 ]; then target=x86_64; fi
- pacman -Sy --noconfirm mingw-w64-${target}-libftdi mingw-w64-${target}-glib2
- ./autogen.sh && ./configure $$config_opts && make
matrix:
arch:
- 64
- 32
config_opts:
-
- --enable-application
View
@@ -0,0 +1,88 @@
# C gitignore
# Prerequisites
*.d
# Object files
*.o
*.ko
*.obj
*.elf
# Linker output
*.ilk
*.map
*.exp
# Precompiled Headers
*.gch
*.pch
# Libraries
*.lib
*.a
*.la
*.lo
# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib
# Executables
*.exe
*.out
*.app
*.i*86
*.x86_64
*.hex
# Debug files
*.dSYM/
*.su
*.idb
*.pdb
# Kernel Module Compile Results
*.mod*
*.cmd
modules.order
Module.symvers
Mkfile.old
dkms.conf
# Autotools gitignore
# http://www.gnu.org/software/automake
Makefile.in
/ar-lib
/mdate-sh
/py-compile
/test-driver
/ylwrap
# http://www.gnu.org/software/autoconf
/autom4te.cache
/autoscan.log
/autoscan-*.log
/aclocal.m4
/compile
/config.guess
/config.h.in
/config.sub
/configure
/configure.scan
/depcomp
/install-sh
/missing
/stamp-h1
# https://www.gnu.org/software/libtool/
/ltmain.sh
# http://www.gnu.org/software/texinfo
/texinfo.tex
View
@@ -0,0 +1,16 @@
language: c
os:
- linux
- osx
addons:
apt:
packages:
- libftdi-dev
compiler:
- gcc
- clang
env:
-
- CONFIG_OPTS=--enable-application
install: if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install libftdi; fi
script: ./autogen.sh && ./configure $CONFIG_OPTS && make
View
@@ -1,4 +1,5 @@
# Serial Wire Debug Open Library
[![Build Status](https://travis-ci.org/cederom/LibSWD.svg?branch=master)](https://travis-ci.org/cederom/LibSWD)
Welcome to http://libswd.com / https://GitHub.com/CeDeROM/LibSWD :-)
View
@@ -41,7 +41,11 @@
#include <unistd.h>
#include <string.h>
#include <ctype.h>
#if defined(__MINGW32__) || (defined(__APPLE__) && defined(__MACH__))
#include <libftdi1/ftdi.h>
#else
#include <ftdi.h>
#endif
#include <readline/readline.h>
#include <readline/history.h>
#include <errno.h>
View
@@ -38,7 +38,11 @@
#define __LIBSWDAPP_H__
#include <libswd.h>
#if defined(__MINGW32__) || (defined(__APPLE__) && defined(__MACH__))
#include <libftdi1/ftdi.h>
#else
#include <ftdi.h>
#endif
#define LIBSWDAPP_INTERFACE_SIGNAL_NAME_MINLEN 1
#define LIBSWDAPP_INTERFACE_SIGNAL_NAME_MAXLEN 32

0 comments on commit 036cd0b

Please sign in to comment.