Index: mojo/services/native_viewport/BUILD.gn |
diff --git a/mojo/services/native_viewport/BUILD.gn b/mojo/services/native_viewport/BUILD.gn |
index 704b9df9b75ab8d4818d67f85b392eaf33d696a7..3e47c248147af14ad77f6600e5d169c1c81492f9 100644 |
--- a/mojo/services/native_viewport/BUILD.gn |
+++ b/mojo/services/native_viewport/BUILD.gn |
@@ -4,10 +4,25 @@ |
import("//build/config/ui.gni") |
-# GYP version: mojo/mojo_services.gypi:mojo_native_viewport_service_lib |
-static_library("native_viewport") { |
- output_name = "mojo_native_viewport" |
+if (!is_android) { |
+ shared_library("native_viewport") { |
+ output_name = "mojo_native_viewport_service" |
+ deps = [ |
+ ":lib", |
+ "//base", |
+ "//mojo/application", |
+ "//mojo/public/c/system:for_shared_library", |
+ "//mojo/public/cpp/bindings:bindings", |
+ "//mojo/services/public/interfaces/native_viewport", |
+ "//ui/gl", |
+ ] |
+ |
+ sources = [ "main.cc" ] |
+ } |
+} |
+ |
+source_set("lib") { |
deps = [ |
"//base", |
"//cc/surfaces", |
@@ -53,13 +68,6 @@ static_library("native_viewport") { |
deps += [ "//mojo:jni_headers" ] |
} |
- if (is_win) { |
- deps += [ |
- # TODO(GYP) |
- # '../ui/platform_window/win/win_window.gyp:win_window', |
- ] |
- } |
- |
if (use_x11) { |
sources += [ "platform_viewport_x11.cc" ] |
deps += [ |