-- =========================
-- Project information:
-- =========================
add_rules("mode.debug", "mode.release")

add_requires("glm", "glfw", "tinyobjloader", "vulkan-headers", "vulkan-loader", { system = false })

-- =========================
-- Configure application
-- =========================
target('littlevulkanengine')
    set_default(true)
    set_rundir(".")
    set_kind('binary')
    add_files('src/**.cpp')
    add_headerfiles('src/**.hpp')

    set_languages("cxx20")
    add_rules("utils.glsl2spv",{outputdir = os:scriptdir() .. "/shaders"})
    add_files("shaders/*.frag","shaders/*.vert")
    add_packages("glm", "glfw", "tinyobjloader", "vulkan-headers", "vulkan-loader")
target_end()

-- -- =========================
-- -- Configure extra features
-- -- =========================
-- includes("./xmake/tasks.lua")
-- includes("./xmake/option_menu.lua")