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

Unified Diff: base/android/jni_generator/jni_generator.gyp

Issue 9384011: Chrome on Android: adds jni_generator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Joth's comments Created 8 years, 10 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
Index: base/android/jni_generator/jni_generator.gyp
diff --git a/base/android/jni_generator/jni_generator.gyp b/base/android/jni_generator/jni_generator.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..a2410daef71b8c42fe3dea4286c05e142c283aaf
--- /dev/null
+++ b/base/android/jni_generator/jni_generator.gyp
@@ -0,0 +1,66 @@
+# Copyright (c) 2012 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.
+{
Mark Mentovai 2012/02/14 20:00:38 It’s usual to put a blank line before this { to se
bulach 2012/02/14 23:18:11 Done.
+ 'targets': [
+ {
+ 'target_name': 'jni_generator_py_tests',
+ 'type': 'none',
+ 'actions': [
+ {
+ 'action_name': 'run_jni_generator_py_tests',
+ 'inputs': [
+ 'jni_generator.py',
+ 'jni_generator_tests.py',
+ 'SampleForTests.java',
+ 'golden_sample_for_tests_jni.h',
+ ],
+ 'outputs': [
+ '',
Mark Mentovai 2012/02/14 20:00:38 Really? No outputs?
bulach 2012/02/14 23:18:11 this action is just to run the python tests, it do
+ ],
+ 'action': [
+ 'python', './jni_generator_tests.py',
Mark Mentovai 2012/02/14 20:00:38 You don’t need the ./ here.
bulach 2012/02/14 23:18:11 Done.
+ ],
+ },
+ ],
+ },
+ {
+ 'target_name': 'jni_sample_header',
+ 'type': 'none',
+ 'actions': [
+ {
+ 'action_name': 'generate_jni_sample_header',
+ 'inputs': [
+ 'jni_generator.py',
+ 'SampleForTests.java',
+ ],
+ 'outputs': [
+ '<(SHARED_INTERMEDIATE_DIR)/base/jni/sample_for_tests_jni.h',
+ ],
+ 'action': [
+ 'python',
+ 'jni_generator.py',
+ '-o',
+ '<@(_inputs)',
+ '<@(_outputs)',
+ ],
+ },
+ ],
+ },
+ {
+ 'target_name': 'jni_generator_tests',
+ 'type': 'executable',
+ 'dependencies': [
+ '../../base.gyp:test_support_base',
+ 'jni_generator_py_tests',
+ 'jni_sample_header',
+ ],
+ 'include_dirs': [
+ '<(SHARED_INTERMEDIATE_DIR)/base',
+ ],
+ 'sources': [
+ 'sample_for_tests.cc',
+ ],
+ },
+ ],
+}

Powered by Google App Engine
This is Rietveld 408576698