File tree Expand file tree Collapse file tree 7 files changed +10
-21
lines changed
Expand file tree Collapse file tree 7 files changed +10
-21
lines changed Original file line number Diff line number Diff line change 1515sources = [' main.cpp' ]
1616
1717if conf.has(' CONTROL_USE_JSON' )
18- deps += json_dep
18+ deps += nlohmann_json_dep
1919 include_dirs += [
2020 ' ./json' ,
2121 ' ./json/actions' ,
@@ -100,7 +100,7 @@ fanctl = executable(
100100 ' fanctl.cpp' ,
101101 dependencies : [
102102 cli11_dep,
103- json_dep ,
103+ nlohmann_json_dep ,
104104 phosphor_logging_dep,
105105 sdbusplus_dep,
106106 ],
Original file line number Diff line number Diff line change @@ -46,12 +46,7 @@ if not has_cereal
4646 cereal_dep = cereal_proj.dependency (' cereal' )
4747endif
4848
49- if cpp.has_header(' nlohmann/json.hpp' )
50- json_dep = declare_dependency ()
51- else
52- json_dep = dependency (' nlohmann_json' )
53- endif
54-
49+ nlohmann_json_dep = dependency (' nlohmann_json' , include_type : ' system' )
5550phosphor_dbus_interfaces_dep = dependency (' phosphor-dbus-interfaces' )
5651phosphor_logging_dep = dependency (' phosphor-logging' )
5752sdbusplus_dep = dependency (' sdbusplus' )
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ sources=[
1717]
1818
1919deps= [
20- json_dep ,
20+ nlohmann_json_dep ,
2121 phosphor_dbus_interfaces_dep,
2222 phosphor_logging_dep,
2323 sdbusplus_dep,
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ phosphor_fan_monitor_test_include_directories = include_directories(
55test_deps= [
66 gmock_dep,
77 gtest_dep,
8- json_dep ,
8+ nlohmann_json_dep ,
99 phosphor_logging_dep,
1010 sdeventplus_dep
1111]
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ sources=[
1919]
2020
2121deps= [
22- json_dep,
2322 libevdev_dep,
23+ nlohmann_json_dep,
2424 phosphor_dbus_interfaces_dep,
2525 phosphor_logging_dep,
2626 sdbusplus_dep,
Original file line number Diff line number Diff line change 1- [wrap-file]
2- directory = nlohmann_json-3.9.1
3- lead_directory_missing = true
4- source_url = https://github.com/nlohmann/json/releases/download/v3.9.1/include.zip
5- source_filename = nlohmann_json-3.9.1.zip
6- source_hash = 6bea5877b1541d353bd77bdfbdb2696333ae5ed8f9e8cc22df657192218cad91
7- patch_url = https://wrapdb.mesonbuild.com/v1/projects/nlohmann_json/3.9.1/1/get_zip
8- patch_filename = nlohmann_json-3.9.1-1-wrap.zip
9- patch_hash = 1774e5506fbe3897d652f67e41973194b948d2ab851cf464a742f35f160a1435
1+ [wrap-git]
2+ revision = HEAD
3+ url = https://github.com/nlohmann/json.git
104
115[provide]
126nlohmann_json = nlohmann_json_dep
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ test_include_directories = include_directories(
66test_deps= [
77 gmock_dep,
88 gtest_dep,
9- json_dep ,
9+ nlohmann_json_dep ,
1010 phosphor_dbus_interfaces_dep,
1111 phosphor_logging_dep,
1212 sdbusplus_dep
You can’t perform that action at this time.
0 commit comments