Can Android.mk run scripts

1,462 views
Skip to first unread message

ezmora

unread,
Sep 6, 2011, 10:07:11 AM9/6/11
to android-ndk
I'd like my Android/Application.mk to run a (Python script).
Is that possible? How?

David Turner

unread,
Sep 6, 2011, 10:17:43 AM9/6/11
to andro...@googlegroups.com
On Tue, Sep 6, 2011 at 4:07 PM, ezmora <eyal...@gmail.com> wrote:
I'd like my Android/Application.mk to run a (Python script).
Is that possible? How?

Nope, it's a build system, not a general-purpose shell :-)

Just write a wrapper that runs your script then calls ndk-build after that.
 
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.


Adrian Vintu

unread,
Sep 6, 2011, 12:02:30 PM9/6/11
to andro...@googlegroups.com
Yes.

Use $(shell python /path_to_script) like

bla = $(shell python myscript.py)

Best regards,
Adrian
http://adrianvintu.com
Reply all
Reply to author
Forward
0 new messages