@@ -32,43 +32,32 @@ set(GANDIVA_BC_FILE_NAME irhelpers.bc)
3232set (GANDIVA_BC_INSTALL_PATH ${GANDIVA_BC_INSTALL_DIR} /${GANDIVA_BC_FILE_NAME} )
3333set (GANDIVA_BC_OUTPUT_PATH ${CMAKE_BINARY_DIR } /${GANDIVA_BC_FILE_NAME} )
3434
35- # Set the path where the so lib file will be installed.
36- if (APPLE )
37- set (GANDIVA_HELPER_LIB_FILE_NAME libgandiva_helpers.dylib)
38- else ()
39- set (GANDIVA_HELPER_LIB_FILE_NAME libgandiva_helpers.so)
40- endif (APPLE )
41-
42- set (GANDIVA_HELPER_LIB_INSTALL_PATH ${GANDIVA_BC_INSTALL_DIR} /${GANDIVA_HELPER_LIB_FILE_NAME} )
43- set (GANDIVA_HELPER_LIB_OUTPUT_PATH ${CMAKE_BINARY_DIR } /debug/${GANDIVA_HELPER_LIB_FILE_NAME} )
44-
4535set (BC_FILE_PATH_CC "${CMAKE_CURRENT_BINARY_DIR } /bc_file_path.cc" )
4636configure_file (bc_file_path.cc.in ${BC_FILE_PATH_CC} )
4737
48- # helper files that are shared between libgandiva and libgandiva_helpers
49- set (SHARED_HELPER_FILES
50- like_holder.cc
51- regex_util.cc
52- execution_context.cc
53- to_date_holder.cc
54- date_utils.cc)
55-
5638set (SRC_FILES annotator.cc
5739 bitmap_accumulator.cc
5840 configuration.cc
41+ context_helper.cc
5942 engine.cc
43+ date_utils.cc
6044 expr_decomposer.cc
6145 expr_validator.cc
6246 expression.cc
6347 expression_registry.cc
48+ exported_funcs_registry.cc
6449 filter.cc
6550 function_registry.cc
6651 function_signature.cc
52+ gdv_function_stubs.cc
6753 llvm_generator.cc
6854 llvm_types.cc
55+ like_holder.cc
6956 projector.cc
57+ regex_util.cc
7058 selection_vector.cc
7159 tree_expr_builder.cc
60+ to_date_holder.cc
7261 ${SHARED_HELPER_FILES}
7362 ${BC_FILE_PATH_CC} )
7463
@@ -103,39 +92,12 @@ build_gandiva_lib("shared" arrow_shared)
10392
10493build_gandiva_lib ("static" arrow_static )
10594
106- # Pre-compiled .so library for function helpers.
107- add_library (gandiva_helpers SHARED
108- ${SHARED_HELPER_FILES}
109- function_holder_stubs.cc )
110-
111- add_dependencies (gandiva_helpers arrow_dependencies )
112-
113- target_compile_definitions (gandiva_helpers
114- PRIVATE -DGDV_HELPERS
115- )
116-
117- target_include_directories (gandiva_helpers
118- PRIVATE
119- ${CMAKE_SOURCE_DIR } /include
120- ${CMAKE_SOURCE_DIR } /src
121- ${ARROW_INCLUDE_DIR}
122- )
123-
124- target_link_libraries (gandiva_helpers PRIVATE Boost::boost re2 )
125-
126- # hide all symbols that are not needed.
127- if (NOT APPLE )
128- # apple linker does not support version scripts, not needed since we package from travis.
129- set_target_properties (gandiva_helpers PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_SOURCE_DIR } /src/gandiva/symbols-helpers.map" )
130- target_link_libraries (gandiva_helpers LINK_PRIVATE -static-libstdc++ -static-libgcc )
131- endif ()
132-
13395# install for gandiva
13496include (GNUInstallDirs )
13597
13698# install libgandiva
13799install (
138- TARGETS gandiva_shared gandiva_static gandiva_helpers
100+ TARGETS gandiva_shared gandiva_static
139101 DESTINATION ${CMAKE_INSTALL_LIBDIR}
140102)
141103
@@ -166,20 +128,26 @@ install(
166128 DESTINATION "${CMAKE_INSTALL_LIBDIR} /pkgconfig/" )
167129
168130#args: label test-file src-files
169- add_gandiva_unit_test (bitmap_accumulator_test.cc bitmap_accumulator.cc execution_context.cc )
170- add_gandiva_unit_test (engine_llvm_test.cc engine.cc llvm_types.cc configuration .cc execution_context.cc ${BC_FILE_PATH_CC} )
131+ add_gandiva_unit_test (bitmap_accumulator_test.cc bitmap_accumulator.cc )
132+ add_gandiva_unit_test (engine_llvm_test.cc engine.cc llvm_types.cc configuration .cc
133+ gdv_function_stubs.cc context_helper.cc to_date_holder.cc date_utils.cc
134+ exported_funcs_registry.cc ${BC_FILE_PATH_CC} )
171135add_gandiva_unit_test (function_signature_test.cc function_signature.cc )
172136add_gandiva_unit_test (function_registry_test.cc function_registry.cc function_signature.cc )
173137add_gandiva_unit_test (llvm_types_test.cc llvm_types.cc )
174- add_gandiva_unit_test (llvm_generator_test.cc llvm_generator.cc regex_util.cc engine.cc llvm_types.cc expr_decomposer.cc function_registry.cc annotator.cc bitmap_accumulator.cc configuration .cc function_signature.cc like_holder.cc to_date_holder.cc date_utils.cc regex_util.cc execution_context.cc ${BC_FILE_PATH_CC} )
138+ add_gandiva_unit_test (llvm_generator_test.cc llvm_generator.cc regex_util.cc engine.cc
139+ llvm_types.cc expr_decomposer.cc function_registry.cc annotator.cc
140+ bitmap_accumulator.cc configuration .cc function_signature.cc like_holder.cc
141+ to_date_holder.cc date_utils.cc regex_util.cc gdv_function_stubs.cc context_helper.cc
142+ exported_funcs_registry.cc ${BC_FILE_PATH_CC} )
175143add_gandiva_unit_test (annotator_test.cc annotator.cc function_signature.cc )
176- add_gandiva_unit_test (tree_expr_test.cc tree_expr_builder.cc expr_decomposer.cc annotator.cc function_registry.cc function_signature.cc like_holder.cc regex_util.cc to_date_holder.cc date_utils.cc execution_context.cc )
177- add_gandiva_unit_test (expr_decomposer_test.cc expr_decomposer.cc tree_expr_builder.cc annotator.cc function_registry.cc function_signature.cc like_holder.cc regex_util.cc to_date_holder.cc date_utils.cc execution_context.cc )
144+ add_gandiva_unit_test (tree_expr_test.cc tree_expr_builder.cc expr_decomposer.cc annotator.cc function_registry.cc function_signature.cc like_holder.cc regex_util.cc to_date_holder.cc date_utils.cc )
145+ add_gandiva_unit_test (expr_decomposer_test.cc expr_decomposer.cc tree_expr_builder.cc annotator.cc function_registry.cc function_signature.cc like_holder.cc regex_util.cc to_date_holder.cc date_utils.cc )
178146add_gandiva_unit_test (status_test.cc )
179147add_gandiva_unit_test (expression_registry_test.cc llvm_types.cc expression_registry.cc function_signature.cc function_registry.cc )
180148add_gandiva_unit_test (selection_vector_test.cc selection_vector.cc )
181149add_gandiva_unit_test (lru_cache_test.cc )
182- add_gandiva_unit_test (to_date_holder_test.cc to_date_holder.cc date_utils.cc execution_context.cc )
150+ add_gandiva_unit_test (to_date_holder_test.cc to_date_holder.cc date_utils.cc )
183151
184152add_subdirectory (jni )
185153add_subdirectory (precompiled )
0 commit comments