diff --git a/extras/binarybuilder/BinaryBuilder.jucer b/extras/binarybuilder/BinaryBuilder.jucer new file mode 100644 index 0000000000..2b792a79f0 --- /dev/null +++ b/extras/binarybuilder/BinaryBuilder.jucer @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + diff --git a/extras/binarybuilder/Builds/Linux/Makefile b/extras/binarybuilder/Builds/Linux/Makefile new file mode 100644 index 0000000000..75b30cf9eb --- /dev/null +++ b/extras/binarybuilder/Builds/Linux/Makefile @@ -0,0 +1,69 @@ +# Automatically generated makefile, created by the Jucer +# Don't edit this file! Your changes will be overwritten when you re-save the Jucer project! + +ifndef CONFIG + CONFIG=Debug +endif + +DEPFLAGS := $(if $(word 2, $(TARGET_ARCH)), , -MMD) + +ifeq ($(CONFIG),Debug) + BINDIR := build + LIBDIR := build + OBJDIR := build/intermediate/Debug + OUTDIR := build + CPPFLAGS := $(DEPFLAGS) -D "LINUX=1" -D "DEBUG=1" -D "_DEBUG=1" -I "/usr/include" -I "/usr/include/freetype2" + CFLAGS += $(CPPFLAGS) $(TARGET_ARCH) -g -ggdb -O0 + CXXFLAGS += $(CFLAGS) + LDFLAGS += -L$(BINDIR) -L$(LIBDIR) -mwindows -L"/usr/X11R6/lib/" -L"../../../../bin" -lfreetype -lpthread -lrt -lX11 -lGL -lGLU -lXinerama -lasound + LDDEPS := + RESFLAGS := -D "LINUX=1" -D "DEBUG=1" -D "_DEBUG=1" -I "/usr/include" -I "/usr/include/freetype2" + TARGET := BinaryBuilder + BLDCMD = $(CXX) -o $(OUTDIR)/$(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(TARGET_ARCH) +endif + +ifeq ($(CONFIG),Release) + BINDIR := build + LIBDIR := build + OBJDIR := build/intermediate/Release + OUTDIR := build + CPPFLAGS := $(DEPFLAGS) -D "LINUX=1" -D "NDEBUG=1" -I "/usr/include" -I "/usr/include/freetype2" + CFLAGS += $(CPPFLAGS) $(TARGET_ARCH) -Os + CXXFLAGS += $(CFLAGS) + LDFLAGS += -L$(BINDIR) -L$(LIBDIR) -mwindows -L"/usr/X11R6/lib/" -L"../../../../bin" -lfreetype -lpthread -lrt -lX11 -lGL -lGLU -lXinerama -lasound + LDDEPS := + RESFLAGS := -D "LINUX=1" -D "NDEBUG=1" -I "/usr/include" -I "/usr/include/freetype2" + TARGET := BinaryBuilder + BLDCMD = $(CXX) -o $(OUTDIR)/$(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(TARGET_ARCH) +endif + +OBJECTS := \ + $(OBJDIR)/Main.o \ + $(OBJDIR)/JuceLibraryCode.o \ + +.PHONY: clean + +$(OUTDIR)/$(TARGET): $(OBJECTS) $(LDDEPS) $(RESOURCES) + @echo Linking BinaryBuilder + -@mkdir -p $(BINDIR) + -@mkdir -p $(LIBDIR) + -@mkdir -p $(OUTDIR) + @$(BLDCMD) + +clean: + @echo Cleaning BinaryBuilder + -@rm -f $(OUTDIR)/$(TARGET) + -@rm -rf $(OBJDIR)/* + -@rm -rf $(OBJDIR) + +$(OBJDIR)/Main.o: ../../Source/Main.cpp + -@mkdir -p $(OBJDIR) + @echo $(notdir $<) + @$(CXX) $(CXXFLAGS) -o "$@" -c "$<" + +$(OBJDIR)/JuceLibraryCode.o: ../../JuceLibraryCode/JuceLibraryCode.cpp + -@mkdir -p $(OBJDIR) + @echo $(notdir $<) + @$(CXX) $(CXXFLAGS) -o "$@" -c "$<" + +-include $(OBJECTS:%.o=%.d) diff --git a/extras/binarybuilder/Builds/MacOSX/BinaryBuilder.xcodeproj/project.pbxproj b/extras/binarybuilder/Builds/MacOSX/BinaryBuilder.xcodeproj/project.pbxproj new file mode 100644 index 0000000000..0f3eae7537 --- /dev/null +++ b/extras/binarybuilder/Builds/MacOSX/BinaryBuilder.xcodeproj/project.pbxproj @@ -0,0 +1,152 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 44; + objects = { + + 2605D50ADD7E8A72B205E6A2 = { isa = PBXBuildFile; fileRef = 69844FA1F639F3E4F8DD45DE; }; + C2FB64601A9322847B92D291 = { isa = PBXBuildFile; fileRef = 95F3347A6AECE95701B1F9BF; }; + 12D364CEAA04D2C415834CB0 = { isa = PBXBuildFile; fileRef = AC023778CC33071C047D6017; }; + 5021E445BC6C92D69EA25DF4 = { isa = PBXBuildFile; fileRef = 9322AF49389FDCA45C33F0E8; }; + 498351EF00C25D11D1BD70AB = { isa = PBXBuildFile; fileRef = E443D78BE267D93619CF4C67; }; + AA22C2D51264E0345EF1B382 = { isa = PBXBuildFile; fileRef = D55F4D95240CC3E9740066EE; }; + 231F639DD3167C4D855C0417 = { isa = PBXBuildFile; fileRef = 8B951FEAF27DFD6D48D88EE4; }; + E504F6A5707F3F672DB52BA8 = { isa = PBXBuildFile; fileRef = E7CF9A9BB4AA58661D56F504; }; + 4B8EC1DA657A607095642999 = { isa = PBXBuildFile; fileRef = 5EB254E6536E73B74A5DC2E4; }; + 195655080445BD3F2EC47BC7 = { isa = PBXBuildFile; fileRef = 398ABD3E4F5AF81DF9EBDF9C; }; + B953A20FA177E32F3BB783D3 = { isa = PBXBuildFile; fileRef = 2DE49F0EE55E1CD3D8F2D8C2; }; + CE0DE73B6610F53FD29D125B = { isa = PBXBuildFile; fileRef = 691A04DB549A40E157FA8094; }; + 44F98CEDAF273AB9680FD4A0 = { isa = PBXBuildFile; fileRef = 0A0FA87ED607057BA54E4BBD; }; + 69844FA1F639F3E4F8DD45DE = { isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = ""; }; + 95F3347A6AECE95701B1F9BF = { isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Carbon.framework; path = /System/Library/Frameworks/Carbon.framework; sourceTree = ""; }; + AC023778CC33071C047D6017 = { isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = /System/Library/Frameworks/IOKit.framework; sourceTree = ""; }; + 9322AF49389FDCA45C33F0E8 = { isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreAudio.framework; path = /System/Library/Frameworks/CoreAudio.framework; sourceTree = ""; }; + E443D78BE267D93619CF4C67 = { isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMIDI.framework; path = /System/Library/Frameworks/CoreMIDI.framework; sourceTree = ""; }; + D55F4D95240CC3E9740066EE = { isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = /System/Library/Frameworks/WebKit.framework; sourceTree = ""; }; + 8B951FEAF27DFD6D48D88EE4 = { isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = DiscRecording.framework; path = /System/Library/Frameworks/DiscRecording.framework; sourceTree = ""; }; + E7CF9A9BB4AA58661D56F504 = { isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGL.framework; path = /System/Library/Frameworks/OpenGL.framework; sourceTree = ""; }; + 5EB254E6536E73B74A5DC2E4 = { isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = /System/Library/Frameworks/QuartzCore.framework; sourceTree = ""; }; + 398ABD3E4F5AF81DF9EBDF9C = { isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QTKit.framework; path = /System/Library/Frameworks/QTKit.framework; sourceTree = ""; }; + 2DE49F0EE55E1CD3D8F2D8C2 = { isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuickTime.framework; path = /System/Library/Frameworks/QuickTime.framework; sourceTree = ""; }; + 7A158D02E2EDD703A0CFA8BC = { isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = BinaryBuilder; sourceTree = BUILT_PRODUCTS_DIR; }; + 691A04DB549A40E157FA8094 = { isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = Main.cpp; path = ../../Source/Main.cpp; sourceTree = SOURCE_ROOT; }; + B1B7B20A8E65BBC42DF14B0D = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = AppConfig.h; path = ../../JuceLibraryCode/AppConfig.h; sourceTree = SOURCE_ROOT; }; + 5EA9A3112DD69059009E0F26 = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = JuceHeader.h; path = ../../JuceLibraryCode/JuceHeader.h; sourceTree = SOURCE_ROOT; }; + 0A0FA87ED607057BA54E4BBD = { isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; name = JuceLibraryCode.mm; path = ../../JuceLibraryCode/JuceLibraryCode.mm; sourceTree = SOURCE_ROOT; }; + 8E18B1DFE36F2C6EE0ECA3EC = { isa = PBXGroup; children = ( + 691A04DB549A40E157FA8094 ); name = Source; sourceTree = ""; }; + 5FBD6CC457B578F506C48225 = { isa = PBXGroup; children = ( + B1B7B20A8E65BBC42DF14B0D, + 5EA9A3112DD69059009E0F26, + 0A0FA87ED607057BA54E4BBD ); name = "Juce Library Code"; sourceTree = ""; }; + 28DCE1BE5F05AD011EBA6CF3 = { isa = PBXGroup; children = ( + 968E587E55738CB4F006379C ); name = Resources; sourceTree = ""; }; + 949924B27260A9CA22A8DA28 = { isa = PBXGroup; children = ( + 69844FA1F639F3E4F8DD45DE, + 95F3347A6AECE95701B1F9BF, + AC023778CC33071C047D6017, + 9322AF49389FDCA45C33F0E8, + E443D78BE267D93619CF4C67, + D55F4D95240CC3E9740066EE, + 8B951FEAF27DFD6D48D88EE4, + E7CF9A9BB4AA58661D56F504, + 5EB254E6536E73B74A5DC2E4, + 398ABD3E4F5AF81DF9EBDF9C, + 2DE49F0EE55E1CD3D8F2D8C2 ); name = Frameworks; sourceTree = ""; }; + 5D24E2ED36FDAADA5AFC30D6 = { isa = PBXGroup; children = ( + 7A158D02E2EDD703A0CFA8BC ); name = Products; sourceTree = ""; }; + 97D16C110AD333B7A7B19523 = { isa = PBXGroup; children = ( + 8E18B1DFE36F2C6EE0ECA3EC, + 5FBD6CC457B578F506C48225, + 28DCE1BE5F05AD011EBA6CF3, + 949924B27260A9CA22A8DA28, + 5D24E2ED36FDAADA5AFC30D6 ); name = Source; sourceTree = ""; }; + 863BC4983AB677B34020A7E1 = { isa = XCBuildConfiguration; buildSettings = { + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + GCC_MODEL_TUNING = G5; + PREBINDING = NO; + ZERO_LINK = NO; + GCC_INLINES_ARE_PRIVATE_EXTERN = YES; + USER_HEADER_SEARCH_PATHS = " $(inherited)"; + GCC_OPTIMIZATION_LEVEL = 0; + ONLY_ACTIVE_ARCH = YES; + COPY_PHASE_STRIP = NO; + GCC_PREPROCESSOR_DEFINITIONS = ( + "_DEBUG=1", + "DEBUG=1 "); }; name = Debug; }; + A116EE5C62789530CF75BA63 = { isa = XCBuildConfiguration; buildSettings = { + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + GCC_MODEL_TUNING = G5; + PREBINDING = NO; + ZERO_LINK = NO; + GCC_INLINES_ARE_PRIVATE_EXTERN = YES; + USER_HEADER_SEARCH_PATHS = " $(inherited)"; + GCC_OPTIMIZATION_LEVEL = s; + GCC_GENERATE_DEBUGGING_SYMBOLS = NO; + GCC_SYMBOLS_PRIVATE_EXTERN = YES; + GCC_PREPROCESSOR_DEFINITIONS = ( + "_NDEBUG=1", + "NDEBUG=1 "); }; name = Release; }; + DA7B11D801B220A70E79666D = { isa = XCBuildConfiguration; buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + GCC_VERSION = 4.0; + GCC_C_LANGUAGE_STANDARD = c99; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_CHECK_SWITCH_STATEMENTS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + GCC_WARN_MISSING_PARENTHESES = YES; + GCC_WARN_NON_VIRTUAL_DESTRUCTOR = YES; + GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + INFOPLIST_FILE = Info.plist; + PRODUCT_NAME = "BinaryBuilder"; + COPY_PHASE_STRIP = NO; + GCC_DYNAMIC_NO_PIC = NO; + GCC_ENABLE_FIX_AND_CONTINUE = YES; + MACOSX_DEPLOYMENT_TARGET_ppc = 10.4; }; name = Debug; }; + DF5425353B7CCCB990957226 = { isa = XCBuildConfiguration; buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + GCC_VERSION = 4.0; + GCC_C_LANGUAGE_STANDARD = c99; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_CHECK_SWITCH_STATEMENTS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + GCC_WARN_MISSING_PARENTHESES = YES; + GCC_WARN_NON_VIRTUAL_DESTRUCTOR = YES; + GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + INFOPLIST_FILE = Info.plist; + PRODUCT_NAME = "BinaryBuilder"; + MACOSX_DEPLOYMENT_TARGET_ppc = 10.4; }; name = Release; }; + DCF3DECB3E449934F432BCE5 = { isa = XCConfigurationList; buildConfigurations = ( + DA7B11D801B220A70E79666D, + DF5425353B7CCCB990957226 ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Debug; }; + 4D9C43C6237ADA72C875B760 = { isa = XCConfigurationList; buildConfigurations = ( + 863BC4983AB677B34020A7E1, + A116EE5C62789530CF75BA63 ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Debug; }; + 021B93602492F70DDC7B752A = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; + D6DEA193D099F447BC2BC812 = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + CE0DE73B6610F53FD29D125B, + 44F98CEDAF273AB9680FD4A0 ); runOnlyForDeploymentPostprocessing = 0; }; + 90724B03672FC7862B671969 = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 2605D50ADD7E8A72B205E6A2, + C2FB64601A9322847B92D291, + 12D364CEAA04D2C415834CB0, + 5021E445BC6C92D69EA25DF4, + 498351EF00C25D11D1BD70AB, + AA22C2D51264E0345EF1B382, + 231F639DD3167C4D855C0417, + E504F6A5707F3F672DB52BA8, + 4B8EC1DA657A607095642999, + 195655080445BD3F2EC47BC7, + B953A20FA177E32F3BB783D3 ); runOnlyForDeploymentPostprocessing = 0; }; + 683DA490C2B056506C3A8D7B = { isa = PBXNativeTarget; buildConfigurationList = 4D9C43C6237ADA72C875B760; buildPhases = ( + 021B93602492F70DDC7B752A, + D6DEA193D099F447BC2BC812, + 90724B03672FC7862B671969 ); buildRules = ( ); dependencies = ( ); name = BinaryBuilder; productInstallPath = "$(HOME)/Applications"; productName = BinaryBuilder; productReference = 7A158D02E2EDD703A0CFA8BC; productType = "com.apple.product-type.tool"; }; + EF47A66EA997AB0AD6AB1E37 = { isa = PBXProject; buildConfigurationList = DCF3DECB3E449934F432BCE5; compatibilityVersion = "Xcode 3.0"; hasScannedForEncodings = 0; mainGroup = 97D16C110AD333B7A7B19523; projectDirPath = ""; projectRoot = ""; targets = ( 683DA490C2B056506C3A8D7B ); }; + }; + rootObject = EF47A66EA997AB0AD6AB1E37; +} diff --git a/extras/binarybuilder/Builds/VisualStudio2005/BinaryBuilder.sln b/extras/binarybuilder/Builds/VisualStudio2005/BinaryBuilder.sln new file mode 100644 index 0000000000..c119dacdac --- /dev/null +++ b/extras/binarybuilder/Builds/VisualStudio2005/BinaryBuilder.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 8.00 +# Visual C++ Express 2005 +Project("{C479B19D-B6A5-76F6-B2B7-67CB084FECC6}") = "BinaryBuilder", "BinaryBuilder.vcproj", "{BE095571-69DE-975F-8583-455F8A65BB32}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {BE095571-69DE-975F-8583-455F8A65BB32}.Debug|Win32.ActiveCfg = Debug|Win32 + {BE095571-69DE-975F-8583-455F8A65BB32}.Debug|Win32.Build.0 = Debug|Win32 + {BE095571-69DE-975F-8583-455F8A65BB32}.Release|Win32.ActiveCfg = Release|Win32 + {BE095571-69DE-975F-8583-455F8A65BB32}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/extras/binarybuilder/Builds/VisualStudio2005/BinaryBuilder.vcproj b/extras/binarybuilder/Builds/VisualStudio2005/BinaryBuilder.vcproj new file mode 100644 index 0000000000..f6d35103af --- /dev/null +++ b/extras/binarybuilder/Builds/VisualStudio2005/BinaryBuilder.vcproj @@ -0,0 +1,146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/extras/binarybuilder/Builds/VisualStudio2008/BinaryBuilder.sln b/extras/binarybuilder/Builds/VisualStudio2008/BinaryBuilder.sln new file mode 100644 index 0000000000..c7417f0c21 --- /dev/null +++ b/extras/binarybuilder/Builds/VisualStudio2008/BinaryBuilder.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 10.00 +# Visual C++ Express 2008 +Project("{C479B19D-B6A5-76F6-B2B7-67CB084FECC6}") = "BinaryBuilder", "BinaryBuilder.vcproj", "{BE095571-69DE-975F-8583-455F8A65BB32}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {BE095571-69DE-975F-8583-455F8A65BB32}.Debug|Win32.ActiveCfg = Debug|Win32 + {BE095571-69DE-975F-8583-455F8A65BB32}.Debug|Win32.Build.0 = Debug|Win32 + {BE095571-69DE-975F-8583-455F8A65BB32}.Release|Win32.ActiveCfg = Release|Win32 + {BE095571-69DE-975F-8583-455F8A65BB32}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/extras/binarybuilder/Builds/VisualStudio2008/BinaryBuilder.vcproj b/extras/binarybuilder/Builds/VisualStudio2008/BinaryBuilder.vcproj new file mode 100644 index 0000000000..39ae55a54a --- /dev/null +++ b/extras/binarybuilder/Builds/VisualStudio2008/BinaryBuilder.vcproj @@ -0,0 +1,146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/extras/binarybuilder/JuceLibraryCode/AppConfig.h b/extras/binarybuilder/JuceLibraryCode/AppConfig.h new file mode 100644 index 0000000000..cdb56372fb --- /dev/null +++ b/extras/binarybuilder/JuceLibraryCode/AppConfig.h @@ -0,0 +1,38 @@ +/* + + IMPORTANT! This file is auto-generated by the Jucer each time you save your + project - if you alter its contents, your changes may be overwritten! + The following flags are Juce compilation options, taken fron juce_Config.h + + If you want to change any of these values, use the Jucer to do so, rather than + editing this file directly! + + Any commented-out settings will fall back to using the default values that + they are given in juce_Config.h + +*/ + +//#define JUCE_FORCE_DEBUG +//#define JUCE_LOG_ASSERTIONS +//#define JUCE_ASIO +//#define JUCE_WASAPI +//#define JUCE_DIRECTSOUND +//#define JUCE_ALSA +//#define JUCE_QUICKTIME +//#define JUCE_OPENGL +//#define JUCE_USE_FLAC +//#define JUCE_USE_OGGVORBIS +//#define JUCE_USE_CDBURNER +//#define JUCE_USE_CDREADER +//#define JUCE_USE_CAMERA +//#define JUCE_ENABLE_REPAINT_DEBUGGING +//#define JUCE_USE_XINERAMA +//#define JUCE_USE_XSHM +//#define JUCE_PLUGINHOST_VST +//#define JUCE_PLUGINHOST_AU +#define JUCE_ONLY_BUILD_CORE_LIBRARY 1 +//#define JUCE_WEB_BROWSER +//#define JUCE_SUPPORT_CARBON +//#define JUCE_CHECK_MEMORY_LEAKS +//#define JUCE_CATCH_UNHANDLED_EXCEPTIONS +//#define JUCE_STRINGS_ARE_UNICODE diff --git a/extras/binarybuilder/JuceLibraryCode/JuceHeader.h b/extras/binarybuilder/JuceLibraryCode/JuceHeader.h new file mode 100644 index 0000000000..078c263ced --- /dev/null +++ b/extras/binarybuilder/JuceLibraryCode/JuceHeader.h @@ -0,0 +1,19 @@ +/* + + IMPORTANT! This file is auto-generated by the Jucer 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 NOT include juce.h or juce_amalgamated.h directly in + your own source files, because that wouldn't pick up the correct Juce configuration + options for your app. + +*/ + +#ifndef __APPHEADERFILE_AC205C4C__ +#define __APPHEADERFILE_AC205C4C__ + +#include "AppConfig.h" +#include "../../../juce_amalgamated.h" + +#endif // __APPHEADERFILE_AC205C4C__ diff --git a/extras/binarybuilder/JuceLibraryCode/JuceLibraryCode.cpp b/extras/binarybuilder/JuceLibraryCode/JuceLibraryCode.cpp new file mode 100644 index 0000000000..98c4ab5e25 --- /dev/null +++ b/extras/binarybuilder/JuceLibraryCode/JuceLibraryCode.cpp @@ -0,0 +1,15 @@ +/* + + IMPORTANT! This file is auto-generated by the Jucer each time you save your + project - if you alter its contents, your changes may be overwritten! + + This file pulls in all the Juce source code, and builds it using the settings + defined in AppConfig.h. + + If you want to change the method by which Juce is linked into your app, use the + Jucer to change it, rather than trying to edit this file directly. + +*/ + +#include "AppConfig.h" +#include "../../../amalgamation/juce_amalgamated_template.cpp" diff --git a/extras/binarybuilder/JuceLibraryCode/JuceLibraryCode.mm b/extras/binarybuilder/JuceLibraryCode/JuceLibraryCode.mm new file mode 100644 index 0000000000..98c4ab5e25 --- /dev/null +++ b/extras/binarybuilder/JuceLibraryCode/JuceLibraryCode.mm @@ -0,0 +1,15 @@ +/* + + IMPORTANT! This file is auto-generated by the Jucer each time you save your + project - if you alter its contents, your changes may be overwritten! + + This file pulls in all the Juce source code, and builds it using the settings + defined in AppConfig.h. + + If you want to change the method by which Juce is linked into your app, use the + Jucer to change it, rather than trying to edit this file directly. + +*/ + +#include "AppConfig.h" +#include "../../../amalgamation/juce_amalgamated_template.cpp" diff --git a/extras/binarybuilder/BinaryBuilder.cpp b/extras/binarybuilder/Source/Main.cpp similarity index 93% rename from extras/binarybuilder/BinaryBuilder.cpp rename to extras/binarybuilder/Source/Main.cpp index 238397c6c0..1cda5da322 100644 --- a/extras/binarybuilder/BinaryBuilder.cpp +++ b/extras/binarybuilder/Source/Main.cpp @@ -4,15 +4,12 @@ Utility to turn a bunch of binary files into a .cpp file and .h file full of data so they can be built directly into an executable. - Copyright 2007 by Julian Storer. - Use this code at your own risk! It carries no warranty! ============================================================================== */ -#include "juce_AppConfig.h" -#include "../../juce_amalgamated.h" +#include "../JuceLibraryCode/JuceHeader.h" //============================================================================== @@ -70,12 +67,14 @@ static bool isHiddenFile (const File& f, const File& root) || (f.getParentDirectory() != root && isHiddenFile (f.getParentDirectory(), root)); } + //============================================================================== int main (int argc, char* argv[]) { - // If you're running a command-line app, you need to initialise juce manually - // before calling any Juce functionality.. - initialiseJuce_NonGUI(); + // This object makes sure that Juce is initialised and shut down correctly + // for the scope of this function call. Make sure this declaration is the + // first statement of this function. + const ScopedJuceInitialiser_NonGUI juceSystemInitialiser; std::cout << "\n BinaryBuilder! Copyright 2007 by Julian Storer - www.rawmaterialsoftware.com\n\n"; @@ -201,7 +200,5 @@ int main (int argc, char* argv[]) std::cout << std::endl << " Total size of binary data: " << totalBytes << " bytes" << std::endl; - shutdownJuce_NonGUI(); - return 0; } diff --git a/extras/binarybuilder/juce_AppConfig.h b/extras/binarybuilder/juce_AppConfig.h deleted file mode 100644 index aa04cb8e61..0000000000 --- a/extras/binarybuilder/juce_AppConfig.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - This file contains settings that you might want to explicitly apply to - your Juce build. - - These flags enable or disable juce features - if you're linking to juce as - a library, then to change them, you'd need to alter your juce_Config.h file and - recompile the juce lib. But because we're using the amalgamated file, you can - just include this file before including your juce_amalgamated.cpp file to - have the same effect. - - If you leave any of these commented-out, they'll take on the default value - assigned to them in juce_Config.h, so to force them on or off, just set them - to an explicit 0 or 1 in here. -*/ - -#define JUCE_ONLY_BUILD_CORE_LIBRARY 1 -//#define JUCE_FORCE_DEBUG 1 -//#define JUCE_LOG_ASSERTIONS 1 -//#define JUCE_ASIO 1 -//#define JUCE_ALSA 1 -//#define JUCE_QUICKTIME 1 -//#define JUCE_OPENGL 1 -//#define JUCE_USE_FLAC 1 -//#define JUCE_USE_OGGVORBIS 1 -//#define JUCE_USE_CDBURNER 1 -//#define JUCE_ENABLE_REPAINT_DEBUGGING 1 -//#define JUCE_USE_XINERAMA 1 -//#define JUCE_USE_XSHM 1 -//#define JUCE_PLUGINHOST_VST 1 -//#define JUCE_PLUGINHOST_AU 1 -//#define JUCE_CHECK_MEMORY_LEAKS 1 -//#define JUCE_CATCH_UNHANDLED_EXCEPTIONS 1 -//#define JUCE_STRINGS_ARE_UNICODE 1 diff --git a/extras/binarybuilder/juce_LibrarySource.cpp b/extras/binarybuilder/juce_LibrarySource.cpp deleted file mode 100644 index db6b7e85fd..0000000000 --- a/extras/binarybuilder/juce_LibrarySource.cpp +++ /dev/null @@ -1,12 +0,0 @@ - -/* - This file includes the entire juce source tree via the amalgamated file. - - You could add the amalgamated file directly to your project, but doing it - like this allows you to put your app's config settings in the - juce_AppConfig.h file and have them applied to both the juce headers and - the source code. -*/ - -#include "juce_AppConfig.h" -#include "../../juce_amalgamated.cpp" diff --git a/extras/binarybuilder/juce_LibrarySource.mm b/extras/binarybuilder/juce_LibrarySource.mm deleted file mode 100644 index fcbdfc2744..0000000000 --- a/extras/binarybuilder/juce_LibrarySource.mm +++ /dev/null @@ -1,11 +0,0 @@ - -/* - This file includes the entire juce source tree via the amalgamated file. - - You could add the amalgamated file directly to your project, but doing it - like this allows you to put your app's config settings in the - juce_AppConfig.h file and have them applied to both the juce headers and - the source code. -*/ - -#include "juce_LibrarySource.cpp" diff --git a/extras/binarybuilder/mac/BinaryBuilder.xcodeproj/project.pbxproj b/extras/binarybuilder/mac/BinaryBuilder.xcodeproj/project.pbxproj deleted file mode 100644 index 397b3c8289..0000000000 --- a/extras/binarybuilder/mac/BinaryBuilder.xcodeproj/project.pbxproj +++ /dev/null @@ -1,231 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 45; - objects = { - -/* Begin PBXBuildFile section */ - 8417E77B0F55D0DD00C91867 /* BinaryBuilder.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 8417E77A0F55D0DD00C91867 /* BinaryBuilder.cpp */; }; - 844B0AA40F52DCA000B2F1FD /* ApplicationServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 844B0AA00F52DCA000B2F1FD /* ApplicationServices.framework */; }; - 844B0AA50F52DCA000B2F1FD /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 844B0AA10F52DCA000B2F1FD /* Cocoa.framework */; }; - 844B0AA60F52DCA000B2F1FD /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 844B0AA20F52DCA000B2F1FD /* CoreFoundation.framework */; }; - 844B0AA70F52DCA000B2F1FD /* CoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 844B0AA30F52DCA000B2F1FD /* CoreServices.framework */; }; - 844B0AB30F52DCCD00B2F1FD /* juce_LibrarySource.mm in Sources */ = {isa = PBXBuildFile; fileRef = 844B0AB20F52DCCD00B2F1FD /* juce_LibrarySource.mm */; }; - 844B0AC30F52DEB900B2F1FD /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 844B0AC20F52DEB900B2F1FD /* IOKit.framework */; }; - 844B0ACC0F52DECD00B2F1FD /* CoreAudio.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 844B0ACB0F52DECD00B2F1FD /* CoreAudio.framework */; }; -/* End PBXBuildFile section */ - -/* Begin PBXCopyFilesBuildPhase section */ - 8DD76FAF0486AB0100D96B5E /* CopyFiles */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 8; - dstPath = /usr/share/man/man1/; - dstSubfolderSpec = 0; - files = ( - ); - runOnlyForDeploymentPostprocessing = 1; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 8417E77A0F55D0DD00C91867 /* BinaryBuilder.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = BinaryBuilder.cpp; path = ../BinaryBuilder.cpp; sourceTree = SOURCE_ROOT; }; - 844B0A950F52DC4200B2F1FD /* juce_AppConfig.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = juce_AppConfig.h; path = ../juce_AppConfig.h; sourceTree = SOURCE_ROOT; }; - 844B0AA00F52DCA000B2F1FD /* ApplicationServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ApplicationServices.framework; path = /System/Library/Frameworks/ApplicationServices.framework; sourceTree = ""; }; - 844B0AA10F52DCA000B2F1FD /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = ""; }; - 844B0AA20F52DCA000B2F1FD /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = /System/Library/Frameworks/CoreFoundation.framework; sourceTree = ""; }; - 844B0AA30F52DCA000B2F1FD /* CoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreServices.framework; path = /System/Library/Frameworks/CoreServices.framework; sourceTree = ""; }; - 844B0AB20F52DCCD00B2F1FD /* juce_LibrarySource.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = juce_LibrarySource.mm; path = ../juce_LibrarySource.mm; sourceTree = SOURCE_ROOT; }; - 844B0AC20F52DEB900B2F1FD /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = /System/Library/Frameworks/IOKit.framework; sourceTree = ""; }; - 844B0ACB0F52DECD00B2F1FD /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreAudio.framework; path = /System/Library/Frameworks/CoreAudio.framework; sourceTree = ""; }; - 8DD76FB20486AB0100D96B5E /* binarybuilder */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = binarybuilder; sourceTree = BUILT_PRODUCTS_DIR; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 8DD76FAD0486AB0100D96B5E /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 844B0AA40F52DCA000B2F1FD /* ApplicationServices.framework in Frameworks */, - 844B0AA50F52DCA000B2F1FD /* Cocoa.framework in Frameworks */, - 844B0AA60F52DCA000B2F1FD /* CoreFoundation.framework in Frameworks */, - 844B0AA70F52DCA000B2F1FD /* CoreServices.framework in Frameworks */, - 844B0AC30F52DEB900B2F1FD /* IOKit.framework in Frameworks */, - 844B0ACC0F52DECD00B2F1FD /* CoreAudio.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 08FB7794FE84155DC02AAC07 /* Amalgamator */ = { - isa = PBXGroup; - children = ( - 08FB7795FE84155DC02AAC07 /* Source */, - 1AB674ADFE9D54B511CA2CBB /* Products */, - 844B0A9F0F52DC7400B2F1FD /* Frameworks */, - ); - name = Amalgamator; - sourceTree = ""; - }; - 08FB7795FE84155DC02AAC07 /* Source */ = { - isa = PBXGroup; - children = ( - 8417E77A0F55D0DD00C91867 /* BinaryBuilder.cpp */, - 844B0AB20F52DCCD00B2F1FD /* juce_LibrarySource.mm */, - 844B0A950F52DC4200B2F1FD /* juce_AppConfig.h */, - ); - name = Source; - sourceTree = ""; - }; - 1AB674ADFE9D54B511CA2CBB /* Products */ = { - isa = PBXGroup; - children = ( - 8DD76FB20486AB0100D96B5E /* binarybuilder */, - ); - name = Products; - sourceTree = ""; - }; - 844B0A9F0F52DC7400B2F1FD /* Frameworks */ = { - isa = PBXGroup; - children = ( - 844B0ACB0F52DECD00B2F1FD /* CoreAudio.framework */, - 844B0AC20F52DEB900B2F1FD /* IOKit.framework */, - 844B0AA00F52DCA000B2F1FD /* ApplicationServices.framework */, - 844B0AA10F52DCA000B2F1FD /* Cocoa.framework */, - 844B0AA20F52DCA000B2F1FD /* CoreFoundation.framework */, - 844B0AA30F52DCA000B2F1FD /* CoreServices.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 8DD76FA90486AB0100D96B5E /* BinaryBuilder */ = { - isa = PBXNativeTarget; - buildConfigurationList = 1DEB928508733DD80010E9CD /* Build configuration list for PBXNativeTarget "BinaryBuilder" */; - buildPhases = ( - 8DD76FAB0486AB0100D96B5E /* Sources */, - 8DD76FAD0486AB0100D96B5E /* Frameworks */, - 8DD76FAF0486AB0100D96B5E /* CopyFiles */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = BinaryBuilder; - productInstallPath = "$(HOME)/bin"; - productName = Amalgamator; - productReference = 8DD76FB20486AB0100D96B5E /* binarybuilder */; - productType = "com.apple.product-type.tool"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 08FB7793FE84155DC02AAC07 /* Project object */ = { - isa = PBXProject; - buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "BinaryBuilder" */; - compatibilityVersion = "Xcode 3.1"; - hasScannedForEncodings = 1; - mainGroup = 08FB7794FE84155DC02AAC07 /* Amalgamator */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 8DD76FA90486AB0100D96B5E /* BinaryBuilder */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXSourcesBuildPhase section */ - 8DD76FAB0486AB0100D96B5E /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 844B0AB30F52DCCD00B2F1FD /* juce_LibrarySource.mm in Sources */, - 8417E77B0F55D0DD00C91867 /* BinaryBuilder.cpp in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin XCBuildConfiguration section */ - 1DEB928608733DD80010E9CD /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COPY_PHASE_STRIP = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_ENABLE_FIX_AND_CONTINUE = YES; - GCC_MODEL_TUNING = G5; - GCC_OPTIMIZATION_LEVEL = 0; - INSTALL_PATH = /usr/local/bin; - PRODUCT_NAME = binarybuilder; - }; - name = Debug; - }; - 1DEB928708733DD80010E9CD /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_MODEL_TUNING = G5; - INSTALL_PATH = /usr/local/bin; - PRODUCT_NAME = binarybuilder; - }; - name = Release; - }; - 1DEB928A08733DD80010E9CD /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_BIT)"; - GCC_C_LANGUAGE_STANDARD = c99; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - ONLY_ACTIVE_ARCH = YES; - PREBINDING = NO; - SDKROOT = macosx10.5; - }; - name = Debug; - }; - 1DEB928B08733DD80010E9CD /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_BIT)"; - GCC_C_LANGUAGE_STANDARD = c99; - GCC_GENERATE_DEBUGGING_SYMBOLS = NO; - GCC_PREPROCESSOR_DEFINITIONS = "NDEBUG=1"; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - PREBINDING = NO; - SDKROOT = macosx10.5; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 1DEB928508733DD80010E9CD /* Build configuration list for PBXNativeTarget "BinaryBuilder" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 1DEB928608733DD80010E9CD /* Debug */, - 1DEB928708733DD80010E9CD /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "BinaryBuilder" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 1DEB928A08733DD80010E9CD /* Debug */, - 1DEB928B08733DD80010E9CD /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 08FB7793FE84155DC02AAC07 /* Project object */; -} diff --git a/extras/binarybuilder/vc8/BinaryBuilder.sln b/extras/binarybuilder/vc8/BinaryBuilder.sln deleted file mode 100644 index f86d4c2be2..0000000000 --- a/extras/binarybuilder/vc8/BinaryBuilder.sln +++ /dev/null @@ -1,26 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 9.00 -# Visual Studio 2005 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BinaryBuilder", "BinaryBuilder.vcproj", "{27423CD3-4ECF-4378-9408-17E01DD339C2}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Win32 = Debug|Win32 - DLL Debug|Win32 = DLL Debug|Win32 - DLL Release|Win32 = DLL Release|Win32 - Release|Win32 = Release|Win32 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {27423CD3-4ECF-4378-9408-17E01DD339C2}.Debug|Win32.ActiveCfg = Release|Win32 - {27423CD3-4ECF-4378-9408-17E01DD339C2}.Debug|Win32.Build.0 = Release|Win32 - {27423CD3-4ECF-4378-9408-17E01DD339C2}.DLL Debug|Win32.ActiveCfg = Release|Win32 - {27423CD3-4ECF-4378-9408-17E01DD339C2}.DLL Debug|Win32.Build.0 = Release|Win32 - {27423CD3-4ECF-4378-9408-17E01DD339C2}.DLL Release|Win32.ActiveCfg = Release|Win32 - {27423CD3-4ECF-4378-9408-17E01DD339C2}.DLL Release|Win32.Build.0 = Release|Win32 - {27423CD3-4ECF-4378-9408-17E01DD339C2}.Release|Win32.ActiveCfg = Release|Win32 - {27423CD3-4ECF-4378-9408-17E01DD339C2}.Release|Win32.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/extras/binarybuilder/vc8/BinaryBuilder.vcproj b/extras/binarybuilder/vc8/BinaryBuilder.vcproj deleted file mode 100644 index a87a428bd1..0000000000 --- a/extras/binarybuilder/vc8/BinaryBuilder.vcproj +++ /dev/null @@ -1,129 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -