项目作者: tstuefe

项目描述 :
CDT project for OpenJDK hotspot and gtest sources
高级语言: Assembly
项目地址: git://github.com/tstuefe/ojdk-cdt.git
创建时间: 2018-05-12T18:32:55Z
项目社区:https://github.com/tstuefe/ojdk-cdt

开源协议:GNU General Public License v3.0

下载


ojdk-cdt

Note: these CDT projects link their sources from the ojdk repository. They are meant to be placed outside the jdk repository.

Example setup:

  1. - my-jdk
  2. |
  3. |--sources (contains openjdk sources)
  4. |--output (contains build output)
  5. |--ojdk-cdt (these files)

1) Open “ojdk-cdt” as workspace in Eclipse CDT
2) Preferences->Linked Resources:

  • set OPENJDK_SOURCE_ROOT to root of jdk repository (“my-jdk/sources”)
  • set OPENJDK_OUTPUT_ROOT to root of jdk build directory (“my-jdk/output”)
    3) Import projects (“General->Existing Projects Into Workspace”), select workspace root folder (“ojdk-cdt”) and import “hs”. Do not copy the sources! Leave all settings default.

You should have now a workspace with one project, “hs”. Let the C++ indexer do its thing, then you are done and can start browsing the code. C++ code assistence should work now (jumping to definitions, call hierarchy etc).

You may have to actually build the OpenJDK to populate the output directory and get all generated sources (especially for the compiler).

Notes:

  • used mainly on Linux but should work on other platforms too.
  • Search path is set up for Linux x64 but browsing sources for other platforms and architectures seems to work at least partly.
  • Build does not work from within the IDE.