diff options
Diffstat (limited to 'build-android')
-rw-r--r-- | build-android/glslang_revision_android | 2 | ||||
-rw-r--r-- | build-android/jni/Android.mk | 7 | ||||
-rw-r--r-- | build-android/shaderc_revision_android | 2 | ||||
-rw-r--r-- | build-android/spirv-tools_revision_android | 2 | ||||
-rwxr-xr-x | build-android/update_external_sources_android.bat | 18 |
5 files changed, 24 insertions, 7 deletions
diff --git a/build-android/glslang_revision_android b/build-android/glslang_revision_android index c48dee1a..56c5bed5 100644 --- a/build-android/glslang_revision_android +++ b/build-android/glslang_revision_android @@ -1 +1 @@ -3c5b1e6b31aca0eb52fe7e82a963ff735f1de31b +d99524197f3b68dbd6267bd3f4d7e8a0f49167b4 diff --git a/build-android/jni/Android.mk b/build-android/jni/Android.mk index 96df1fa0..8b43750d 100644 --- a/build-android/jni/Android.mk +++ b/build-android/jni/Android.mk @@ -157,6 +157,11 @@ LOCAL_SRC_FILES := $(SRC_DIR)/../shaderc/android_test/obj/local/$(TARGET_ARCH_AB include $(PREBUILT_STATIC_LIBRARY) include $(CLEAR_VARS) +LOCAL_MODULE := HLSL-prebuilt +LOCAL_SRC_FILES := $(SRC_DIR)/../shaderc/android_test/obj/local/$(TARGET_ARCH_ABI)/libHLSL.a +include $(PREBUILT_STATIC_LIBRARY) + +include $(CLEAR_VARS) LOCAL_MODULE := shaderc_util-prebuilt LOCAL_SRC_FILES := $(SRC_DIR)/../shaderc/android_test/obj/local/$(TARGET_ARCH_ABI)/libshaderc_util.a include $(PREBUILT_STATIC_LIBRARY) @@ -185,7 +190,7 @@ LOCAL_C_INCLUDES += $(SRC_DIR)/include \ $(SRC_DIR)/../shaderc/libshaderc/include/ LOCAL_STATIC_LIBRARIES := googletest_main layer_utils -LOCAL_SHARED_LIBRARIES += shaderc-prebuilt glslang-prebuilt OGLCompiler-prebuilt OSDependent-prebuilt shaderc_util-prebuilt SPIRV-prebuilt SPIRV-Tools-prebuilt +LOCAL_SHARED_LIBRARIES += shaderc-prebuilt glslang-prebuilt OGLCompiler-prebuilt OSDependent-prebuilt HLSL-prebuilt shaderc_util-prebuilt SPIRV-prebuilt SPIRV-Tools-prebuilt LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR --include=$(SRC_DIR)/tests/vulkan_wrapper.h LOCAL_LDLIBS := -llog include $(BUILD_EXECUTABLE) diff --git a/build-android/shaderc_revision_android b/build-android/shaderc_revision_android index 04b23248..81875238 100644 --- a/build-android/shaderc_revision_android +++ b/build-android/shaderc_revision_android @@ -1 +1 @@ -53cf6692879c6dcd5f4ccdffb8c10bb17b5e9d55 +4213a472474053f456464b7d00d14adf814ecc44 diff --git a/build-android/spirv-tools_revision_android b/build-android/spirv-tools_revision_android index e83c901e..9a829b9c 100644 --- a/build-android/spirv-tools_revision_android +++ b/build-android/spirv-tools_revision_android @@ -1 +1 @@ -9149a66ca406d86967b104cac209bad309fd2c33 +469f0e8fd53b527ad410c46bf18eee327c9256a3 diff --git a/build-android/update_external_sources_android.bat b/build-android/update_external_sources_android.bat index f2b719fc..08d96308 100755 --- a/build-android/update_external_sources_android.bat +++ b/build-android/update_external_sources_android.bat @@ -116,7 +116,7 @@ if %sync-spirv-tools% equ 1 ( if exist %SPIRV_TOOLS_DIR% ( rd /S /Q %SPIRV_TOOLS_DIR% ) - if %errorlevel% neq 0 (goto:error) + if %ERRORLEVEL% neq 0 (goto:error) if not exist %SPIRV_TOOLS_DIR% ( call:create_spirv-tools ) @@ -162,7 +162,7 @@ REM // ======== Functions ======== // :create_glslang echo. - echo Creating local glslang repository %GLSLANG_DIR%) + echo Creating local glslang repository %GLSLANG_DIR% mkdir %GLSLANG_DIR% cd %GLSLANG_DIR% git clone https://github.com/KhronosGroup/glslang.git . @@ -179,11 +179,15 @@ goto:eof cd %GLSLANG_DIR% git fetch --all git checkout %GLSLANG_REVISION% + if not exist %GLSLANG_DIR%\SPIRV ( + echo glslang source update failed! + set errorCode=1 + ) goto:eof :create_spirv-tools echo. - echo Creating local spirv-tools repository %SPIRV_TOOLS_DIR%) + echo Creating local spirv-tools repository %SPIRV_TOOLS_DIR% mkdir %SPIRV_TOOLS_DIR% cd %SPIRV_TOOLS_DIR% git clone https://github.com/KhronosGroup/SPIRV-Tools.git . @@ -200,6 +204,10 @@ goto:eof cd %SPIRV_TOOLS_DIR% git fetch --all git checkout %SPIRV_TOOLS_REVISION% + if not exist %SPIRV_TOOLS_DIR%\source ( + echo spirv-tools source update failed! + set errorCode=1 + ) goto:eof :create_shaderc @@ -221,6 +229,10 @@ goto:eof cd %SHADERC_DIR% git fetch --all git checkout %SHADERC_REVISION% + if not exist %SHADERC_DIR%\libshaderc ( + echo shaderc source update failed! + set errorCode=1 + ) goto:eof :build_shaderc |