@@ -356,38 +356,82 @@ install_headers(
356
356
)
357
357
358
358
if needs_tests
359
+ boost_dep = dependency (' boost' , include_type : ' system' , required : false )
360
+
361
+ asio_dep = dependency (
362
+ ' boost' ,
363
+ include_type : ' system' ,
364
+ modules : ' asio' ,
365
+ required : false ,
366
+ )
367
+
359
368
filesystem_dep = dependency (
360
369
' boost' ,
361
- modules : [' filesystem' ],
370
+ include_type : ' system' ,
371
+ modules : ' filesystem' ,
362
372
required : false ,
363
373
)
364
- if not filesystem_dep.found()
374
+
375
+ process_dep = dependency (
376
+ ' boost' ,
377
+ include_type : ' system' ,
378
+ modules : ' process' ,
379
+ required : false ,
380
+ )
381
+
382
+ if not (boost_dep.found()
383
+ and asio_dep.found()
384
+ and filesystem_dep.found()
385
+ and process_dep.found()
386
+ )
365
387
cmake = import (' cmake' )
366
388
boost_opt = cmake.subproject_options()
367
389
boost_opt.add_cmake_defines(
368
- {' BOOST_INCLUDE_LIBRARIES' : ' filesystem;system ' },
390
+ {' BOOST_INCLUDE_LIBRARIES' : ' asio; filesystem;process ' },
369
391
)
370
392
boost_proj = cmake.subproject (' boost' , options : boost_opt)
371
- filesystem_dep = boost_proj.dependency (' boost_filesystem' )
393
+ boost_dep = boost_proj.dependency (
394
+ ' boost_headers' ,
395
+ include_type : ' system' ,
396
+ )
397
+ asio_dep = boost_proj.dependency (' boost_asio' , include_type : ' system' )
398
+ filesystem_dep = boost_proj.dependency (
399
+ ' boost_filesystem' ,
400
+ include_type : ' system' ,
401
+ )
402
+ process_dep = boost_proj.dependency (
403
+ ' boost_process' ,
404
+ include_type : ' system' ,
405
+ )
372
406
endif
373
407
374
408
gtest_main_dep = dependency (' gtest_main' )
375
409
gmock_dep = dependency (' gmock' )
376
410
else
411
+ boost_dep = disabler ()
412
+ asio_dep = disabler ()
377
413
filesystem_dep = disabler ()
378
414
gtest_main_dep = disabler ()
379
415
gmock_dep = disabler ()
416
+ process_dep = disabler ()
380
417
endif
381
418
382
419
arrow_test_lib = static_library (
383
420
' arrow_testing' ,
384
421
sources : arrow_testing_srcs,
385
- dependencies : [arrow_dep, filesystem_dep, gtest_main_dep],
422
+ dependencies : [
423
+ arrow_dep,
424
+ asio_dep,
425
+ boost_dep,
426
+ filesystem_dep,
427
+ gtest_main_dep,
428
+ process_dep,
429
+ ],
386
430
)
387
431
388
432
arrow_test_dep = declare_dependency (
389
433
link_with : [arrow_test_lib],
390
- dependencies : [arrow_dep, filesystem_dep, gmock_dep, gtest_main_dep],
434
+ dependencies : [arrow_dep, gmock_dep, gtest_main_dep],
391
435
)
392
436
393
437
array_array_test = executable (
0 commit comments