Beispiel #1
0
 def __init__(self, root, name):
     BaseTarget.__init__(self, root, name, config.jar_suffix)
     folder = self.lib_path
     self.jar_list = util.find_all_files_with_suffix(os.path.join(folder, "libs"), "*.jar")
     for jar_path in self.jar_list:
         name = self.target_name(util.path_get_basename(jar_path))
         self.exported_deps.append(":%s" % name)
Beispiel #2
0
 def __init__(self, root, name):
     BaseTarget.__init__(self, root, name, config.proj_suffix)
     self.res = Resource(root, name)
     self.aidl = AIDL(root, name)
     self.jar = Jars(root, name)
     self.native = NativeLib(root, name)
     self.project_config = ProjectConfig(root, name)
     self.merge_all_deps()
Beispiel #3
0
 def __init__(self, root, name, aidl, jar, native, res, project_config):
     BaseTarget.__init__(self, root, name, config.proj_suffix)
     self.aidl = aidl
     self.jar = jar
     self.native = native
     self.res = res
     self.project_config = project_config
     self.merge_all_deps()
Beispiel #4
0
    def __init__(self, root, name):
        BaseTarget.__init__(self, root, name, config.res_suffix)
        
        calc = DepsCalculator(root, name)
        mdeps = []
        for dep in calc.get_deps(name):
            if calc.is_res_existed[dep]:
                mdeps.append(dep)
        
        self.format_res_deps(mdeps)
        self.is_assets_existed = self.check_assets_existed(self.lib_path)
        #self.is_res_existed = self.check_res_existed(self.lib_path)
        self.is_res_existed = calc.is_res_existed[name]

        #always exported self
        if self.is_res_existed:
            self.exported_deps.append(":%s" % self.target_name(name))
 def __init__(self, root, name):
     BaseTarget.__init__(self, root, name, config.proj_suffix)
Beispiel #6
0
 def __init__(self, root, name):
     BaseTarget.__init__(self, root, name, config.proj_suffix)
     self._init_template()
Beispiel #7
0
 def __init__(self, root, name):
     BaseTarget.__init__(self, root, name, config.aidl_suffix)
     self.aidl_path_list = self._find_all_aidls(os.path.join(self.lib_path, 'src'))
     for aidl_path in self.aidl_path_list:
         name = self.target_name(util.path_get_basename(aidl_path))
         self.deps.append(":%s" % name)
Beispiel #8
0
 def __init__(self, root, name):
     BaseTarget.__init__(self, root, name, config.native_suffix)
     self.is_exist_native = self._is_exist_native()
     if self.is_exist_native:
         name = self.target_name(self.proj_name)
         self.deps.append(":%s" % name)