mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 16:26:10 +03:00
113 lines
2.3 KiB
Plaintext
113 lines
2.3 KiB
Plaintext
|
# Copyright 2014 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("//gpu/vulkan/features.gni")
|
||
|
if (is_fuchsia) {
|
||
|
import("//build/config/fuchsia/rules.gni")
|
||
|
}
|
||
|
|
||
|
group("demo") {
|
||
|
deps = [
|
||
|
":ozone_demo",
|
||
|
":skia_demo",
|
||
|
]
|
||
|
}
|
||
|
|
||
|
source_set("ozone_demo_lib") {
|
||
|
sources = [
|
||
|
"demo_window.cc",
|
||
|
"demo_window.h",
|
||
|
"renderer.h",
|
||
|
"renderer_base.cc",
|
||
|
"renderer_base.h",
|
||
|
"renderer_factory.cc",
|
||
|
"renderer_factory.h",
|
||
|
"window_manager.cc",
|
||
|
"window_manager.h",
|
||
|
]
|
||
|
|
||
|
deps = [
|
||
|
"//base",
|
||
|
"//ui/display/types",
|
||
|
"//ui/events",
|
||
|
"//ui/events:dom_keycode_converter",
|
||
|
"//ui/events/ozone:events_ozone_layout",
|
||
|
"//ui/gfx/geometry",
|
||
|
"//ui/ozone",
|
||
|
"//ui/platform_window",
|
||
|
]
|
||
|
|
||
|
if (is_fuchsia) {
|
||
|
deps += [ "//third_party/fuchsia-sdk:policy" ]
|
||
|
}
|
||
|
}
|
||
|
|
||
|
executable("ozone_demo") {
|
||
|
sources = [
|
||
|
"gl_renderer.cc",
|
||
|
"gl_renderer.h",
|
||
|
"ozone_demo.cc",
|
||
|
"simple_renderer_factory.cc",
|
||
|
"simple_renderer_factory.h",
|
||
|
"software_renderer.cc",
|
||
|
"software_renderer.h",
|
||
|
"surfaceless_gl_renderer.cc",
|
||
|
"surfaceless_gl_renderer.h",
|
||
|
]
|
||
|
|
||
|
deps = [
|
||
|
":ozone_demo_lib",
|
||
|
"//components/tracing:startup_tracing",
|
||
|
"//gpu/vulkan:buildflags",
|
||
|
"//ui/events/ozone:events_ozone_layout",
|
||
|
"//ui/gl",
|
||
|
"//ui/gl/init",
|
||
|
"//ui/ozone",
|
||
|
]
|
||
|
|
||
|
if (enable_vulkan) {
|
||
|
sources += [
|
||
|
"vulkan_overlay_renderer.cc",
|
||
|
"vulkan_overlay_renderer.h",
|
||
|
"vulkan_renderer.cc",
|
||
|
"vulkan_renderer.h",
|
||
|
]
|
||
|
deps += [ "//gpu/vulkan/init" ]
|
||
|
}
|
||
|
}
|
||
|
|
||
|
executable("skia_demo") {
|
||
|
sources = [
|
||
|
"skia/skia_demo.cc",
|
||
|
"skia/skia_gl_renderer.cc",
|
||
|
"skia/skia_gl_renderer.h",
|
||
|
"skia/skia_renderer_factory.cc",
|
||
|
"skia/skia_renderer_factory.h",
|
||
|
"skia/skia_surfaceless_gl_renderer.cc",
|
||
|
"skia/skia_surfaceless_gl_renderer.h",
|
||
|
]
|
||
|
|
||
|
deps = [
|
||
|
":ozone_demo_lib",
|
||
|
"//components/tracing:startup_tracing",
|
||
|
"//skia",
|
||
|
"//ui/events/ozone:events_ozone_layout",
|
||
|
"//ui/gl",
|
||
|
"//ui/gl/init",
|
||
|
"//ui/ozone",
|
||
|
]
|
||
|
}
|
||
|
|
||
|
if (is_fuchsia) {
|
||
|
fuchsia_package("ozone_demo_pkg") {
|
||
|
binary = ":ozone_demo"
|
||
|
package_name_override = "ozone_demo"
|
||
|
}
|
||
|
|
||
|
fuchsia_package_runner("ozone_demo_fuchsia") {
|
||
|
package = ":ozone_demo_pkg"
|
||
|
package_name_override = "ozone_demo"
|
||
|
}
|
||
|
}
|