chromium/chrome/browser/resources/new_tab_page/modules/modules.gni

# 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("./drive/drive.gni")
import("./v2/calendar/calendar.gni")
import("./v2/file_suggestion/file_suggestion.gni")
import("./v2/most_relevant_tab_resumption/most_relevant_tab_resumption.gni")

if (!is_official_build) {
  import("./v2/dummy/dummy.gni")
}

# List of files that don't need to be passed to html_to_wrapper().
modules_non_web_component_files =
    [
      "modules/module_descriptor.ts",
      "modules/module_descriptors.ts",
      "modules/module_registry.ts",
    ] + calendar_v2_non_web_component_files + drive_non_web_component_files +
    most_relevant_tab_resumption_v2_non_web_component_files

if (!is_official_build) {
  modules_non_web_component_files += dummy_v2_non_web_component_files
}

# List of files that should be passed to html_to_wrapper().
modules_web_component_files =
    [
      "modules/info_dialog.ts",
      "modules/module_header.ts",
      "modules/modules.ts",
      "modules/module_wrapper.ts",
      "modules/v2/module_header.ts",
      "modules/v2/modules.ts",
    ] + calendar_v2_web_component_files + drive_web_component_files +
    file_suggestion_v2_web_component_files +
    most_relevant_tab_resumption_v2_web_component_files

modules_css_files = [
                      "modules/info_dialog.css",
                      "modules/v2/module_header.css",
                    ] + calendar_css_files + file_suggestion_v2_css_files

if (!is_official_build) {
  modules_web_component_files += dummy_v2_web_component_files
  modules_css_files += dummy_v2_css_files
}