- Create the
bazel-external
link:ln -s $(bazel info output_base)/external bazel-external
- Create and open a new Eclipse workspace.
- Open the Eclipse Preferences and navigate to General -> Workspace -> Linked Resources.
- Click New... to define a new path variable:
- Set the name to
GAPIC_PLATFORM_SRC
. - Set the value to the your platform's folder inside the gapic/src/platform folder of the gapid checkout.
e.g.
<gitroot>/gapic/src/platform/linux
- Click OK to create the variable.
- Set the name to
- Click OK to dismiss the preferences dialog.
- Run the bazel build to build all the generated code.
- Select File -> Import and then General -> Existing Project into Workspace and click Next.
- Enter the location of your gapid checkout into the root directory box.
- Click Select All. You should see a project named gapic.
- IMPORTANT: Uncheck Copy projects into workspace
- Click "Finish".
- Set up Run Configurations.
- In Arguments tab: give the --gapid flag. E.g.:
--gapid <path_to_gapid>/bazel-bin/pkg
, replace<path_to_gapid>
with your local project path. - In Dependencies tab: add the lwjgl native jars. Find and add
/gapic/bazel-external/org_lwjgl_core_natives_linux/jar/lwjgl-3.2.0.jar
,/gapic/bazel-external/org_lwjgl_opengl_natives_linux/jar/lwjgl-opengl-3.2.0.jar
. Folder name and jar name may vary based on your operating system.
- In Arguments tab: give the --gapid flag. E.g.:
gapic
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||