aboutsummaryrefslogtreecommitdiff
path: root/build-android/android-generate.bat
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.
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-28Use SPIRV-Tools commit ID as validation cache versionCort Stratton
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-26build-android: update .bat line terminationMike Weiblen
Change-Id: I9d4152df8cc7c10e74f6484dbc802c2c854c9fef
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-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-06-06build: Add extension helper generation to cmakeMark Lobodzinski
Change-Id: Id93ead148d5b0beb23ee5d9f1bc7e8fc727aa46e
2017-05-23android: Update gradle layer build to use cmakeguanghuafan
2017-04-05build: Add object_types codegen steps for AndroidMark Lobodzinski
Change-Id: If54d83c9b5c67ad92f7510718e1194391bf9fff5
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-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
2017-01-10android: Add codegen for struct_size_helpersMark Lobodzinski
Change-Id: I264d7ecca323089bda1583dbcf9eb751736146a7
2016-12-28android: Update build scripts w/enum_string codegenMark Lobodzinski
The enum_string_helper header is now generated from vk.xml. Change-Id: I6adf09663c87b21623993a939a8ad60e343a805d
2016-12-12android: Update windows script to request python3Cody Northrop
2016-12-12build: Update generate scripts to use python3Mark Lobodzinski
Upcoming header scripts require python3 -- updated Windows and Linux android-generate scripts. Change-Id: Iba3b44d0999b5c28b9fc83800a4d54d46cbc2a4c
2016-12-08build: Update Android cmake w/new dispatch_table genMark Lobodzinski
Change-Id: Id505439bf599ac04d2590e84e30ca29da9359f56
2016-11-21build: Move vk.xml file into scripts dirMark Lobodzinski
- Update android-generate batch/script files - Update layers CMakeLists.txt file Change-Id: I6423f441d61daa20aef2cc5e8bc719113fd7978d
2016-11-21build: Move XML codegen scripts into scripts dirMark Lobodzinski
- Update android-generate.bat and android-generate.sh - Updated layer CMakeLists.txt files for new path Change-Id: I1b1c9dbc9e944c90e95542fcfdda1d2e804517f3
2016-11-21build: Move codegen scripts into scripts dirMark Lobodzinski
- Set SCRIPTS_DIR in root CMakeLists.txt - Update android-generate.bat and android-generate.sh - Updated layer/loader/tests CMakeLists.txt files for new path - Updated test layer doc scripts for new location Change-Id: I2d519ec40883ebeec4e9daab8641ad65515bb08c
2016-10-13layers: Update build for v1.0.30 XML code-genMark Lobodzinski
- Updated cmakefiles for new codegen files: renamed genvk.py to lvl_genvk.py as the file is modified in this repo. - Modified dependencies and parameters of cmake build macros. - Updated reg.py to version 1.0.30 - Updated generator.py to version 1.0.30 Change-Id: Ia87fc7fc68e406a724d5ad9822f1f87b964f9977
2016-10-07Fix Android Windows build scriptCody Northrop
2016-10-06Layers: Implement unique_objects layer using vk.xmlMark Lobodzinski
UniqueObjects was the final LVL layer not using vk.xml for codegen. The new implementation follows the threading layer model which (outside of safe_struct dependencies) is more tolerant of API changes. Also updated for structure and style. build-android/android-generate.bat - Updated for build build-android/android-generate.sh - Updated for build generator.py - Added Unique Objects Generator genvk.py - Added call to U_O generator layers/CMakeLists.txt - Updated for build layers/unique_objects.cpp - New: manually generated code layers/unique_objects.h - Now a true header file vk-layer-generate.py - killed! Change-Id: I0d57871dfd2600829502f0bffd7cf6f926b7d5e7
2016-07-22layers: Update object_tracker layerMark Lobodzinski
Removed dead code, added per-instance and per-device object tracking, (this was broken in codegen'd version with no cross-device validation), updated for new layer architectures and coding standards, removed OT-related codegen -- it is now a standalone cpp file. Change-Id: I64464b855e1b4841c8e3a581387e0e9065b006f7
2016-07-06layers: Remove device_limits from Android buildMark Lobodzinski
Change-Id: I4d63b740f046ee8378267082abc3792aa7a85418
2016-05-16windows: Fix android-generate.batCody Northrop
Mirror changes made to android-generate.sh in cb9ce9e0
2016-04-20android: Unify source used for build.gradleCody Northrop
In previous commit we modified build.gradle to be cross platform, so we can stop using the windows specific version.
2016-04-07android: Update to get gradlew working againCody Northrop
2016-04-07android: fixed issues in windows buildguanghuafan
tested: windows/mac
2016-04-07android: Changed android-generated.bat for windows (not tested )guanghuafan
2016-04-07android: Adding template for gradle wrapper buildguanghuafan