Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Post build events

Reply
Thread Tools Display Modes

Post build events

 
 
ssylee
Guest
Posts: n/a

 
      07-12-2008
I'm trying to define somewhere in my SOURCES file to execute a certain batch
file after my DDK project has been built successfully. How would I go about
and achieve that in the SOURCES file?
 
Reply With Quote
 
 
 
 
Tanya Radeva [MSFT]
Guest
Posts: n/a

 
      07-12-2008
Currently we do not have a SOURCES file macro to run custom batch file as a
postbuild step.

Best regards,
Tanya

"ssylee" wrote:

> I'm trying to define somewhere in my SOURCES file to execute a certain batch
> file after my DDK project has been built successfully. How would I go about
> and achieve that in the SOURCES file?

 
Reply With Quote
 
ssylee
Guest
Posts: n/a

 
      07-12-2008
What about in the Makefile that I have a macro that would run a custom batch
file as a postbuild step? Would that be the same problem as the support for
the postbuild step in a SOURCES file macro?

"Tanya Radeva [MSFT]" wrote:

> Currently we do not have a SOURCES file macro to run custom batch file as a
> postbuild step.
>
> Best regards,
> Tanya
>
> "ssylee" wrote:
>
> > I'm trying to define somewhere in my SOURCES file to execute a certain batch
> > file after my DDK project has been built successfully. How would I go about
> > and achieve that in the SOURCES file?

 
Reply With Quote
 
Maxim S. Shatskih
Guest
Posts: n/a

 
      07-12-2008
I think this is doable by specifying the BAT file in MAKEFILE.INC

You must also include some item (forgot what) to SOURCES for MAKEFILE.INC
to be employed.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation

http://www.storagecraft.com

"ssylee" <> wrote in message
news884B68C-5408-4496-9F27-...
> I'm trying to define somewhere in my SOURCES file to execute a certain batch
> file after my DDK project has been built successfully. How would I go about
> and achieve that in the SOURCES file?


 
Reply With Quote
 
Tanya Radeva [MSFT]
Guest
Posts: n/a

 
      07-12-2008
Makefile.inc is not ment to be employed in the post build. The Build utility
will spawn NMAKE to execute this file before it searches the directory list
in the dirs file.

But, yes - you can put some batch file commands (cd , copy, etc) in the
makefile.inc.

Best regards,
Tanya

"Maxim S. Shatskih" wrote:

> I think this is doable by specifying the BAT file in MAKEFILE.INC
>
> You must also include some item (forgot what) to SOURCES for MAKEFILE.INC
> to be employed.
>
> --
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
>
> http://www.storagecraft.com
>
> "ssylee" <> wrote in message
> news884B68C-5408-4496-9F27-...
> > I'm trying to define somewhere in my SOURCES file to execute a certain batch
> > file after my DDK project has been built successfully. How would I go about
> > and achieve that in the SOURCES file?

>
>

 
Reply With Quote
 
Pavel A.
Guest
Posts: n/a

 
      07-12-2008
"ssylee" <> wrote in message
news884B68C-5408-4496-9F27-...
> I'm trying to define somewhere in my SOURCES file to execute a certain
> batch
> file after my DDK project has been built successfully. How would I go
> about
> and achieve that in the SOURCES file?


Why to do this in the SOURCES?
Can you check exit status of build.exe - where ever you launch it from -
and then run your batch file?

--PA


 
Reply With Quote
 
ssylee
Guest
Posts: n/a

 
      07-14-2008
Thank you all for your reply. Pavel's idea on checking the status of
build.exe sounds promising, although I'm not sure how to do that. Could you
perhaps give me an example or a link to an example?

"Pavel A." wrote:

> "ssylee" <> wrote in message
> news884B68C-5408-4496-9F27-...
> > I'm trying to define somewhere in my SOURCES file to execute a certain
> > batch
> > file after my DDK project has been built successfully. How would I go
> > about
> > and achieve that in the SOURCES file?

>
> Why to do this in the SOURCES?
> Can you check exit status of build.exe - where ever you launch it from -
> and then run your batch file?
>
> --PA
>
>
>

 
Reply With Quote
 
Pavel A.
Guest
Posts: n/a

 
      07-14-2008
"ssylee" <> wrote in message
news:02FA1563-6F9E-4349-A4EB-...
> Thank you all for your reply. Pavel's idea on checking the status of
> build.exe sounds promising, although I'm not sure how to do that. Could
> you
> perhaps give me an example or a link to an example?


Please see the Windows command line help on how to check exit status of a
program.

.........
build.exe <options>
if %errorlevel% GTR 1 goto :fail

Regards,
--PA

> "Pavel A." wrote:
>
>> "ssylee" <> wrote in message
>> news884B68C-5408-4496-9F27-...
>> > I'm trying to define somewhere in my SOURCES file to execute a certain
>> > batch
>> > file after my DDK project has been built successfully. How would I go
>> > about
>> > and achieve that in the SOURCES file?

>>
>> Why to do this in the SOURCES?
>> Can you check exit status of build.exe - where ever you launch it from -
>> and then run your batch file?
>>
>> --PA
>>
>>
>>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
binplace doesn't seem to instantiate post build Paul Russell Windows Vista Drivers 4 08-28-2007 01:49 AM
DDKBUILD support for PREfast and post-build events Hannes Windows Vista Drivers 1 02-02-2005 03:16 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59