meson.build (e6801eb4a1051001049255f36a9727b03e780749) meson.build (42bbcd87d4813c6f01497ced4418d4a6f4e64c3f)
1project('bmcweb', 'cpp',
2 version : '1.0',
3 meson_version: '>=0.63.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) ---

329 'redfish-core/src/utils/json_utils.cpp',
330 'src/boost_asio_ssl.cpp',
331 'src/boost_asio.cpp',
332 'src/boost_beast.cpp',
333 'src/boost_url.cpp',
334 'src/dbus_singleton.cpp',
335)
336
1project('bmcweb', 'cpp',
2 version : '1.0',
3 meson_version: '>=0.63.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) ---

329 'redfish-core/src/utils/json_utils.cpp',
330 'src/boost_asio_ssl.cpp',
331 'src/boost_asio.cpp',
332 'src/boost_beast.cpp',
333 'src/boost_url.cpp',
334 'src/dbus_singleton.cpp',
335)
336
337bmcweblib = static_library(
338 'bmcweblib',
339 srcfiles_bmcweb,
340 include_directories : incdir,
341 dependencies: bmcweb_dependencies,
342)
343
337# Generate the bmcweb executable
338executable(
339 'bmcweb',
344# Generate the bmcweb executable
345executable(
346 'bmcweb',
340 srcfiles_bmcweb + ['src/webserver_main.cpp'],
347 'src/webserver_main.cpp',
341 include_directories : incdir,
342 dependencies: bmcweb_dependencies,
348 include_directories : incdir,
349 dependencies: bmcweb_dependencies,
350 link_with: bmcweblib,
343 link_args: '-Wl,--gc-sections',
344 install: true,
345 install_dir:bindir
346)
347
348srcfiles_unittest = files(
349 'test/http/crow_getroutes_test.cpp',
350 'test/http/router_test.cpp',

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

375 'test/redfish-core/lib/power_subsystem_test.cpp',
376)
377
378if(get_option('tests').enabled())
379 # generate the test executable
380 foreach test_src : srcfiles_unittest
381 test_bin = executable(
382 fs.stem(test_src),
351 link_args: '-Wl,--gc-sections',
352 install: true,
353 install_dir:bindir
354)
355
356srcfiles_unittest = files(
357 'test/http/crow_getroutes_test.cpp',
358 'test/http/router_test.cpp',

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

383 'test/redfish-core/lib/power_subsystem_test.cpp',
384)
385
386if(get_option('tests').enabled())
387 # generate the test executable
388 foreach test_src : srcfiles_unittest
389 test_bin = executable(
390 fs.stem(test_src),
383 srcfiles_bmcweb + test_src,
391 test_src,
392 link_with: bmcweblib,
384 include_directories : incdir,
385 install_dir: bindir,
386 dependencies: bmcweb_dependencies + [
387 gtest,
388 gmock,
389 ]
390 )
391 test(fs.stem(test_src), test_bin)
392 endforeach
393endif
393 include_directories : incdir,
394 install_dir: bindir,
395 dependencies: bmcweb_dependencies + [
396 gtest,
397 gmock,
398 ]
399 )
400 test(fs.stem(test_src), test_bin)
401 endforeach
402endif