-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation effort and various polishing fixes (#140)
* Restructure documentation layout * Update readme formatting * Update * Fix links to images * Update README * Add note * Layout the 'run' doc * Refactor command line build instructions into their own doc * fix subtitle * Add documentation on how to run * Update doc: build libgdx client * Update build instructions * New doc layout glsl-fuzz glsl-reduce * Minor style fix * Add note * Brief intro to glsl-reduce. * Fixed name of reducer class. * Changed _ to - for reducer command line options, and replaced --reduce-everywhere with opposite --preserve-semantics option. * Work on docs/glsl-fuzz-walkthrough.md. * Small changes to glsl-fuzz-walkthrough.md * Work on glsl-reduce-intro.md * A different approach to the README. We should review it tomorrow. * Update file hierarchy doc * Various changes. * Revert small tweak. * More changes. * A few more tweaks. * Small change. * Small fix. * Made reduction-kind an optional argument, defaulting to CUSTOM. * Changes to how reducer is invoked. * Document shader family results in file system * Start documentation of reducing shaders from command line. * Document reduction results in file system * Added files to be used for glsl-reduce walkthrough. * Small tweaks * glsl-fuzz-walkthrough: fix Vulkan shaders generate command. * Ignore license headers for command wrappers in: graphicsfuzz/src/main/scripts/examples/glsl-reduce/ * glsl-reduce walkthrough. * Added license header. * Added note so we do not forget comment. * Append command-line build doc to developer doc * WebUI: preserve-semantics on reference reduction and don't use network to communicate with the fuzzer service manager. * check_headers.py: fix glsl-reduce-walkthrough ...ignore rules and add ./temp * Rename token to worker * Changes to docs from meeting. * glsl-reduce documentation. * Tweak to glsl-reduce manual. * glsl-reduce documentation ready for others to try out. * Working on glsl-reduce command line example. * Layout of glsl-generate doc * Edits to glsl-fuzz intro. * Edits to glsl-fuzz walkthrough. * Add doc for glsl-generate * Fix python indentation: 4 spaces everywhere * Hide the metric field from the WebUI. Remove "manageAPI" from the server URL args. * More work on glsl-fuzz-walkthrough.md. * Fix python indentation: 4 spaces everywhere * Make example scripts executable. Remove lines in docs about making them executable. * Typo. * Tweaks to glsl-reduce-walkthrough.md * More work on glsl-fuzz-walkthrough.md * Work on glsl-fuzz-reduce.md * Hyphenise generate-shader-family * Fix python indentation * Hyphenise reduce-spirv-opt-flags.py * Hyphenise run-browser* * Hyphenise run-shader-family* * Remove run_spv_local.sh which is now superseded by vkrun.py * Hyphenise worker-vk * Remove depreciated deqp worker * Rename worker-vk to glsl-to-spv-worker * Adjust developer documentation so command line build instructions are one click away.
- Loading branch information
1 parent
a5b4356
commit 3ccb052
Showing
58 changed files
with
2,207 additions
and
1,689 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Android notes | ||
|
||
The Android SDK is needed for building and developing the | ||
OpenGL worker (gles-worker). | ||
|
||
The Android SDK and NDK are needed for building and developing the | ||
Vulkan worker (vulkan-worker). | ||
|
||
## Installing the Android SDK and NDK | ||
|
||
You can download and install the Android SDK | ||
(with Android Studio or stand-alone) | ||
from [https://developer.android.com/studio/#downloads](https://developer.android.com/studio/#downloads). | ||
You can then use Android Studio or the SDK manager | ||
to install missing packages and the Android NDK. | ||
|
||
**Alternatively**, you can install the exact configuration | ||
of the Android SDK and NDK that we use from the command line | ||
by following our | ||
[continuous integration script](../build/travis/1-install-deps-travis.sh); | ||
the download of the Android SDK starts about halfway down. | ||
You may need to set some environment variables as specified in the comments. | ||
|
||
Ensure that the `ANDROID_HOME=/path/to/android-sdk` and `ANDROID_NDK_HOME=$ANDROID_HOME/ndk-bundle` environment variables are set; | ||
you may need to open IntelliJ IDEA from the terminal depending on how | ||
you set the environment variables. | ||
|
||
You should also add the `android-sdk/platform-tools` directory | ||
to your path so that you can use tools like `adb`. | ||
|
||
## Android networking | ||
|
||
See [Android networking guide](android-networking-guide.md). | ||
|
||
## Installing apps via `adb` | ||
|
||
Once you have `adb` on your path, | ||
you can install apps using: | ||
|
||
`adb install the-app.apk` | ||
|
||
## Other notes | ||
|
||
* On an Android device, | ||
open `Settings`, `About device`, and keep tapping build number until developer settings are enabled. | ||
The build number might be under a further `Software information` option. | ||
* In developer settings, enable `USB debugging` and `Stay awake`. | ||
* In security settings (which might be under `Lock screen and security`), enable installing apps from unknown sources. | ||
* You can download the android worker directly on the phone from the [releases page](glsl-fuzz-releases.md). | ||
* In IntelliJ, open `Android Monitor` to view log output. | ||
Enter `com.graphicsfuzz.` in the search text box and select `No filters` in the drop down. | ||
This will ensure you see output from all processes; our worker uses three processes on Android. | ||
* Press the back button on the device to exit the OpenGL worker app on Android. Pressing home or | ||
other buttons won't work, as the app tries to stay in the foreground. | ||
|
||
|
Oops, something went wrong.