Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / January 2004



Tip: Looking for answers? Try searching our database.

IDE SDK : how to get group path for the current compiling file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
raphael - 04 Jan 2004 16:21 GMT
Hi,

I usually use CW IDE for various tasks other than
just compiling programs. This time I need to make
a kind of installer/archiver compiler with it.

The basic idea is to use the group path of the current compiled
file so that the installer (which is the output of the project)
knows where to install the files. The special compiler
stores a resource with the compressed file and the location
to put it into the final binary.
The compiler do that for each files for which it is
invoked.

I've read the SDK doc for that special feature and
it seems that I cannot get this information.
However I really wants to know how to get it !

Is there a way do get this information (group path)?
I'm using CW 8.3 so this is not a problem if
a solution for 8.3 won't work for any other version
of CW.
I would even sign a NDA to get those infos ;)

Thanks for any infomations on how to do this.

Raphael
MW Ron - 06 Jan 2004 14:59 GMT
>Hi,
>
[quoted text clipped - 21 lines]
>
>Thanks for any infomations on how to do this.

I'll see what I can find out and let you know,  I don't think this is
any secret that needs an NDA or anything.

Ron

Signature

Metrowerks, maker of CodeWarrior   -  "Software Starts Here"  
Ron Liechty - MWRon@metrowerks.com - <http://www.metrowerks.com>

MW Ron - 06 Jan 2004 21:56 GMT
>Hi,
>
[quoted text clipped - 19 lines]
>of CW.
>I would even sign a NDA to get those infos ;)

The team said...
This was also our first idea on how to make packaging work.  
Unfortunately, it doesn't look like there is a COM plugin interface to
return that information.  So we had to scrap that idea and go for a
completely separate package tab in the project window (which was a
better way to do things anyhow).

I'd wager that you can use the package tab Copy Files action to make a
folder of items in the correct locations, if that's all that you want.

hope this helps,

Ron

Signature

Metrowerks, maker of CodeWarrior   -  "Software Starts Here"  
Ron Liechty - MWRon@metrowerks.com - <http://www.metrowerks.com>

raphael - 09 Jan 2004 14:22 GMT
Hi Ron,

> The team said...
> This was also our first idea on how to make packaging work.  
[quoted text clipped - 5 lines]
> I'd wager that you can use the package tab Copy Files action to make a
> folder of items in the correct locations, if that's all that you want.

The package tab in the project window must be a CW9 new feature, right ?
In fact my original compiler idea is simple :
- it gets the file
- 'would' get the file install path from group path
- compress the file with zlib and put it in resource with the name of the
 resource the file name.
The file really needs to be compressed. So if I was to use a carbon
bundle like app, I would miss the compression feature.

Finally I've done the compiler using an heuristic way to determine
install path. This is not as clean as I would want it to be, but
it works for the moment.

About that package tab (I assume this is an CW9 feature not CW8)...
is the copy to package compiler used for that tab. In another way :
is there a way to use a custom compiler for that tab or is it
statically coded in the IDE itself ?

Thanks for your support. CW is a great tool, and its support
team too :)

Raphael
MW Ron - 09 Jan 2004 15:41 GMT
>Hi Ron,
>
[quoted text clipped - 9 lines]
>
>The package tab in the project window must be a CW9 new feature, right ?

Yes it is.

>In fact my original compiler idea is simple :
>- it gets the file
[quoted text clipped - 12 lines]
>is there a way to use a custom compiler for that tab or is it
>statically coded in the IDE itself ?

Not that I'm aware of.  sorry,

>Thanks for your support. CW is a great tool, and its support
>team too :)

Thank you,  I have the backing of many people to help me be active on
the newsgroups.

Ron

Signature

Metrowerks, maker of CodeWarrior   -  "Software Starts Here"  
Ron Liechty - MWRon@metrowerks.com - <http://www.metrowerks.com>

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.