generate rpm package

This commit is contained in:
liuwentan
2023-02-16 17:45:18 +08:00
parent b5b47837d2
commit be5d157733
7 changed files with 198 additions and 9 deletions

View File

@@ -7,6 +7,8 @@ set(MAAT_FRAME_VERSION ${MAAT_FRAME_MAJOR_VERSION}.${MAAT_FRAME_MINOR_VERSION}.$
message(STATUS "Maat Frame, Version: ${MAAT_FRAME_VERSION}")
LINK_DIRECTORIES(/opt/MESA/lib /usr/lib64)
add_definitions(-D_GNU_SOURCE)
add_definitions(-fPIC)
set(MAAT_SRC alignment.c json2iris.c maat_api.c rcu_hash.c maat_garbage_collection.c maat_config_monitor.c
@@ -18,6 +20,7 @@ set(MAAT_SRC alignment.c json2iris.c maat_api.c rcu_hash.c maat_garbage_collecti
set(LIB_SOURCE_FILES
${PROJECT_SOURCE_DIR}/deps/cJSON/cJSON.c ${PROJECT_SOURCE_DIR}/deps/log/log.c)
include_directories(/opt/MESA/include/MESA/)
include_directories(${PROJECT_SOURCE_DIR}/include/)
include_directories(${PROJECT_SOURCE_DIR}/deps/)
include_directories(${PROJECT_SOURCE_DIR}/scanner)

View File

@@ -14,7 +14,7 @@
void *pp_schema_new(cJSON *json, struct table_manager *tbl_mgr,
const char *table_name, struct log_handle *logger)
{
return NULL;
}
void pp_schema_free(void *pp_schema)
@@ -27,7 +27,7 @@ void *pp_runtime_new(void *pp_schema, int max_thread_num,
struct maat_garbage_bin *garbage_bin,
struct log_handle *logger)
{
return NULL;
}
void pp_runtime_free(void *pp_runtime)
@@ -38,24 +38,24 @@ void pp_runtime_free(void *pp_runtime)
int pp_runtime_update(void *pp_runtime, void *pp_schema,
const char *line, int valid_column)
{
return 0;
}
int pp_runtime_commit(void *pp_runtime, const char *table_name)
{
return 0;
}
struct ex_data_runtime *pp_runtime_get_ex_data_rt(struct pp_runtime *pp_rt)
{
return NULL;
}
int pp_runtime_scan(struct pp_runtime *pp_rt, int thread_id, int port,
int proto, int *group_ids, size_t group_id_size,
int vtable_id, struct maat_state *state)
{
return 0;
}
void pp_runtime_scan_hit_inc(struct pp_runtime *pp_rt, int thread_id)
@@ -65,5 +65,5 @@ void pp_runtime_scan_hit_inc(struct pp_runtime *pp_rt, int thread_id)
long long pp_runtime_scan_hit_sum(struct pp_runtime *pp_rt, int n_thread)
{
return 0;
}