Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sqlite] Add sqlite library #56

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions daemon/mlops-agent-android.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#include "log.h"
#include "mlops-agent-interface.h"
#include "mlops-agent-internal.h"
#include "../libsqliteX/include/sqlite3.h"
#include "../libsqliteX/include/sqlite3ext.h"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sqlite is an external package.
use #include <headername.h> and add includepath to the script (.mk file). this will help moving sqlite to another repo.


/**
* @brief An interface exported for setting the description of a pipeline.
Expand Down
11 changes: 10 additions & 1 deletion jni/mlops-agent.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,17 @@ ifndef MLOPS_AGENT_ROOT
$(error MLOPS_AGENT_ROOT is not defined!)
endif

include $(CLEAR_VARS)
LOCAL_MODULE := sqliteX
LOCAL_SRC_FILES := $(MLOPS_AGENT_ROOT)/libsqliteX/$(TARGET_ARCH_ABI)/libsqliteX.so
LOCAL_EXPORT_C_INCLUDES := $(MLOPS_AGENT_ROOT)/libsqliteX/include
include $(PREBUILT_SHARED_LIBRARY)

# mlops agent headers
LOCAL_MODULE :=ml-agent
MLOPS_AGENT_INCLUDE := $(MLOPS_AGENT_ROOT)/daemon/include

# mlops agent sources
MLOPS_AGENT_SRCS := $(MLOPS_AGENT_ROOT)/daemon/mlops-agent-android.c
LOCAL_SHARED_LIBRARIES := sqliteX
include $(BUILD_SHARED_LIBRARY)

Binary file added libsqliteX/arm64-v8a/libsqliteX.so
Binary file not shown.
Binary file added libsqliteX/armeabi-v7a/libsqliteX.so
Binary file not shown.
Loading
Loading