Skip to content

Commit

Permalink
Added xcode project for example app
Browse files Browse the repository at this point in the history
Added ResPath hpp to correctly resolve path for packaging within mac app
Added build target for desteer for the mac
  • Loading branch information
joekarl committed Jul 26, 2011
1 parent 0f0b597 commit 62f2eaf
Show file tree
Hide file tree
Showing 20 changed files with 993 additions and 54 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -11,6 +11,9 @@
!examples/lib/*
!examples/bin/win32-gcc/*.dll

#dsstore
.DS_Store

# Ignore crap codeblocks files
*.depend~
*.layout~
Expand Down
96 changes: 62 additions & 34 deletions DESteer.cbp
Expand Up @@ -7,19 +7,46 @@
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="lib\libdesteer" prefix_auto="1" extension_auto="1" />
<Option output="lib/libdesteer" prefix_auto="1" extension_auto="1" />
<Option working_dir="" />
<Option object_output="obj\Debug\" />
<Option object_output="obj/Debug/" />
<Option type="2" />
<Option compiler="gcc" />
<Compiler>
<Add option="-g" />
</Compiler>
</Target>
<Target title="Release">
<Option output="lib\DESteer" prefix_auto="1" extension_auto="1" />
<Option output="lib/DESteer" prefix_auto="1" extension_auto="1" />
<Option working_dir="bin" />
<Option object_output="obj\Release\" />
<Option object_output="obj/Release/" />
<Option type="3" />
<Option compiler="gcc" />
<Option createStaticLib="1" />
<Compiler>
<Add option="-fexpensive-optimizations" />
<Add option="-O3" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
<Target title="Debug Mac">
<Option platforms="Mac;" />
<Option output="lib/libdesteer-mac" prefix_auto="1" extension_auto="1" />
<Option working_dir="" />
<Option object_output="obj/Debug-Mac/" />
<Option type="2" />
<Option compiler="gcc" />
<Compiler>
<Add option="-g" />
</Compiler>
</Target>
<Target title="Release Mac">
<Option platforms="Mac;" />
<Option output="lib/DESteer-mac" prefix_auto="1" extension_auto="1" />
<Option working_dir="bin" />
<Option object_output="obj/Release-Mac/" />
<Option type="3" />
<Option compiler="gcc" />
<Option createStaticLib="1" />
Expand All @@ -36,39 +63,40 @@
<Add option="-Wall" />
<Add directory="include" />
</Compiler>
<Unit filename="include\desteer\Types.hpp" />
<Unit filename="include\desteer\behavior\ArriveBehavior.hpp" />
<Unit filename="include\desteer\behavior\EvadeBehavior.hpp" />
<Unit filename="include\desteer\behavior\FleeBehavior.hpp" />
<Unit filename="include\desteer\behavior\HideBehavior.hpp" />
<Unit filename="include\desteer\behavior\ISteeringBehavior.hpp" />
<Unit filename="include\desteer\behavior\InterposeBehavior.hpp" />
<Unit filename="include\desteer\behavior\ObstacleAvoidanceBehavior.hpp" />
<Unit filename="include\desteer\behavior\PursuitBehavior.hpp" />
<Unit filename="include\desteer\behavior\SeekBehavior.hpp" />
<Unit filename="include\desteer\behavior\WanderBehavior.hpp" />
<Unit filename="include\desteer\controller\ISteeringController.hpp" />
<Unit filename="include\desteer\controller\ModularSteeringController.hpp" />
<Unit filename="include\desteer\controller\SimpleSteeringController.hpp" />
<Unit filename="include\desteer\entity\IBaseEntity.hpp" />
<Unit filename="include\desteer\entity\IEntitySpace.hpp" />
<Unit filename="include\desteer\entity\IMobileEntity.hpp" />
<Unit filename="include\desteer\entity\MobileEntity.hpp" />
<Unit filename="source\ArriveBehavior.cpp" />
<Unit filename="source\EvadeBehavior.cpp" />
<Unit filename="source\FleeBehavior.cpp" />
<Unit filename="source\FluentSimpleController.cpp" />
<Unit filename="source\HideBehavior.cpp" />
<Unit filename="source\InterposeBehavior.cpp" />
<Unit filename="source\ModularSteeringController.cpp" />
<Unit filename="source\ObstacleAvoidanceBehavior.cpp" />
<Unit filename="source\PursuitBehavior.cpp" />
<Unit filename="source\SeekBehavior.cpp" />
<Unit filename="source\SimpleSteeringController.cpp" />
<Unit filename="source\WanderBehavior.cpp" />
<Unit filename="include/desteer/Types.hpp" />
<Unit filename="include/desteer/behavior/ArriveBehavior.hpp" />
<Unit filename="include/desteer/behavior/EvadeBehavior.hpp" />
<Unit filename="include/desteer/behavior/FleeBehavior.hpp" />
<Unit filename="include/desteer/behavior/HideBehavior.hpp" />
<Unit filename="include/desteer/behavior/ISteeringBehavior.hpp" />
<Unit filename="include/desteer/behavior/InterposeBehavior.hpp" />
<Unit filename="include/desteer/behavior/ObstacleAvoidanceBehavior.hpp" />
<Unit filename="include/desteer/behavior/PursuitBehavior.hpp" />
<Unit filename="include/desteer/behavior/SeekBehavior.hpp" />
<Unit filename="include/desteer/behavior/WanderBehavior.hpp" />
<Unit filename="include/desteer/controller/ISteeringController.hpp" />
<Unit filename="include/desteer/controller/ModularSteeringController.hpp" />
<Unit filename="include/desteer/controller/SimpleSteeringController.hpp" />
<Unit filename="include/desteer/entity/IBaseEntity.hpp" />
<Unit filename="include/desteer/entity/IEntitySpace.hpp" />
<Unit filename="include/desteer/entity/IMobileEntity.hpp" />
<Unit filename="include/desteer/entity/MobileEntity.hpp" />
<Unit filename="source/ArriveBehavior.cpp" />
<Unit filename="source/EvadeBehavior.cpp" />
<Unit filename="source/FleeBehavior.cpp" />
<Unit filename="source/FluentSimpleController.cpp" />
<Unit filename="source/HideBehavior.cpp" />
<Unit filename="source/InterposeBehavior.cpp" />
<Unit filename="source/ModularSteeringController.cpp" />
<Unit filename="source/ObstacleAvoidanceBehavior.cpp" />
<Unit filename="source/PursuitBehavior.cpp" />
<Unit filename="source/SeekBehavior.cpp" />
<Unit filename="source/SimpleSteeringController.cpp" />
<Unit filename="source/WanderBehavior.cpp" />
<Extensions>
<code_completion />
<debugger />
<envvars />
</Extensions>
</Project>
</CodeBlocks_project_file>
4 changes: 2 additions & 2 deletions DESteer.layout
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_layout_file>
<ActiveTarget name="Debug" />
<File name="include\desteer\behavior\ArriveBehavior.hpp" open="1" top="0" tabpos="2">
<File name="include/desteer/behavior/ArriveBehavior.hpp" open="1" top="0" tabpos="2">
<Cursor position="0" topLine="0" />
</File>
<File name="source\ArriveBehavior.cpp" open="1" top="1" tabpos="1">
<File name="source/ArriveBehavior.cpp" open="1" top="1" tabpos="1">
<Cursor position="822" topLine="0" />
</File>
</CodeBlocks_layout_file>
10 changes: 10 additions & 0 deletions DESteer.layout.cbTemp
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_layout_file>
<ActiveTarget name="Debug" />
<File name="include/desteer/behavior/ArriveBehavior.hpp" open="1" top="0" tabpos="2">
<Cursor position="0" topLine="0" />
</File>
<File name="source/ArriveBehavior.cpp" open="1" top="1" tabpos="1">
<Cursor position="822" topLine="0" />
</File>
</CodeBlocks_layout_file>
28 changes: 15 additions & 13 deletions examples/ExampleWithIrrlicht/Example With Irrlicht.cbp
Expand Up @@ -8,9 +8,9 @@
<Build>
<Target title="Win32">
<Option platforms="Windows;" />
<Option output="bin\Example With Irrlicht" prefix_auto="1" extension_auto="1" />
<Option output="bin/Example With Irrlicht" prefix_auto="1" extension_auto="1" />
<Option working_dir="bin" />
<Option object_output="obj\Debug\" />
<Option object_output="obj/Debug/" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
Expand All @@ -19,9 +19,9 @@
</Target>
<Target title="Linux">
<Option platforms="Unix;" />
<Option output="bin\Example With Irrlicht" prefix_auto="1" extension_auto="1" />
<Option output="bin/Example With Irrlicht" prefix_auto="1" extension_auto="1" />
<Option working_dir="bin" />
<Option object_output="obj\Debug\" />
<Option object_output="obj/Debug/" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
Expand All @@ -36,25 +36,27 @@
<Add option="-lX11" />
<Add option="-ldl" />
<Add option="-lpthread" />
<Add library="..\..\..\LikeMagic-All\irrlicht\lib\Linux\libIrrlicht.a" />
<Add library="..\..\lib\libdesteer.a" />
<Add library="..\..\..\irrlicht\lib\Linux\libIrrlicht.a" />
<Add library="../../../LikeMagic-All/irrlicht/lib/Linux/libIrrlicht.a" />
<Add library="../../lib/libdesteer.a" />
<Add library="../../../irrlicht/lib/Linux/libIrrlicht.a" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
<Add directory="include" />
<Add directory="..\..\include" />
<Add directory="..\irrlicht\include" />
<Add directory="../../include" />
<Add directory="../irrlicht/include" />
</Compiler>
<Unit filename="source\IrrlichtBaseEntity.hpp" />
<Unit filename="source\IrrlichtMobileEntity.cpp" />
<Unit filename="source\IrrlichtMobileEntity.hpp" />
<Unit filename="source\main.cpp" />
<Unit filename="source/IrrlichtBaseEntity.hpp" />
<Unit filename="source/IrrlichtMobileEntity.cpp" />
<Unit filename="source/IrrlichtMobileEntity.hpp" />
<Unit filename="source/ResPath.hpp" />
<Unit filename="source/main.cpp" />
<Extensions>
<code_completion />
<debugger />
<envvars />
</Extensions>
</Project>
</CodeBlocks_project_file>
87 changes: 87 additions & 0 deletions examples/ExampleWithIrrlicht/Example With Irrlicht.cbp.cbTemp
@@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="Example With Irrlicht" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="Win32">
<Option platforms="Windows;" />
<Option output="bin/Example With Irrlicht" prefix_auto="1" extension_auto="1" />
<Option working_dir="bin" />
<Option object_output="obj/Debug/" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-g" />
</Compiler>
</Target>
<Target title="Linux">
<Option platforms="Unix;" />
<Option output="bin/Example With Irrlicht" prefix_auto="1" extension_auto="1" />
<Option working_dir="bin" />
<Option object_output="obj/Debug/" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-g" />
</Compiler>
<Linker>
<Add option="-L/usr/X11R6/lib" />
<Add option="-L../../lib/Linux" />
<Add option="-lGL" />
<Add option="-lXxf86vm" />
<Add option="-lXext" />
<Add option="-lX11" />
<Add option="-ldl" />
<Add option="-lpthread" />
<Add library="../../../LikeMagic-All/irrlicht/lib/Linux/libIrrlicht.a" />
<Add library="../../lib/libdesteer.a" />
<Add library="../../../irrlicht/lib/Linux/libIrrlicht.a" />
</Linker>
</Target>
<Target title="Mac">
<Option platforms="Mac;" />
<Option output="bin/Mac/Example With Irrlicht" prefix_auto="1" extension_auto="1" />
<Option working_dir="bin" />
<Option object_output="obj/Debug-Mac/" />
<Option type="0" />
<Option compiler="apple_gcc" />
<Compiler>
<Add option="-g" />
</Compiler>
<Linker>
<Add option="-L/usr/X11R6/lib" />
<Add option="-framework GLUT" />
<Add option="-framework OpenGL" />
<Add option="-framework Cocoa" />
<Add option="-framework IOKit" />
<Add option="-framework Carbon" />
<Add option="-lXxf86vm" />
<Add option="-lXext" />
<Add option="-lX11" />
<Add option="-ldl" />
<Add option="-lpthread" />
<Add library="../../lib/libdesteer-mac.a" />
<Add library="lib/irrlicht-mac/libIrrlicht_mac.a" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
<Add directory="include" />
<Add directory="../../include" />
<Add directory="../irrlicht/include" />
</Compiler>
<Unit filename="source/IrrlichtBaseEntity.hpp" />
<Unit filename="source/IrrlichtMobileEntity.cpp" />
<Unit filename="source/IrrlichtMobileEntity.hpp" />
<Unit filename="source/main.cpp" />
<Extensions>
<code_completion />
<debugger />
<envvars />
</Extensions>
</Project>
</CodeBlocks_project_file>
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_layout_file>
<ActiveTarget name="Win32" />
</CodeBlocks_layout_file>
@@ -0,0 +1,8 @@
.DS_Store
*.swp
*~.nib

build/

*.xcodeproj/xcuserdata/
*.xcodeproj/project.xcworkspace/xcuserdata/
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>dropecho.studios.${PRODUCT_NAME:rfc1034identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSMinimumSystemVersion</key>
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2011 MySelf. All rights reserved.</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>
@@ -0,0 +1,7 @@
//
// Prefix header for all source files of the 'Example With Irrlicht' target in the 'Example With Irrlicht' project
//

#ifdef __OBJC__
#import <Cocoa/Cocoa.h>
#endif

0 comments on commit 62f2eaf

Please sign in to comment.