2017-11-22 18:52:15 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2018-06-16 20:33:29 +00:00
|
|
|
code_home="$PWD"
|
|
|
|
opts="-Wno-write-strings -Wno-null-dereference -Wno-comment -Wno-switch -Wno-writable-strings -g"
|
2017-11-22 19:04:14 +00:00
|
|
|
|
|
|
|
cd ../build > /dev/null
|
2018-06-16 20:33:29 +00:00
|
|
|
preproc_file=4coder_command_metadata.i
|
|
|
|
meta_macros="-DCUSTOM_COMMAND_SIG=CUSTOM_COMMAND_SIG -DCUSTOM_DOC=CUSTOM_DOC -DCUSTOM_ALIAS=CUSTOM_ALIAS -DNO_COMMAND_METADATA"
|
|
|
|
g++ -I"$code_home" $meta_macros $opts -std=gnu++0x "$SOURCE" -E -o $preproc_file
|
|
|
|
g++ -I"$code_home" $opts -std=gnu++0x "$code_home/4coder_metadata_generator.cpp" -o metadata_generator
|
|
|
|
metadata_generator -R "$code_home" "$PWD/$preproc_file"
|
|
|
|
cd $code_home > /dev/null
|
2017-11-22 19:04:14 +00:00
|
|
|
|