def parse_deps(path):
    """
    parse the project propertie file,
    return (sdk_target, is_library_flag , deps)
    """
    proj_fd = path + "/project.properties"
    sdk_target = None
    lib_flag = None
    deps = []
    with open(proj_fd) as fd:
        for line in fd.readlines():
            if (line.startswith("target=")):
                sdk_target = line[len("target="):]
                sdk_target = sdk_target.strip("\r\n")
            if (line.startswith("android.library=")):
                lib_flag = line[len("android.library="):]
                lib_flag = lib_flag.strip("\r\n")
            if (line.startswith("android.library.reference.")):
                dep = line.split('=')[1].strip("\r\n")
                if (dep.startswith("../")):
                    dep = dep[3:]
                deps.append(dep)
    return sdk_target, lib_flag, deps