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

Unified Diff: net/net.gyp

Issue 11415152: build/java_cpp_template.gypi: new build rules. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years 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 | « net/android/java/net_errors_java.template ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/net.gyp
diff --git a/net/net.gyp b/net/net.gyp
index 0b06099eeb369eeb0085ecc7124025b2b94de407..3a227b3f2705fb4bae81fa7278ce31d1e8c3d967 100644
--- a/net/net.gyp
+++ b/net/net.gyp
@@ -2277,39 +2277,17 @@
'includes': [ '../build/java.gypi' ],
},
{
- # This should be extracted to a gypi file and parameterized if
- # we have more use cases of using the preprocessor to build java files.
'target_name': 'net_errors_java',
'type': 'none',
- 'direct_dependent_settings': {
- 'variables': {
- 'generated_src_dirs': ['<(SHARED_INTERMEDIATE_DIR)/net/template/'],
- 'additional_input_paths': ['<(SHARED_INTERMEDIATE_DIR)/net/template/NetError.java'],
Ryan Sleevi 2012/12/07 03:20:10 Do you no longer have to specify additional_input_
digit1 2012/12/07 08:46:07 I believe this is handled by the 'generated_src_di
- },
- },
- 'actions': [
- {
- 'action_name': 'generate_net_errors_java',
- 'inputs': [
- 'android/java/net_errors_java.template',
- ],
- 'outputs': [
- '<(SHARED_INTERMEDIATE_DIR)/net/template/NetError.java',
- ],
- 'action': [
- 'gcc',
- '-x', 'c-header',
- '-E', '-P',
- '-I', '..',
- '-o',
- '<@(_outputs)',
- '<@(_inputs)',
- ],
- 'message': 'Preprocessing <(_inputs)',
- 'process_outputs_as_sources': 1,
- },
+ 'sources': [
+ 'base/net_error_list.h',
+ 'android/java/NetError.template',
],
- },
+ 'variables': {
+ 'package_name': 'org.chromium.net',
+ },
+ 'includes': [ '../build/android/java_cpp_template.gypi' ],
+ }
],
}],
# Special target to wrap a gtest_target_type==shared_library
« no previous file with comments | « net/android/java/net_errors_java.template ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698