blob: 01d17a13186fa20ade9364bea16eae41d19e32ad [file] [log] [blame]
# Copyright 2018 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("//services/content/public/features.gni")
buildflag_header("buildflags") {
header = "buildflags.h"
flags = [
"ENABLE_NAVIGABLE_CONTENTS_VIEW_AURA=$enable_navigable_contents_view_aura",
"ENABLE_REMOTE_NAVIGABLE_CONTENTS_VIEW=$enable_remote_navigable_contents_view",
]
}
component("cpp") {
output_name = "content_service_cpp"
public = [
"navigable_contents.h",
"navigable_contents_view.h",
]
sources = [
"navigable_contents.cc",
"navigable_contents_view.cc",
]
defines = [ "IS_CONTENT_SERVICE_CPP_IMPL" ]
public_deps = [
":buildflags",
"//base",
"//services/content/public/mojom",
"//url",
]
deps = []
if (enable_navigable_contents_view_aura) {
deps += [
"//ui/base",
"//ui/views",
]
if (enable_remote_navigable_contents_view) {
deps += [
"//services/ui/public/interfaces",
"//ui/views/mus/remote_view:remote_view_host",
]
}
}
}