meson.build (307386e8e5a18ec24955fc32bee556409a831a83) meson.build (0ad63df8aa8ab60f74395794d8ffce64c82ee031)
1project('bmcweb', 'cpp',
2 version : '1.0',
3 meson_version: '>=0.57.0',
4 default_options: [
5 'b_lto_mode=default',
6 'b_lto_threads=0',
7 'b_lto=true',
8 'b_ndebug=if-release',

--- 320 unchanged lines hidden (view full) ---

329install_subdir('static', install_dir : 'share/www', strip_directory : true)
330
331# Config subdirectory
332
333subdir('config')
334bmcweb_dependencies += conf_h_dep
335
336# Source files
1project('bmcweb', 'cpp',
2 version : '1.0',
3 meson_version: '>=0.57.0',
4 default_options: [
5 'b_lto_mode=default',
6 'b_lto_threads=0',
7 'b_lto=true',
8 'b_ndebug=if-release',

--- 320 unchanged lines hidden (view full) ---

329install_subdir('static', install_dir : 'share/www', strip_directory : true)
330
331# Config subdirectory
332
333subdir('config')
334bmcweb_dependencies += conf_h_dep
335
336# Source files
337fs = import('fs')
337
338
338srcfiles_bmcweb = [
339srcfiles_bmcweb = files(
339 'redfish-core/src/error_messages.cpp',
340 'redfish-core/src/utils/json_utils.cpp',
341 'src/boost_asio_ssl.cpp',
342 'src/boost_asio.cpp',
343 'src/boost_beast.cpp',
344 'src/boost_url.cpp',
345 'src/dbus_singleton.cpp',
340 'redfish-core/src/error_messages.cpp',
341 'redfish-core/src/utils/json_utils.cpp',
342 'src/boost_asio_ssl.cpp',
343 'src/boost_asio.cpp',
344 'src/boost_beast.cpp',
345 'src/boost_url.cpp',
346 'src/dbus_singleton.cpp',
346]
347)
347
348# Generate the bmcweb executable
349executable(
350 'bmcweb',
351 srcfiles_bmcweb + ['src/webserver_main.cpp'],
352 include_directories : incdir,
353 dependencies: bmcweb_dependencies,
354 link_args: '-Wl,--gc-sections',
355 install: true,
356 install_dir:bindir
357)
358
348
349# Generate the bmcweb executable
350executable(
351 'bmcweb',
352 srcfiles_bmcweb + ['src/webserver_main.cpp'],
353 include_directories : incdir,
354 dependencies: bmcweb_dependencies,
355 link_args: '-Wl,--gc-sections',
356 install: true,
357 install_dir:bindir
358)
359
359srcfiles_unittest = [
360srcfiles_unittest = files(
360 'test/http/crow_getroutes_test.cpp',
361 'test/http/router_test.cpp',
362 'test/http/utility_test.cpp',
363 'test/include/dbus_utility_test.cpp',
364 'test/include/google/google_service_root_test.cpp',
365 'test/include/http_utility_test.cpp',
366 'test/include/human_sort_test.cpp',
367 'test/include/ibm/configfile_test.cpp',

--- 7 unchanged lines hidden (view full) ---

375 'test/redfish-core/include/utils/json_utils_test.cpp',
376 'test/redfish-core/include/utils/query_param_test.cpp',
377 'test/redfish-core/include/utils/stl_utils_test.cpp',
378 'test/redfish-core/include/utils/time_utils_test.cpp',
379 'test/redfish-core/lib/chassis_test.cpp',
380 'test/redfish-core/lib/log_services_dump_test.cpp',
381 'test/redfish-core/lib/service_root_test.cpp',
382 'test/redfish-core/lib/thermal_subsystem_test.cpp',
361 'test/http/crow_getroutes_test.cpp',
362 'test/http/router_test.cpp',
363 'test/http/utility_test.cpp',
364 'test/include/dbus_utility_test.cpp',
365 'test/include/google/google_service_root_test.cpp',
366 'test/include/http_utility_test.cpp',
367 'test/include/human_sort_test.cpp',
368 'test/include/ibm/configfile_test.cpp',

--- 7 unchanged lines hidden (view full) ---

376 'test/redfish-core/include/utils/json_utils_test.cpp',
377 'test/redfish-core/include/utils/query_param_test.cpp',
378 'test/redfish-core/include/utils/stl_utils_test.cpp',
379 'test/redfish-core/include/utils/time_utils_test.cpp',
380 'test/redfish-core/lib/chassis_test.cpp',
381 'test/redfish-core/lib/log_services_dump_test.cpp',
382 'test/redfish-core/lib/service_root_test.cpp',
383 'test/redfish-core/lib/thermal_subsystem_test.cpp',
383]
384)
384
385if(get_option('tests').enabled())
386 # generate the test executable
385
386if(get_option('tests').enabled())
387 # generate the test executable
387 ut_bin = executable(
388 'bmcweb_unit_test',
389 srcfiles_unittest + srcfiles_bmcweb,
390 include_directories : incdir,
391 install_dir: bindir,
392 dependencies: bmcweb_dependencies + [
393 gtest,
394 gmock,
395 ]
396 )
397 test('bmcweb_unit_test', ut_bin)
388 foreach test_src : srcfiles_unittest
389 test_bin = executable(
390 fs.stem(test_src),
391 srcfiles_bmcweb + test_src,
392 include_directories : incdir,
393 install_dir: bindir,
394 dependencies: bmcweb_dependencies + [
395 gtest,
396 gmock,
397 ]
398 )
399 test(fs.stem(test_src), test_bin)
400 endforeach
398endif
401endif