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

Unified Diff: sync/BUILD.gn

Issue 1458353002: Port ChromeSyncShell build rules to GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « chrome/android/chrome_apk.gyp ('k') | sync/protocol/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/BUILD.gn
diff --git a/sync/BUILD.gn b/sync/BUILD.gn
index b6a76afcacdaedbd367a88e1a780d74c510b44c3..c6fd22b821e71c8b680caaabc9ac1a1812926277 100644
--- a/sync/BUILD.gn
+++ b/sync/BUILD.gn
@@ -3,6 +3,7 @@
# found in the LICENSE file.
import("//build/config/features.gni")
+import("//sync/protocol/protocol_sources.gni")
import("//testing/test.gni")
component("sync") {
@@ -841,6 +842,30 @@ if (is_android) {
]
}
+ _test_support_sync_prepared_protos_dir =
+ "$root_gen_dir/test_support_sync_proto_java_prepare/"
+ action("test_support_sync_proto_java_prepare") {
+ script = "//sync/protocol/prepare_protos_for_java_tests.py"
+ inputs = sync_protocol_sources
+ outputs = process_file_template(
+ sync_protocol_sources,
+ [ "$_test_support_sync_prepared_protos_dir/{{source_file_part}}" ])
+ args = [
+ "--output_dir",
+ rebase_path(_test_support_sync_prepared_protos_dir, root_build_dir),
+ ]
+ args += rebase_path(sync_protocol_sources, root_build_dir)
+ }
+
+ # GYP: //sync/sync_tests.gypi:test_support_sync_proto_java
+ proto_java_library("test_support_sync_proto_java") {
+ proto_path = _test_support_sync_prepared_protos_dir
+ sources = get_target_outputs(":test_support_sync_proto_java_prepare")
+ deps = [
+ ":test_support_sync_proto_java_prepare",
+ ]
+ }
+
# GYP: //sync/sync_tests.gypi:sync_java_test_support
android_library("sync_java_test_support") {
testonly = true
« no previous file with comments | « chrome/android/chrome_apk.gyp ('k') | sync/protocol/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698