diff --git a/juce/AppConfig.h b/juce/AppConfig.h new file mode 100644 index 0000000..45c7ca5 --- /dev/null +++ b/juce/AppConfig.h @@ -0,0 +1,119 @@ +/* + + IMPORTANT! This file is auto-generated each time you save your + project - if you alter its contents, your changes may be overwritten! + + There's a section below where you can add your own custom code safely, and the + Introjucer will preserve the contents of that block, but the best way to change + any of these definitions is by using the Introjucer's project settings. + + Any commented-out settings will assume their default values. + +*/ + +#ifndef __JUCE_APPCONFIG_J0FH5E__ +#define __JUCE_APPCONFIG_J0FH5E__ + +//============================================================================== +// [BEGIN_USER_CODE_SECTION] + +// (You can add your own code in this section, and the Introjucer will not overwrite it) + +// [END_USER_CODE_SECTION] + +//============================================================================== +#define JUCE_MODULE_AVAILABLE_juce_core 1 +#define JUCE_MODULE_AVAILABLE_juce_cryptography 1 +#define JUCE_MODULE_AVAILABLE_juce_data_structures 1 +#define JUCE_MODULE_AVAILABLE_juce_events 1 +#define JUCE_MODULE_AVAILABLE_juce_graphics 1 +#define JUCE_MODULE_AVAILABLE_juce_gui_basics 1 +#define JUCE_MODULE_AVAILABLE_juce_gui_extra 1 +#define JUCE_MODULE_AVAILABLE_juce_opengl 1 +#define JUCE_MODULE_AVAILABLE_juce_video 1 + +//============================================================================== +// juce_core flags: + +#ifndef JUCE_FORCE_DEBUG + //#define JUCE_FORCE_DEBUG +#endif + +#ifndef JUCE_LOG_ASSERTIONS + //#define JUCE_LOG_ASSERTIONS +#endif + +#ifndef JUCE_CHECK_MEMORY_LEAKS + //#define JUCE_CHECK_MEMORY_LEAKS +#endif + +#ifndef JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES + //#define JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES +#endif + +#ifndef JUCE_INCLUDE_ZLIB_CODE + //#define JUCE_INCLUDE_ZLIB_CODE +#endif + +//============================================================================== +// juce_graphics flags: + +#ifndef JUCE_USE_COREIMAGE_LOADER + //#define JUCE_USE_COREIMAGE_LOADER +#endif + +#ifndef JUCE_USE_DIRECTWRITE + //#define JUCE_USE_DIRECTWRITE +#endif + +//============================================================================== +// juce_gui_basics flags: + +#ifndef JUCE_ENABLE_REPAINT_DEBUGGING + //#define JUCE_ENABLE_REPAINT_DEBUGGING +#endif + +#ifndef JUCE_USE_XSHM + //#define JUCE_USE_XSHM +#endif + +#ifndef JUCE_USE_XRENDER + //#define JUCE_USE_XRENDER +#endif + +#ifndef JUCE_USE_XCURSOR + //#define JUCE_USE_XCURSOR +#endif + +//============================================================================== +// juce_gui_extra flags: + +#ifndef JUCE_WEB_BROWSER + //#define JUCE_WEB_BROWSER +#endif + +#ifndef JUCE_ENABLE_LIVE_CONSTANT_EDITOR + //#define JUCE_ENABLE_LIVE_CONSTANT_EDITOR +#endif + +//============================================================================== +// juce_video flags: + +#ifndef JUCE_DIRECTSHOW + //#define JUCE_DIRECTSHOW +#endif + +#ifndef JUCE_MEDIAFOUNDATION + //#define JUCE_MEDIAFOUNDATION +#endif + +#ifndef JUCE_QUICKTIME + //#define JUCE_QUICKTIME +#endif + +#ifndef JUCE_USE_CAMERA + //#define JUCE_USE_CAMERA +#endif + + +#endif // __JUCE_APPCONFIG_J0FH5E__ diff --git a/juce/JuceHeader.h b/juce/JuceHeader.h new file mode 100644 index 0000000..9278cbd --- /dev/null +++ b/juce/JuceHeader.h @@ -0,0 +1,39 @@ +/* + + IMPORTANT! This file is auto-generated each time you save your + project - if you alter its contents, your changes may be overwritten! + + This is the header file that your files should include in order to get all the + JUCE library headers. You should avoid including the JUCE headers directly in + your own source files, because that wouldn't pick up the correct configuration + options for your app. + +*/ + +#ifndef __APPHEADERFILE_J0FH5E__ +#define __APPHEADERFILE_J0FH5E__ + +#include "AppConfig.h" +#include "modules/juce_core/juce_core.h" +#include "modules/juce_data_structures/juce_data_structures.h" +#include "modules/juce_events/juce_events.h" +#include "modules/juce_graphics/juce_graphics.h" +#include "modules/juce_gui_basics/juce_gui_basics.h" +#include "modules/juce_gui_extra/juce_gui_extra.h" +#include "modules/juce_opengl/juce_opengl.h" +#include "modules/juce_video/juce_video.h" + +#if ! DONT_SET_USING_JUCE_NAMESPACE + // If your code uses a lot of JUCE classes, then this will obviously save you + // a lot of typing, but can be disabled by setting DONT_SET_USING_JUCE_NAMESPACE. + using namespace juce; +#endif + +namespace ProjectInfo +{ + const char* const projectName = "RBM"; + const char* const versionString = "1.0.0"; + const int versionNumber = 0x10000; +} + +#endif // __APPHEADERFILE_J0FH5E__ diff --git a/juce/Makefile b/juce/Makefile new file mode 100644 index 0000000..1a4b05c --- /dev/null +++ b/juce/Makefile @@ -0,0 +1,32 @@ +CONFIG ?= release +BUILD_DIR := ./build/${CONFIG} +JUCE_ROOT=../../JUCE-3.1.1/modules +SRCS := ${JUCE_ROOT}/juce_core/juce_core.cpp +SRCS += ${JUCE_ROOT}/juce_data_structures/juce_data_structures.cpp +SRCS += ${JUCE_ROOT}/juce_events/juce_events.cpp +SRCS += ${JUCE_ROOT}/juce_graphics/juce_graphics.cpp +SRCS += ${JUCE_ROOT}/juce_gui_basics/juce_gui_basics.cpp +SRCS += ${JUCE_ROOT}/juce_gui_extra/juce_gui_extra.cpp +SRCS += ${JUCE_ROOT}/juce_opengl/juce_opengl.cpp +OBJS := $(addprefix ${BUILD_DIR}/, $(notdir $(subst .cpp,.o,$(SRCS)))) + +all: ${BUILD_DIR}/juce.a + +CXXFLAGS += -std=c++11 +CXXFLAGS_debug := ${CXXFLAGS} -O0 -g +CXXFLAGS_release := ${CXXFLAGS} -O2 + +INCLUDES := -I./ -I/usr/include/freetype2 +LIBS := -lfreetype -lpthread -ldl -lrt -lX11 -lGL -lXinerama -lXext + +${OBJS}: ${SRCS} ${BUILD_DIR} + g++ ${CXXFLAGS_${CONFIG}} ${DEFINES} ${INCLUDES} -o $@ -c $< + +${BUILD_DIR}/juce.a: ${OBJS} + ar -q $@ ${OBJS} + +${BUILD_DIR}: + mkdir -p $@ + +clean: + rm -rf ${BUILD_DIR}/* \ No newline at end of file