summaryrefslogtreecommitdiff
path: root/chromium/ios/chrome/browser/resources/BUILD.gn
blob: 426dd15a255d5eb36ecb2b6fbbe471b53199c5a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Copyright 2022 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/apple/tweak_info_plist.gni")
import("//ios/chrome/features.gni")

tweak_info_plist("experimental_info_plist") {
  info_plists = [ "Settings.bundle/Experimental.plist" ]
  if (ios_enable_metrickit) {
    info_plists += [ "Settings.bundle/ExperimentalMetricKit.plist" ]
  }
  if (ios_enable_sandbox_dump) {
    info_plists += [ "Settings.bundle/ExperimentalSandboxDump.plist" ]
  }
  info_plists += [ "Settings.bundle/ExperimentalFlags.plist" ]
}

bundle_data("settings_experimental_feed_refresh_plist") {
  sources = [ "Settings.bundle/ExperimentalFeedRefresh.plist" ]
  outputs = [ "{{bundle_resources_dir}}/Settings.bundle/{{source_file_part}}" ]
}

bundle_data("settings_experimental_synctypeslist_plist") {
  sources = [ "Settings.bundle/ExperimentalSyncTypesListDisabled.plist" ]
  outputs = [ "{{bundle_resources_dir}}/Settings.bundle/{{source_file_part}}" ]
}

bundle_data("settings_resources_experimental_plist") {
  public_deps = [
    ":experimental_info_plist",
    ":settings_experimental_feed_refresh_plist",
    ":settings_experimental_synctypeslist_plist",
  ]
  sources = get_target_outputs(":experimental_info_plist")
  outputs = [ "{{bundle_resources_dir}}/Settings.bundle/Experimental.plist" ]
}

bundle_data("settings_resources") {
  public_deps = [ ":settings_resources_experimental_plist" ]
  sources = [ "Settings.bundle/Root.plist" ]
  outputs = [ "{{bundle_resources_dir}}/Settings.bundle/{{source_file_part}}" ]
}