22 lines
419 B
Python
22 lines
419 B
Python
#!/usr/bin/python
|
|
import shutil
|
|
from config import *
|
|
|
|
lib = "../lib/" + application + "/%s"
|
|
|
|
def copy_image(target, source, env):
|
|
dst = str(target[0].rfile())
|
|
src = str(source[0].rfile())
|
|
shutil.copy(src, dst)
|
|
|
|
images = []
|
|
if application == "ocarina":
|
|
images = ["ocarina.png", "ocarina512.png"]
|
|
|
|
files = []
|
|
for image in images:
|
|
dst = lib % image
|
|
files.append(env.Command(dst, image, copy_image))
|
|
|
|
Return('files')
|