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

Side by Side Diff: build/apk_test.gypi

Issue 10399126: Add APK targets for content_unittests and net_unittests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 # This file is meant to be included into a target to provide a rule
6 # to build APK based test suites.
7 #
8 # To use this, create a gyp target with the following form:
9 # {
10 # 'target_name': 'test_suite_name_apk',
11 # 'type': 'none',
12 # 'variables': {
13 # 'test_suite_name': 'test_suite_name',
14 # 'jar_name': 'test_suite.jar',
15 # },
16 # 'includes': ['path/to/this/gypi/file'],
17 # }
18 #
19 # Note: This assumes that there is a shlib named lib${test_suite_name}.so
20 # in ${PRODUCT_DIR}/lib.target/
21 #
22 # TODO(nileshagrawal): Add support for including multiple jars. The underlying
23 # python native test generator does not support it yet.
24 #
25
26 {
27 'actions': [
Ryan Sleevi 2012/05/23 01:00:45 I feel like you should be checking 'target_condi
nilesh 2012/05/23 22:45:20 Done.
28 {
29 'action_name': 'apk_<(test_suite_name)',
30 'message': 'Building <(test_suite_name) test apk.',
31 'inputs': [
32 '../testing/android/AndroidManifest.xml',
33 '../testing/android/generate_native_test.py',
Ryan Sleevi 2012/05/23 01:00:45 I'm pretty sure these two (line 32, 33) should be
nilesh 2012/05/23 22:45:20 Done.
34 '<(PRODUCT_DIR)/lib.target/lib<(test_suite_name).so',
35 '<(PRODUCT_DIR)/lib.java/<(jar_name)',
Ryan Sleevi 2012/05/23 01:00:45 I think I'd feel better if the caller was required
nilesh 2012/05/23 22:45:20 Done.
36 ],
37 'outputs': [
38 '<(PRODUCT_DIR)/<(test_suite_name)_apk/<(test_suite_name)-debug.apk',
Ryan Sleevi 2012/05/23 01:00:45 Should this be "->(_configuration).apk" instead of
nilesh 2012/05/23 22:45:20 Currently, we always generate *-debug.apk (even fo
39 ],
40 'action': [
41 '../testing/android/generate_native_test.py',
42 '--native_library',
43 '<(PRODUCT_DIR)/lib.target/lib<(test_suite_name).so',
Ryan Sleevi 2012/05/23 01:00:45 '/lib.target/<(SHARED_LIB_PREFIX)<(test_suite_name
nilesh 2012/05/23 22:45:20 Done.
44 '--jar',
45 '<(PRODUCT_DIR)/lib.java/chromium_base.jar',
Ryan Sleevi 2012/05/23 01:00:45 Is this right? Did you mean to do '<(PRODUCT_DIR)
nilesh 2012/05/23 22:45:20 Yes. Thanks for catching.
46 '--output',
47 '<(PRODUCT_DIR)/<(test_suite_name)_apk',
48 '--ant-args',
49 '-DPRODUCT_DIR=<(PRODUCT_DIR)',
50 '--ant-compile'
51 ],
52 },
53 ],
54 }
OLDNEW
« no previous file with comments | « base/base.gyp ('k') | content/content_tests.gypi » ('j') | content/content_tests.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698