Skip to content

v1.4.2

Choose a tag to compare

@ravi688 ravi688 released this 30 Mar 06:49
· 34 commits to main since this release
51827c3

What's Changed

  • Add flag (--execute-pre-config-hook) for running pre config hook only by @ravi688 in #86
  • Drop root privileges at start and run meson install sub-command as root by @ravi688 in #93
  • Added pkg_config_root_hook key in build_master.json for pre-config hook run with root privileges by @ravi688 in #94

Example build_master.json

{
    "project_name" : "PlayVk",
    "canonical_name" : "playvk",
    "description" : "Single header file library for simplifying vulkan",
    "dependencies" : [ "common", "glfw3", "vulkanheaders" ],
    "release_defines": [ "-DPVK_RELEASE" ],
    "debug_defines": [ "-DPVK_DEBUG" ],
    "install_header_dirs" : [ "include/PlayVk" ],
    "include_dirs" : [ "include" ],
    "pre_config_hook" : "install_meson_wraps.sh",
    "pre_config_root_hook" : "install_dependencies.root.sh",
    "vars":
    {
        "vulkan_sdk_path" : "run_command(find_program('python'), '-c', 'import os; print(os.environ[\"VK_SDK_PATH\"])', check : false).stdout().strip()",
        "vulkan_libs_path" : "vulkan_sdk_path + '/Lib/'",
	"linux_vulkan_libs_path" : "vulkan_sdk_path + '/lib/'"
    },
    "targets" :
    [
        {
            "name" : "playvk_headers",
            "is_header_only_library" : true,
            "subdirs" : [ "PlayVk" ]
        },
        {
            "name" : "main",
            "is_executable" : true,
            "windows_link_args" : [ "link_dir: $vulkan_libs_path", "-lvulkan-1", "-lgdi32" ],
            "linux_link_args" : [ "link_dir: $linux_vulkan_libs_path", "-lvulkan" ],
            "sources" : [ "source/main.c" ]
        }
    ]
}

Full Changelog: v1.4.1...v1.4.2