Hi,

For those who are trying to use shell commands in Android.mk or using file 
generators (such as Thrift and Swig) here a link explaining how to do so:

Reference: 
http://stackoverflow.com/questions/12372500/how-to-run-custom-rule-in-android-mk-before-compilation
 
by Alex Cohn

include $(CLEAR_VARS)
>
> LOCAL_SRC_FILES += callmanager_wrap.cpp
> MY_JNI_WRAP := $(LOCAL_PATH)/callmanager_wrap.cpp
>
> $(MY_JNI_WRAP):
>     echo "in myjni target"
>     swig -c++ -java -package com.package.my -o $(MY_JNI_WRAP) callmanager.i
>     cat jnistuff.txt >> $(MY_JNI_WRAP).PHONY: $(MY_JNI_WRAP)
>
> include $(BUILD_SHARED_LIBRARY)
>
>

-- 
-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to