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

Unified Diff: build/android/java_cpp_template.gypi

Issue 12513008: Android: use gcc (not cpp) to preprocess templates. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/java_cpp_template.gypi
diff --git a/build/android/java_cpp_template.gypi b/build/android/java_cpp_template.gypi
index 89058b0bc9e20b761df442de864dbe453ec4488e..22b7214d070f454b0c1b24f7ecb268c96777cfdf 100644
--- a/build/android/java_cpp_template.gypi
+++ b/build/android/java_cpp_template.gypi
@@ -6,9 +6,6 @@
# to generate Java source files from templates that are processed
# through the host C pre-processor.
#
-# This assumes a GNU-compatible pre-processor installed as 'cpp'.
-# Only tested on Linux.
-#
# To use this, create a gyp target with the following form:
# {
# 'target_name': 'android_net_java_constants',
@@ -57,7 +54,8 @@
'<(output_dir)/<(RULE_INPUT_ROOT).java'
],
'action': [
- 'cpp', # invoke host pre-processor.
+ 'gcc', # invoke host gcc.
+ '-E', # stop after preprocessing.
'-x', 'c-header', # treat sources as C header files
'-P', # disable line markers, i.e. '#line 309'
'-I', '<(DEPTH)', # Add project top-level to include path
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698