Skip to content

Commit b8c9e26

Browse files
committed
prepare to transition toolchain/packaging
* removed packaging from travis.yml * removed codeblocks project files
1 parent 9d35772 commit b8c9e26

File tree

8 files changed

+48
-158
lines changed

8 files changed

+48
-158
lines changed

.gitignore

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1+
12
build/*
2-
!build/debian
3-
!build/Makefile
43
!build/generate-makefile.sh
54
!build/loopidity.cbp
5+
obs/*
6+
!obs/debian.changelog
7+
!obs/debian.compat
8+
!obs/debian.control
9+
!obs/debian.copyright
10+
!obs/debian.rules
11+
!obs/loopidity.dsc
12+
!obs/loopidity.spec
13+
!obs/PKGBUILD
14+
!obs/README.md
15+
!obs/_service

.travis.yml

Lines changed: 8 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,14 @@
11
language: cpp
22
compiler: gcc
3+
dist: trusty
34
before_install:
4-
- VERSION=0.14.000
5-
- BUILD_DIR=/home/travis/build/bill-auger/loopidity/build
6-
- DEB_DIR=$BUILD_DIR/debian
7-
- BIN_DIR=$DEB_DIR/usr/bin
8-
- DEB_PKG=loopidity_"$VERSION"_amd64.deb
95
- sudo apt-get update -qq
106
- sudo apt-get install -y libsdl1.2-dev libsdl-gfx1.2-dev libsdl-ttf2.0-dev
117
libx11-dev libjack-jackd2-dev
12-
- gem install fpm package_cloud --no-rdoc --no-ri
13-
- sudo cp $DEB_DIR/SDL_ttf.pc /usr/lib/x86_64-linux-gnu/pkgconfig/SDL_ttf.pc
14-
script: >
15-
cd $BUILD_DIR &&
16-
make && mkdir -p $BIN_DIR && mv bin/loopidity $BIN_DIR/loopidity &&
17-
fpm -s dir -t deb --name loopidity --version $VERSION \
18-
-C $DEB_DIR \
19-
--package $DEB_DIR/loopidity_VERSION_ARCH.deb \
20-
--license 'GPL3' \
21-
--maintainer 'bill-auger@programmer.net' \
22-
--vendor 'https://github.com/bill-auger/loopidity' \
23-
--url 'https://github.com/bill-auger/loopidity' \
24-
--depends 'libsdl1.2debian' \
25-
--depends 'libsdl-gfx1.2-4' \
26-
--depends 'libsdl-ttf2.0-0' \
27-
--description 'loopidity
28-
\n\nA multi-track multi-channel audio looper
29-
designed for live handsfree use.' \
30-
--deb-changelog $DEB_DIR/changelog \
31-
--deb-priority 'optional' \
32-
--category 'sound' \
33-
usr/ &&
34-
echo "$DEB_PKG deb package built successfully"
35-
after_success:
36-
- package_cloud yank ninjam/loopidity/ubuntu/trusty $DEB_PKG
37-
- package_cloud push ninjam/loopidity/ubuntu/trusty $DEB_DIR/$DEB_PKG
8+
script:
9+
- make -C src/
10+
- stat build/bin/loopidity > /dev/null
11+
- stat build/share/loopidity/histogram_gradient.bmp > /dev/null
12+
- stat build/share/loopidity/loop_gradient.argb.bmp > /dev/null
13+
- stat build/share/loopidity/scope_gradient.bmp > /dev/null
14+
- stat build/share/loopidity/Purisa.ttf > /dev/null

build/debian/README-DEBIAN.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

build/debian/SDL_ttf.pc

Lines changed: 0 additions & 11 deletions
This file was deleted.

build/debian/changelog

Lines changed: 0 additions & 6 deletions
This file was deleted.

build/generate-makefile.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

build/loopidity.cbp

Lines changed: 0 additions & 67 deletions
This file was deleted.

build/Makefile renamed to src/Makefile

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11

2+
VERSION = v0.14.003
3+
24
ifndef DESTDIR
35
DESTDIR =
46
endif
57
ifndef PREFIX
68
PREFIX = /usr/local
79
endif
8-
BINDIR = ./bin
10+
BUILDDIR = ../build
11+
BINDIR = bin
12+
DATADIR = share/loopidity
913
ASSETSDIR = ../assets
1014
INSTALLDIR = $(DESTDIR)$(PREFIX)
1115
ifeq (${MSYSTEM},MINGW32)
@@ -19,16 +23,16 @@ CXX = g++
1923
AR = ar
2024
LD = g++
2125

22-
CFLAGS = -std=gnu++0x -Wall -MMD
26+
CFLAGS = -std=gnu++0x -MMD -Wall -Werror -Wextra -DVERSION=$(VERSION)
2327
ifeq ($(CONFIG),debug)
2428
CFLAGS += -g -DDEBUG=1
2529
LDFLAGS =
26-
OBJDIR = ./obj/Debug/__/src
30+
OBJDIR = $(BUILDDIR)/obj/debug/src
2731
TARGET = loopidity-dbg
2832
else
2933
CFLAGS += -O3
3034
LDFLAGS = -s
31-
OBJDIR = ./obj/Release/__/src
35+
OBJDIR = $(BUILDDIR)/obj/release/src
3236
TARGET = loopidity
3337
CONFIG = 'release'
3438
endif
@@ -58,44 +62,45 @@ all: before out after
5862

5963
before:
6064
@echo "building $(CONFIG) configuration"
61-
@test -d $(BINDIR) || mkdir -p $(BINDIR)
62-
@test -d $(OBJDIR) || mkdir -p $(OBJDIR)
65+
@test -d $(BUILDDIR)/$(BINDIR) || mkdir -p $(BUILDDIR)/$(BINDIR)
66+
@test -d $(BUILDDIR)/$(DATADIR) || mkdir -p $(BUILDDIR)/$(DATADIR)
67+
@test -d $(BUILDDIR)/$(OBJDIR) || mkdir -p $(BUILDDIR)/$(OBJDIR)
6368

6469
out: before $(OBJECTS)
6570
@echo "linking $(CONFIG) binary"
66-
@$(LD) -o $(BINDIR)/$(TARGET) $(OBJECTS) $(LDFLAGS)
67-
68-
after: before $(ASSETS)
69-
@echo "copying assets to bin directory"
70-
@cp --no-clobber $(ASSETS) $(BINDIR)/
71-
71+
@$(LD) -o $(BUILDDIR)/$(BINDIR)/$(TARGET) $(OBJECTS) $(LDFLAGS)
7272

7373
$(OBJECTS): $(OBJDIR)/%.o: ../src/%.cpp
7474
@echo " -> compiling $*.cpp"
75-
@$(CXX) $(CFLAGS) -c $< -o $@
75+
@$(CXX) $(CFLAGS) -c $(BUILDDIR)/$< -o $@
76+
77+
after: before out $(ASSETS)
78+
@echo "copying assets to data directory"
79+
@cp --no-clobber $(ASSETS) $(BUILDDIR)/$(DATADIR)/
7680

7781

7882
clean:
79-
@echo "cleaning $(CONFIG) configuration"
80-
@rm -rf $(BINDIR)
81-
@rm -rf $(OBJDIR)/*.o
83+
@echo "cleaning all configurations"
84+
rm -rf $(BUILDDIR)/$(BINDIR)/
85+
rm -rf $(BUILDDIR)/$(DATADIR)/
86+
rm -rf $(BUILDDIR)/$(OBJDIR)/
8287

8388

8489
assert-writable:
85-
@mkdir -p $(INSTALLDIR)/bin
86-
@mkdir -p $(INSTALLDIR)/share/loopidity
87-
@touch $(INSTALLDIR)/bin/$(TARGET) 2> /dev/null || \
90+
@mkdir -p $(INSTALLDIR)/$(BINDIR)
91+
@mkdir -p $(INSTALLDIR)/$(DATADIR)
92+
@touch $(INSTALLDIR)/$(BINDIR)/$(TARGET) 2> /dev/null || \
8893
(echo '\nsuperuser privileges required - exiting\n' && exit 255)
8994

9095
install: all assert-writable
9196
@echo installing loopidity
92-
@install -Dm 755 $(BINDIR)/$(TARGET) $(INSTALLDIR)/bin/
93-
@install -Dm 644 $(ASSETS) $(INSTALLDIR)/share/loopidity/
97+
@install -Dm 755 $(BINDIR)/$(TARGET) $(INSTALLDIR)/$(BINDIR)/
98+
@install -Dm 644 $(ASSETS) $(INSTALLDIR)/$(DATADIR)/
9499

95100
uninstall: assert-writable
96101
@echo uninstalling loopidity
97-
@rm $(INSTALLDIR)/bin/$(TARGET) 2> /dev/null
98-
@rm -rf $(INSTALLDIR)/share/loopidity/ 2> /dev/null
102+
@rm $(INSTALLDIR)/$(BINDIR)/$(TARGET) 2> /dev/null
103+
@rm -rf $(INSTALLDIR)/$(DATADIR)/ 2> /dev/null
99104

100105

101106
-include $(OBJECTS:%.o=%.d)

0 commit comments

Comments
 (0)