Use add_custom_command instead of execute_process for building protos.

This more closely matches how CMake is supposed to be used. It adds the
commands as build steps instead of running them as part of analyzing the
build script itself. This allows the build steps to be parallelized,
produce output in the correct place, and run only when libicing is
actually being built.

Bug: 149853706
Test: ./gradlew external:icing:assemble
Change-Id: I548cf82d5d5ed6377fd65fa8f5ed04e90bd0d4f8
1 file changed
tree: fe2b2a2e96cecd83cd24d043051987d6e419a08e
  1. icing/
  2. java/
  3. nativeLib/
  4. .gitignore
  5. Android.bp
  6. AndroidManifest.xml
  7. CMakeLists.txt
  8. CONTRIBUTING.md
  9. jarjar-rules.txt
  10. LICENSE
  11. METADATA
  12. MODULE_LICENSE_APACHE2
  13. README.md
  14. TEST_MAPPING
README.md

Icing Search Library

Icing is a fast, embedded, mobile-friendly full-text-search library written in C++.

This is not an officially supported Google product.