1# Copyright 2013 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 5import("//base/allocator/allocator.gni") 6import("//base/allocator/partition_allocator/partition_alloc.gni") 7import("//build/buildflag_header.gni") 8import("//build/config/compiler/compiler.gni") 9import("//build/config/dcheck_always_on.gni") 10 11buildflag_header("buildflags") { 12 header = "buildflags.h" 13 14 flags = 15 [ "USE_PARTITION_ALLOC_AS_GWP_ASAN_STORE=$enable_backup_ref_ptr_support" ] 16} 17 18if (is_apple) { 19 source_set("early_zone_registration_apple") { 20 sources = [ 21 "early_zone_registration_apple.cc", 22 "early_zone_registration_apple.h", 23 "partition_allocator/src/partition_alloc/shim/early_zone_registration_constants.h", 24 ] 25 26 deps = [ 27 ":buildflags", 28 "//base/allocator/partition_allocator:buildflags", 29 ] 30 } 31} 32