Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi.

For the Brew MP compiling I use the command like below:

cs-make.exe SHELL=cmd -f MyApp.mak V=ADS12arm9_Release BREWMPSDK=C:\PROGRA~1\Qualcomm\BREWMP~1\PLATFO~1\102~1.488\platform BREWMP_PLATFORM=C:\PROGRA~1\Qualcomm\BREWMP~1\PLATFO~1\102~1.488\platform APP_GUID=12345

APP_GUID is defined in the source code. (ex: In AppDef.cpp I use like "int appGuid = APP_GUID;")

I compiled several times but it seems that APP_GUID value isn't passed down to the source code during compiling.

I wonder how I can pass the defined value on compilation. Should I change some code on makefile to pass the value? If so, please let me know how to do.

 

Thank you.

 

 

 

If you assign a file name to the CUSTOM_RULES environment variable, that file will be included as the last action of the 'rules.min' action.   This is an open-ended feature that can make using the project environment much more powerful.
You can add on to the variables used by Make to invoke the C compiler, override targets and do pretty much what you want from there.   It might help to study up on the Make.d framework a bit: 

If you assign a file name to the CUSTOM_RULES environment variable, that file will be included as the last action of the 'rules.min' action.   This is an open-ended feature that can make using the project environment much more powerful.
You can add on to the variables used by Make to invoke the C compiler, override targets and do pretty much what you want from there.   It might help to study up on the Make.d framework a bit: