Skip to content

Instantly share code, notes, and snippets.

@tcwu2005
Forked from basharam/Android.mk
Created October 11, 2016 13:43
Show Gist options
  • Select an option

  • Save tcwu2005/f971d0a0f4cfd47a722d76281db317c4 to your computer and use it in GitHub Desktop.

Select an option

Save tcwu2005/f971d0a0f4cfd47a722d76281db317c4 to your computer and use it in GitHub Desktop.

Revisions

  1. @basharam basharam revised this gist Mar 12, 2014. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion Android.mk
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    #Link prebuilt static library Android

    LOCAL_PATH := $(call my-dir)

    include $(CLEAR_VARS)
    @@ -8,8 +9,11 @@ include $(CLEAR_VARS)


    LOCAL_MODULE := NameLib1

    LOCAL_C_INCLUDES :=$(LOCAL_PATH)/testfolder

    LOCAL_SRC_FILES := location of /libNameLib1.a

    include $(PREBUILT_STATIC_LIBRARY)

    include $(CLEAR_VARS)
    @@ -20,11 +24,13 @@ LOCAL_MODULE := NameLib2
    LOCAL_CPP_EXTENSION := .cpp

    LOCAL_SRC_FILES := file1.cpp \
    file2.cpp
    file2.cpp


    LOCAL_STATIC_LIBRARIES= NameLib1

    LOCAL_CFLAGS := -DANDROID=1 -fpermissive -fexceptions

    LOCAL_C_INCLUDES += $(LOCAL_PATH)/testfolder

    include $(BUILD_STATIC_LIBRARY)
  2. @basharam basharam created this gist Mar 12, 2014.
    30 changes: 30 additions & 0 deletions Android.mk
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    #Link prebuilt static library Android
    LOCAL_PATH := $(call my-dir)

    include $(CLEAR_VARS)

    #run scipt
    #ECHO_RESULT := $(info $(shell ($(LOCAL_PATH)/testscript.sh)))


    LOCAL_MODULE := NameLib1
    LOCAL_C_INCLUDES :=$(LOCAL_PATH)/testfolder
    LOCAL_SRC_FILES := location of /libNameLib1.a
    include $(PREBUILT_STATIC_LIBRARY)

    include $(CLEAR_VARS)

    LOCAL_MODULE := NameLib2


    LOCAL_CPP_EXTENSION := .cpp

    LOCAL_SRC_FILES := file1.cpp \
    file2.cpp


    LOCAL_STATIC_LIBRARIES= NameLib1
    LOCAL_CFLAGS := -DANDROID=1 -fpermissive -fexceptions
    LOCAL_C_INCLUDES += $(LOCAL_PATH)/testfolder

    include $(BUILD_STATIC_LIBRARY)