Skip to content

Commit

Permalink
add autotools files
Browse files Browse the repository at this point in the history
  * no longer supports mingw build
  • Loading branch information
bill-auger committed Aug 3, 2017
1 parent b8c9e26 commit 689778f
Show file tree
Hide file tree
Showing 14 changed files with 10,884 additions and 181 deletions.
91 changes: 84 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,92 @@
# git
*
!.gitignore

build/*
!build/generate-makefile.sh
!build/loopidity.cbp
# autotools and build files
!.travis.yml
!AUTHORS
!ChangeLog
!compile
!configure.ac
!configure
!CONTRIBUTING.md
!COPYING
!depcomp
!INSTALL
!install-sh
!LICENSE
!LICENSES
!Makefile.am
!Makefile.in
!missing
!mk
!NEWS
!README*
!TODO

# binary assets
!assets/
assets/*
!assets/COPYING.fonts
!assets/COPYING.images
!assets/histogram_gradient.bmp
!assets/LICENSES
!assets/loop_gradient.argb.bmp
!assets/Purisa.ttf
!assets/README.md
!assets/scope_gradient.bmp

# debian packaging
!debian/
debian/*
!debian/source/
debian/source/*
!debian/source/format
!debian/changelog
!debian/compat
!debian/control
!debian/copyright
!debian/rules

# documentation
!doc/
doc/*
!doc/buffer-layout.txt
!doc/loopidity.7

# obs packaging
!obs/
obs/*
!obs/debian.changelog
!obs/debian.compat
!obs/debian.control
!obs/debian.copyright
!obs/debian.rules
!obs/loopidity.dsc
!obs/loopidity.spec
!obs/PKGBUILD
!obs/loopidity.dsc.in
!obs/loopidity.spec.in
!obs/PKGBUILD.in
!obs/README.md
!obs/_service
!obs/_service.in

# sources
!src/
src/*
!src/constants/
src/constants/*
!src/constants/controller_constants.h
!src/constants/feature_constants.h
!src/constants/scene_constants.h
!src/constants/view_constants.h
!src/jack_io.cpp
!src/jack_io.h
!src/loopidity.cpp
!src/loopidity.h
!src/loopidity_sdl.cpp
!src/loopidity_sdl.h
!src/main.cpp
!src/scene.cpp
!src/scene.h
!src/scene_sdl.cpp
!src/scene_sdl.h
!src/trace.cpp
!src/trace.h
22 changes: 13 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
language: cpp
compiler: gcc
dist: trusty
language: cpp
compiler: gcc
dist: trusty
branches:
only:
- master
- development

before_install:
- sudo apt-get update -qq
- sudo apt-get install -y libsdl1.2-dev libsdl-gfx1.2-dev libsdl-ttf2.0-dev
libx11-dev libjack-jackd2-dev
script:
- make -C src/
- stat build/bin/loopidity > /dev/null
- stat build/share/loopidity/histogram_gradient.bmp > /dev/null
- stat build/share/loopidity/loop_gradient.argb.bmp > /dev/null
- stat build/share/loopidity/scope_gradient.bmp > /dev/null
- stat build/share/loopidity/Purisa.ttf > /dev/null
- autoreconf -if
- ./configure
- make
- sudo make install
- make installcheck
49 changes: 49 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
loopiditydir = $(pkgdatadir)
bin_PROGRAMS = loopidity
loopidity_DATA = assets/COPYING.fonts \
assets/COPYING.images \
assets/histogram_gradient.bmp \
assets/LICENSES \
assets/loop_gradient.argb.bmp \
assets/README.md \
assets/Purisa.ttf \
assets/scope_gradient.bmp
loopidity_SOURCES = src/jack_io.cpp \
src/jack_io.h \
src/loopidity.cpp \
src/loopidity.h \
src/loopidity_sdl.cpp \
src/loopidity_sdl.h \
src/main.cpp \
src/scene.cpp \
src/scene.h \
src/scene_sdl.cpp \
src/scene_sdl.h \
src/trace/trace.cpp \
src/trace/trace.h


CUSTOM_CXXFLAGS = -DLOOPIDITY_BINDIR=\"$(bindir)\"
CUSTOM_CXXFLAGS += -DLOOPIDITY_DATADIR=\"$(loopiditydir)\"
CUSTOM_CXXFLAGS += -std=c++11 -Wall -Wextra -Werror
AM_CXXFLAGS = $(CXXFLAGS) $(JACK_CFLAGS) $(SDL_CFLAGS) $(X11_CFLAGS) $(CUSTOM_CXXFLAGS)
AM_LDFLAGS = $(LIBS) $(JACK_LIBS) $(SDL_LIBS) $(X11_LIBS)


installcheck-local:
echo "installcheck-local"
stat --printf='' $(bindir)/loopidity
stat --printf='' $(loopiditydir)/
stat --printf='' $(loopiditydir)/COPYING.fonts
stat --printf='' $(loopiditydir)/histogram_gradient.bmp
stat --printf='' $(loopiditydir)/LICENSES
stat --printf='' $(loopiditydir)/loop_gradient.argb.bmp
stat --printf='' $(loopiditydir)/scope_gradient.bmp
stat --printf='' $(loopiditydir)/Purisa.ttf

uninstall-hook:
-rmdir ${loopiditydir}

distclean-local:
-rm -rf autom4te.cache/ src/.deps/ src/trace/.deps/ 2> /dev/null || true
-rm -f aclocal.m4 autoscan.log configure.scan test-driver 2> /dev/null || true
Loading

0 comments on commit 689778f

Please sign in to comment.