ビルド プロセスの一部として、. にある入力ディレクトリの tar ファイルを作成しますsrc/bundle/bundle
。src/bundle/SConscript:
Import('*')
bundleDir = Dir("bundle")
jsontar = Command("bundle.tar", bundleDir,
"/home/dbender/bin/mkvgconf $SOURCE $TARGET")
私のSConstructで:
SConscript(Split('src/bundle/SConscript'),
exports='bin_env lib_env', build_dir='tmp/bundle')
ビルドしようとすると:
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
/home/dbender/bin/mkvgconf tmp/bundle/bundle tmp/bundle/bundle.tar
Input directory tmp/bundle/bundle not found!
scons: *** [tmp/bundle/bundle.tar] Error 1
scons: building terminated because of errors.
scons が src/bundle/bundle を tmp/bundle/bundle にコピーしていないことは明らかですが、その理由がわかりません。
脚注: mkvgconf に絶対パス名を使用するのは悪い習慣ですが、この問題が解決されるまでは中間的なものです。