Compare commits
2 Commits
6ecd1c81e4
...
c014fe47fb
Author | SHA1 | Date | |
---|---|---|---|
c014fe47fb | |||
24c8e10a44 |
72
SModule
Normal file
72
SModule
Normal file
@ -0,0 +1,72 @@
|
||||
|
||||
import json
|
||||
|
||||
|
||||
Import('env')
|
||||
|
||||
# Iwa
|
||||
src_files = Split("""
|
||||
source/addon.cpp
|
||||
source/buffer.cpp
|
||||
source/command.cpp
|
||||
source/descriptor_set.cpp
|
||||
source/device.cpp
|
||||
source/device_memory.cpp
|
||||
source/event.cpp
|
||||
source/fence.cpp
|
||||
source/image.cpp
|
||||
source/input.cpp
|
||||
source/instance.cpp
|
||||
source/object.cpp
|
||||
source/pipeline.cpp
|
||||
source/render_pass.cpp
|
||||
source/semaphore.cpp
|
||||
source/serialization.cpp
|
||||
source/shader_module.cpp
|
||||
source/swapchain.cpp
|
||||
source/texture.cpp
|
||||
source/type_meta.cpp
|
||||
source/window.cpp
|
||||
|
||||
source/app/vulkan_application.cpp
|
||||
|
||||
source/io/bitmap.cpp
|
||||
source/io/font.cpp
|
||||
source/io/mesh.cpp
|
||||
|
||||
source/resource/bitmap.cpp
|
||||
source/resource/font.cpp
|
||||
|
||||
source/util/glsl_compiler.cpp
|
||||
source/util/growing_descriptor_pool.cpp
|
||||
source/util/image_reference.cpp
|
||||
source/util/reflect_glsl.cpp
|
||||
source/util/render_loop.cpp
|
||||
source/util/shader_meta.cpp
|
||||
source/util/texture_atlas.cpp
|
||||
source/util/vertex_layout.cpp
|
||||
source/util/vkutil.cpp
|
||||
""")
|
||||
|
||||
with open('dependencies.json', 'r') as f:
|
||||
dependencies = env.DepsFromJson(json.load(f))
|
||||
|
||||
include_dir = env.Dir('include')
|
||||
|
||||
env.Append(CPPDEFINES = ['GLM_FORCE_DEPTH_ZERO_TO_ONE', 'GLM_FORCE_RADIANS'])
|
||||
env.Append(JINJA_TEMPLATE_SEARCHPATH = [env.Dir('data/jinja')])
|
||||
env.Append(JINJA_CONFIG_SEARCHPATH = [env.Dir('data/config')])
|
||||
lib_iwa = env.UnityStaticLibrary(
|
||||
target = env['LIB_DIR'] + '/iwa',
|
||||
source = src_files,
|
||||
dependencies = dependencies,
|
||||
CPPPATH = [include_dir]
|
||||
)
|
||||
|
||||
LIB_CONFIG = {
|
||||
'CPPPATH': [include_dir],
|
||||
'CPPDEFINES': ['GLM_FORCE_DEPTH_ZERO_TO_ONE', 'GLM_FORCE_RADIANS'],
|
||||
'LIBS': [lib_iwa],
|
||||
}
|
||||
|
||||
Return('LIB_CONFIG')
|
12
dependencies.json
Normal file
12
dependencies.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"fmt": {},
|
||||
"magic_enum": {},
|
||||
"glslang": {},
|
||||
"glm": {},
|
||||
"mijin": {},
|
||||
"SDL": {},
|
||||
"stb": {},
|
||||
"VulkanHeaders": {},
|
||||
"argparse": {},
|
||||
"yaml-cpp": {}
|
||||
}
|
@ -5,7 +5,7 @@
|
||||
#define IWA_UTIL_SHADER_META_HPP_INCLUDED
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <magic_enum.hpp>
|
||||
#include <magic_enum/magic_enum.hpp>
|
||||
#include <mijin/detect.hpp>
|
||||
#include <cstdint>
|
||||
#include <unordered_map>
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include <glm/vec2.hpp>
|
||||
#include <glm/vec3.hpp>
|
||||
#include <glm/vec4.hpp>
|
||||
#include <magic_enum.hpp>
|
||||
#include <magic_enum/magic_enum.hpp>
|
||||
#include <mijin/util/align.hpp>
|
||||
#include <mijin/util/traits.hpp>
|
||||
#include "iwa/vkwrapper.hpp"
|
||||
|
Loading…
x
Reference in New Issue
Block a user