Added assimp (static library) to android makefiles (#97)
This commit is contained in:
parent
16440383c5
commit
01c12ef327
5 changed files with 12 additions and 20 deletions
|
|
@ -2,11 +2,11 @@ LOCAL_PATH := $(call my-dir)/../../texture
|
|||
|
||||
# assimp
|
||||
|
||||
#include $(CLEAR_VARS)
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
#LOCAL_MODULE := assimp
|
||||
#LOCAL_SRC_FILES := $(LOCAL_PATH)/../../libs/assimp/$(TARGET_ARCH_ABI)/libassimp.a
|
||||
#include $(PREBUILT_STATIC_LIBRARY)
|
||||
LOCAL_MODULE := assimp
|
||||
LOCAL_SRC_FILES := $(LOCAL_PATH)/../../libs/assimp/$(TARGET_ARCH_ABI)/libassimp.a
|
||||
include $(PREBUILT_STATIC_LIBRARY)
|
||||
|
||||
# vulkan example
|
||||
|
||||
|
|
@ -33,14 +33,13 @@ LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../base/
|
|||
|
||||
LOCAL_SRC_FILES := $(PROJECT_FILES)
|
||||
|
||||
LOCAL_LDLIBS := -landroid -llog
|
||||
#LOCAL_SHARED_LIBRARIES += assimp
|
||||
LOCAL_LDLIBS := -landroid -llog -lz
|
||||
|
||||
LOCAL_DISABLE_FORMAT_STRING_CHECKS := true
|
||||
|
||||
LOCAL_STATIC_LIBRARIES += android_native_app_glue
|
||||
LOCAL_STATIC_LIBRARIES += cpufeatures
|
||||
#LOCAL_STATIC_LIBRARIES += libassimp
|
||||
LOCAL_STATIC_LIBRARIES += libassimp
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@ LOCAL_PATH := $(call my-dir)/..
|
|||
|
||||
# assimp
|
||||
|
||||
#include $(CLEAR_VARS)
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
#LOCAL_MODULE := assimp
|
||||
#LOCAL_SRC_FILES := $(LOCAL_PATH)/../../libs/assimp/$(TARGET_ARCH_ABI)/libassimp.a
|
||||
#include $(PREBUILT_STATIC_LIBRARY)
|
||||
LOCAL_MODULE := assimp
|
||||
LOCAL_SRC_FILES := $(LOCAL_PATH)/../../libs/assimp/$(TARGET_ARCH_ABI)/libassimp.a
|
||||
include $(PREBUILT_STATIC_LIBRARY)
|
||||
|
||||
# vulkan example
|
||||
|
||||
|
|
@ -33,8 +33,7 @@ LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../base/
|
|||
|
||||
LOCAL_SRC_FILES := $(PROJECT_FILES)
|
||||
|
||||
LOCAL_LDLIBS := -landroid -llog
|
||||
#LOCAL_SHARED_LIBRARIES += assimp
|
||||
LOCAL_LDLIBS := -landroid -llog -lz
|
||||
|
||||
LOCAL_DISABLE_FORMAT_STRING_CHECKS := true
|
||||
|
||||
|
|
|
|||
|
|
@ -284,7 +284,6 @@ VkBool32 VulkanExampleBase::createBuffer(VkBufferUsageFlags usage, VkDeviceSize
|
|||
}
|
||||
}
|
||||
|
||||
#ifndef __ANDROID__
|
||||
void VulkanExampleBase::loadMesh(
|
||||
const char * filename,
|
||||
vkMeshLoader::MeshBuffer * meshBuffer,
|
||||
|
|
@ -304,7 +303,6 @@ void VulkanExampleBase::loadMesh(
|
|||
|
||||
delete(mesh);
|
||||
}
|
||||
#endif
|
||||
|
||||
void VulkanExampleBase::renderLoop()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -38,9 +38,7 @@
|
|||
|
||||
#include "vulkanswapchain.hpp"
|
||||
#include "vulkanTextureLoader.hpp"
|
||||
#ifndef __ANDROID__
|
||||
#include "vulkanMeshLoader.hpp"
|
||||
#endif
|
||||
|
||||
class VulkanExampleBase
|
||||
{
|
||||
|
|
@ -267,14 +265,12 @@ public:
|
|||
VkDescriptorBufferInfo *descriptor);
|
||||
|
||||
// Load a mesh (using ASSIMP) and create vulkan vertex and index buffers with given vertex layout
|
||||
// todo : mesh loader not yet enabled for Android
|
||||
#ifndef __ANDROID__
|
||||
void loadMesh(
|
||||
const char *filename,
|
||||
vkMeshLoader::MeshBuffer *meshBuffer,
|
||||
std::vector<vkMeshLoader::VertexLayout> vertexLayout,
|
||||
float scale);
|
||||
#endif
|
||||
|
||||
// Start the main render loop
|
||||
void renderLoop();
|
||||
|
||||
|
|
|
|||
BIN
libs/assimp/armeabi-v7a/libassimp.a
Normal file
BIN
libs/assimp/armeabi-v7a/libassimp.a
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue