Add Travis CI
This commit is contained in:
parent
8056cb70ae
commit
9ba6a91c31
|
@ -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
|
|
@ -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
|
|
@ -1,3 +1,5 @@
|
|||
[![Build Status](https://travis-ci.org/auriamg/macdylibbundler.svg?branch=master)](https://travis-ci.org/auriamg/macdylibbundler)
|
||||
|
||||
mac dylib bundler
|
||||
================
|
||||
|
||||
|
|
22
makefile
22
makefile
|
@ -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
|
Loading…
Reference in New Issue