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

Side by Side Diff: build/jni_generator.gypi

Issue 960873002: Update from https://crrev.com/318214 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « build/java_apk.gypi ('k') | build/rmdir_and_stamp.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # This file is meant to be included into a target to provide a rule 5 # This file is meant to be included into a target to provide a rule
6 # to generate jni bindings for Java-files in a consistent manner. 6 # to generate jni bindings for Java-files in a consistent manner.
7 # 7 #
8 # To use this, create a gyp target with the following form: 8 # To use this, create a gyp target with the following form:
9 # { 9 # {
10 # 'target_name': 'base_jni_headers', 10 # 'target_name': 'base_jni_headers',
(...skipping 18 matching lines...) Expand all
29 29
30 { 30 {
31 'variables': { 31 'variables': {
32 'jni_generator': '<(DEPTH)/base/android/jni_generator/jni_generator.py', 32 'jni_generator': '<(DEPTH)/base/android/jni_generator/jni_generator.py',
33 'jni_generator_jarjar_file%': '', 33 'jni_generator_jarjar_file%': '',
34 'jni_generator_ptr_type%': 'long', 34 'jni_generator_ptr_type%': 'long',
35 # A comma separated string of include files. 35 # A comma separated string of include files.
36 'jni_generator_includes%': ( 36 'jni_generator_includes%': (
37 'base/android/jni_generator/jni_generator_helper.h' 37 'base/android/jni_generator/jni_generator_helper.h'
38 ), 38 ),
39 'native_exports%': '', 39 'native_exports%': '--native_exports_optional',
40 }, 40 },
41 'rules': [ 41 'rules': [
42 { 42 {
43 'rule_name': 'generate_jni_headers', 43 'rule_name': 'generate_jni_headers',
44 'extension': 'java', 44 'extension': 'java',
45 'inputs': [ 45 'inputs': [
46 '<(jni_generator)', 46 '<(jni_generator)',
47 ], 47 ],
48 'outputs': [ 48 'outputs': [
49 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_package)/jni/<(RULE_INPUT_ROOT)_jn i.h', 49 '<(SHARED_INTERMEDIATE_DIR)/<(jni_gen_package)/jni/<(RULE_INPUT_ROOT)_jn i.h',
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 'hard_dependency': 1, 85 'hard_dependency': 1,
86 'conditions': [ 86 'conditions': [
87 ['android_webview_build==1', { 87 ['android_webview_build==1', {
88 'variables': { 88 'variables': {
89 'native_exports%': '--native_exports', 89 'native_exports%': '--native_exports',
90 }, 90 },
91 'dependencies': [ 91 'dependencies': [
92 '<(DEPTH)/build/android/android_exports.gyp:android_exports', 92 '<(DEPTH)/build/android/android_exports.gyp:android_exports',
93 ], 93 ],
94 }], 94 }],
95 ['clang==0', {
96 # Clang builds currently fail with --native_exports_optional due to
97 # http://llvm.org/bugs/show_bug.cgi?id=22602 - only enable for gcc.
98 # http://crbug.com/442327
99 'variables': {
100 'native_exports%': '--native_exports_optional',
101 },
102 }],
103 ], 95 ],
104 } 96 }
105 97
OLDNEW
« no previous file with comments | « build/java_apk.gypi ('k') | build/rmdir_and_stamp.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698