blob: 79ed5700d0006f3afdc9dc3067065f18c1926fe6 [file] [log] [blame]
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//mojo/public/tools/bindings/mojom.gni")
# This needs to be conditionally-compiled since the typemaps are
# unconditionally-included from //mojo/public/tools/bindings/mojom.gni. The
# inclusion is done through read_file(), which does not respect the global
# defines for GN, so it itself cannot use the "is_chromeos" variable.
if (is_chromeos) {
mojom("common") {
sources = [
"accessibility_helper.mojom",
"app.mojom",
"app_permissions.mojom",
"appfuse.mojom",
"arc_bridge.mojom",
"audio.mojom",
"auth.mojom",
"backup_settings.mojom",
"bluetooth.mojom",
"boot_phase_monitor.mojom",
"cast_receiver.mojom",
"cert_store.mojom",
"clipboard.mojom",
"crash_collector.mojom",
"disk_quota.mojom",
"enterprise_reporting.mojom",
"file_system.mojom",
"ime.mojom",
"input_method_manager.mojom",
"intent_common.mojom",
"intent_helper.mojom",
"kiosk.mojom",
"lock_screen.mojom",
"media_session.mojom",
"metrics.mojom",
"midis.mojom",
"net.mojom",
"obb_mounter.mojom",
"oemcrypto.mojom",
"oemcrypto_daemon.mojom",
"pip.mojom",
"policy.mojom",
"power.mojom",
"print.mojom",
"process.mojom",
"property.mojom",
"rotation_lock.mojom",
"scale_factor.mojom",
"screen_capture.mojom",
"storage_manager.mojom",
"timer.mojom",
"tracing.mojom",
"tts.mojom",
"usb_host.mojom",
"voice_interaction_arc_home.mojom",
"voice_interaction_framework.mojom",
"volume_mounter.mojom",
"wake_lock.mojom",
"wallpaper.mojom",
]
public_deps = [
":media",
":notifications",
"//device/usb/public/mojom",
"//mojo/public/mojom/base",
"//services/media_session/public/mojom",
"//services/resource_coordinator/public/mojom",
"//ui/accessibility/mojom",
"//ui/gfx/geometry/mojo",
"//url/mojom:url_mojom_gurl",
]
}
mojom("notifications") {
sources = [
"bitmap.mojom",
"notifications.mojom",
]
deps = [
":media", # for gfx.mojom
]
}
# Media related mojo interfaces. There are used by //services/ws/public/mojom.
# We have this separate mojom target to avoid pulling in unnecessary
# interfaces.
mojom("media") {
sources = [
"gfx.mojom",
"protected_buffer_manager.mojom",
"video.mojom",
"video_common.mojom",
"video_decode_accelerator.mojom",
"video_encode_accelerator.mojom",
"video_protected_buffer_allocator.mojom",
]
public_deps = [
"//ui/gfx/geometry/mojo",
]
}
source_set("struct_traits") {
sources = [
"ime_struct_traits.h",
]
deps = [
":common",
"//ui/base/ime:text_input_types",
]
}
}