|
|
Re: QNX C++ Project: adding a custom build step
|
|
02/16/2009 7:11 PM
post22324
|
Re: QNX C++ Project: adding a custom build step
We have POST_BUILD step definition in IDE, but don't have PRE_BUILD.
Just because it wasn't requested s far. There is work around. In
common.mk file for your project add definition of PRE_BUILD macro at the
same way we create POST_BUILD definition:
define PRE_BUILD
< your statements>
endef
You can also create post_build section through IDE, then rename it to
PRE_BUILD in common.mk.
On 16/02/2009 3:45 PM, Dan McCormick wrote:
> With our products under Windows built using Visual Studio VC 6.0 we create state machine code with a proprietary
Domain Specific Language. The source file for a state machine written in this DSL is included in the Visual Studio
project and has a custom build step setup for it which runs the translation program that converts that DSL source to
corresponding C++ source and header files.
>
> For example: say I have a state machine defined in Machine.smd
>
> I want to run a command: TranslateSMD -source Machine.smd
>
> which generates a set of files like:
> MachineEvent.h
> MachineState.h
> Machine.h
> Machine.inc
>
> along with some automated documentation. These generated files are then included in regular C++ source and header
files.
>
> I want to use this same mechanism with our QNX code for Neutrino 6.4. I need to add a similar custom build step for a
non C/C++ source file to a QNX C++ project (in Momentix 4.5.0). Unfortunately I don't see anything in the documentation
about how to do it. Can somebody point me to an example?
>
> Thanks
> Dan
>
>
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post22319
>
>
|
|
|
|
|