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

Unified Diff: third_party/junit/junit.gyp

Issue 574433003: [Android] JUnit runner + gyp changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@deps-changes
Patch Set: Created 6 years, 3 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
« testing/android/junit_test.gyp ('K') | « testing/android/junit_test.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/junit/junit.gyp
diff --git a/third_party/junit/junit.gyp b/third_party/junit/junit.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..575ab01b11e519d059655290f9d49e981a289c87
--- /dev/null
+++ b/third_party/junit/junit.gyp
@@ -0,0 +1,56 @@
+# 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.
+
+{
+ 'variables': {
+ 'hamcrest_jar_name': 'hamcrest-core-1.3.jar',
+ 'junit_lib_directory': '../../third_party/junit/src/lib/',
+ },
+ 'targets': [
+ {
+ 'target_name': 'hamcrest_jar',
+ 'type': 'none',
+ 'variables': {
+ 'src_path': '<(junit_lib_directory)/<(hamcrest_jar_name)',
+ 'dest_path': '<(PRODUCT_DIR)/lib.java/<(hamcrest_jar_name)',
cjhopman 2014/09/22 23:52:47 I'd prefer that most of this be moved to a .gypi i
jbudorick 2014/09/23 01:00:19 Done.
+ },
+ 'all_dependent_settings': {
+ 'variables': {
+ 'input_jars_paths': [
+ '<(dest_path)',
+ ],
+ },
+ },
+ 'actions': [
+ {
+ 'action_name': 'copy_hamcrest',
+ 'message': 'Copy <(hamcrest_jar_name) to <(PRODUCT_DIR)/lib.java/',
+ 'inputs': [
+ '<(src_path)',
+ ],
+ 'outputs': [
+ '<(dest_path)'
+ ],
+ 'action': [
+ 'python', '../../build/cp.py', '<(src_path)', '<(dest_path)',
+ ],
+ },
+ ],
+ },
+ {
+ 'target_name': 'junit_jar',
+ 'type': 'none',
+ 'dependencies': [
+ 'hamcrest_jar',
+ ],
+ 'variables': {
+ 'src_paths': [ '../../third_party/junit/src/src/main/java' ],
+ },
+ 'includes': [
+ '../../build/host_jar.gypi',
+ ],
+ },
+ ],
+}
+
« testing/android/junit_test.gyp ('K') | « testing/android/junit_test.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698