Skip to content

Commit

Permalink
Merge branch 'release/1.6.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
Bam4d committed Jan 4, 2023
2 parents 0f75a59 + 1c978f3 commit 94b04b5
Show file tree
Hide file tree
Showing 11 changed files with 38 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ If applicable, add screenshots to help explain your problem.

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

**Additional context**
Add any other context about the problem here.
16 changes: 13 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.18.0)
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9" CACHE STRING "Minimum OS X deployment version")
project(Griddly VERSION 1.6.5)
project(Griddly VERSION 1.6.6)

string(TOLOWER ${PROJECT_NAME} PROJECT_NAME_LOWERCASE)

Expand Down Expand Up @@ -128,6 +128,9 @@ find_package(yaml-cpp REQUIRED)
find_package(spdlog REQUIRED)

if(NOT WASM)

include(${CMAKE_BINARY_DIR}/conan_paths.cmake)

# find the dependencies from conan
set(PYBIND11_FINDPYTHON FALSE)

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

# ShaderC for compiling shaders
find_package(shaderc REQUIRED)

endif()

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

if(MSVC)
execute_process(COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/compile_shaders.bat RESULT_VARIABLE rv)
execute_process(COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/compile_shaders.bat RESULT_VARIABLE STATUS)
if(STATUS AND NOT STATUS EQUAL 0)
message( FATAL_ERROR "Cannot compile shaders: ${STATUS}")
endif()
else()
execute_process(COMMAND bash ${CMAKE_CURRENT_SOURCE_DIR}/compile_shaders.sh RESULT_VARIABLE rv)
execute_process(COMMAND bash ${CMAKE_CURRENT_SOURCE_DIR}/compile_shaders.sh RESULT_VARIABLE STATUS)
if(STATUS AND NOT STATUS EQUAL 0)
message( FATAL_ERROR "Cannot compile shaders: ${STATUS}")
endif()
endif()

if(ENABLE_PYTHON_BINDINGS)
Expand Down
14 changes: 8 additions & 6 deletions CMakeUserPresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"CMAKE_POLICY_DEFAULT_CMP0091": "NEW",
"CMAKE_BUILD_TYPE": "Debug"
},
"toolchainFile": "/home/bam4d/qmul/Griddly/build/conan_toolchain.cmake",
"binaryDir": "/home/bam4d/qmul/Griddly/build"
"toolchainFile": "build/conan_toolchain.cmake",
"binaryDir": "build"
},
{
"name": "Debug WASM",
Expand All @@ -28,18 +28,20 @@
"CMAKE_BUILD_TYPE": "Debug",
"WASM": "ON"
},
"toolchainFile": "/home/bam4d/qmul/Griddly/build_wasm/conan_toolchain.cmake",
"binaryDir": "/home/bam4d/qmul/Griddly/build_wasm"
"toolchainFile": "build_wasm/conan_toolchain.cmake",
"binaryDir": "build_wasm"
}
],
"buildPresets": [
{
"name": "Debug WASM",
"configurePreset": "Debug WASM"
"configurePreset": "Debug WASM",
"configuration": "Debug"
},
{
"name": "Debug Native",
"configurePreset": "Debug Native"
"configurePreset": "Debug Native",
"configuration": "Debug"
}
]
}
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,15 @@ You will need to set up a python environment of your choice and then install con
pip install conan
```

### Debug Layers for Vulkan

When compiling using Debug, you will need the install vulkan validation layers which are part of the [vulkan sdk](https://vulkan.lunarg.com/).
Otherwise you will run into errors like:
```
[2023-01-04 15:21:54.412] [warning] Required vulkan layer unavailable: VK_LAYER_KHRONOS_validation
[2023-01-04 15:21:54.412] [error] Missing vulkan extensions in driver. Please upgrade your vulkan drivers.
```

### Ubuntu

```
Expand Down
2 changes: 1 addition & 1 deletion bindings/python.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace griddly {

PYBIND11_MODULE(python_griddly, m) {
m.doc() = "Griddly python bindings";
m.attr("version") = "1.6.5";
m.attr("version") = "1.6.6";

#ifndef NDEBUG
spdlog::set_level(spdlog::level::debug);
Expand Down
2 changes: 1 addition & 1 deletion compile_shaders.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash

set -e
cd "$(dirname "$0")"

compile_shaders_in_dir () {
Expand Down
1 change: 1 addition & 0 deletions deps/conanfile.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ tools.cmake.cmaketoolchain:generator=Ninja
[generators]
CMakeToolchain
CMakeDeps
cmake_paths


2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
author = 'Chris Bamford'

# The full version, including alpha/beta/rc tags
release = '1.6.5'
release = '1.6.6'


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion js/griddlyjs-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/griddlyjs-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "griddlyjs-app",
"version": "1.6.5",
"version": "1.6.6",
"private": true,
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.1.1",
Expand Down
2 changes: 1 addition & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def griddly_package_data(config='Debug'):

setup(
name='griddly',
version="1.6.5",
version="1.6.6",
author_email="[email protected]",
description="Griddly Python Libraries",
long_description=long_description,
Expand Down

0 comments on commit 94b04b5

Please sign in to comment.