Skip to content

Commit

Permalink
Merge pull request #4 from korfuri/windows
Browse files Browse the repository at this point in the history
Add Windows build supports to Travis.
  • Loading branch information
korfuri authored Apr 20, 2019
2 parents 233bc98 + bcb4a55 commit 86296bd
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 8 deletions.
24 changes: 18 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,25 @@ matrix:
include:
- os: linux
dist: xenial
before_script:
- pushd src/deps/projectm
- git apply ../projectm_fix_shader.diff
- "./autogen.sh"
- "./configure --with-pic --enable-static --enable-gles"
- make
- popd
- os: osx
before_script:
- pushd src/deps/projectm
- git apply ../projectm_fix_shader.diff
- "./autogen.sh"
- "./configure --with-pic --enable-static --enable-gles"
- make
- popd
- os: windows
before_install:
- choco install make -y
- choco install zip -y
addons:
apt:
packages:
Expand Down Expand Up @@ -32,12 +50,6 @@ install:
- popd
script:
- export RACK_DIR="${HOME}"/Rack/Rack-SDK
- pushd src/deps/projectm
- git apply ../projectm_fix_shader.diff
- "./autogen.sh"
- "./configure --with-pic --enable-static --enable-gles"
- make
- popd
- make dist

deploy:
Expand Down
14 changes: 12 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ SLUG = Milkrack
# https://vcvrack.com/manual/PluginDevelopmentTutorial.html
VERSION = 0.6.0

# Platform detection
include $(RACK_DIR)/arch.mk

# FLAGS will be passed to both the C and C++ compiler
FLAGS +=
CFLAGS +=
Expand All @@ -17,8 +20,15 @@ CXXFLAGS +=
# Careful about linking to shared libraries, since you can't assume much about the user's environment and library search path.
# Static libraries are fine.
LDFLAGS += -fPIC

OBJECTS += src/deps/projectm/src/libprojectM/.libs/libprojectM.a
ifdef ARCH_WIN
LDFLAGS += -shared -Wl,--export-all-symbols -lopengl32
endif

ifdef ARCH_WIN
OBJECTS += libs/win/libprojectM/libprojectM.a
else
OBJECTS += src/deps/projectm/src/libprojectM/.libs/libprojectM.a
endif

# Add .cpp and .c files to the build
SOURCES += $(wildcard src/*.cpp)
Expand Down
Binary file added libs/win/libprojectM/libprojectM.a
Binary file not shown.

0 comments on commit 86296bd

Please sign in to comment.