Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- PRE_TEXT="
- LOCAL_PATH := \$(call my-dir)
- include \$(CLEAR_VARS)
- LOCAL_MODULE := XOcross
- ### Add all source file names to be included in lib separated by a whitespace
- LOCAL_SRC_FILES := "
- NEXT_LINE="\n"
- FILES=""
- #OUT=`qmake DEFINES+=TX_ANDROID ./XO-gles.pro`
- for current_file in $@ ; do
- FILES="${FILES} \\
- \t${current_file}";
- if ! [ -f $current_file ]; then
- echo "No file $current_file"
- exit 0;
- fi
- done
- POST_TEXT="
- ### Load additional libs
- LOCAL_LDLIBS := -llog -landroid -lEGL -lGLESv2
- ### Link NativeActivity support
- LOCAL_STATIC_LIBRARIES := android_native_app_glue
- include \$(BUILD_SHARED_LIBRARY)
- \$(call import-module,android/native_app_glue)
- "
- echo "$PRE_TEXT$FILES$POST_TEXT" > Android.mk
Advertisement
Add Comment
Please, Sign In to add comment