Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: sky/services/media/BUILD.gn

Issue 1227973002: Build skyx packages by default (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: typo Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/services/engine/BUILD.gn ('k') | sky/services/testing/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/services/media/BUILD.gn
diff --git a/sky/services/media/BUILD.gn b/sky/services/media/BUILD.gn
index f6b701342a28ff83c7661a2d6bf16ed01713e62a..9cc1afd2403733877165fc94c8ba1dbfde5461df 100644
--- a/sky/services/media/BUILD.gn
+++ b/sky/services/media/BUILD.gn
@@ -2,32 +2,18 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-import("//build/config/android/config.gni")
-import("//build/config/android/rules.gni")
import("//mojo/public/tools/bindings/mojom.gni")
group("media") {
testonly = true
deps = [
- ":media_lib",
":interfaces",
]
-}
-
-android_library("media_lib") {
- java_files = [
- "src/org/domokit/media/MediaPlayerImpl.java",
- "src/org/domokit/media/MediaServiceImpl.java",
- ]
- deps = [
- "//base:base_java",
- "//mojo/java",
- "//mojo/public/java:bindings",
- "//mojo/public/java:system",
- ":interfaces_java",
- ]
+ if (is_android) {
+ deps += [ ":media_lib" ]
+ }
}
mojom("interfaces") {
@@ -35,3 +21,23 @@ mojom("interfaces") {
"media.mojom",
]
}
+
+if (is_android) {
+ import("//build/config/android/config.gni")
+ import("//build/config/android/rules.gni")
+
+ android_library("media_lib") {
+ java_files = [
+ "src/org/domokit/media/MediaPlayerImpl.java",
+ "src/org/domokit/media/MediaServiceImpl.java",
+ ]
+
+ deps = [
+ "//base:base_java",
+ "//mojo/java",
+ "//mojo/public/java:bindings",
+ "//mojo/public/java:system",
+ ":interfaces_java",
+ ]
+ }
+}
« no previous file with comments | « sky/services/engine/BUILD.gn ('k') | sky/services/testing/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698