CocosApplication.mk 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. APP_STL := c++_static
  2. # Uncomment this line to compile to armeabi-v7a, your application will run faster but support less devices
  3. APP_ABI := armeabi-v7a
  4. APP_CPPFLAGS := -frtti -std=c++11 -fsigned-char
  5. APP_LDFLAGS := -latomic
  6. # To solve windows commands char length too long
  7. APP_SHORT_COMMANDS := true
  8. USE_ARM_MODE := 1
  9. # MUST be careful to modify this manually
  10. # disable module will speed up compile time, and reduce package size
  11. USE_GFX_RENDERER := 1
  12. USE_VIDEO := 1
  13. USE_WEB_VIEW := 1
  14. USE_AUDIO := 1
  15. USE_SOCKET := 1
  16. USE_SPINE := 1
  17. USE_DRAGONBONES := 1
  18. USE_TIFF := 1
  19. USE_MIDDLEWARE := 1
  20. USE_PARTICLE := 1
  21. APP_CPPFLAGS += -DUSE_GFX_RENDERER=$(USE_GFX_RENDERER)
  22. APP_CPPFLAGS += -DUSE_VIDEO=${USE_VIDEO}
  23. APP_CPPFLAGS += -DUSE_WEB_VIEW=${USE_WEB_VIEW}
  24. APP_CPPFLAGS += -DUSE_AUDIO=${USE_AUDIO}
  25. APP_CPPFLAGS += -DUSE_SOCKET=${USE_SOCKET}
  26. APP_CPPFLAGS += -DUSE_SPINE=${USE_SPINE}
  27. APP_CPPFLAGS += -DUSE_DRAGONBONES=${USE_DRAGONBONES}
  28. APP_CPPFLAGS += -DCC_USE_TIFF=${USE_TIFF}
  29. APP_CPPFLAGS += -DUSE_MIDDLEWARE=${USE_MIDDLEWARE}
  30. APP_CPPFLAGS += -DUSE_PARTICLE=${USE_PARTICLE}
  31. ifeq ($(NDK_DEBUG),1)
  32. APP_CPPFLAGS += -DCOCOS2D_DEBUG=1
  33. APP_CFLAGS += -DCOCOS2D_DEBUG=1
  34. APP_OPTIM := debug
  35. else
  36. APP_CPPFLAGS += -DNDEBUG
  37. APP_CFLAGS += -DNDEBUG
  38. APP_OPTIM := release
  39. endif
  40. # Some Android Simulators don't support SSE instruction, so disable it for x86 arch.
  41. APP_CPPFLAGS += -U__SSE__
  42. USE_EDIT_BOX := 1