Browse Source

Merge ext with dep, add Rack-SDK zip file to dist

tags/v0.6.0
Andrew Belt 6 years ago
parent
commit
df297d3291
17 changed files with 53 additions and 27 deletions
  1. +4
    -4
      .gitmodules
  2. +15
    -5
      Makefile
  3. +18
    -1
      dep/Makefile
  4. +0
    -0
      dep/nanosvg
  5. +0
    -0
      dep/nanovg
  6. +0
    -0
      dep/osdialog
  7. +0
    -0
      dep/oui-blendish
  8. +1
    -1
      include/ui.hpp
  9. +1
    -1
      include/util/color.hpp
  10. +2
    -2
      include/widgets.hpp
  11. +1
    -1
      src/app/PluginManagerWidget.cpp
  12. +1
    -1
      src/app/RackScene.cpp
  13. +1
    -1
      src/app/RackWidget.cpp
  14. +1
    -1
      src/asset.cpp
  15. +1
    -1
      src/main.cpp
  16. +2
    -3
      src/widgets/FramebufferWidget.cpp
  17. +5
    -5
      src/window.cpp

+ 4
- 4
.gitmodules View File

@@ -1,14 +1,14 @@
[submodule "ext/nanovg"]
path = ext/nanovg
path = dep/nanovg
url = https://github.com/memononen/nanovg.git
[submodule "ext/nanosvg"]
path = ext/nanosvg
path = dep/nanosvg
url = https://github.com/memononen/nanosvg.git
[submodule "ext/osdialog"]
path = ext/osdialog
path = dep/osdialog
url = https://github.com/AndrewBelt/osdialog.git
[submodule "ext/oui-blendish"]
path = ext/oui-blendish
path = dep/oui-blendish
url = https://github.com/AndrewBelt/oui-blendish.git
[submodule "dep/glfw"]
path = dep/glfw


+ 15
- 5
Makefile View File

@@ -8,14 +8,14 @@ ifdef RELEASE
FLAGS += -DRELEASE=$(RELEASE)
endif

SOURCES = $(wildcard src/*.cpp src/*/*.cpp) \
ext/nanovg/src/nanovg.c
SOURCES += $(wildcard src/*.cpp src/*/*.cpp)
SOURCES += dep/nanovg/src/nanovg.c


include arch.mk

ifeq ($(ARCH), lin)
SOURCES += ext/osdialog/osdialog_gtk2.c
SOURCES += dep/osdialog/osdialog_gtk2.c
CFLAGS += $(shell pkg-config --cflags gtk+-2.0)
LDFLAGS += -rdynamic \
-lpthread -lGL -ldl \
@@ -25,7 +25,7 @@ ifeq ($(ARCH), lin)
endif

ifeq ($(ARCH), mac)
SOURCES += ext/osdialog/osdialog_mac.m
SOURCES += dep/osdialog/osdialog_mac.m
CXXFLAGS += -DAPPLE -stdlib=libc++
LDFLAGS += -stdlib=libc++ -lpthread -ldl \
-framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideo \
@@ -35,7 +35,7 @@ ifeq ($(ARCH), mac)
endif

ifeq ($(ARCH), win)
SOURCES += ext/osdialog/osdialog_win.c
SOURCES += dep/osdialog/osdialog_win.c
LDFLAGS += -static-libgcc -static-libstdc++ -lpthread \
-Wl,--export-all-symbols,--out-implib,libRack.a -mwindows \
-lgdi32 -lopengl32 -lcomdlg32 -lole32 \
@@ -94,6 +94,8 @@ include compile.mk

dist: all
rm -rf dist

# Rack distribution
$(MAKE) -C plugins/Fundamental dist

ifeq ($(ARCH), mac)
@@ -184,6 +186,14 @@ ifeq ($(ARCH), lin)
cd dist && zip -5 -r Rack-$(VERSION)-$(ARCH).zip Rack
endif

# Rack SDK distribution
mkdir -p dist/Rack-SDK
cp -R include dist/Rack-SDK/
cp *.mk dist/Rack-SDK/
mkdir -p dist/Rack-SDK/dep/
cp -R dep/include dist/Rack-SDK/dep/
cd dist && zip -5 -r Rack-SDK-$(VERSION)-$(ARCH).zip Rack-SDK


# Obviously this will only work if you have the private keys to my server
UPLOAD_URL = vortico@vcvrack.com:files/


+ 18
- 1
dep/Makefile View File

@@ -64,10 +64,15 @@ ifeq ($(ARCH),win)
openssl = bin/libssl-1_1-x64.dll
endif

nanovg = include/nanovg.h
nanosvg = include/nanosvg.h
oui-blendish = include/blendish.h
osdialog = include/osdialog.h


.NOTPARALLEL:

