Lines Matching full:version
55 def get_art_dir(version): argument
56 art_dir = version == 'default' and 'art' or 'art-%s' % version
59 def get_lib_dir(version): argument
60 return os.path.join(get_art_dir(version), 'lib')
62 def get_fw_dir(version): argument
63 return os.path.join(get_art_dir(version), 'framework')
65 def get_vm(version): argument
66 return os.path.join(get_art_dir(version), 'bin', 'dalvikvm64')
68 def setup_environment(version): argument
69 art_dir = get_art_dir(version)
70 lib_dir = get_lib_dir(version)
71 android_data = os.path.join(utils.REPO_ROOT, 'build', 'tmp', version)
80 def get_boot_libs(version): argument
81 return [os.path.join(get_fw_dir(version), lib) for lib in BOOT_LIBS]
83 def get_common_flags(version): argument
85 if version != '5.1.1':
87 if version != '6.0.1':
91 def get_debuggee_flags(version): argument
92 return get_common_flags(version) + DEBUGGEE_EXTRA_FLAGS
94 def get_debugger_flags(version): argument
95 return get_common_flags(version) + DEBUGGER_EXTRA_FLAGS
97 def runDebuggee(version, args): argument
98 art_dir = get_art_dir(version)
99 lib_dir = get_lib_dir(version)
100 fw_dir = get_fw_dir(version)
101 cmd = [get_vm(version)]
102 cmd.append('-Xbootclasspath:%s' % ':'.join(get_boot_libs(version)))
103 cmd.extend(get_debuggee_flags(version))
105 setup_environment(version)
109 def runDebugger(version, classpath, args): argument
110 art_dir = get_art_dir(version)
111 lib_dir = get_lib_dir(version)
112 fw_dir = get_fw_dir(version)
116 cmd.append('-Xbootclasspath:%s' % ':'.join(get_boot_libs(version)))
117 cmd.extend(get_debugger_flags(version))
119 (dalvikvm, ' '.join(get_debuggee_flags(version))))
121 setup_environment(version)
126 …print "Usage: %s [--debuggee] [--version=<version>] [--classpath=<classpath>] <args>" % (sys.argv[…
127 print "where <version> is one of:", ', '.join(VERSIONS)
132 version = 'default'
140 elif arg.startswith('--version='):
141 version = arg[len('--version='):]
146 if version not in VERSIONS:
147 print "Invalid version", version
153 return runDebuggee(version, args)
159 return runDebugger(version, classpath, args)