Skip to content

Commit

Permalink
Stop including CHIPCore.h in lib/support.
Browse files Browse the repository at this point in the history
  • Loading branch information
bzbarsky-apple committed Sep 13, 2023
1 parent 80ff286 commit 40255ba
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 18 deletions.
8 changes: 0 additions & 8 deletions src/lib/support/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,6 @@ static_library("support") {
"${nlio_root}:nlio",
]

# These are needed because we include CHIPCore.h, which uses config
# options for src/ble and src/inet, however we cannot depend on those
# directly as such a dependency is cyclic.
public_deps += [
"${chip_root}/src/ble:ble_config_header",
"${chip_root}/src/inet:inet_config_header",
]

# Android has no 'platform' that provides logging
if (current_os == "android") {
public_deps += [ "${chip_root}/src/platform/logging:android" ]
Expand Down
2 changes: 1 addition & 1 deletion src/lib/support/CHIPArgParser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#pragma once

#include <lib/core/CHIPCore.h>
#include <lib/core/CHIPConfig.h>

#if CHIP_CONFIG_ENABLE_ARG_PARSER

Expand Down
2 changes: 1 addition & 1 deletion src/lib/support/ErrorStr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <inttypes.h>
#include <stdio.h>

#include <lib/core/CHIPCore.h>
#include <lib/core/CHIPConfig.h>
#include <lib/support/CodeUtils.h>

namespace chip {
Expand Down
1 change: 0 additions & 1 deletion src/lib/support/TestPersistentStorageDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#pragma once

#include <algorithm>
#include <lib/core/CHIPCore.h>
#include <lib/core/CHIPPersistentStorageDelegate.h>
#include <lib/support/DLLUtil.h>
#include <lib/support/SafeInt.h>
Expand Down
1 change: 0 additions & 1 deletion src/lib/support/ThreadOperationalDataset.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include <stdio.h>
#include <stdlib.h>

#include <lib/core/CHIPCore.h>
#include <lib/support/Span.h>

namespace chip {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/support/TimeUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <stdint.h>
#include <type_traits>

#include <lib/core/CHIPCore.h>
#include <lib/support/CodeUtils.h>
#include <lib/support/SafeInt.h>

#include "TimeUtils.h"
Expand Down
2 changes: 0 additions & 2 deletions src/lib/support/Variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@

#pragma once

#include <lib/core/CHIPCore.h>

#include <algorithm>
#include <new>
#include <tuple>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/support/logging/CHIPLogging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#include "CHIPLogging.h"

#include <lib/core/CHIPCore.h>
#include <lib/core/CHIPConfig.h>
#include <lib/support/CHIPMem.h>
#include <lib/support/CodeUtils.h>
#include <lib/support/Span.h>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/support/tests/TestCHIPArgParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <stdlib.h>
#include <string.h>

#include <lib/core/CHIPCore.h>
#include <lib/core/CHIPConfig.h>
#include <lib/support/CHIPArgParser.hpp>
#include <lib/support/CHIPMem.h>
#include <lib/support/CHIPMemString.h>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/support/tests/TestErrorStr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <stdlib.h>
#include <string.h>

#include <lib/core/CHIPCore.h>
#include <lib/core/CHIPConfig.h>

#include <lib/support/ErrorStr.h>
#include <lib/support/UnitTestRegistration.h>
Expand Down

0 comments on commit 40255ba

Please sign in to comment.