A dummy dependency class.

pull/15/head
Jussi Pakkanen 12 years ago
parent 90779664c3
commit 32f2f2457f
  1. 14
      environment.py

@ -278,11 +278,23 @@ class Environment():
def get_datadir(self): def get_datadir(self):
return self.options.datadir return self.options.datadir
class Dependency():
def __init__(self):
pass
def get_compile_flags(self):
return []
def get_link_flags(self):
return []
# This should be an InterpreterObject. Fix it. # This should be an InterpreterObject. Fix it.
class PkgConfigDependency():
class PkgConfigDependency(Dependency):
pkgconfig_found = False pkgconfig_found = False
def __init__(self, name): def __init__(self, name):
Dependency.__init__(self)
if not PkgConfigDependency.pkgconfig_found: if not PkgConfigDependency.pkgconfig_found:
self.check_pkgconfig() self.check_pkgconfig()

Loading…
Cancel
Save