Skip to content

Commit

Permalink
Merge pull request #74 from davidgiven/tools
Browse files Browse the repository at this point in the history
Build brother120tool and cwftoflux.
  • Loading branch information
davidgiven authored Jul 8, 2019
2 parents adb1e9b + c91ca1b commit a06d8ff
Show file tree
Hide file tree
Showing 9 changed files with 575 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ install:

build_script:
- make
- zip -9 fluxengine.zip fluxengine.exe
- zip -9 fluxengine.zip fluxengine.exe brother120tool.exe cwftoflux.exe

artifacts:
- path: fluxengine.zip
Expand Down
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ matrix:
compiler: gcc
env: CXX=g++-8
script:
- make
- make
-
os: osx
osx_image: xcode10.2
compiler: clang
env:
- HOMEBREW_NO_INSTALL_CLEANUP=1

addons:
apt:
Expand Down
12 changes: 8 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
PACKAGES = zlib sqlite3 libusb-1.0

export CFLAGS = -O3 -g --std=c++14 \
-ffunction-sections -fdata-sections
export LDFLAGS = -O3

ifeq ($(OS), Windows_NT)
export CXX = /mingw32/bin/g++
export AR = /mingw32/bin/ar rcs
export STRIP = /mingw32/bin/strip
export CFLAGS = -O3 -g --std=c++14 -I/mingw32/include/libusb-1.0
export LDFLAGS = -O3
export CFLAGS += -I/mingw32/include/libusb-1.0
export LDFLAGS +=
export LIBS = -static -lz -lsqlite3 -lusb-1.0
export EXTENSION = .exe
else
export CXX = g++
export AR = ar rcs
export STRIP = strip
export CFLAGS = -Og -g --std=c++14 $(shell pkg-config --cflags $(PACKAGES))
export LDFLAGS = -Og
export CFLAGS += $(shell pkg-config --cflags $(PACKAGES))
export LDFLAGS +=
export LIBS = $(shell pkg-config --libs $(PACKAGES))
export EXTENSION =
endif
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,3 +188,8 @@ maintained by Victor Zverovich (`vitaut <https://github.com/vitaut>`) and
Jonathan Müller (`foonathan <https://github.com/foonathan>`) with
contributions from many other people. It is licensed under the terms of the
BSD license. Please see the contents of the directory for the full text.

As an exception, `dep/fnmatchemu` contains parts of the OpenBSD C library
code, Todd Miller and William A. Rowe (and probably others). It is licensed
under the terms of the 3-clause BSD license. Please see the contents of the
directory for the full text. It's been lightly modified by me.
29 changes: 29 additions & 0 deletions dep/emu/charclass.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
* Public domain, 2008, Todd C. Miller <[email protected]>
*
* $OpenBSD: charclass.h,v 1.1 2008/10/01 23:04:13 millert Exp $
*/

/*
* POSIX character class support for fnmatch() and glob().
*/
static struct cclass {
const char *name;
int (*isctype)(int);
} cclasses[] = {
{ "alnum", isalnum },
{ "alpha", isalpha },
{ "blank", isblank },
{ "cntrl", iscntrl },
{ "digit", isdigit },
{ "graph", isgraph },
{ "lower", islower },
{ "print", isprint },
{ "punct", ispunct },
{ "space", isspace },
{ "upper", isupper },
{ "xdigit", isxdigit },
{ NULL, NULL }
};

#define NCCLASSES (sizeof(cclasses) / sizeof(cclasses[0]) - 1)
Loading

0 comments on commit a06d8ff

Please sign in to comment.