Adding files to a build
by JohnT · in Torque Game Engine · 06/09/2006 (2:54 pm) · 2 replies
I am currently bringing over my project that has been in work on the Windows platform to OSX 10.4 on a Mac Mini and was hoping for some help. I am not a Mac guy and the simplest things are killing me!
So far I have been able to compile (with sound) TGE with TLK. I then copied over my project and replaced the Example and Engine folders, added my new files that are not in the engine to XCode and rebuilt. It looked like everything succeeded except when I run my game any new features that I have added to the engine are not included.
I then went and purposely entered a syntax error into one of my files and according to the compiler, everything built fine. Apparently, they are not included in the build.
I guess my question is, how do I add new files to the build, isn't adding them into XCode enough?
Thanks in advance,
John
So far I have been able to compile (with sound) TGE with TLK. I then copied over my project and replaced the Example and Engine folders, added my new files that are not in the engine to XCode and rebuilt. It looked like everything succeeded except when I run my game any new features that I have added to the engine are not included.
I then went and purposely entered a syntax error into one of my files and according to the compiler, everything built fine. Apparently, they are not included in the build.
I guess my question is, how do I add new files to the build, isn't adding them into XCode enough?
Thanks in advance,
John
About the author
#2
You're awesome!
Worked perfectly on the first try, all my changes compiled without a single glitch. I have heard that it was a snap porting over from the PC to the Mac with Torque, but never dreamed it would be this easy.
Thanks Again,
John
06/10/2006 (8:10 am)
@Paul,You're awesome!
Worked perfectly on the first try, all my changes compiled without a single glitch. I have heard that it was a snap porting over from the PC to the Mac with Torque, but never dreamed it would be this easy.
Thanks Again,
John
Torque Owner Paul Scott
Default Studio Name
Here's how:
1) Find the list of files on the left in Xcode.
2) Select the .c, .cc, .m, and .cpp files you want to add to a target, in that list.
3) Click File->Get Info... , or hit the shortcut key command - i .
4) An info window will open. Click the 'Targets' tab at the top of that window.
5) Check the targets you want to add the files to.
6) There will probably be an "All" target. Don't check that one, all it does is build the other targets.
Yes, I know I need to fire up a TDN article on all this good stuff.
Apple has some really cool tutorials, with screenshots, on their website, for many common Xcode tasks. Check 'em out!
Share and Enjoy.
/Paul