Fix crash when host does not support midi-in; Add missing file
[juce-lv2.git] / demo / Build / premake.lua
blob092174799b15f87ace9ca2c153069d4513f5d347
2 project.name = "Juce_Demo_Plugin"
3 project.bindir = "."
4 project.libdir = project.bindir
6 project.configs = { "Debug", "Release" }
8 package = newpackage()
9 package.name = project.name
10 package.target = project.name
11 package.language = "c++"
13 package.objdir = project.bindir .. "/intermediate"
14 package.includepaths = { "/usr/include", "/usr/include/freetype2", "../../juce/source", "../JuceLibraryCode", "../Source" }
15 package.libpaths = { "/usr/X11R6/lib/", "../.." }
16 package.linkflags = { "static-runtime" }
17 package.kind = "dll"
19 package.config["Release"].target = project.name
20 package.config["Release"].objdir = package.objdir .. "/" .. project.name .. "_Release"
21 package.config["Release"].buildoptions = { "-march=native -Os -fPIC -fvisibility=hidden" }
22 package.config["Release"].defines = { "LINUX=1", "NDEBUG=1", "JUCE_ALSA=0", "JucePlugin_Build_LV2=1" }
23 package.config["Release"].links = { "freetype", "pthread", "rt", "X11", "GL", "juce" }
25 package.config["Debug"].target = project.name
26 package.config["Debug"].objdir = package.objdir .. "/" .. project.name .. "_Debug"
27 package.config["Debug"].buildoptions = { "-march=native -ggdb -O0 -fPIC -fvisibility=hidden" }
28 package.config["Debug"].defines = { "LINUX=1", "DEBUG=1", "_DEBUG=1", "JUCE_ALSA=0", "JucePlugin_Build_LV2=1" }
29 package.config["Debug"].links = { "freetype", "pthread", "rt", "X11", "GL", "juce_debug" }
31 package.files = {
32 matchfiles (
33 "../Source/*.cpp",
34 "../JuceLibraryCode/*.cpp",
35 "../../juce/source/src/audio/plugin_client/LV2/juce_LV2_Wrapper.cpp"