Browse Source

Fix Windows dep build

tags/v0.3.0
Andrew Belt 7 years ago
parent
commit
a400f63651
1 changed files with 8 additions and 3 deletions
  1. +8
    -3
      dep/Makefile

+ 8
- 3
dep/Makefile View File

@@ -15,6 +15,11 @@ endif
WGET = wget -nc
UNTAR = tar xf
UNZIP = unzip
ifeq ($(ARCH),win)
CMAKE = cmake -G 'MSYS Makefiles'
else
CMAKE = cmake
endif

# Packages
glew = glew-2.1.0
@@ -34,14 +39,14 @@ all: $(glew) $(glfw) $(jansson) $(libsamplerate) $(libcurl) $(libzip) $(portmidi
$(glew):
$(WGET) https://downloads.sourceforge.net/project/glew/glew/$(patsubst glew-%,%,$@)/$@.tgz
$(UNTAR) $@.tgz
$(MAKE) -C $@
$(MAKE) -C $@ glew.lib
# On Linux, default lib path is lib64, so change it back to lib.
$(MAKE) -C $@ GLEW_DEST="$(LOCAL)" LIBDIR="$(LOCAL)/lib" install

$(glfw):
$(WGET) https://github.com/glfw/glfw/releases/download/$(patsubst glfw-%,%,$@)/$@.zip
$(UNZIP) $@.zip
cd $@ && cmake . \
cd $@ && $(CMAKE) . \
-DCMAKE_INSTALL_PREFIX="$(LOCAL)" -DBUILD_SHARED_LIBS=ON \
-DGLFW_USE_CHDIR=ON -DGLFW_USE_MENUBAR=ON -DGLFW_USE_RETINA=ON
$(MAKE) -C $@
@@ -80,7 +85,7 @@ $(libzip):
$(portmidi):
git clone https://github.com/AndrewBelt/portmidi.git $@
# TODO Fix on Windows
cd $@ && cmake . -DCMAKE_INSTALL_PREFIX="$(LOCAL)"
cd $@ && $(CMAKE) . -DCMAKE_INSTALL_PREFIX="$(LOCAL)"
$(MAKE) -C $@
$(MAKE) -C $@ install



Loading…
Cancel
Save