Browse Source

Make sure juce_gui_extra is (only) built on osx

tags/1.9.4
falkTX 10 years ago
parent
commit
274d87a56f
4 changed files with 24 additions and 6 deletions
  1. +2
    -0
      Makefile
  2. +4
    -0
      source/backend/Makefile
  3. +12
    -3
      source/bridges-plugin/Makefile
  4. +6
    -3
      source/discovery/Makefile

+ 2
- 0
Makefile View File

@@ -50,7 +50,9 @@ ALL_LIBS += source/modules/juce_data_structures.a
ALL_LIBS += source/modules/juce_events.a
ALL_LIBS += source/modules/juce_graphics.a
ALL_LIBS += source/modules/juce_gui_basics.a
ifeq ($(MACOS),true)
ALL_LIBS += source/modules/juce_gui_extra.a
endif
else
ALL_LIBS += source/modules/rtaudio.a
ALL_LIBS += source/modules/rtmidi.a


+ 4
- 0
source/backend/Makefile View File

@@ -27,7 +27,9 @@ STANDALONE_LIBS += ../modules/juce_data_structures.a
STANDALONE_LIBS += ../modules/juce_events.a
STANDALONE_LIBS += ../modules/juce_graphics.a
STANDALONE_LIBS += ../modules/juce_gui_basics.a
ifeq ($(MACOS),true)
STANDALONE_LIBS += ../modules/juce_gui_extra.a
endif
else
STANDALONE_LIBS += ../modules/rtaudio.a
STANDALONE_LIBS += ../modules/rtmidi.a
@@ -51,7 +53,9 @@ STANDALONE_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
STANDALONE_FLAGS += $(JUCE_EVENTS_LIBS)
STANDALONE_FLAGS += $(JUCE_GRAPHICS_LIBS)
STANDALONE_FLAGS += $(JUCE_GUI_BASICS_LIBS)
ifeq ($(MACOS),true)
STANDALONE_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
endif
else
STANDALONE_FLAGS += $(RTAUDIO_LIBS)
STANDALONE_FLAGS += $(RTMIDI_LIBS)


+ 12
- 3
source/bridges-plugin/Makefile View File

@@ -34,6 +34,9 @@ LINK_PLUGIN_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
LINK_PLUGIN_FLAGS += $(JUCE_EVENTS_LIBS)
LINK_PLUGIN_FLAGS += $(JUCE_GRAPHICS_LIBS)
LINK_PLUGIN_FLAGS += $(JUCE_GUI_BASICS_LIBS)
ifeq ($(MACOS),true)
LINK_PLUGIN_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
endif
endif

ifeq ($(HAVE_X11),true)
@@ -156,9 +159,13 @@ LIBS_NATIVE += \
../modules/juce_data_structures.a \
../modules/juce_events.a \
../modules/juce_graphics.a \
../modules/juce_gui_basics.a \
../modules/juce_gui_basics.a

ifeq ($(MACOS),true)
LIBS_NATIVE += \
../modules/juce_gui_extra.a
endif
endif

../../bin/carla-bridge-native: $(OBJS_NATIVE) $(LIBS_NATIVE)
$(CXX) $(OBJS_NATIVE) $(LIBS_START) $(LIBS_NATIVE) $(LIBS_END) $(NATIVE_LINK_FLAGS) -o $@
@@ -215,7 +222,8 @@ LIBS_POSIX32 += \
../modules/juce_data_structures.posix32.a \
../modules/juce_events.posix32.a \
../modules/juce_graphics.posix32.a \
../modules/juce_gui_basics.posix32.a
../modules/juce_gui_basics.posix32.a \
../modules/juce_gui_extra.posix32.a
endif

../../bin/carla-bridge-posix32: $(OBJS_POSIX32) $(LIBS_POSIX32)
@@ -273,7 +281,8 @@ LIBS_POSIX64 += \
../modules/juce_data_structures.posix64.a \
../modules/juce_events.posix64.a \
../modules/juce_graphics.posix64.a \
../modules/juce_gui_basics.posix64.a
../modules/juce_gui_basics.posix64.a \
../modules/juce_gui_extra.posix64.a
endif

../../bin/carla-bridge-posix64: $(OBJS_POSIX64) $(LIBS_POSIX64)


+ 6
- 3
source/discovery/Makefile View File

@@ -86,17 +86,20 @@ LIBS_posix32 += ../modules/juce_gui_basics.posix32.a
LIBS_posix64 += ../modules/juce_gui_basics.posix64.a
LIBS_win32 += ../modules/juce_gui_basics.win32.a
LIBS_win64 += ../modules/juce_gui_basics.win64.a
ifeq ($(MACOS),true)
LIBS += ../modules/juce_gui_extra.a
LIBS_posix32 += ../modules/juce_gui_extra.posix32.a
LIBS_posix64 += ../modules/juce_gui_extra.posix64.a
endif
LINK_FLAGS += $(JUCE_AUDIO_PROCESSORS_LIBS)
LINK_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
LINK_FLAGS += $(JUCE_EVENTS_LIBS)
LINK_FLAGS += $(JUCE_GRAPHICS_LIBS)
LINK_FLAGS += $(JUCE_GUI_BASICS_LIBS)
endif

ifeq ($(MACOS),true)
LIBS += ../modules/juce_gui_extra.a
LINK_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
endif
endif

POSIX_BUILD_FLAGS = $(BUILD_CXX_FLAGS)
POSIX_32BIT_FLAGS = $(32BIT_FLAGS) -L/usr/lib32 -L/usr/lib/i386-linux-gnu


Loading…
Cancel
Save