Skip to content

Updating build scripts targeting android #161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

angela28chen
Copy link
Collaborator

Made changes to build scripts to make the process between Windows and Linux hosts more similar. Also updated documentation.

Now in both scripts:

  • ability to pass a parameter to specify build for only one type (Debug/Release) with basic input validation
  • gfxr replay files are copied to build_android/<BUILD_TYPE>/third_party/gfxreconstruct/android/tools/replay
  • start and end time is reported at the end of execution
  • gradle is passed the flag --console=verbose for more descriptive and permanent output

Remaining differences:

  • where gradle builds for gfxr are triggered
    • on Windows this is triggered from build_android.bat
    • on Linux this is triggered from cmake

@angela28chen
Copy link
Collaborator Author

Ideally the Windows gradle build can be triggered from the cmake file too, but I couldn't get that to work (seemed to be an issue with WORKING_DIRECTORY).

@angela28chen angela28chen merged commit 79e7368 into google:main Jan 15, 2025
7 checks passed
@angela28chen angela28chen deleted the build branch January 15, 2025 17:19
GrantComm pushed a commit to GrantComm/dive that referenced this pull request Jul 11, 2025
Made changes to build scripts to make the process between Windows and Linux hosts more similar. Also updated documentation.

Now in both scripts:
* ability to pass a parameter to specify build for only one type (Debug/Release) with basic input validation
* gfxr replay files are copied to build_android/<BUILD_TYPE>/third_party/gfxreconstruct/android/tools/replay
* start and end time is reported at the end of execution
* gradle is passed the flag --console=verbose for more descriptive and permanent output

Remaining differences:
* where gradle builds for gfxr are triggered
  * on Windows this is triggered from build_android.bat
  * on Linux this is triggered from cmake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants