diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..ae1c770 --- /dev/null +++ b/.travis.yml @@ -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 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..07e6d39 --- /dev/null +++ b/Makefile @@ -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 diff --git a/README.md b/README.md index a4710e4..9346fb7 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Build Status](https://travis-ci.org/auriamg/macdylibbundler.svg?branch=master)](https://travis-ci.org/auriamg/macdylibbundler) + mac dylib bundler ================ diff --git a/makefile b/makefile deleted file mode 100644 index 9cec9f5..0000000 --- a/makefile +++ /dev/null @@ -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