Hi,

as i understand the "dirs" file for the build utility should contain only
subdirectories (with the location of "dirs" file as the root) and not
"../SomeDir".

assuming that i have a kind of common library (common drivers routines that
i created) to be used for several drivers ( to be used = to be compiled and
linked with that lib) and the lib's sources are located above my "dirs" file
(my drievrs sources) on the file system. since i can't use "../SomeDir" in my
"dirs" file, what options do i have in order to be linked with that lib ?
must i create a link from a subdirectory to this directory ? must i build
each seperatly ?

thanks.

Re: ddk build hierarchy question by Maxim

Maxim
Thu Mar 13 05:55:19 CDT 2008

I think you can use the long relative pathnames in TARGETLIBS clause of the
SOURCES file.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com

"kobi n" <kobin@discussions.microsoft.com> wrote in message
news:9F730FC0-8CD1-4164-BD60-7626C400A500@microsoft.com...
> Hi,
>
> as i understand the "dirs" file for the build utility should contain only
> subdirectories (with the location of "dirs" file as the root) and not
> "../SomeDir".
>
> assuming that i have a kind of common library (common drivers routines that
> i created) to be used for several drivers ( to be used = to be compiled and
> linked with that lib) and the lib's sources are located above my "dirs" file
> (my drievrs sources) on the file system. since i can't use "../SomeDir" in my
> "dirs" file, what options do i have in order to be linked with that lib ?
> must i create a link from a subdirectory to this directory ? must i build
> each seperatly ?
>
> thanks.


Re: ddk build hierarchy question by kobin

kobin
Thu Mar 13 09:16:00 CDT 2008


yes, i did that, but then i need to use two build commands - first for the
common lib and then for the driver (which will be linked to the common lib as
you say..) ?


"Maxim S. Shatskih" wrote:

> I think you can use the long relative pathnames in TARGETLIBS clause of the
> SOURCES file.
>
> --
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> maxim@storagecraft.com
> http://www.storagecraft.com
>
> "kobi n" <kobin@discussions.microsoft.com> wrote in message
> news:9F730FC0-8CD1-4164-BD60-7626C400A500@microsoft.com...
> > Hi,
> >
> > as i understand the "dirs" file for the build utility should contain only
> > subdirectories (with the location of "dirs" file as the root) and not
> > "../SomeDir".
> >
> > assuming that i have a kind of common library (common drivers routines that
> > i created) to be used for several drivers ( to be used = to be compiled and
> > linked with that lib) and the lib's sources are located above my "dirs" file
> > (my drievrs sources) on the file system. since i can't use "../SomeDir" in my
> > "dirs" file, what options do i have in order to be linked with that lib ?
> > must i create a link from a subdirectory to this directory ? must i build
> > each seperatly ?
> >
> > thanks.
>
>

Re: ddk build hierarchy question by Maxim

Maxim
Thu Mar 13 09:25:32 CDT 2008

Yes.

Your only chance is to change the directory layout of the whole project.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com

"kobi n" <kobin@discussions.microsoft.com> wrote in message
news:9C69A3FB-5C17-4F98-A285-173233BC027E@microsoft.com...
>
> yes, i did that, but then i need to use two build commands - first for the
> common lib and then for the driver (which will be linked to the common lib as
> you say..) ?
>
>
> "Maxim S. Shatskih" wrote:
>
> > I think you can use the long relative pathnames in TARGETLIBS clause of
the
> > SOURCES file.
> >
> > --
> > Maxim Shatskih, Windows DDK MVP
> > StorageCraft Corporation
> > maxim@storagecraft.com
> > http://www.storagecraft.com
> >
> > "kobi n" <kobin@discussions.microsoft.com> wrote in message
> > news:9F730FC0-8CD1-4164-BD60-7626C400A500@microsoft.com...
> > > Hi,
> > >
> > > as i understand the "dirs" file for the build utility should contain only
> > > subdirectories (with the location of "dirs" file as the root) and not
> > > "../SomeDir".
> > >
> > > assuming that i have a kind of common library (common drivers routines
that
> > > i created) to be used for several drivers ( to be used = to be compiled
and
> > > linked with that lib) and the lib's sources are located above my "dirs"
file
> > > (my drievrs sources) on the file system. since i can't use "../SomeDir"
in my
> > > "dirs" file, what options do i have in order to be linked with that lib
?
> > > must i create a link from a subdirectory to this directory ? must i
build
> > > each seperatly ?
> > >
> > > thanks.
> >
> >


Re: ddk build hierarchy question by Doron

Doron
Thu Mar 13 16:12:41 CDT 2008

they eventuallly have to share the same root directory. when you build from
that root dir, it will all work with TARGETLIBS. it does not matter where
the lib is compiled in the tree wrt the position of the drivers which use
the lib b/c link stage is another pass over the tree after the compilation
pass.

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message
news:OhasZYRhIHA.4164@TK2MSFTNGP05.phx.gbl...
> Yes.
>
> Your only chance is to change the directory layout of the whole
> project.
>
> --
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> maxim@storagecraft.com
> http://www.storagecraft.com
>
> "kobi n" <kobin@discussions.microsoft.com> wrote in message
> news:9C69A3FB-5C17-4F98-A285-173233BC027E@microsoft.com...
>>
>> yes, i did that, but then i need to use two build commands - first for
>> the
>> common lib and then for the driver (which will be linked to the common
>> lib as
>> you say..) ?
>>
>>
>> "Maxim S. Shatskih" wrote:
>>
>> > I think you can use the long relative pathnames in TARGETLIBS
>> > clause of
> the
>> > SOURCES file.
>> >
>> > --
>> > Maxim Shatskih, Windows DDK MVP
>> > StorageCraft Corporation
>> > maxim@storagecraft.com
>> > http://www.storagecraft.com
>> >
>> > "kobi n" <kobin@discussions.microsoft.com> wrote in message
>> > news:9F730FC0-8CD1-4164-BD60-7626C400A500@microsoft.com...
>> > > Hi,
>> > >
>> > > as i understand the "dirs" file for the build utility should contain
>> > > only
>> > > subdirectories (with the location of "dirs" file as the root) and not
>> > > "../SomeDir".
>> > >
>> > > assuming that i have a kind of common library (common drivers
>> > > routines
> that
>> > > i created) to be used for several drivers ( to be used = to be
>> > > compiled
> and
>> > > linked with that lib) and the lib's sources are located above my
>> > > "dirs"
> file
>> > > (my drievrs sources) on the file system. since i can't use
>> > > "../SomeDir"
> in my
>> > > "dirs" file, what options do i have in order to be linked with that
>> > > lib
> ?
>> > > must i create a link from a subdirectory to this directory ? must i
> build
>> > > each seperatly ?
>> > >
>> > > thanks.
>> >
>> >
>