3 import os
, sys
, subprocess
4 from android_common
import *
7 here
= os
.path
.abspath(os
.path
.dirname(sys
.argv
[0]))
8 android_run
= os
.path
.join(here
, 'android_run.py')
11 output_type
= 'executable'
17 output_type
= 'shared'
19 output_type
= 'object'
24 print "No output file name!"
27 ret
= subprocess
.call(sys
.argv
[1:])
31 if output_type
in ['executable', 'shared']:
32 push_to_device(output
)
34 if output_type
== 'executable':
35 os
.rename(output
, output
+ '.real')
36 os
.symlink(android_run
, output
)