linux - Environment variables definition fails on pre-build steps in Code::Blocks -
i'm trying define environment variables on pre-build step if have not been defined yet , use them specify compiler include flags.
problems:
environment variables fails defined in code::blocks environment.
input "pre-build steps" in "build options... / pre/post build steps":test="testval" echo test: $test
output of buildlog:test:
global variables ("variables starting single hash sign (#) interpreted global compiler variables.") seems accessible reading.
how can define$(#myvar)
in pre-build step use in "search directories / compiler" $(myvar) path?
or possible extend global $includes pre-build steps? - thereaddincludedir()
command in compileoptionsbase, how access it?
tried script expansion[[ compileoptionsbase.addincludedir(_t("./mydir")); ]]
,echo $includes echo [[ print(compileoptionsbase.getincludedirs()); ]]
yields in build log:echo -iexport -iinclude -iexport/shared -iswig/wraps -i/usr/include/python2.7 -iexport -iinclude -iexport/shared -iswig/wraps -i/usr/include/python2.7 echo (null : 0x(nil)) <<< result of getincludedirs() /bin/sh: 1: syntax error: word unexpected (expecting ")")
what wrong pre/post build steps in code::blocks , how should scripting work there?
environment:
code::blocks 16.01 (build: feb2 2016, 03:15:41 - wx2.8.12 (linux,unicode) - 64 bit).
Comments
Post a Comment