[chromium_src] Allow overrides to reference original files with #include <...> This change updates the include path handling for brave/chromium_src overrides: - Adds support for referencing original Chromium files using #include <...> in overrides. - Enables this by replacing -I../../brave/chromium_src with -iquote../../brave/chromium_src, so the path is only used for #include "..." directives. With this, other files in the build tree can reference brave/chromium_src overrides using #include "...", while the overrides themselves can reference original Chromium files using #include <...>. Since Chromium uses #include "..." for all in-tree files, we can leverage this convention and eventually drop support for #include "src/" by removing -I../../.. and making rbe_exec_root modification obsolete.
23 lines
820 B
C++
23 lines
820 B
C++
/* Copyright (c) 2021 The Brave Authors. All rights reserved.
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef BRAVE_CHROMIUM_SRC_BASE_THREADING_THREAD_RESTRICTIONS_H_
|
|
#define BRAVE_CHROMIUM_SRC_BASE_THREADING_THREAD_RESTRICTIONS_H_
|
|
|
|
class BraveBrowsingDataRemoverDelegate;
|
|
namespace brave {
|
|
class ProcessLauncher;
|
|
}
|
|
|
|
#define BRAVE_SCOPED_ALLOW_BASE_SYNC_PRIMITIVES_H \
|
|
friend class ::BraveBrowsingDataRemoverDelegate; \
|
|
friend class brave::ProcessLauncher;
|
|
|
|
#include <base/threading/thread_restrictions.h> // IWYU pragma: export
|
|
|
|
#undef BRAVE_SCOPED_ALLOW_BASE_SYNC_PRIMITIVES_H
|
|
|
|
#endif // BRAVE_CHROMIUM_SRC_BASE_THREADING_THREAD_RESTRICTIONS_H_
|