Guest User

qt->android

a guest
Aug 19th, 2012
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.74 KB | None | 0 0
  1. #!/bin/sh
  2. PRE_TEXT="
  3. LOCAL_PATH := \$(call my-dir)
  4.  
  5. include \$(CLEAR_VARS)
  6.  
  7. LOCAL_MODULE    := XOcross
  8. ### Add all source file names to be included in lib separated by a whitespace
  9. LOCAL_SRC_FILES := "
  10.  
  11. NEXT_LINE="\n"
  12. FILES=""
  13. #OUT=`qmake DEFINES+=TX_ANDROID ./XO-gles.pro`
  14. for current_file in $@ ; do
  15.     FILES="${FILES} \\
  16.     \t${current_file}";
  17.     if ! [ -f $current_file ]; then
  18.         echo "No file $current_file"
  19.         exit 0;
  20.     fi
  21. done
  22.  
  23. POST_TEXT="
  24.  
  25. ### Load additional libs
  26. LOCAL_LDLIBS    := -llog -landroid -lEGL -lGLESv2
  27. ### Link NativeActivity support
  28. LOCAL_STATIC_LIBRARIES := android_native_app_glue
  29.  
  30.  
  31. include \$(BUILD_SHARED_LIBRARY)
  32.  
  33. \$(call import-module,android/native_app_glue)
  34. "
  35. echo "$PRE_TEXT$FILES$POST_TEXT" > Android.mk
Advertisement
Add Comment
Please, Sign In to add comment