aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Lobodzinski <mark@lunarg.com>2016-10-11 09:25:23 -0600
committerMark Lobodzinski <mark@lunarg.com>2016-10-12 13:45:33 -0600
commit6d7934a899b887c66e9c757dd64da70100b23c94 (patch)
tree2d9e7c656e4165e335775345730bb49c5b3eaa38
parent4fca586b8896a0cd6848a72ef784c0aea44906a2 (diff)
downloadusermoji-6d7934a899b887c66e9c757dd64da70100b23c94.tar.xz
demos: Add .py extension to smoke build script
Change-Id: I7fbcdc26fe774baefbdb3796470f41c3393ddfda
-rw-r--r--demos/smoke/CMakeLists.txt4
-rwxr-xr-xdemos/smoke/android/build-and-install4
-rwxr-xr-xdemos/smoke/generate-dispatch-table.py (renamed from demos/smoke/generate-dispatch-table)2
3 files changed, 5 insertions, 5 deletions
diff --git a/demos/smoke/CMakeLists.txt b/demos/smoke/CMakeLists.txt
index 4dc90cd1..756b6482 100644
--- a/demos/smoke/CMakeLists.txt
+++ b/demos/smoke/CMakeLists.txt
@@ -2,8 +2,8 @@ set (GLMINC_PREFIX ${PROJECT_SOURCE_DIR}/libs)
macro(generate_dispatch_table out)
add_custom_command(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/${out}
- COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/generate-dispatch-table ${CMAKE_CURRENT_SOURCE_DIR}/${out}
- DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/generate-dispatch-table
+ COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/generate-dispatch-table.py ${CMAKE_CURRENT_SOURCE_DIR}/${out}
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/generate-dispatch-table.py
)
endmacro()
diff --git a/demos/smoke/android/build-and-install b/demos/smoke/android/build-and-install
index 1c1d0f99..7ee17b44 100755
--- a/demos/smoke/android/build-and-install
+++ b/demos/smoke/android/build-and-install
@@ -22,8 +22,8 @@ generate_local_properties() {
glslang=$(realpath ../../../external/glslang/build/install/bin/glslangValidator)
prebuild() {
- ( cd ..; python3 generate-dispatch-table HelpersDispatchTable.h )
- ( cd ..; python3 generate-dispatch-table HelpersDispatchTable.cpp )
+ ( cd ..; python3 generate-dispatch-table.py HelpersDispatchTable.h )
+ ( cd ..; python3 generate-dispatch-table.py HelpersDispatchTable.cpp )
( cd ..; python3 glsl-to-spirv Smoke.frag Smoke.frag.h ${glslang} )
( cd ..; python3 glsl-to-spirv Smoke.vert Smoke.vert.h ${glslang} )
( cd ..; python3 glsl-to-spirv Smoke.push_constant.vert Smoke.push_constant.vert.h ${glslang} )
diff --git a/demos/smoke/generate-dispatch-table b/demos/smoke/generate-dispatch-table.py
index 2158fa8c..8ef9260c 100755
--- a/demos/smoke/generate-dispatch-table
+++ b/demos/smoke/generate-dispatch-table.py
@@ -90,7 +90,7 @@ class Extension(object):
return "\n".join(lines)
-# generated by "generate-dispatch-table parse vulkan.h"
+# generated by "generate-dispatch-table.py parse vulkan.h"
vk_core = Extension(name='VK_core', version=0, guard=None, commands=[
Command(name='CreateInstance', dispatch=None),
Command(name='DestroyInstance', dispatch='VkInstance'),