как настроить MoltenVK с premake5 - PullRequest
0 голосов
/ 15 февраля 2019

Я пытаюсь заставить MoltenVK работать с premake5

Я собираю MoltenVK из исходного кода, и я смог запустить демонстрационные программы, которые идут с ним, теперь я пытаюсь использовать его в своем приложении, но я хочупросто сгенерировать проект, используя premake5

, когда я его запускаю, я получаю эту ошибку

directory not found . for option "-L../Libraries/macOS/static"

У меня все файлы MoltenVK настроены, но он не настроен правильно с premake5, и у меня возникли проблемы

это мой файл premake5.lua

 -- workspace name
 workspace "GameEngine"
    -- location of generated projects
    location "Generated"

    -- set language for all projcets
    language "C++"

    -- arch for binaries
    architecture "x86_64"

    -- run configurations
    configurations {
        "Debug",
        "Release"
    }

    filter {"configurations:Debug"}
        symbols "On"

    filter {"configurations:Release"}
        optimize "On"

    -- reset the filter
    filter {}

    -- binary output directory
    targetdir ("Build/bin/%{prj.name}/%{cfg.longname}")
    objdir ("Build/bin-int/%{prj.name}/%{cfg.longname}")

 -- project in the workspace
 project "ExampleLib"
    -- kind of project
    kind "SharedLib"

    -- files to include in the project
    files{
        "Projects/ExampleLib/**"
    }

    -- include directories
    includedirs {
        "Libraries/GLFW/include",
        "Libraries/MoltenVK/include"
    }

    -- library directories
    libdirs {
       "Libraries/GLFW/lib",
       "Libraries/macOS/static"
    }

    -- link to libraries
    links{
       "GLFW",
    }

-- project in the workspace
project "App"
    -- kind of project
    kind "WindowedApp"

    -- files to include in the project
   files{
       "Projects/App/**"
   }

   -- include directories
   includedirs {
       "Projects/ExampleLib"
   }

   -- link libraries
   links {
       "ExampleLib"
   }

что мне не хватает, или что я испортил, мне трудно разобраться в документации, и я не могу найтилюбые интернет-ресурсы, чтобы помочь.

...