+
+class LocalTarget(Target):
+ """Build on the local machine with its environment"""
+ def __init__(self, work):
+ super(LocalTarget, self).__init__('local', work)
+ # Hack around ffmpeg.git which sees that the target isn't windows/osx and then assumes
+ # distro will be there.
+ self.distro = None
+ self.set('PKG_CONFIG_PATH', '%s/lib/pkgconfig:%s/bin/pkgconfig' % (self.directory, self.directory))
+
+ def command(self, c):
+ log_normal('host -> %s' % c)
+ command('%s %s' % (self.variables_string(), c))
+
+ def cleanup(self):
+ rmtree(self.directory)
+