diff options
author | Eric Cox <eric.cox@mongodb.com> | 2020-04-21 22:02:22 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-04-23 17:23:50 +0000 |
commit | 31e870e6a04106c68993b1c512b54c37766b9fe2 (patch) | |
tree | c79e074e04054a144f8a320018ff053c6f0b8b56 /src/mongo/db/pipeline/SConscript | |
parent | 74ac57a2f6ca120294592237d547a665513cc52d (diff) | |
download | mongo-31e870e6a04106c68993b1c512b54c37766b9fe2.tar.gz |
SERVER-47191 Implement evalutation of Expressions to produce let parameters
Diffstat (limited to 'src/mongo/db/pipeline/SConscript')
-rw-r--r-- | src/mongo/db/pipeline/SConscript | 57 |
1 files changed, 19 insertions, 38 deletions
diff --git a/src/mongo/db/pipeline/SConscript b/src/mongo/db/pipeline/SConscript index 42031745e2b..e8b781486d1 100644 --- a/src/mongo/db/pipeline/SConscript +++ b/src/mongo/db/pipeline/SConscript @@ -57,17 +57,30 @@ env.Library( env.Library( target='expression_context', source=[ + 'expression.cpp', 'expression_context.cpp', + 'expression_function.cpp', + 'expression_js_emit.cpp', + 'expression_trigonometric.cpp', 'javascript_execution.cpp', + 'make_js_function.cpp', 'variables.cpp', ], LIBDEPS=[ - 'aggregation_request', + '$BUILD_DIR/mongo/db/query/query_knobs', + '$BUILD_DIR/mongo/db/exec/document_value/document_value', '$BUILD_DIR/mongo/db/query/collation/collator_factory_interface', - '$BUILD_DIR/mongo/db/query/query_knobs', + '$BUILD_DIR/mongo/db/query/datetime/date_time_support', + '$BUILD_DIR/mongo/db/query/query_knobs', + '$BUILD_DIR/mongo/db/server_options_core', '$BUILD_DIR/mongo/db/service_context', '$BUILD_DIR/mongo/scripting/scripting', + '$BUILD_DIR/mongo/scripting/scripting_common', '$BUILD_DIR/mongo/util/intrusive_counter', + '$BUILD_DIR/mongo/util/regex_util', + '$BUILD_DIR/mongo/util/summation', + 'aggregation_request', + 'dependencies', ] ) @@ -83,37 +96,6 @@ env.Library( ) env.Library( - target='expression', - source=[ - 'expression.cpp', - 'expression_trigonometric.cpp', - 'make_js_function.cpp' - ], - LIBDEPS=[ - '$BUILD_DIR/mongo/db/exec/document_value/document_value', - '$BUILD_DIR/mongo/db/query/datetime/date_time_support', - '$BUILD_DIR/mongo/db/server_options_core', - '$BUILD_DIR/mongo/util/regex_util', - '$BUILD_DIR/mongo/util/summation', - 'dependencies', - 'expression_context', - ] -) - -env.Library( - target='expression_javascript', - source=[ - 'expression_function.cpp', - 'expression_js_emit.cpp' - ], - LIBDEPS=[ - '$BUILD_DIR/mongo/scripting/scripting_common', - '$BUILD_DIR/mongo/db/query/query_knobs', - 'expression', - ] -) - -env.Library( target='accumulator', source=[ 'accumulation_statement.cpp', @@ -133,7 +115,7 @@ env.Library( '$BUILD_DIR/mongo/db/query/query_knobs', '$BUILD_DIR/mongo/scripting/scripting_common', '$BUILD_DIR/mongo/util/summation', - 'expression', + 'expression_context', 'field_path', ] ) @@ -147,7 +129,7 @@ env.Library( ], LIBDEPS=[ '$BUILD_DIR/mongo/db/exec/document_value/document_value', - 'expression', + 'expression_context', 'field_path', ] ) @@ -289,9 +271,7 @@ pipelineEnv.Library( 'dependencies', 'document_path_support', 'document_sources_idl', - 'expression', 'expression_context', - 'expression_javascript', 'granularity_rounder', ], LIBDEPS_PRIVATE=[ @@ -379,6 +359,7 @@ env.CppUnitTest( 'document_source_unwind_test.cpp', 'expression_and_test.cpp', 'expression_compare_test.cpp', + 'expression_context_test.cpp', 'expression_convert_test.cpp', 'expression_date_test.cpp', 'expression_field_path_test.cpp', @@ -428,7 +409,7 @@ env.CppUnitTest( 'aggregation_request', 'document_source_mock', 'document_sources_idl', - 'expression', + 'expression_context', 'field_path', 'granularity_rounder', 'pipeline', |