Scons - How to run a command on files
===

### Background
Our build script use `Install()` and `InstallAs()` to install a number of .dylib and .so files to a "dist" directory. 

    Install(dist_dir, 'libfoo')
    Install(dist_dir, 'libbar')
    ...

### The problem
After the library files are copied to dist_dir, we would like to run a custom function on each of the files. That custom command is as followed:

    def add_magic(lib_filename, arg1, arg2, arg3)

We appreciate any help to achieve our goals.

### What have we tried so far?
* We just started looked into creating custom builder via Builder()
* We also looked at Command() builder
* We also looked at the AddMethod() function to create pseudo-builder

Right now our bets are on the first two approaches, we are reading the user guide and working on simple examples. We are no where near the end and appreciate any tips/hint. 