simple function trying to automate the compilation using build dir in plugin dir - unfinished