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

Developer

Forums

Forums:

I saw in Resource File and Markup Reference for Developers that cifc.exe resource compiler understand Lua script and #define directive.

I need answer next questions:

Can I use Lua (write function which will check resource file existence and include or doesn't include this resource into output mif, bar file) within cif, car files for resource files generation? Will be cifc compiler understand this?

And may be anybody know... Does cifc.exe understand directives like #ifdef......

Thank you!

 
Let me clear, CIF files and CAR files are Lua files that contains a list of directives and declarations. cifc is compilation tools which complies and produces MIF and BAR files. Below are the functionalities cifc supports currently. Note that cifc is only compilation tool for below functionalities, this can not be used as generic lua script compiler.
Usage: cifc [OPTIONS] FILE...
Options:
   -mod  : specify module name (used in stub code generation)
   -mif  : generate MIF and write to
   -bar  : generate BAR and write to .  This file is exactly the sa
me format as a mif,
                  except it ommits the mif header.
   -src  : generate stub code and write to
   -pre  : output pre-processed cif to
   -modci  : specify function IMod_New() will call to instantiate an IMod
   -s           : specify static stub
   -d           : specify dynamic stub
   -I dir       : add dir to include path (space may be omitted)
   -L dir       : add dir to cifc require path (space may be omitted)
   -M : output .dep file to stdout
   -3           : make 3.x compatible registry entries
   -Werror      : treat all warnings as errors
   -version     : prints version information
   -input_mif   : decompiles the input binary (.mif) into this cif
.
   -via   : arguments will be read from , this can be used multiple
 times.
                   If file is dash, - , arguments will be read from stdin.  Argu
ments
                   must be seprated by control characters, such as a newline.
   --via  : same as -via
   -cpp  : preprocessor command to run before parsing include files.
The
                     command must be a fully quoted string,
                     "gcc -x c-header -E -P -dD", the resulting command will be:
 
                        gcc -x c-header -E -P -dD incpath1
                     where is the include flag specified by -cppi option,
 and
                     is the file to include.  The command must also strip
 out
                     any comments in the file and keep all the symbols that cifc
 cares
                     about.  For example:
                        ./cifc -pre test.clif -I../../../inc -I../../../inc/OEM
-cpp "gcc -x c-header -E -P -dD" -cppi "-I" test.cif
   -cppi   : prefix for the include path for -cpp
   -noautoextdeps : disable auto generation of the external dependency resource
 
 

 
Let me clear, CIF files and CAR files are Lua files that contains a list of directives and declarations. cifc is compilation tools which complies and produces MIF and BAR files. Below are the functionalities cifc supports currently. Note that cifc is only compilation tool for below functionalities, this can not be used as generic lua script compiler.
Usage: cifc [OPTIONS] FILE...
Options:
   -mod  : specify module name (used in stub code generation)
   -mif  : generate MIF and write to
   -bar  : generate BAR and write to .  This file is exactly the sa
me format as a mif,
                  except it ommits the mif header.
   -src  : generate stub code and write to
   -pre  : output pre-processed cif to
   -modci  : specify function IMod_New() will call to instantiate an IMod
   -s           : specify static stub
   -d           : specify dynamic stub
   -I dir       : add dir to include path (space may be omitted)
   -L dir       : add dir to cifc require path (space may be omitted)
   -M : output .dep file to stdout
   -3           : make 3.x compatible registry entries
   -Werror      : treat all warnings as errors
   -version     : prints version information
   -input_mif   : decompiles the input binary (.mif) into this cif
.
   -via   : arguments will be read from , this can be used multiple
 times.
                   If file is dash, - , arguments will be read from stdin.  Argu
ments
                   must be seprated by control characters, such as a newline.
   --via  : same as -via
   -cpp  : preprocessor command to run before parsing include files.
The
                     command must be a fully quoted string,
                     "gcc -x c-header -E -P -dD", the resulting command will be:
 
                        gcc -x c-header -E -P -dD incpath1
                     where is the include flag specified by -cppi option,
 and
                     is the file to include.  The command must also strip
 out
                     any comments in the file and keep all the symbols that cifc
 cares
                     about.  For example:
                        ./cifc -pre test.clif -I../../../inc -I../../../inc/OEM
-cpp "gcc -x c-header -E -P -dD" -cppi "-I" test.cif
   -cppi   : prefix for the include path for -cpp
   -noautoextdeps : disable auto generation of the external dependency resource