Is it possible to specify more than one TARGETNAME from within a sources
file. For instance, if I want to build more than one library using a
variation of files from within the same directory, can this be done using a
single sources file?

Re: Multiple target libraries from a single sources file by Yannick

Yannick
Thu Sep 30 00:20:57 CDT 2004

I don't think so. You should rather do it the same way as the kernel build
of each BSP : you have one directory for code and different directories for
each type of build, each one containing one "sources" file.

You can also have a look to the MSFlash implementation which generates from
the same code a lib linked with eboot for flash access from eboot and a dll
which is the flash applicative driver.

--
----------------------------------------------------------------
Yannick Chamming's (eMVP)
ADESET
Windows Embedded Manager
ychammings AT adeset DOT com>
http://www.adeset.com
Tél : +33 (0)4.72.18.57.77
Fax : +33 (0)4.72.18.57.78
----------------------------------------------------------------

"RM" <RM@discussions.microsoft.com> wrote in message
news:9540AD84-7350-412B-B880-7121E6562777@microsoft.com...
> Is it possible to specify more than one TARGETNAME from within a sources
> file. For instance, if I want to build more than one library using a
> variation of files from within the same directory, can this be done using
a
> single sources file?
>
>



Re: Multiple target libraries from a single sources file by gspil

gspil
Sat Oct 02 13:43:42 CDT 2004

RM,

Yannick is correct. You need to have a parent build directory that contains
a dirs file and any shared code. Create a child directory for each unique
build target you want to create. If you have any non-shared code that can
go into the child directories.

For example if you have a project Dir_Foo where you have 2 build targets
that share foo.cpp but have unigue copies of bar then

Dir_Foo
sources
makefile
foo.cpp
bar.cpp
bar2.cpp

BECOMES

Dir_Foo
Dirs // a dirs file that contains "dirs=Dir_Foo_Child Dir_Foo_Child2"
foo.cpp

Dir_Foo_Child
sources // a sources file that contains "sources=bar.cpp ..\foo.cpp"
makefile
bar.cpp


Dir_Foo_Child2
sources // a sources file that contains "sources=bar2.cpp ..\foo.cpp"
makefile
bar2.cpp


Gabriel Spil
IDE Dev Lead