aboutsummaryrefslogtreecommitdiff
path: root/build-android
AgeCommit message (Collapse)Author
2018-02-05scripts: Update android-generate to support UUIDCody Northrop
This allows use of the script as is, automatically selecting git_dir vs. rev_file based on detected paths.
2018-02-05scripts: Fix error if spirv-tools dir had no .git (#2346)Cort Stratton
external_revision_generator.py generates a UUID for VkValidationCacheEXT objects created by the layers, based on the commit ID of the HEAD revision in the spirv-tools repo used to build those layers. This implicitly required that the spirv-tools source is hosted in a Git repository, which is not the case in all validation layers build environments. The script has been modified to accept *either* a path to a Git working directory to query *or* a path to a file whose contents are SHA1-hashed (if necessary) and treated as the "commit ID" for the project. Call sites for the script in the CMake and Android build paths have been updated to use the --git_dir approach by default, which matches the pre-existing behavior.
2018-01-04Update android-build/cmake scripts to build with Android Studio 3.0.0+guanghuafan
2018-01-02build: Remove APP_MODULES from android Application.mkMark Lobodzinski
This option is optional if all components are to be built. Removing this will make VulkanTools trunk merges safer and easier. Change-Id: I4c0bb13bf23924c49bb1b3bde1eaa26de1b180df
2017-12-22android: Add missing shaderc fileCody Northrop
2017-12-18android: Update to NDK r16bCody Northrop
This allows us to switch to libc++ runtime as it is no longer beta: https://android.googlesource.com/platform/ndk/+/ndk-release-r16/CHANGELOG.md
2017-11-28Fix build errors:Cort Stratton
- No more SPIRV-Tools revision file. Instead, the revision-parsing script just runs "git rev-parse HEAD" in the spirv-tools repository to extract the commit ID. - Invoke the revision-parsing script from the .sh Android scripts, in addition to the .bat scripts.
2017-11-28Fix for Android build error with Linux hostCort Stratton
2017-11-28Use SPIRV-Tools commit ID as validation cache versionCort Stratton
2017-11-28layers: Add xxhashChris Forbes
2017-11-09android: Only compile toolchain once build_all.shCody Northrop
2017-11-06android: Remove mips targetsCody Northrop
2017-11-06android: Update to shaderc known-good revisionsCody Northrop
2017-11-03scripts: Add --no-build for Android toolchainCody Northrop
With switch to importing shaderc, we don't need to create prebuilts anymore.
2017-11-03layers: Refactored pNext chain walks to templateJohn Zulauf
The while loops for the walking the pNext chains were implemented by repeated code. These were refactored into a common template. Added autogenerated 'traits' objects for the pNext linked structs. Delete cut and paste duplicate pNext chain walk. Change-Id: I46457bb5432219c74f9356e5230c70e4a9ef16df
2017-10-29repo: normalize line termination across repoMike Weiblen
This is a scrub of the entire repo to normalize end-of-line termination to conform to the recently added .gitattributes file. A mismatch of line termination can cause difficult-to-resolve conflicts when rebasing or merging. The process performed is described at: https://help.github.com/articles/dealing-with-line-endings/#refreshing-a-repository-after-changing-line-endings The .gitattributes file is required because some files (*.bat and *.sh) are sensitive to line termination. The .gitattributes file is stored in the repo, and overrides settings which could be corrupted by a developer's local git configuration. The .gitattributes file was added in f077c81 This commit completes bcc9fec, which fixed a single file. Change-Id: I75d4594b61cb8aa6a09efb3ed5ace34fe8394871
2017-10-26build-android: update .bat line terminationMike Weiblen
Change-Id: I9d4152df8cc7c10e74f6484dbc802c2c854c9fef
2017-10-12android: Use NDK structure for third party modulesMike Stroyan
Locate glslang and spirv directories under shaderc directory. This allows the layers build to optionally use the NDK sources. For glslang and spirv and shaderc- Use LOCAL_STATIC_LIBRARIES instead of LOCAL_C_INCLUDES to find headers. Use import-module instead of PREBUILT_STATIC_LIBRARY.
2017-10-12LOCAL_C_INCLUDES and LOCAL_CPPFLAGS changesMike Stroyan
Drop abspath from LOCAL_PATH. Use LOCAL_PATH for LOCAL_C_INCLUDES but not LOCAL_SRC_FILES. Move LOCAL_CPPFLAGS from Application.mk to Android.mk.
2017-09-29android: Update toolchain build to handle single ABICody Northrop
This reduces local arm32 toolchain build from 3m30s to 42s. Also update Travis-CI config to use the new flag, greatly reducing Android build time.
2017-09-07external: Update Android commit IDsMike Weiblen
With this, LVL's Android externals match those of shaderc's known-good as of cd52beb9 Change-Id: Ic408469d007b632f16229b3e2be0abe82abe5869
2017-08-29android: Update shader toolchain revisionsCody Northrop
Pulled from: https://github.com/google/shaderc/blob/90a90d6f745704ac05afe70b7e8f759bec2ff493/known_good.json
2017-08-17vkjson: Add support for AndroidCody Northrop
This commit adds vkjson and vkjson_info to the Android build. It is only generated as an executable for devices with root access, but it could be expanded to an APK with some more boilerplate work. See updates to BUILD.md for how to build and run on the device.
2017-08-16android: Updates for NDK r15Cody Northrop
Removes app_dummy from apps that use native activity. For more details refer to: https://github.com/android-ndk/ndk/issues/381
2017-08-16layers: Re-architect parameter validation layerMark Lobodzinski
Changed the codegen to autogenerate validation functions for any new APIs without user intervention. Manual updates are only necessary to extend PV functionality. - parameter_validation.h is now checked into the layers directory - parameter_validation.cpp is now generated - parameter_validation_utils.cpp is new and contains any custom (non-generated) or housekeeping functions. - parameter_validation_utils.h is deprecated - updated database for new VUID coverage Change-Id: Ib9261894386145573ba9e8906ba4ad4e9fecbdfd
2017-08-01external: Update commit IDs: glslang,tools,headerMike Weiblen
Update external reference commit IDs for Desktop and Android Change-Id: I0b79c9e030e06479d1f07d4d3372dcc96bfa2f0e
2017-07-24build: Switch to generated object_tracker.cppMark Lobodzinski
- updated desktop/android build - removed layers/object_tracker.cpp - updated doc validator script for new location - updated error database for 124 new checks - added gen'd VU to GetSwapchainImages Change-Id: If1b218dfcf62b203a8df96a0f12cbeb8bdcaf826
2017-07-18layers: Reorganize ObjectTracker for future codegenMark Lobodzinski
Moved to-be-generated source to object_tracker.cpp, manually- written and helper functions to object_tracker_utils.cpp (new file), and reworked header. Updated doc validator to search new file. Change-Id: I0fd3bcc4f6d123db07c7f8e2633e6fe16833e231
2017-06-12build: Remove swapchain layer build from cmakeMark Lobodzinski
Also removed from android makefiles. Change-Id: Ib4be1c737e9bd9fda21210ed7b234b9242b7b8f5
2017-06-09layers: Move shader validation plumbing out into own fileChris Forbes
2017-06-06build: Add extension helper generation to cmakeMark Lobodzinski
Change-Id: Id93ead148d5b0beb23ee5d9f1bc7e8fc727aa46e
2017-05-30external: Update external revisionsJeremy Hayes
Change-Id: Ie168ac55cc12d317a2c189dbaee735718b295c04
2017-05-25external: update external revision for glslangJeremy Hayes
Pick up a fix for built-in redeclarations. Change-Id: I2b506e24b2cf619b07ff1c75ab0a9a05143379ca
2017-05-23external: update external revisionsJeremy Hayes
Update external revisions for glslang, spirv-tools, spirv-headers, and shaderc. Change-Id: Ie1f4afe2d36a6d8e3d1e166c23372f8f6523cf59
2017-05-23android: Update gradle layer build to use cmakeguanghuafan
2017-05-15external: Update refs for glslang and spirv-toolsMike Weiblen
Change-Id: Iaf28f3b22c53d8272984e7369fb5afb606908bdd
2017-05-02external: Update external reference ID for glslangMike Weiblen
Change-Id: Ied5cecf65eaafcab9274376fea452934bda3f69b
2017-04-29external_revisions: bump spirv-toolsChris Forbes
CV needs the new bitpattern interface for specialization. V2: also bump for android V3: also bump headers V4: also bump shaderc for android build
2017-04-18android: Add script that installs APKsCody Northrop
2017-04-18android: Add test_APK script for layer validationCody Northrop
This is a script we've been using internally for a while, no reason not to make it public. It installs our layer validation tests, runs them, and gathers output. Improvements are welcome! Usage: ./test_APK.sh -s <serial number> -p <plaform name> -f <gtest_filter>
2017-04-18android: Add build script that includes APK packagingCody Northrop
2017-04-05build: Add object_types codegen steps for AndroidMark Lobodzinski
Change-Id: If54d83c9b5c67ad92f7510718e1194391bf9fff5
2017-03-30android: Update to matching desktop glslang versionCody Northrop
2017-03-29layers: refactor layer utilsDave Houlton
Split format-related helper fxns out of vk_layer_utils.cpp into a new file vk_format_utils.cpp. Remove the duplicated fxns in the render framework and share the new format utils across both projects. Rename the util fxns into CamelCase per coding std. Change-Id: I0f9a34bc5931dfca085dfdc8d4800664aec526cf
2017-03-28android: Update toolchain revisions and locationsCody Northrop
Start pulling from github again for more recent bits. This includes changes to easily allow changing the repo url.
2017-03-07Use nproc instead of ncpuCiro Santilli
The command is more widely available in Linux since it is part of Coreutils.
2017-03-01vulkan: update to header 1.0.42Mark Young
Updated all necessary files to 1.0.42. This includes the various headers as well as the loader, and the parameter validation, object tracking, and threading layers. Additionally, bump all layer JSON files to 1.0.42. Also, in this change: - Enable loader extension automation so that the loader now generates all extension entry-points automatically during build to reduce likelihood of missing a critical piece on header update. - Enable layer dispatch table extension automation for the same reason. - Fixes from Mark Lobodzinski and Tony Barbour to resolve crash in loader when working with Intel's Windows driver due to GetInstanceProcAddr getting called on inappropriate command names. Change-Id: Ic18d3fac2e145c386c0192031deb5089c91a00d8
2017-02-16android: Update build to skip image layerMark Lobodzinski
All image layer functionality has been moved into the core_validation layer. Change-Id: I980e279626e4e3f29c5068240260a737a5a707b1
2017-01-17layers: Move CreateImage recording to buf/img moduleMark Lobodzinski
- Move source from core_validation.cpp into new module - Add new module to layers cmake file - Update android build scripts/makefiles for new files Change-Id: Ia4000b26384d96a551d727f5e37997372f01764a
2017-01-11android: Switch safe_struct over to new codegenMark Lobodzinski
Change-Id: Ia89cfec2b836437c2f2009608795d1ee38b811ad