Browse Source

Update scripts

tags/2018-04-16
falkTX 7 years ago
parent
commit
516d50bf10
5 changed files with 9 additions and 40 deletions
  1. +0
    -14
      libs/drowaudio/build-drowaudio/AppConfig.h
  2. +1
    -0
      libs/drowaudio/build-drowaudio/AppConfig.h
  3. +0
    -22
      libs/juce-plugin/AppConfig.h
  4. +1
    -0
      libs/juce-plugin/AppConfig.h
  5. +7
    -4
      scripts/make-project.lua

+ 0
- 14
libs/drowaudio/build-drowaudio/AppConfig.h View File

@@ -1,14 +0,0 @@
/*
==============================================================================
Build options for drowaudio static library
==============================================================================
*/
#ifndef BUILD_DROWAUDIO_APPCONFIG_H_INCLUDED
#define BUILD_DROWAUDIO_APPCONFIG_H_INCLUDED
#include "../build-juce/AppConfig.h"
#endif // BUILD_DROWAUDIO_APPCONFIG_H_INCLUDED

+ 1
- 0
libs/drowaudio/build-drowaudio/AppConfig.h View File

@@ -0,0 +1 @@
../../juce/build-juce/AppConfig.h

+ 0
- 22
libs/juce-plugin/AppConfig.h View File

@@ -1,22 +0,0 @@
/*
==============================================================================
Build options for juce based plugins
==============================================================================
*/
#ifndef JUCE_PLUGIN_APPCONFIG_H_INCLUDED
#define JUCE_PLUGIN_APPCONFIG_H_INCLUDED
#include "../build-juce/AppConfig.h"
#if USE_DROWAUDIO
#include "../build-drowaudio/AppConfig.h"
#endif
#if USE_JUCED
#include "../build-juced/AppConfig.h"
#endif
#endif // JUCE_PLUGIN_APPCONFIG_H_INCLUDED

+ 1
- 0
libs/juce-plugin/AppConfig.h View File

@@ -0,0 +1 @@
../juce/build-juce/AppConfig.h

+ 7
- 4
scripts/make-project.lua View File

@@ -16,7 +16,8 @@ function make_library_project(name)
package.objdir = "intermediate"
package.defines = {}
package.buildoptions = { "-fPIC", "-DPIC", "-Wall", "-pthread",
"-Wno-multichar", "-Wno-misleading-indentation", "-Wno-unused-but-set-variable",
"-DJUCE_APP_CONFIG_HEADER='<AppConfig.h>'",
"-Wno-multichar", "-Wno-unused-but-set-variable", "-Wno-unused-function", "-Wno-strict-overflow",
os.getenv("CXXFLAGS") }

package.config["Release"].target = project.name
@@ -48,7 +49,7 @@ function make_library_project(name)
package.buildoptions = { package.buildoptions, "-ObjC++" }
elseif (os.getenv("LINUX_EMBED")) then
package.defines = { "LINUX=1" }
package.buildoptions = { package.buildoptions, "-DJUCE_LINUX_EMBED=1", "-std=c++0x" }
package.buildoptions = { package.buildoptions, "-DJUCE_AUDIOPROCESSOR_NO_GUI=1", "-std=c++0x" }
else
package.defines = { "LINUX=1" }
package.buildoptions = { package.buildoptions, "`pkg-config --cflags alsa freetype2 x11 xext`", "-std=c++0x" }
@@ -85,7 +86,9 @@ function make_plugin_project(name, spec)
package.target = project.name
package.targetprefix = ""
package.objdir = "intermediate"
package.buildoptions = { "-Wall", "-Werror=deprecated-declarations", os.getenv("CXXFLAGS") }
package.buildoptions = { "-Wall", "-Werror=deprecated-declarations", "-pthread",
"-DJUCE_APP_CONFIG_HEADER='<AppConfig.h>'",
os.getenv("CXXFLAGS") }
package.links = {}
package.linkoptions = { "-pthread", os.getenv("LDFLAGS") }

@@ -141,7 +144,7 @@ function make_plugin_project(name, spec)
end

if (os.getenv("LINUX_EMBED")) then
package.buildoptions = { package.buildoptions, "-DJUCE_LINUX_EMBED=1" }
package.buildoptions = { package.buildoptions, "-DJUCE_AUDIOPROCESSOR_NO_GUI=1" }
end

return package


Loading…
Cancel
Save