For the WebView build, invoking "cpp" from $PATH is problematic on some
host platforms because the Android build system is intended to use
hermetic toolchains. However, using the hermetic toolchain correctly is
also difficult.
    
To avoid this, use a regex to strip comments instead of invoking cpp.
This regex shoud handle all the Java source cases correctly (it deals
with strings that contain //, /* or */) and should also improve
performance compared to invoking cpp. The JNI generator tests pass with
this change.

Review URL: https://codereview.chromium.org/227303003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263650 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: 746191613fc97325f523603f968c58bf9713562e
1 file changed
tree: c3951441813237ad6444cf00ff3f3d269e8e7481
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/