I am trying to build a simple codec server, and my runxdc.sh file looks like this:
#! /bin/sh
# import install paths
. ../setpaths.sh
# Define search paths for included packages
export XDCPATH="$CE_INSTALL_DIR/examples;$CE_INSTALL_DIR/packages;$XDAIS_INSTALL_DIR/packages;$DSPLINK_INSTALL_DIR/packages;$CMEM_INSTALL_DIR/packages;$FC_INSTALL_DIR/packages;$XDC_INSTALL_DIR/packages;$BIOS_INSTALL_DIR/packages;$DVEVM_INSTALL_DIR/biosutils_1_00_02/packages"
# Define options for execution
export XDCBUILDCFG="$(pwd)/../config.bld"
echo "XDCBUILDCFG = $XDCBUILDCFG"
export XDCOPTIONS="-v" ### display each command before it is executed
# Execute xdc command
xdc $@ -P *
My XDCBUILDCFG environment variable is set to /home/darwin/projects/LightSpeed/tests/soln12a_build_server/../config.bld by this file. However, XDC specifies /home/darwin/projects/LightSpeed/dvsdk_1_30_01_41/codec_engine_2_00_01/packages/config.bld on the command line, instead. Why am I observing this behavior?
BTW, I added the following code to the package.bld file in my app and server directories, which got around the problem, but it would be good to understand why XDC is ignoring my XDCBUILDCFG environment variable:
if ( undefined == paths )
{
var paths = [] ;
paths["EXEC_DIR"] = java.lang.System.getenv( "EXEC_DIR" ) ;
}
print( 'paths["EXEC_DIR"]=' + paths["EXEC_DIR"] ) ;
Any help would be greatly appreciated.
Have a great day!
Take care,
Darwin