This is an automated email from the ASF dual-hosted git repository.

paleolimbot pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-nanoarrow.git


The following commit(s) were added to refs/heads/main by this push:
     new b6b028e9 chore: Fix meson dependencies in tests (#471)
b6b028e9 is described below

commit b6b028e9f4baf81cb7f969897a6d1b76460191be
Author: William Ayd <[email protected]>
AuthorDate: Wed May 15 14:57:18 2024 -0400

    chore: Fix meson dependencies in tests (#471)
---
 src/nanoarrow/meson.build | 21 ++++++++++++++++-----
 1 file changed, 16 insertions(+), 5 deletions(-)

diff --git a/src/nanoarrow/meson.build b/src/nanoarrow/meson.build
index c8bcdef7..f60772aa 100644
--- a/src/nanoarrow/meson.build
+++ b/src/nanoarrow/meson.build
@@ -74,10 +74,17 @@ if get_option('NANOARROW_BUILD_TESTS')
 
   arrow_dep = dependency('arrow')
   gtest_dep = dependency('gtest', fallback: ['gtest', 'gtest_main_dep'])
+  gmock_dep = dependency('gmock')
+  nlohmann_json_dep = dependency('nlohmann_json')
 
   utils_test = executable('utils_test', 'utils_test.cc',
                           link_with: nanoarrow_lib,
-                          dependencies: [arrow_dep, gtest_dep],
+                          dependencies: [
+                              arrow_dep,
+                              gtest_dep,
+                              gmock_dep,
+                              nlohmann_json_dep,
+                          ],
                           include_directories: incdir)
   test('utils test', utils_test)
 
@@ -88,7 +95,7 @@ if get_option('NANOARROW_BUILD_TESTS')
   test('buffer test', buffer_test)
 
   array_test = executable('array_test', 'array_test.cc',
-                          dependencies: [arrow_dep, gtest_dep],
+                          dependencies: [arrow_dep, gtest_dep, gmock_dep],
                           link_with: nanoarrow_lib,
                           include_directories: incdir)
   test('array test', array_test)
@@ -100,18 +107,22 @@ if get_option('NANOARROW_BUILD_TESTS')
   test('schema test', schema_test)
 
   array_stream_test = executable('array_stream_test', 'array_stream_test.cc',
-                                 dependencies: [arrow_dep, gtest_dep],
+                                 dependencies: [arrow_dep, gtest_dep, 
gmock_dep],
                                  link_with: nanoarrow_lib,
                                  include_directories: incdir)
   test('array_stream test', array_stream_test)
 
   nanoarrow_hpp_test = executable('nanoarrow_hpp_test', 
'nanoarrow_hpp_test.cc',
-                                  dependencies: [arrow_dep, gtest_dep],
+                                  dependencies: [
+                                      arrow_dep,
+                                      gtest_dep,
+                                      gmock_dep,
+                                      nlohmann_json_dep,
+                                  ],
                                   link_with: nanoarrow_lib,
                                   include_directories: incdir)
   test('nanoarrow_hpp test', nanoarrow_hpp_test)
 
-  nlohmann_json_dep = dependency('nlohmann_json')
   nanoarrow_testing_test = executable('nanoarrow_testing_test', 
'nanoarrow_testing_test.cc',
                                       dependencies: [arrow_dep, gtest_dep, 
nlohmann_json_dep],
                                       link_with: nanoarrow_lib,

Reply via email to