Christian Damus(deleted)
|
Re: How to include a singe external source file into a QNX project?
|
Christian Damus(deleted)
12/03/2010 12:09 PM
post77106
|
Re: How to include a singe external source file into a QNX project?
Hi, Robert,
I think your suggestion is a good idea. I've entered it into our database
for consideration in a future release. I expect we'll have to think
carefully about how to encode paths in the makefile as relative to the
project root, etc. There will be several use cases to account for.
Thanks!
Christian
On 10-12-02 12:16 PM, "Robert Murrell" <community-noreply@qnx.com> wrote:
>> > Hi, Robert,
>> >
>> > The QNX Project uses make to build, and because make runs outside of the
>> > Eclipse context, it has no idea about linked resources.
>> >
>> > To add a single external file your project, you can edit the common.mk to
>> > add something like this after the "include $(MKFILES_ROOT)/qmacros.mk":
>> >
>> > vpath %.c $(PROJECT_ROOT)/../path/to/external/sources
>> > SRCS+=extra.c
>> >
>> > This will add the folder containing the extra source file to your vpath,
>> > which EXTRA_SRCVPATH does, but doesn't additionally add all of the sources
>> > in that folder. In this example, the "extra.c" file is assumed to be in >>
the
>> > ../path/to/external/sources folder relative to the current project root
>> > folder.
>> >
>> > HTH,
>> >
>> > Christian
>
> This helps somewhat but I dislike having to hardcode filenames into common.mk.
> Why can't the QNX plugin to Eclipse look for linked resources and modify its
> make files accordingly?
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post76903
>
>
--
Christian W. Damus
Software Developer, IDE Team
QNX Software Systems <http://www.qnx.com/>
|
|
|