Hi,

i would like to know if it is possible to execute a command as a
preprocess during build with use of files 'dirs' or 'sources' or
another. For example :

dirs :
| direcory1
| compilation of sources specified by 'sources'
| directory2
| execution of the command 'todobefore.bat'
| compilation of sources specified by 'sources'

Re: Execute a command during a process of Build (Build System with DIRS,SOURCES) by Anthony

Anthony
Mon Oct 30 06:32:34 CST 2006

have a look at the PRELINK_PASS_CMD directive in the SOURCES file (supposing
you're running Wince 5.0).

HTH

--
--
--
----------------------------------------------------------------
Anthony Pellerin (eMVP)
ADENEO (ADESET)
Windows Embedded Consultant
<apellerin AT adeneo DOT adetelgroup DOT com>
http://www.adeneo.adetelgroup.com
Tél : +33 (0)4.72.18.57.77
Fax : +33 (0)4.72.18.57.78
----------------------------------------------------------------
"Olivier M" <olivier_martin@laposte.net> a écrit dans le message de news:
1162210592.621153.103990@b28g2000cwb.googlegroups.com...
> Hi,
>
> i would like to know if it is possible to execute a command as a
> preprocess during build with use of files 'dirs' or 'sources' or
> another. For example :
>
> dirs :
> | direcory1
> | compilation of sources specified by 'sources'
> | directory2
> | execution of the command 'todobefore.bat'
> | compilation of sources specified by 'sources'
>



Re: Execute a command during a process of Build (Build System with DIRS,SOURCES) by Olivier

Olivier
Mon Oct 30 11:44:36 CST 2006

Thanks Anthony !

i do not have this directive in my MSDN version but it works. Do you
know if there is the same kind of directive for launching a command
before compilation stage (and not before link).

I have tried PREBUILD_PASS_CMD and PRECOMPILE_PASS_CMD but no result
.=2E.

I know that i can launch my command before to call "build -c". But, the
aim is to call this command only when i need it. eg:

"build -c" :
dirs
| direcory1
| compilation of sources specified by 'sources'
| directory2
| execution of the command 'todobefore.bat'
| compilation of sources specified by 'sources'

In this example, i would like to not call "todobefore.bat; build -c"

Cheers,
Olivier

Anthony Pellerin wrote:
> have a look at the PRELINK_PASS_CMD directive in the SOURCES file (suppos=
ing
> you're running Wince 5.0).
>
> HTH
>
> --
> --
> --
> ----------------------------------------------------------------
> Anthony Pellerin (eMVP)
> ADENEO (ADESET)
> Windows Embedded Consultant
> <apellerin AT adeneo DOT adetelgroup DOT com>
> http://www.adeneo.adetelgroup.com
> T=E9l : +33 (0)4.72.18.57.77
> Fax : +33 (0)4.72.18.57.78
> ----------------------------------------------------------------
> "Olivier M" <olivier_martin@laposte.net> a =E9crit dans le message de new=
s:
> 1162210592.621153.103990@b28g2000cwb.googlegroups.com...
> > Hi,
> >
> > i would like to know if it is possible to execute a command as a
> > preprocess during build with use of files 'dirs' or 'sources' or
> > another. For example :
> >
> > dirs :
> > | direcory1
> > | compilation of sources specified by 'sources'
> > | directory2
> > | execution of the command 'todobefore.bat'
> > | compilation of sources specified by 'sources'
> >


Re: Execute a command during a process of Build (Build System with DIRS,SOURCES) by Bruce

Bruce
Mon Oct 30 16:04:37 CST 2006

Look at WINCETARGETFILE0, it should give you the power to do what you need
to do. I don't know of any examples, but you should be able to find
examples of it's brother WINCETARGETFILES which lets you run something after
linking.

--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net

Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member

"Olivier M" <olivier_martin@laposte.net> wrote in message
news:1162230276.280263.122160@k70g2000cwa.googlegroups.com...
Thanks Anthony !

i do not have this directive in my MSDN version but it works. Do you
know if there is the same kind of directive for launching a command
before compilation stage (and not before link).

I have tried PREBUILD_PASS_CMD and PRECOMPILE_PASS_CMD but no result
...

I know that i can launch my command before to call "build -c". But, the
aim is to call this command only when i need it. eg:

"build -c" :
dirs
| direcory1
| compilation of sources specified by 'sources'
| directory2
| execution of the command 'todobefore.bat'
| compilation of sources specified by 'sources'

In this example, i would like to not call "todobefore.bat; build -c"

Cheers,
Olivier

Anthony Pellerin wrote:
> have a look at the PRELINK_PASS_CMD directive in the SOURCES file
> (supposing
> you're running Wince 5.0).
>
> HTH
>
> --
> --
> --
> ----------------------------------------------------------------
> Anthony Pellerin (eMVP)
> ADENEO (ADESET)
> Windows Embedded Consultant
> <apellerin AT adeneo DOT adetelgroup DOT com>
> http://www.adeneo.adetelgroup.com
> Tél : +33 (0)4.72.18.57.77
> Fax : +33 (0)4.72.18.57.78
> ----------------------------------------------------------------
> "Olivier M" <olivier_martin@laposte.net> a écrit dans le message de news:
> 1162210592.621153.103990@b28g2000cwb.googlegroups.com...
> > Hi,
> >
> > i would like to know if it is possible to execute a command as a
> > preprocess during build with use of files 'dirs' or 'sources' or
> > another. For example :
> >
> > dirs :
> > | direcory1
> > | compilation of sources specified by 'sources'
> > | directory2
> > | execution of the command 'todobefore.bat'
> > | compilation of sources specified by 'sources'
> >