OpenQNX :: The QNX Community Portal

Sep 09, 2010 - 02:51 PM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 14 unlogged users and 4 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
qnxdevelop
Post subject: how to embed usage message in a binary?  PostPosted: Nov 03, 2009 - 11:40 AM
Active Member


Joined: Mar 09, 2007
Posts: 26

I want to embed both usage message and build properties message in my binary. How do I do that?

It would be good if some one can paste some sample source code snippets.

I do not want to use the sample.use file. Instead i want it to be baked inside my source code.

Ex:- I want to print the below for my test application binary.

# use myTestApp
myTestApp - sample test application
Options:
-c: configuration file path
-v: verbosity level
-l: log to stdout

# use -i myTestApp
NAME=myTestApp
DESCRIPTION=sample test app
DATE=2009/10/28
STATE=expt
USER=tester1
VERSION=0.1.1
 
 View user's profile Send private message  
Reply with quote Back to top
metais
Post subject:   PostPosted: Dec 18, 2009 - 03:14 PM
Active Member


Joined: Mar 02, 2006
Posts: 17

I did not succeed to do the same thing through source code, so I added a "version" target in makefile like this :

version : $(TARGET_NAME)
@echo add version
usemsg -i VERSION=V0.12.4.0 -i DISTRIBUTOR=yourstring $(TARGET_NAME)
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.