Browse Source

More tweaks to DGL namespace and MacOS builds

tags/1.9.8
falkTX 7 years ago
parent
commit
5049e17d67
10 changed files with 27 additions and 38 deletions
  1. +5
    -6
      data/macos/build.sh
  2. +3
    -3
      source/modules/distrho/DistrhoUI.hpp
  3. +3
    -3
      source/modules/distrho/src/DistrhoUIInternal.hpp
  4. +0
    -2
      source/native-plugins/distrho-3bandsplitter/DistrhoUI3BandSplitter.cpp
  5. +4
    -4
      source/native-plugins/distrho-nekobi/DistrhoUINekobi.hpp
  6. +1
    -1
      source/native-plugins/distrho-nekobi/NekoWidget.hpp
  7. +1
    -1
      source/native-plugins/distrho-vectorjuice/VectorJuiceUI.cpp
  8. +6
    -6
      source/native-plugins/distrho-vectorjuice/VectorJuiceUI.hpp
  9. +4
    -4
      source/native-plugins/distrho-wobblejuice/WobbleJuiceUI.hpp
  10. +0
    -8
      source/theme/CarlaStyle.hpp

+ 5
- 6
data/macos/build.sh View File

@@ -11,36 +11,35 @@ fi
TARGETDIR=$HOME/builds TARGETDIR=$HOME/builds


export MACOS="true" export MACOS="true"
export MACOS_OLD="true"
export CC=clang export CC=clang
export CXX=clang++ export CXX=clang++
export DEFAULT_QT=5
export PYUIC5=$TARGETDIR/carla/bin/pyuic5


unset CPPFLAGS unset CPPFLAGS


############################################################################################## ##############################################################################################
# Complete 64bit build # Complete 64bit build


export CFLAGS="-O2 -m64 -DHAVE_CPP11_SUPPORT=0"
export CFLAGS="-O2 -m64"
export CXXFLAGS=$CFLAGS export CXXFLAGS=$CFLAGS
export LDFLAGS="-m64" export LDFLAGS="-m64"


export PATH=$TARGETDIR/carla/bin:$TARGETDIR/carla64/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin export PATH=$TARGETDIR/carla/bin:$TARGETDIR/carla64/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
export PKG_CONFIG_PATH=$TARGETDIR/carla/lib/pkgconfig:$TARGETDIR/carla64/lib/pkgconfig export PKG_CONFIG_PATH=$TARGETDIR/carla/lib/pkgconfig:$TARGETDIR/carla64/lib/pkgconfig


make HAVE_ZYN_DEPS=false HAVE_HYLIA=false $JOBS
make HAVE_QT5=true $JOBS


############################################################################################## ##############################################################################################
# Build 32bit bridges # Build 32bit bridges


export CFLAGS="-O2 -m32 -DHAVE_CPP11_SUPPORT=0"
export CFLAGS="-O2 -m32"
export CXXFLAGS=$CFLAGS export CXXFLAGS=$CFLAGS
export LDFLAGS="-m32" export LDFLAGS="-m32"


export PATH=$TARGETDIR/carla32/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin export PATH=$TARGETDIR/carla32/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
export PKG_CONFIG_PATH=$TARGETDIR/carla32/lib/pkgconfig export PKG_CONFIG_PATH=$TARGETDIR/carla32/lib/pkgconfig


make HAVE_ZYN_DEPS=false HAVE_HYLIA=false posix32 $JOBS
make HAVE_QT5=true posix32 $JOBS


############################################################################################## ##############################################################################################
# Build Mac App # Build Mac App


+ 3
- 3
source/modules/distrho/DistrhoUI.hpp View File

@@ -25,10 +25,10 @@
typedef DISTRHO_NAMESPACE::ExternalWindow UIWidget; typedef DISTRHO_NAMESPACE::ExternalWindow UIWidget;
#elif DISTRHO_UI_USE_NANOVG #elif DISTRHO_UI_USE_NANOVG
# include "../dgl/NanoVG.hpp" # include "../dgl/NanoVG.hpp"
typedef DGL::NanoWidget UIWidget;
typedef DGL_NAMESPACE::NanoWidget UIWidget;
#else #else
# include "../dgl/Widget.hpp" # include "../dgl/Widget.hpp"
typedef DGL::Widget UIWidget;
typedef DGL_NAMESPACE::Widget UIWidget;
#endif #endif


START_NAMESPACE_DISTRHO START_NAMESPACE_DISTRHO
@@ -212,7 +212,7 @@ private:
void setAbsoluteX(int) const noexcept {} void setAbsoluteX(int) const noexcept {}
void setAbsoluteY(int) const noexcept {} void setAbsoluteY(int) const noexcept {}
void setAbsolutePos(int, int) const noexcept {} void setAbsolutePos(int, int) const noexcept {}
void setAbsolutePos(const DGL::Point<int>&) const noexcept {}
void setAbsolutePos(const DGL_NAMESPACE::Point<int>&) const noexcept {}
#endif #endif


DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(UI) DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(UI)


+ 3
- 3
source/modules/distrho/src/DistrhoUIInternal.hpp View File

