Skip to content

Commit 94b04b5

Browse files
committed
Merge branch 'release/1.6.6'
2 parents 0f75a59 + 1c978f3 commit 94b04b5

File tree

11 files changed

+38
-16
lines changed

11 files changed

+38
-16
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ If applicable, add screenshots to help explain your problem.
2424

2525
**Desktop (please complete the following information):**
2626
- OS: [e.g. mac/linux/windows]
27-
- Version [e.g. 1.6.5]
27+
- Version [e.g. 1.6.6]
2828

2929
**Additional context**
3030
Add any other context about the problem here.

CMakeLists.txt

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.18.0)
22
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9" CACHE STRING "Minimum OS X deployment version")
3-
project(Griddly VERSION 1.6.5)
3+
project(Griddly VERSION 1.6.6)
44

55
string(TOLOWER ${PROJECT_NAME} PROJECT_NAME_LOWERCASE)
66

@@ -128,6 +128,9 @@ find_package(yaml-cpp REQUIRED)
128128
find_package(spdlog REQUIRED)
129129

130130
if(NOT WASM)
131+
132+
include(${CMAKE_BINARY_DIR}/conan_paths.cmake)
133+
131134
# find the dependencies from conan
132135
set(PYBIND11_FINDPYTHON FALSE)
133136

@@ -149,6 +152,7 @@ if(NOT WASM)
149152

150153
# ShaderC for compiling shaders
151154
find_package(shaderc REQUIRED)
155+
152156
endif()
153157

154158
include(${CMAKE_CONFIG_FOLDER}/targets/griddly.cmake)
@@ -163,9 +167,15 @@ else()
163167
set(ENV{GLSLC_BIN} ${CONAN_SHADERC_ROOT}/bin/glslc)
164168

165169
if(MSVC)
166-
execute_process(COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/compile_shaders.bat RESULT_VARIABLE rv)
170+
execute_process(COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/compile_shaders.bat RESULT_VARIABLE STATUS)
171+
if(STATUS AND NOT STATUS EQUAL 0)
172+
message( FATAL_ERROR "Cannot compile shaders: ${STATUS}")
173+
endif()
167174
else()
168-
execute_process(COMMAND bash ${CMAKE_CURRENT_SOURCE_DIR}/compile_shaders.sh RESULT_VARIABLE rv)
175+
execute_process(COMMAND bash ${CMAKE_CURRENT_SOURCE_DIR}/compile_shaders.sh RESULT_VARIABLE STATUS)
176+
if(STATUS AND NOT STATUS EQUAL 0)
177+
message( FATAL_ERROR "Cannot compile shaders: ${STATUS}")
178+
endif()
169179
endif()
170180

171181
if(ENABLE_PYTHON_BINDINGS)

CMakeUserPresets.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"CMAKE_POLICY_DEFAULT_CMP0091": "NEW",
1616
"CMAKE_BUILD_TYPE": "Debug"
1717
},
18-
"toolchainFile": "/home/bam4d/qmul/Griddly/build/conan_toolchain.cmake",
19-
"binaryDir": "/home/bam4d/qmul/Griddly/build"
18+
"toolchainFile": "build/conan_toolchain.cmake",
19+
"binaryDir": "build"
2020
},
2121
{
2222
"name": "Debug WASM",
@@ -28,18 +28,20 @@
2828
"CMAKE_BUILD_TYPE": "Debug",
2929
"WASM": "ON"
3030
},
31-
"toolchainFile": "/home/bam4d/qmul/Griddly/build_wasm/conan_toolchain.cmake",
32-
"binaryDir": "/home/bam4d/qmul/Griddly/build_wasm"
31+
"toolchainFile": "build_wasm/conan_toolchain.cmake",
32+
"binaryDir": "build_wasm"
3333
}
3434
],
3535
"buildPresets": [
3636
{
3737
"name": "Debug WASM",
38-
"configurePreset": "Debug WASM"
38+
"configurePreset": "Debug WASM",
39+
"configuration": "Debug"
3940
},
4041
{
4142
"name": "Debug Native",
42-
"configurePreset": "Debug Native"
43+
"configurePreset": "Debug Native",
44+
"configuration": "Debug"
4345
}
4446
]
4547
}

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,15 @@ You will need to set up a python environment of your choice and then install con
235235
pip install conan
236236
```
237237

238+
### Debug Layers for Vulkan
239+
240+
When compiling using Debug, you will need the install vulkan validation layers which are part of the [vulkan sdk](https://vulkan.lunarg.com/).
241+
Otherwise you will run into errors like:
242+
```
243+
[2023-01-04 15:21:54.412] [warning] Required vulkan layer unavailable: VK_LAYER_KHRONOS_validation
244+
[2023-01-04 15:21:54.412] [error] Missing vulkan extensions in driver. Please upgrade your vulkan drivers.
245+
```
246+
238247
### Ubuntu
239248

240249
```

bindings/python.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace griddly {
1212

1313
PYBIND11_MODULE(python_griddly, m) {
1414
m.doc() = "Griddly python bindings";
15-
m.attr("version") = "1.6.5";
15+
m.attr("version") = "1.6.6";
1616

1717
#ifndef NDEBUG
1818
spdlog::set_level(spdlog::level::debug);

compile_shaders.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
2+
set -e
33
cd "$(dirname "$0")"
44

55
compile_shaders_in_dir () {

deps/conanfile.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ tools.cmake.cmaketoolchain:generator=Ninja
1414
[generators]
1515
CMakeToolchain
1616
CMakeDeps
17+
cmake_paths
1718

1819

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
author = 'Chris Bamford'
2323

2424
# The full version, including alpha/beta/rc tags
25-
release = '1.6.5'
25+
release = '1.6.6'
2626

2727

2828
# -- General configuration ---------------------------------------------------

js/griddlyjs-app/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/griddlyjs-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "griddlyjs-app",
3-
"version": "1.6.5",
3+
"version": "1.6.6",
44
"private": true,
55
"dependencies": {
66
"@fortawesome/fontawesome-svg-core": "^6.1.1",

0 commit comments

Comments
 (0)