It should be documented somewhere, and some quick ref. below.

Below Android.mk file copies pvplayer.cfg to system/etc folder
http://git.omapzoom.org/?p=platform/external/opencore.git;a=blob;f=Android.mk;h=013e5c8e6ccfc2feab9fb7a61814cc04868f9ebe;hb=p-eclair

Lot of commands like print, echo are being used in below .mk file
http://git.omapzoom.org/?p=platform/external/opencore.git;a=blob;f=tools_v2/build/make/android_make_extras.mk;h=fd425e6fb3df716bad312eafe6700821ee647a07;hb=p-eclair

-Deva

On Wed, Jun 9, 2010 at 5:03 PM, Uma Sankar <tammana.umasan...@gmail.com>wrote:

> Hi All,
>
> I would like to run some shell commands after building my module
> can I make Android.mk to run shell script ?
>
> For example,
> I need to copy data.txt file in to LOCAL_MODULE_PATH after build the
> application. By using the Android.mk file application(server) is able
> to generated at specified folder but I don't know how to make a entry
> in Android.mk file to copy the data.txt file into specified path. My
> Android.mk is given below.
>
> ifneq ($(TARGET_SIMULATOR),true)
> LOCAL_PATH:= $(call my-dir)
>
> include $(CLEAR_VARS)
> LOCAL_SRC_FILES:= thserv.c readln.c writened.c
> LOCAL_CFLAGS += -D_LINUX
> LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../include
> LOCAL_C_INCLUDES += $(LOCAL_PATH)/../include
> LOCAL_STATIC_LIBRARIES := libcutils libc
> LOCAL_SHARED_LIBRARIES := libutils
> LOCAL_MODULE := server
> LOCAL_MODULE_PATH := $(TARGET_OUT_EXECUTABLES)
> LOCAL_UNSTRIPPED_PATH := $(TARGET_OUT_EXECUTABLES_UNSTRIPPED)
> LOCAL_LDLIBS := -lpthread -lrt
> include $(BUILD_EXECUTABLE)
>
> endif  # TARGET_SIMULATOR != true
>
> my data.txt is present where my source code is present.
> Any idea how data.txt copy to destination folder after compilation of
> application?
>
> Thanks
>
> --
> unsubscribe: 
> android-porting+unsubscr...@googlegroups.com<android-porting%2bunsubscr...@googlegroups.com>
> website: http://groups.google.com/group/android-porting
>

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to