@@ -22,9 +22,9 @@
#ifdef HAVE_DGL #ifdef HAVE_DGL
# include "../../dgl/Application.hpp" # include "../../dgl/Application.hpp"
# include "../../dgl/Window.hpp" # include "../../dgl/Window.hpp"
using DGL::Application;
using DGL::IdleCallback;
using DGL::Window;
using DGL_NAMESPACE::Application;
using DGL_NAMESPACE::IdleCallback;
using DGL_NAMESPACE::Window;
#endif #endif


START_NAMESPACE_DISTRHO START_NAMESPACE_DISTRHO


+ 0
- 2
source/native-plugins/distrho-3bandsplitter/DistrhoUI3BandSplitter.cpp View File

@@ -17,8 +17,6 @@
#include "DistrhoPlugin3BandSplitter.hpp" #include "DistrhoPlugin3BandSplitter.hpp"
#include "DistrhoUI3BandSplitter.hpp" #include "DistrhoUI3BandSplitter.hpp"


using DGL::Point;

START_NAMESPACE_DISTRHO START_NAMESPACE_DISTRHO


namespace Art = DistrhoArtwork3BandSplitter; namespace Art = DistrhoArtwork3BandSplitter;


+ 4
- 4
source/native-plugins/distrho-nekobi/DistrhoUINekobi.hpp View File

@@ -25,10 +25,10 @@
#include "DistrhoArtworkNekobi.hpp" #include "DistrhoArtworkNekobi.hpp"
#include "NekoWidget.hpp" #include "NekoWidget.hpp"


using DGL::ImageAboutWindow;
using DGL::ImageButton;
using DGL::ImageKnob;
using DGL::ImageSlider;
using DGL_NAMESPACE::ImageAboutWindow;
using DGL_NAMESPACE::ImageButton;
using DGL_NAMESPACE::ImageKnob;
using DGL_NAMESPACE::ImageSlider;


START_NAMESPACE_DISTRHO START_NAMESPACE_DISTRHO




+ 1
- 1
source/native-plugins/distrho-nekobi/NekoWidget.hpp View File

@@ -25,7 +25,7 @@


#include <cstdlib> // rand #include <cstdlib> // rand


using DGL::Image;
using DGL_NAMESPACE::Image;


// ----------------------------------------------------------------------- // -----------------------------------------------------------------------




+ 1
- 1
source/native-plugins/distrho-vectorjuice/VectorJuiceUI.cpp View File

@@ -18,7 +18,7 @@
#include "VectorJuicePlugin.hpp" #include "VectorJuicePlugin.hpp"
#include "VectorJuiceUI.hpp" #include "VectorJuiceUI.hpp"


using DGL::Point;
using DGL_NAMESPACE::Point;


START_NAMESPACE_DISTRHO START_NAMESPACE_DISTRHO




+ 6
- 6
source/native-plugins/distrho-vectorjuice/VectorJuiceUI.hpp View File

@@ -24,11 +24,11 @@


#include "VectorJuiceArtwork.hpp" #include "VectorJuiceArtwork.hpp"


using DGL::Image;
using DGL::ImageAboutWindow;
using DGL::ImageButton;
using DGL::ImageKnob;
using DGL::ImageSlider;
using DGL_NAMESPACE::Image;
using DGL_NAMESPACE::ImageAboutWindow;
using DGL_NAMESPACE::ImageButton;
using DGL_NAMESPACE::ImageKnob;
using DGL_NAMESPACE::ImageSlider;


START_NAMESPACE_DISTRHO START_NAMESPACE_DISTRHO


@@ -88,7 +88,7 @@ private:
bool fDragValid; bool fDragValid;
int fLastX; int fLastX;
int fLastY; int fLastY;
DGL::Rectangle<int> fCanvasArea;
DGL_NAMESPACE::Rectangle<int> fCanvasArea;
float orbitX, orbitY, subOrbitX, subOrbitY; float orbitX, orbitY, subOrbitX, subOrbitY;
}; };




+ 4
- 4
source/native-plugins/distrho-wobblejuice/WobbleJuiceUI.hpp View File

@@ -24,10 +24,10 @@


#include "WobbleJuiceArtwork.hpp" #include "WobbleJuiceArtwork.hpp"


using DGL::Image;
using DGL::ImageAboutWindow;
using DGL::ImageButton;
using DGL::ImageKnob;
using DGL_NAMESPACE::Image;
using DGL_NAMESPACE::ImageAboutWindow;
using DGL_NAMESPACE::ImageButton;
using DGL_NAMESPACE::ImageKnob;


START_NAMESPACE_DISTRHO START_NAMESPACE_DISTRHO




+ 0
- 8
source/theme/CarlaStyle.hpp View File

@@ -25,14 +25,6 @@


#include <QtCore/Qt> #include <QtCore/Qt>


#ifdef CARLA_OS_MAC
# undef Q_COMPILER_UNICODE_STRINGS
# undef Q_DECL_CONSTEXPR
# undef Q_DECL_NOEXCEPT_EXPR
# define Q_DECL_CONSTEXPR
# define Q_DECL_NOEXCEPT_EXPR(x)
#endif

#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
# include <QtWidgets/QCommonStyle> # include <QtWidgets/QCommonStyle>
#else #else


Loading…
Cancel
Save