1# Copyright 2021 The Chromium Authors 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5# PartitionAlloc library must not depend on Chromium 6# project in order to be a standalone library. 7noparent = True 8 9# `partition_alloc` can depend only on itself, via its `include_dirs`. 10include_rules = [ "+partition_alloc" ] 11 12# TODO(crbug.com/40158212): Depending on what is tested, split the tests in 13# between chromium and partition_alloc. Remove those exceptions: 14specific_include_rules = { 15 # Dependencies on //testing: 16 ".*_(perf|unit)?test.*\.(h|cc)": [ 17 "+testing/gmock/include/gmock/gmock.h", 18 "+testing/gtest/include/gtest/gtest.h", 19 "+testing/perf/perf_result_reporter.h", 20 ], 21 "gtest_util.h": [ 22 "+testing/gtest/include/gtest/gtest.h", 23 ], 24 25 # Dependencies on //base: 26 "extended_api\.cc": [ 27 "+base/allocator/allocator_shim_default_dispatch_to_partition_alloc.h", 28 ], 29 "partition_alloc_perftest\.cc": [ 30 "+base/allocator/dispatcher/dispatcher.h", 31 "+base/debug/allocation_trace.h", 32 "+base/debug/debugging_buildflags.h", 33 "+base/timer/lap_timer.h", 34 ], 35 "partition_lock_perftest\.cc": [ 36 "+base/timer/lap_timer.h", 37 ], 38 "raw_ptr_unittest\.cc": [ 39 "+base/allocator/partition_alloc_features.h", 40 "+base/allocator/partition_alloc_support.h", 41 "+base/cpu.h", 42 "+base/debug/asan_service.h", 43 "+base/metrics/histogram_base.h", 44 "+base/test/bind.h", 45 "+base/test/gtest_util.h", 46 "+base/test/memory/dangling_ptr_instrumentation.h", 47 "+base/test/scoped_feature_list.h", 48 "+base/types/to_address.h", 49 ], 50 "raw_ref_unittest\.cc": [ 51 "+base/debug/asan_service.h", 52 "+base/memory/raw_ptr_asan_service.h", 53 "+base/test/gtest_util.h", 54 ], 55} 56 57# In the context of a module-level DEPS, the `deps` variable must be defined. 58# Some tools relies on it. For instance dawn/tools/fetch_dawn_dependencies.py 59# This has no use in other contexts. 60deps = {} 61