Add Travis CI

This commit is contained in:
Pablo Marcos Oltra 2018-04-17 07:56:01 +02:00
parent 8056cb70ae
commit 9ba6a91c31
4 changed files with 36 additions and 22 deletions

11
.travis.yml Normal file
View File

@ -0,0 +1,11 @@
language: cpp
os: osx
compiler: clang
osx_image: xcode9.3
script:
- make -j $(sysctl -n hw.ncpu)
after_success:
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
- bash upload.sh dylibbundler

23
Makefile Normal file
View File

@ -0,0 +1,23 @@
DESTDIR=
PREFIX=/usr/local
CXXFLAGS = -O2
all: dylibbundler
dylibbundler:
$(CXX) $(CXXFLAGS) -c -I./src ./src/Settings.cpp -o ./Settings.o
$(CXX) $(CXXFLAGS) -c -I./src ./src/DylibBundler.cpp -o ./DylibBundler.o
$(CXX) $(CXXFLAGS) -c -I./src ./src/Dependency.cpp -o ./Dependency.o
$(CXX) $(CXXFLAGS) -c -I./src ./src/main.cpp -o ./main.o
$(CXX) $(CXXFLAGS) -c -I./src ./src/Utils.cpp -o ./Utils.o
$(CXX) $(CXXFLAGS) -o ./dylibbundler ./Settings.o ./DylibBundler.o ./Dependency.o ./main.o ./Utils.o
clean:
rm -f *.o
rm -f ./dylibbundler
install: dylibbundler
cp ./dylibbundler $(DESTDIR)$(PREFIX)/bin/dylibbundler
chmod 775 $(DESTDIR)$(PREFIX)/bin/dylibbundler
.PHONY: all clean install

View File

@ -1,3 +1,5 @@
[![Build Status](https://travis-ci.org/auriamg/macdylibbundler.svg?branch=master)](https://travis-ci.org/auriamg/macdylibbundler)
mac dylib bundler
================

View File

@ -1,22 +0,0 @@
DESTDIR=
PREFIX=/usr/local
all: dylibbundler
dylibbundler:
$(CXX) -c -I./src ./src/Settings.cpp -o ./Settings.o
$(CXX) -c -I./src ./src/DylibBundler.cpp -o ./DylibBundler.o
$(CXX) -c -I./src ./src/Dependency.cpp -o ./Dependency.o
$(CXX) -c -I./src ./src/main.cpp -o ./main.o
$(CXX) -c -I./src ./src/Utils.cpp -o ./Utils.o
$(CXX) -o ./dylibbundler ./Settings.o ./DylibBundler.o ./Dependency.o ./main.o ./Utils.o
clean:
rm -f *.o
rm -f ./dylibbundler
install: dylibbundler
cp ./dylibbundler $(DESTDIR)$(PREFIX)/bin/dylibbundler
chmod 775 $(DESTDIR)$(PREFIX)/bin/dylibbundler
.PHONY: all clean install