-
Create the
bazel-external
link in the AGI checkout directory:- Linux:
ln -s $(bazel info output_base)/external bazel-external
- Windows Command Prompt:
for /f usebackq %F in (`bazel info output_base`) do mklink /J bazel-external "%F/external"
- Linux:
-
Create and open a new Eclipse workspace.
-
Open the Eclipse Window -> 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 AGI checkout, e.g.
<gitroot>/gapic/src/platform/<OS>
- Click OK to create the variable.
- Click Apply and Close to dismiss the preferences dialog.
-
Run the bazel build to build all the generated code.
-
Select File -> Import and then General -> Existing Projects into Workspace and click Next.
- Enter the location of your AGI checkout into the root directory box.
- Click Select All. You should see a project named gapic.
- IMPORTANT: Uncheck Copy projects into workspace
- Click Finish.
-
Select Run -> Run Configurations.
- Select Java Application.
- Press the button for a new configuration.
- Choose a name, e.g. "Default".
- In Main tab:
- In Project click Browse. gapic should be selected. Click Ok.
- In Main class click Search, select Main - com.google.gapid and click Ok.
- In Arguments tab:
- In Program arguments give the
--gapid
flag. E.g.:--gapid <path_to_agi>/bazel-bin/pkg
, replace<path_to_agi>
with your AGI checkout path. Optionally add more arguments.
- In Program arguments give the
- In JRE tab:
- If AGI should run with a different JRE than Eclipse, choose it in Alternate JRE. It might have to be added as Installed JREs first.
- In Classpath tab:
- Select User Entries and click Add JARs. Select
/gapic/bazel-external/org_lwjgl_core/lwjgl-natives-<OS>.jar
for your OS and click Ok. Folder name and jar name may vary based on your operating system. - Repeat for
/gapic/bazel-external/org_lwjgl_opengl/lwjgl-opengl-natives-<OS>.jar
.
- Select User Entries and click Add JARs. Select
- Click Apply and Run to test the configuration.
Files
gapic
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||