cppeclipse.rst 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. .. _build_cppeclipse:
  2. =====================
  3. Cpp Eclipse Projects
  4. =====================
  5. For additional information on using Eclipse CDT see
  6. `the MDN page
  7. <https://developer.mozilla.org/en-US/docs/Eclipse_CDT>`_.
  8. The build system contains alpha support for generating C++ Eclipse
  9. project files to aid with development.
  10. Please report bugs to bugzilla and make them depend on bug 973770.
  11. To generate a C++ Eclipse project files, you'll need to have a fully
  12. built tree::
  13. mach build
  14. Then, simply generate the Android Eclipse build backend::
  15. mach build-backend -b CppEclipse
  16. If all goes well, the path to the generated workspace should be
  17. printed (currently, ``$OBJDIR/android_eclipse``).
  18. To use the generated Android Eclipse project files, you'll need to
  19. have a Eclipse CDT 8.3 (We plan to follow the latest Eclipse release)
  20. `Eclipse CDT plugin
  21. <https://www.eclipse.org/cdt/>`_
  22. installed. You can then import all the projects into Eclipse using
  23. *File > Import ... > General > Existing Projects into Workspace*
  24. -only- if you have not ran the background indexer.
  25. Updating Project Files
  26. ======================
  27. As you pull and update the source tree, your C++ Eclipse files may
  28. fall out of sync with the build configuration. The tree should still
  29. build fine from within Eclipse, but source files may be missing and in
  30. rare circumstances Eclipse's index may not have the proper build
  31. configuration.
  32. To account for this, you'll want to periodically regenerate the
  33. Android Eclipse project files. You can do this by running ``mach build
  34. && mach build-backend -b CppEclipse`` from the
  35. command line.
  36. Currently, regeneration rewrites the original project files. **If
  37. you've made any customizations to the projects, they will likely get
  38. overwritten.** We would like to improve this user experience in the
  39. future.