Android.mk 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. # Copyright (C) 2010 The Android Open Source Project
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. #
  15. LOCAL_PATH := $(call my-dir)
  16. include $(CLEAR_VARS)
  17. LOCAL_MODULE := crown
  18. LOCAL_SRC_FILES :=\
  19. core/bv/Circle.cpp\
  20. core/bv/Frustum.cpp\
  21. core/bv/Rect.cpp\
  22. core/compressors/ZipCompressor.cpp\
  23. core/containers/Generic.cpp\
  24. core/filesystem/BinaryReader.cpp\
  25. core/filesystem/BinaryWriter.cpp\
  26. core/filesystem/DiskFile.cpp\
  27. core/filesystem/File.cpp\
  28. core/filesystem/Filesystem.cpp\
  29. core/filesystem/MemoryFile.cpp\
  30. core/filesystem/TextReader.cpp\
  31. core/filesystem/TextWriter.cpp\
  32. core/math/Color4.cpp\
  33. core/math/Mat3.cpp\
  34. core/math/Mat4.cpp\
  35. core/math/MathUtils.cpp\
  36. core/math/Plane.cpp\
  37. core/math/Quat.cpp\
  38. core/math/Shape.cpp\
  39. core/math/Vec2.cpp\
  40. core/math/Vec3.cpp\
  41. core/math/Vec4.cpp\
  42. core/mem/Allocator.cpp\
  43. core/mem/HeapAllocator.cpp\
  44. core/mem/LinearAllocator.cpp\
  45. core/mem/ProxyAllocator.cpp\
  46. core/mem/StackAllocator.cpp\
  47. core/mem/Memory.cpp\
  48. core/settings/FloatSetting.cpp\
  49. core/settings/IntSetting.cpp\
  50. core/settings/StringSetting.cpp\
  51. core/Args.cpp\
  52. core/Log.cpp\
  53. \
  54. input/Accelerometer.cpp\
  55. input/Keyboard.cpp\
  56. input/Mouse.cpp\
  57. input/Touch.cpp\
  58. input/EventDispatcher.cpp\
  59. input/InputManager.cpp\
  60. \
  61. lua/LuaStack.cpp\
  62. lua/LuaEnvironment.cpp\
  63. \
  64. network/BitMessage.cpp\
  65. \
  66. os/OS.cpp\
  67. os/android/AndroidOS.cpp\
  68. os/android/AndroidDevice.cpp\
  69. os/android/OsWindow.cpp\
  70. os/android/OsFile.cpp\
  71. os/posix/Thread.cpp\
  72. os/posix/Mutex.cpp\
  73. os/posix/Cond.cpp\
  74. os/posix/TCPSocket.cpp\
  75. os/posix/UDPSocket.cpp\
  76. \
  77. renderers/gles/GLESRenderer.cpp\
  78. renderers/gles/GLESUtils.cpp\
  79. renderers/gles/egl/GLContext.cpp\
  80. renderers/DebugRenderer.cpp\
  81. renderers/PixelFormat.cpp\
  82. renderers/VertexFormat.cpp\
  83. \
  84. ArchiveBundle.cpp\
  85. Camera.cpp\
  86. Device.cpp\
  87. FileBundle.cpp\
  88. FontResource.cpp\
  89. FPSSystem.cpp\
  90. JSONParser.cpp\
  91. MaterialResource.cpp\
  92. PixelShaderResource.cpp\
  93. ResourceManager.cpp\
  94. TextResource.cpp\
  95. TextureResource.cpp\
  96. VertexShaderResource.cpp\
  97. Game.cpp\
  98. \
  99. LOCAL_C_INCLUDES :=\
  100. $(LOCAL_PATH)/\
  101. $(LOCAL_PATH)/core\
  102. $(LOCAL_PATH)/core/bv\
  103. $(LOCAL_PATH)/core/compressors\
  104. $(LOCAL_PATH)/core/containers\
  105. $(LOCAL_PATH)/core/filesystem\
  106. $(LOCAL_PATH)/core/math\
  107. $(LOCAL_PATH)/core/mem\
  108. $(LOCAL_PATH)/core/filesystem\
  109. $(LOCAL_PATH)/core/settings\
  110. $(LOCAL_PATH)/core/strings\
  111. $(LOCAL_PATH)/input\
  112. $(LOCAL_PATH)/lua\
  113. $(LOCAL_PATH)/network\
  114. $(LOCAL_PATH)/os\
  115. $(LOCAL_PATH)/os/android\
  116. $(LOCAL_PATH)/renderers\
  117. $(LOCAL_PATH)/renderers/gles\
  118. $(LOCAL_PATH)/renderers/gles/egl\
  119. $(LOCAL_PATH)/samples\
  120. # include third/luajit/include
  121. \
  122. LOCAL_CPPFLAGS := -g -fexceptions
  123. LOCAL_LDLIBS := -llog -landroid -lEGL -lGLESv2 -lz
  124. LOCAL_LDLIBS += $(LOCAL_PATH)/libluajit-5.1.so -lluajit-5.1
  125. LOCAL_SHARED_LIBRARIES := crown luajit-5.1
  126. include $(BUILD_SHARED_LIBRARY)
  127. include $(CLEAR_VARS)
  128. LOCAL_MODULE := crownlua
  129. LOCAL_SRC_FILES :=\
  130. lua/LuaStack.cpp\
  131. lua/LuaEnvironment.cpp\
  132. lua/AccelerometerBinds.cpp\
  133. lua/CameraBinds.cpp\
  134. lua/DeviceBinds.cpp\
  135. lua/KeyboardBinds.cpp\
  136. lua/Mat4Binds.cpp\
  137. lua/MathBinds.cpp\
  138. lua/MouseBinds.cpp\
  139. lua/QuatBinds.cpp\
  140. lua/TouchBinds.cpp\
  141. lua/Vec2Binds.cpp\
  142. lua/Vec3Binds.cpp\
  143. Game.cpp\
  144. \
  145. LOCAL_C_INCLUDES :=\
  146. $(LOCAL_PATH)\
  147. $(LOCAL_PATH)/lua\
  148. # include third/luajit/include
  149. \
  150. LOCAL_CPPFLAGS := -g -fexceptions -I
  151. LOCAL_LDLIBS := -llog -landroid
  152. LOCAL_LDLIBS += $(LOCAL_PATH)/libluajit-5.1.so -lluajit-5.1
  153. LOCAL_SHARED_LIBRARIES := crown luajit-5.1
  154. include $(BUILD_SHARED_LIBRARY)