all: $(glew) $(glfw) $(jansson) $(libspeexdsp) $(libcurl) $(libzip) $(rtmidi) $(rtaudio)
all: $(glew) $(glfw) $(jansson) $(libspeexdsp) $(libcurl) $(libzip) $(rtmidi) $(rtaudio) $(nanovg) $(nanosvg) $(oui-blendish) $(osdialog)
@echo ""
@echo "#######################################"
@echo "# Built all dependencies successfully #"
@@ -149,5 +154,17 @@ $(rtaudio):
$(MAKE) -C rtaudio/build
$(MAKE) -C rtaudio/build install

$(nanovg):
cp nanovg/src/*.h include/

$(nanosvg):
cp nanosvg/src/*.h include/

$(oui-blendish):
cp oui-blendish/*.h include/

$(osdialog):
cp osdialog/*.h include/

clean:
git clean -ffdx

ext/nanosvg → dep/nanosvg View File


ext/nanovg → dep/nanovg View File


ext/osdialog → dep/osdialog View File


ext/oui-blendish → dep/oui-blendish View File


+ 1
- 1
include/ui.hpp View File

@@ -1,6 +1,6 @@
#pragma once
#include "widgets.hpp"
#include "../ext/oui-blendish/blendish.h"
#include "blendish.h"


namespace rack {


+ 1
- 1
include/util/color.hpp View File

@@ -2,7 +2,7 @@


#include "util/math.hpp"
#include "../ext/nanovg/src/nanovg.h"
#include "nanovg.h"


namespace rack {


+ 2
- 2
include/widgets.hpp View File

@@ -2,8 +2,8 @@
#include <list>
#include <memory>

#include "../ext/nanovg/src/nanovg.h"
#include "../ext/nanosvg/src/nanosvg.h"
#include "nanovg.h"
#include "nanosvg.h"

#include "util/common.hpp"
#include "events.hpp"


+ 1
- 1
src/app/PluginManagerWidget.cpp View File

@@ -2,7 +2,7 @@
#include "app.hpp"
#include "plugin.hpp"
#include "window.hpp"
#include "../ext/osdialog/osdialog.h"
#include "osdialog.h"


namespace rack {


+ 1
- 1
src/app/RackScene.cpp View File

@@ -1,7 +1,7 @@
#include "app.hpp"
#include "window.hpp"
#include "util/request.hpp"
#include "../ext/osdialog/osdialog.h"
#include "osdialog.h"
#include <string.h>
#include <thread>



+ 1
- 1
src/app/RackWidget.cpp View File

@@ -6,7 +6,7 @@
#include "asset.hpp"
#include <map>
#include <algorithm>
#include "../ext/osdialog/osdialog.h"
#include "osdialog.h"


namespace rack {


+ 1
- 1
src/asset.cpp View File

@@ -1,7 +1,7 @@
#include "asset.hpp"
#include "util/common.hpp"
#include <sys/stat.h> // for mkdir
#include "../ext/osdialog/osdialog.h"
#include "osdialog.h"

#if ARCH_MAC
#include <CoreFoundation/CoreFoundation.h>


+ 1
- 1
src/main.cpp View File

@@ -6,7 +6,7 @@
#include "settings.hpp"
#include "asset.hpp"
#include <unistd.h>
#include "../ext/osdialog/osdialog.h"
#include "osdialog.h"


using namespace rack;


+ 2
- 3
src/widgets/FramebufferWidget.cpp View File

@@ -1,9 +1,8 @@
#include "widgets.hpp"
#include "window.hpp"
#include <GL/glew.h>
#include "../ext/nanovg/src/nanovg_gl.h"
#include "../ext/nanovg/src/nanovg_gl_utils.h"
#include "../ext/osdialog/osdialog.h"
#include "nanovg_gl.h"
#include "nanovg_gl_utils.h"


namespace rack {


+ 5
- 5
src/window.cpp View File

@@ -6,21 +6,21 @@
#include <queue>
#include <thread>

#include "../ext/osdialog/osdialog.h"
#include "osdialog.h"

#define NANOVG_GL2 1
// #define NANOVG_GL3 1
// #define NANOVG_GLES2 1
#define NANOVG_GL_IMPLEMENTATION 1
#include "../ext/nanovg/src/nanovg_gl.h"
#include "nanovg_gl.h"
// Hack to get framebuffer objects working on OpenGL 2 (we blindly assume the extension is supported)
#define NANOVG_FBO_VALID 1
#include "../ext/nanovg/src/nanovg_gl_utils.h"
#include "nanovg_gl_utils.h"
#define BLENDISH_IMPLEMENTATION
#include "../ext/oui-blendish/blendish.h"
#include "blendish.h"
#define NANOSVG_IMPLEMENTATION
#define NANOSVG_ALL_COLOR_KEYWORDS
#include "../ext/nanosvg/src/nanosvg.h"
#include "nanosvg.h"

#ifdef ARCH_MAC
// For CGAssociateMouseAndMouseCursorPosition


Loading…
Cancel
Save