| # Copyright 2018 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/config/chromeos/ui_mode.gni") |
| import("//build/config/features.gni") |
| import("//chrome/common/features.gni") |
| import("//pdf/features.gni") |
| |
| assert(enable_extensions) |
| |
| schema_sources_ = [ |
| "accessibility_features.json", |
| "activity_log_private.json", |
| "autofill_private.idl", |
| "autotest_private.idl", |
| "bookmark_manager_private.json", |
| "bookmarks.json", |
| "braille_display_private.idl", |
| "chrome_web_view_internal.json", |
| "command_line_private.json", |
| "content_settings.json", |
| "context_menus.json", |
| "cookies.json", |
| "dashboard_private.json", |
| "debugger.json", |
| "desktop_capture.json", |
| "developer_private.idl", |
| "crash_report_private.idl", |
| "downloads.idl", |
| "downloads_internal.idl", |
| "enterprise_hardware_platform.idl", |
| "enterprise_reporting_private.idl", |
| "font_settings.json", |
| "gcm.json", |
| "history.json", |
| "identity.idl", |
| "image_writer_private.idl", |
| "instance_id.json", |
| "language_settings_private.idl", |
| "notifications.idl", |
| "omnibox.json", |
| "page_capture.json", |
| "passwords_private.idl", |
| "permissions.json", |
| "reading_list.idl", |
| "resources_private.idl", |
| "safe_browsing_private.idl", |
| "scripting.idl", |
| "search.idl", |
| "sessions.json", |
| "settings_private.idl", |
| "side_panel.idl", |
| "system_private.json", |
| "tab_capture.idl", |
| "tab_groups.json", |
| "tabs.json", |
| "web_authentication_proxy.idl", |
| "web_navigation.json", |
| |
| # Despite the name, these APIs do not rely on any WebRTC-specific bits and as |
| # such do not belong in a conditional. |
| "webrtc_audio_private.idl", |
| "webrtc_desktop_capture_private.idl", |
| "webrtc_logging_private.idl", |
| |
| "webstore_private.json", |
| "windows.json", |
| ] |
| |
| if (!is_android) { |
| schema_sources_ += [ "processes.idl" ] |
| } |
| |
| if (is_chromeos) { |
| schema_sources_ += [ |
| "accessibility_service_private.idl", |
| "certificate_provider.idl", |
| "certificate_provider_internal.idl", |
| "document_scan.idl", |
| "echo_private.json", |
| "enterprise_device_attributes.idl", |
| "enterprise_networking_attributes.idl", |
| "enterprise_platform_keys.idl", |
| "enterprise_platform_keys_internal.idl", |
| "file_system_provider.idl", |
| "file_system_provider_internal.idl", |
| "login.idl", |
| "login_screen_storage.idl", |
| "login_state.idl", |
| "platform_keys_internal.idl", |
| "platform_keys.idl", |
| "quick_unlock_private.idl", |
| "shared_storage_private.idl", |
| "smart_card_provider_private.idl", |
| "system_log.idl", |
| "vpn_provider.idl", |
| "wallpaper.json", |
| "wm_desks_private.idl", |
| ] |
| |
| if (use_cups) { |
| schema_sources_ += [ |
| "printing.idl", |
| "printing_metrics.idl", |
| ] |
| } |
| } |
| |
| if (is_chromeos_ash) { |
| schema_sources_ += [ |
| "accessibility_private.json", |
| "enterprise_platform_keys_private.json", |
| "file_manager_private.idl", |
| "file_manager_private_internal.idl", |
| "image_loader_private.idl", |
| "input_ime.json", |
| "input_method_private.json", |
| "login_screen_ui.idl", |
| "speech_recognition_private.idl", |
| "terminal_private.json", |
| "users_private.idl", |
| ] |
| } else if (is_linux || is_chromeos || is_win) { |
| schema_sources_ += [ "input_ime.json" ] |
| } |
| |
| if (enable_service_discovery) { |
| schema_sources_ += [ "mdns.idl" ] |
| } |
| |
| if (is_linux || is_mac || is_win) { |
| schema_sources_ += [ "system_indicator.idl" ] |
| } |
| |
| if (enable_pdf) { |
| schema_sources_ += [ "pdf_viewer_private.idl" ] |
| } |
| |
| uncompiled_sources_ = [ |
| "action.json", |
| "browser_action.json", |
| "browsing_data.json", |
| "extension.json", |
| "idltest.idl", |
| "page_action.json", |
| "top_sites.json", |
| ] |
| |
| if (is_chromeos) { |
| uncompiled_sources_ += [ "chromeos_info_private.json" ] |
| } |
| |
| if (is_chromeos_ash) { |
| uncompiled_sources_ += [ "media_player_private.json" ] |
| } |
| |
| chrome_extensions_api_schema_sources = get_path_info(schema_sources_, "abspath") |
| |
| chrome_extensions_manifest_only_schema_sources = |
| get_path_info([ |
| "manifest_types.json", |
| "chrome_url_overrides.idl", |
| ], |
| "abspath") |
| |
| chrome_extensions_api_uncompiled_sources = |
| get_path_info(uncompiled_sources_, "abspath") |
| |
| chrome_extensions_api_root_namespace = "extensions::api::%(namespace)s" |
| |
| chrome_extensions_api_schema_include_rules = |
| "extensions/common/api:extensions::api::%(namespace)s" |