mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Build brother120tool and cwftoflux.
This commit is contained in:
@@ -15,7 +15,7 @@ install:
|
|||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- make
|
- make
|
||||||
- zip -9 fluxengine.zip fluxengine.exe
|
- zip -9 fluxengine.zip fluxengine.exe brother120tool.exe cwftoflux.exe
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
- path: fluxengine.zip
|
- path: fluxengine.zip
|
||||||
|
|||||||
12
Makefile
12
Makefile
@@ -1,19 +1,23 @@
|
|||||||
PACKAGES = zlib sqlite3 libusb-1.0
|
PACKAGES = zlib sqlite3 libusb-1.0
|
||||||
|
|
||||||
|
export CFLAGS = -O3 -g --std=c++14 \
|
||||||
|
-ffunction-sections -fdata-sections
|
||||||
|
export LDFLAGS = -O3
|
||||||
|
|
||||||
ifeq ($(OS), Windows_NT)
|
ifeq ($(OS), Windows_NT)
|
||||||
export CXX = /mingw32/bin/g++
|
export CXX = /mingw32/bin/g++
|
||||||
export AR = /mingw32/bin/ar rcs
|
export AR = /mingw32/bin/ar rcs
|
||||||
export STRIP = /mingw32/bin/strip
|
export STRIP = /mingw32/bin/strip
|
||||||
export CFLAGS = -O3 -g --std=c++14 -I/mingw32/include/libusb-1.0
|
export CFLAGS += -I/mingw32/include/libusb-1.0
|
||||||
export LDFLAGS = -O3
|
export LDFLAGS +=
|
||||||
export LIBS = -static -lz -lsqlite3 -lusb-1.0
|
export LIBS = -static -lz -lsqlite3 -lusb-1.0
|
||||||
export EXTENSION = .exe
|
export EXTENSION = .exe
|
||||||
else
|
else
|
||||||
export CXX = g++
|
export CXX = g++
|
||||||
export AR = ar rcs
|
export AR = ar rcs
|
||||||
export STRIP = strip
|
export STRIP = strip
|
||||||
export CFLAGS = -Og -g --std=c++14 $(shell pkg-config --cflags $(PACKAGES))
|
export CFLAGS += $(shell pkg-config --cflags $(PACKAGES))
|
||||||
export LDFLAGS = -Og
|
export LDFLAGS +=
|
||||||
export LIBS = $(shell pkg-config --libs $(PACKAGES))
|
export LIBS = $(shell pkg-config --libs $(PACKAGES))
|
||||||
export EXTENSION =
|
export EXTENSION =
|
||||||
endif
|
endif
|
||||||
|
|||||||
23
mkninja.sh
23
mkninja.sh
@@ -83,8 +83,10 @@ buildprogram() {
|
|||||||
objs="$objs $OBJDIR/$src"
|
objs="$objs $OBJDIR/$src"
|
||||||
done
|
done
|
||||||
|
|
||||||
echo build $prog : link $objs
|
echo build $prog-debug$EXTENSION : link $objs
|
||||||
echo " flags=$flags"
|
echo " flags=$flags"
|
||||||
|
|
||||||
|
echo build $prog$EXTENSION : strip $prog-debug$EXTENSION
|
||||||
}
|
}
|
||||||
|
|
||||||
runtest() {
|
runtest() {
|
||||||
@@ -100,7 +102,7 @@ runtest() {
|
|||||||
libbackend.a \
|
libbackend.a \
|
||||||
libfmt.a
|
libfmt.a
|
||||||
|
|
||||||
echo build $OBJDIR/$prog.stamp : test $OBJDIR/$prog$EXTENSION
|
echo build $OBJDIR/$prog.stamp : test $OBJDIR/$prog-debug$EXTENSION
|
||||||
}
|
}
|
||||||
|
|
||||||
buildlibrary libfmt.a \
|
buildlibrary libfmt.a \
|
||||||
@@ -176,12 +178,25 @@ buildlibrary libfrontend.a \
|
|||||||
src/fe-writetestpattern.cc \
|
src/fe-writetestpattern.cc \
|
||||||
src/fluxengine.cc \
|
src/fluxengine.cc \
|
||||||
|
|
||||||
buildprogram fluxengine-debug$EXTENSION \
|
buildprogram fluxengine \
|
||||||
libfrontend.a \
|
libfrontend.a \
|
||||||
libbackend.a \
|
libbackend.a \
|
||||||
libfmt.a \
|
libfmt.a \
|
||||||
|
|
||||||
echo "build fluxengine$EXTENSION : strip fluxengine-debug$EXTENSION"
|
buildlibrary libbrother120tool.a \
|
||||||
|
tools/brother120tool.cc \
|
||||||
|
|
||||||
|
buildprogram brother120tool \
|
||||||
|
libbrother120tool.a \
|
||||||
|
libfmt.a \
|
||||||
|
|
||||||
|
buildlibrary libcwftoflux.a \
|
||||||
|
tools/cwftoflux.cc \
|
||||||
|
|
||||||
|
buildprogram cwftoflux \
|
||||||
|
libcwftoflux.a \
|
||||||
|
libbackend.a \
|
||||||
|
libfmt.a \
|
||||||
|
|
||||||
runtest dataspec-test tests/dataspec.cc
|
runtest dataspec-test tests/dataspec.cc
|
||||||
runtest flags-test tests/flags.cc
|
runtest flags-test tests/flags.cc
|
||||||
|
|||||||
Reference in New Issue
Block a user