Skip to content

Commit

Permalink
Remove unneeded includes (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
solidpixel authored Dec 4, 2024
1 parent 03b9825 commit 5009699
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 16 deletions.
3 changes: 2 additions & 1 deletion generator/vk_common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ target_include_directories(

target_include_directories(
${LIB_BINARY} SYSTEM PRIVATE
../../khronos/vulkan/include)
../../khronos/vulkan/include
../)

lgl_set_build_options(${LIB_BINARY})
2 changes: 0 additions & 2 deletions layer_example/source/layer_device_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
#include <mutex>
#include <thread>

#include "framework/utils.hpp"

#include "device.hpp"
#include "layer_device_functions.hpp"

Expand Down
9 changes: 0 additions & 9 deletions layer_example/source/layer_device_functions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,8 @@
* ----------------------------------------------------------------------------
*/

#include <memory>
#include <mutex>
#include <thread>

#include "framework/device_functions.hpp"
#include "framework/utils.hpp"

#include "device.hpp"

extern std::mutex g_vulkanLock;

/* See Vulkan API for documentation. */
template <>
VKAPI_ATTR void VKAPI_CALL layer_vkCmdBeginRenderPass<user_tag>(
Expand Down
9 changes: 6 additions & 3 deletions source_common/compiler_helper.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ macro(lgl_set_build_options BUILD_TARGET_NAME)

target_compile_options(
${BUILD_TARGET_NAME} PRIVATE
# Minimized visibility warnings
# Minimize symbol visibility
$<${is_gnu_fe}:-fvisibility=hidden>
$<${is_gnu_fe}:-fvisibility-inlines-hidden>

# Strict warnings
# Enable stricter warnings
$<${is_gnu_fe}:-Wall>
$<${is_gnu_fe}:-Wextra>
$<${is_gnu_fe}:-Wpedantic>
Expand All @@ -65,7 +65,10 @@ macro(lgl_set_build_options BUILD_TARGET_NAME)
$<${is_gnu_fe}:-Wdouble-promotion>
$<${is_clang}:-Wdocumentation>

# Feature disabled
# Disable warnings we don't want
$<${is_gnu_fe}:-Wno-unused-private-field>

# Disable features we don't want
$<${is_gnu_fe}:-fno-exceptions>)

target_compile_definitions(
Expand Down
3 changes: 2 additions & 1 deletion source_common/framework/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ target_include_directories(

target_include_directories(
${LIB_BINARY} SYSTEM PRIVATE
../../khronos/vulkan/include)
../../khronos/vulkan/include
../)

lgl_set_build_options(${LIB_BINARY})

0 comments on commit 5009699

Please sign in to comment.