-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added working CMake scripts
- Loading branch information
0 parents
commit a1042a6
Showing
148 changed files
with
14,842 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
OgreAL Changelog | ||
----------------- | ||
|
||
0.2 | ||
* Conformed to Ogre coding guidelines | ||
* Seperated Sounds and SoundStreams | ||
* Added X-RAM support !! Completely Untested !! | ||
* Added Multi-Channel support | ||
* Exposed all OpenAL options and states | ||
* Grouped similar state setting method calls | ||
* Cleaned up the shutdown procedure to remove leaks | ||
* Updated Package structure and dependencies | ||
* Updated API documentation | ||
* Added Code::Blocks project files | ||
* Added licensing info | ||
* Added Directional Sound Demo | ||
* Added Doppler Demo | ||
* Added Multi-Channel Demo | ||
|
||
0.1.1 | ||
* Added Linux makefiles | ||
* Added Visual Studio 7.1 project files | ||
* Tweaked code to build under Linux | ||
|
||
0.1 | ||
* Initial Release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
CMAKE_MINIMUM_REQUIRED(VERSION 2.8) | ||
PROJECT(libogreal-dev) | ||
|
||
SET(CPACK_PACKAGE_CONTACT "Patrick Charrier <[email protected]>") | ||
INCLUDE(CPack) | ||
|
||
# options | ||
OPTION(BUILD_WITH_OPENMP "Build with OpenMP support." OFF) | ||
OPTION(Boost_USE_STATIC_LIBS "Use Boost Static Libs" ON) | ||
OPTION(Boost_USE_MULTITHREADED "Use Boost Multithreaded Libs" ON) | ||
OPTION(Boost_USE_STATIC_RUNTIME "Use Boost Static Runtime" OFF) | ||
OPTION(Boost_DISABLE_AUTOLINKING "Disable Boost auto linking." ON) | ||
IF(Boost_DISABLE_AUTOLINKING) | ||
ADD_DEFINITIONS(-DBOOST_ALL_NO_LIB) | ||
ENDIF(Boost_DISABLE_AUTOLINKING) | ||
|
||
# use packages | ||
SET(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") | ||
FIND_PACKAGE(Boost COMPONENTS thread date_time REQUIRED) | ||
FIND_PACKAGE(OGRE REQUIRED) | ||
FIND_PACKAGE(OIS REQUIRED) | ||
FIND_PACKAGE(OpenAL REQUIRED) | ||
FIND_PACKAGE(OggVorbis REQUIRED) | ||
|
||
# setup directories | ||
SET (CMAKE_LIBRARY_OUTPUT_DIRECTORY | ||
${PROJECT_BINARY_DIR}/bin | ||
CACHE PATH | ||
"Single Directory for all Libraries" | ||
) | ||
SET (CMAKE_RUNTIME_OUTPUT_DIRECTORY | ||
${PROJECT_BINARY_DIR}/bin | ||
CACHE PATH | ||
"Single Directory for all Executables." | ||
) | ||
SET (CMAKE_ARCHIVE_OUTPUT_DIRECTORY | ||
${PROJECT_BINARY_DIR}/lib | ||
CACHE PATH | ||
"Single Directory for all static libraries." | ||
) | ||
|
||
# settings | ||
SET(CMAKE_BUILD_TYPE Release) | ||
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR} ${OGRE_INCLUDE_DIR} ${OGRE_Overlay_INCLUDE_DIR} "${OGRE_INCLUDE_DIR}/OGRE" ${OIS_INCLUDE_DIRS} | ||
${OPENAL_INCLUDE_DIR} ${OGG_INCLUDE_DIR} ${VORBIS_INCLUDE_DIR} include) | ||
LINK_DIRECTORIES(${Boost_LIBRARY_DIRS} ${OGRE_LIB_DIR}) | ||
|
||
# build subdirectories | ||
ADD_SUBDIRECTORY(src) | ||
ADD_SUBDIRECTORY(Demos) | ||
|
||
# install | ||
INSTALL(DIRECTORY "include/." DESTINATION "include/OgreAL" PATTERN "*.svn" EXCLUDE) | ||
|
||
# OpenMP settings | ||
if(BUILD_WITH_OPENMP) | ||
FIND_PACKAGE(OpenMP REQUIRED) | ||
if(OPENMP_FOUND) | ||
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}) | ||
endif(OPENMP_FOUND) | ||
if(UNIX) | ||
#TARGET_LINK_LIBRARIES(BeeGame gomp) | ||
#ADD_DEFINITIONS(-D_GLIBCXX_PARALLEL) # CAUSING LINKER ERROR | ||
endif(UNIX) | ||
endif(BUILD_WITH_OPENMP) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | ||
<CodeBlocks_project_file> | ||
<FileVersion major="1" minor="6" /> | ||
<Project> | ||
<Option title="Basic_Demo" /> | ||
<Option pch_mode="2" /> | ||
<Option compiler="gcc" /> | ||
<Build> | ||
<Target title="Debug"> | ||
<Option output="Basic_Demo" prefix_auto="1" extension_auto="1" /> | ||
<Option object_output="Debug" /> | ||
<Option external_deps="../../lib/Debug/OgreAL_d.lib;" /> | ||
<Option type="0" /> | ||
<Option compiler="gcc" /> | ||
<Compiler> | ||
<Add option="-g" /> | ||
<Add directory="/home/cborders/Development/ogrenew/OgreMain/include" /> | ||
<Add directory="../../include" /> | ||
</Compiler> | ||
<Linker> | ||
<Add library="OgreMain" /> | ||
<Add library="OIS" /> | ||
<Add library="OgreAL" /> | ||
<Add directory="../../lib/Debug" /> | ||
</Linker> | ||
<ExtraCommands> | ||
<Add after="cmd /c copy $(DEBUG_OUTPUT_FILE) ../Demos/bin/Debug" /> | ||
</ExtraCommands> | ||
</Target> | ||
<Target title="Release"> | ||
<Option output="Basic_Demo" prefix_auto="1" extension_auto="1" /> | ||
<Option object_output="Release" /> | ||
<Option external_deps="../../lib/Release/OgreAL.lib;" /> | ||
<Option type="0" /> | ||
<Option compiler="gcc" /> | ||
<Compiler> | ||
<Add option="-g" /> | ||
<Add option="/MT" /> | ||
<Add option="/EHs" /> | ||
<Add option="/Zc:wchar_t" /> | ||
<Add option="-DWIN32" /> | ||
<Add option="-DNDEBUG" /> | ||
<Add option="-D_WINDOWS" /> | ||
<Add directory="$(OGRE_SRC)/OgreMain/include" /> | ||
<Add directory="$(OGRE_HOME)/include" /> | ||
<Add directory="$(OPENAL_SDK)/include" /> | ||
<Add directory="$(ALUT_BIN)/include" /> | ||
<Add directory="../../../ogg/include" /> | ||
<Add directory="../../../vorbis/include" /> | ||
<Add directory="../../include" /> | ||
</Compiler> | ||
<Linker> | ||
<Add library="OgreMain" /> | ||
<Add library="OgreAL" /> | ||
<Add library="OpenAL32" /> | ||
<Add library="OgreAL.lib" /> | ||
<Add library="user32.lib" /> | ||
<Add directory="$(OGRE_SRC)/OgreMain/lib/Release" /> | ||
<Add directory="$(OGRE_HOME)/lib" /> | ||
<Add directory="$(OPENAL_SDK)/libs/Win32" /> | ||
<Add directory="../../lib/Release" /> | ||
</Linker> | ||
<ExtraCommands> | ||
<Add after="cmd /c copy $(RELEASE_OUTPUT_FILE) ../Demos/bin/Release" /> | ||
</ExtraCommands> | ||
</Target> | ||
</Build> | ||
<Compiler> | ||
<Add option="-g" /> | ||
</Compiler> | ||
<Unit filename="Listener.cpp" /> | ||
<Unit filename="Listener.h" /> | ||
<Unit filename="OgreApp.cpp" /> | ||
<Unit filename="OgreApp.h" /> | ||
<Unit filename="main.cpp" /> | ||
<Extensions> | ||
<code_completion /> | ||
</Extensions> | ||
</Project> | ||
</CodeBlocks_project_file> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,221 @@ | ||
<?xml version="1.0" encoding="Windows-1252"?> | ||
<VisualStudioProject | ||
ProjectType="Visual C++" | ||
Version="8.00" | ||
Name="Basic_Demo" | ||
ProjectGUID="{DAAEC9A1-355F-418A-A015-0575C171AA5B}" | ||
RootNamespace="Basic_Demo" | ||
Keyword="Win32Proj" | ||
> | ||
<Platforms> | ||
<Platform | ||
Name="Win32" | ||
/> | ||
</Platforms> | ||
<ToolFiles> | ||
</ToolFiles> | ||
<Configurations> | ||
<Configuration | ||
Name="Debug|Win32" | ||
OutputDirectory="$(SolutionDir)Demos\$(ProjectName)\$(ConfigurationName)" | ||
IntermediateDirectory="$(ConfigurationName)" | ||
ConfigurationType="1" | ||
CharacterSet="2" | ||
> | ||
<Tool | ||
Name="VCPreBuildEventTool" | ||
/> | ||
<Tool | ||
Name="VCCustomBuildTool" | ||
/> | ||
<Tool | ||
Name="VCXMLDataGeneratorTool" | ||
/> | ||
<Tool | ||
Name="VCWebServiceProxyGeneratorTool" | ||
/> | ||
<Tool | ||
Name="VCMIDLTool" | ||
/> | ||
<Tool | ||
Name="VCCLCompilerTool" | ||
Optimization="0" | ||
AdditionalIncludeDirectories=""$(OGRE_SRC)/OgreMain/include";"$(OGRE_SRC)/Dependencies/include";"$(OGRE_HOME)/include";"$(OPENAL_SDK)/include";../../../ogg/include;../../../vorbis/include;../../include;"$(BOOST_ROOT)"" | ||
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS" | ||
MinimalRebuild="true" | ||
BasicRuntimeChecks="3" | ||
RuntimeLibrary="3" | ||
UsePrecompiledHeader="0" | ||
WarningLevel="3" | ||
Detect64BitPortabilityProblems="true" | ||
DebugInformationFormat="4" | ||
/> | ||
<Tool | ||
Name="VCManagedResourceCompilerTool" | ||
/> | ||
<Tool | ||
Name="VCResourceCompilerTool" | ||
/> | ||
<Tool | ||
Name="VCPreLinkEventTool" | ||
/> | ||
<Tool | ||
Name="VCLinkerTool" | ||
AdditionalDependencies="OgreMain_d.lib OgreAL_d.lib OpenAL32.lib OIS_d.lib" | ||
LinkIncremental="2" | ||
AdditionalLibraryDirectories=""$(OGRE_SRC)/lib";"$(OGRE_SRC)/Dependencies/lib/$(ConfigurationName)";"$(OGRE_HOME)/lib";"$(OPENAL_SDK)/libs/Win32";"../../lib/$(ConfigurationName)";"$(BOOST_ROOT)/lib"" | ||
GenerateDebugInformation="true" | ||
SubSystem="2" | ||
TargetMachine="1" | ||
/> | ||
<Tool | ||
Name="VCALinkTool" | ||
/> | ||
<Tool | ||
Name="VCManifestTool" | ||
/> | ||
<Tool | ||
Name="VCXDCMakeTool" | ||
/> | ||
<Tool | ||
Name="VCBscMakeTool" | ||
/> | ||
<Tool | ||
Name="VCFxCopTool" | ||
/> | ||
<Tool | ||
Name="VCAppVerifierTool" | ||
/> | ||
<Tool | ||
Name="VCWebDeploymentTool" | ||
/> | ||
<Tool | ||
Name="VCPostBuildEventTool" | ||
CommandLine="echo Copying $(TargetFileName) to Demos/bin/$(ConfigurationName)
copy $(TargetDir)$(TargetName).exe $(SolutionDir)Demos\bin\$(ConfigurationName)
" | ||
/> | ||
</Configuration> | ||
<Configuration | ||
Name="Release|Win32" | ||
OutputDirectory="$(SolutionDir)Demos\$(ProjectName)\$(ConfigurationName)" | ||
IntermediateDirectory="$(ConfigurationName)" | ||
ConfigurationType="1" | ||
CharacterSet="2" | ||
WholeProgramOptimization="1" | ||
> | ||
<Tool | ||
Name="VCPreBuildEventTool" | ||
/> | ||
<Tool | ||
Name="VCCustomBuildTool" | ||
/> | ||
<Tool | ||
Name="VCXMLDataGeneratorTool" | ||
/> | ||
<Tool | ||
Name="VCWebServiceProxyGeneratorTool" | ||
/> | ||
<Tool | ||
Name="VCMIDLTool" | ||
/> | ||
<Tool | ||
Name="VCCLCompilerTool" | ||
AdditionalIncludeDirectories=""$(OGRE_SRC)/OgreMain/include";"$(OGRE_SRC)/Dependencies/include";"$(OGRE_HOME)/include";"$(OPENAL_SDK)/include";../../../ogg/include;../../../vorbis/include;../../include;"$(BOOST_ROOT)"" | ||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS" | ||
RuntimeLibrary="2" | ||
UsePrecompiledHeader="0" | ||
WarningLevel="3" | ||
Detect64BitPortabilityProblems="true" | ||
DebugInformationFormat="3" | ||
/> | ||
<Tool | ||
Name="VCManagedResourceCompilerTool" | ||
/> | ||
<Tool | ||
Name="VCResourceCompilerTool" | ||
/> | ||
<Tool | ||
Name="VCPreLinkEventTool" | ||
/> | ||
<Tool | ||
Name="VCLinkerTool" | ||
AdditionalDependencies="OgreMain.lib OgreAL.lib OpenAL32.lib OIS.lib" | ||
LinkIncremental="1" | ||
AdditionalLibraryDirectories=""$(OGRE_SRC)/lib";"$(OGRE_SRC)/Dependencies/lib/$(ConfigurationName)";"$(OGRE_HOME)/lib";"$(OPENAL_SDK)/libs/Win32";"../../lib/$(ConfigurationName)";"$(BOOST_ROOT)/lib"" | ||
GenerateDebugInformation="true" | ||
SubSystem="2" | ||
OptimizeReferences="2" | ||
EnableCOMDATFolding="2" | ||
TargetMachine="1" | ||
/> | ||
<Tool | ||
Name="VCALinkTool" | ||
/> | ||
<Tool | ||
Name="VCManifestTool" | ||
/> | ||
<Tool | ||
Name="VCXDCMakeTool" | ||
/> | ||
<Tool | ||
Name="VCBscMakeTool" | ||
/> | ||
<Tool | ||
Name="VCFxCopTool" | ||
/> | ||
<Tool | ||
Name="VCAppVerifierTool" | ||
/> | ||
<Tool | ||
Name="VCWebDeploymentTool" | ||
/> | ||
<Tool | ||
Name="VCPostBuildEventTool" | ||
CommandLine="echo Copying $(TargetFileName) to Demos/bin/$(ConfigurationName)
copy $(TargetDir)$(TargetName).exe $(SolutionDir)Demos\bin\$(ConfigurationName)
" | ||
/> | ||
</Configuration> | ||
</Configurations> | ||
<References> | ||
</References> | ||
<Files> | ||
<Filter | ||
Name="Header Files" | ||
Filter="h;hpp;hxx;hm;inl;inc;xsd" | ||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" | ||
> | ||
<File | ||
RelativePath=".\Listener.h" | ||
> | ||
</File> | ||
<File | ||
RelativePath=".\OgreApp.h" | ||
> | ||
</File> | ||
</Filter> | ||
<Filter | ||
Name="Resource Files" | ||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav" | ||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}" | ||
> | ||
</Filter> | ||
<Filter | ||
Name="Source Files" | ||
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" | ||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" | ||
> | ||
<File | ||
RelativePath=".\Listener.cpp" | ||
> | ||
</File> | ||
<File | ||
RelativePath=".\main.cpp" | ||
> | ||
</File> | ||
<File | ||
RelativePath=".\OgreApp.cpp" | ||
> | ||
</File> | ||
</Filter> | ||
</Files> | ||
<Globals> | ||
</Globals> | ||
</VisualStudioProject> |
Oops, something went wrong.