#!/bin/bash

#Copy the metal libraries into the app that you want to use them in
copy_library(){
    #This needs to be a directory not a file
    #TODO: Prevent a non-directory from being passed as first param
    DESTINATION_DIRECTORY=$1
    for FILE in ../Sources/Adamantium/Metal_Library/*.metallib
    do
       cp $FILE $DESTINATION_DIRECTORY
    done;
    
    for FILE in ../Sources/Adamantium/Metal_DebugLibrary/*.metallibsym
    do
       cp $FILE $DESTINATION_DIRECTORY
    done;
}

#copy_library ../BeachBucketDemoApp/Beach/Metal
#copy_library ../AuraApp/Aura/Metal
#copy_library ../MetalCameraApp/MetalCamera/Metal
