Add generic viewer build script