假设预编译包目录和xmake.lua同一个目录,使用on_fetch进行配置。 这里拿 glfw 作为参考。 我这里下载并解压了glfw-3.3.8.bin.WIN64.zip,然后在xmake.lua这样写: -- 演示操作,不一定正确 package("glfw") on_load(function (package) -- set package dir package:set("installdir", path.join(os.scriptdir...
// render loop// ---while(!glfwWindowShouldClose(window)){// input// ---processInput(window);// render// ---glClearColor(0.2f,0.3f,0.3f,1.0f);glClear(GL_COLOR_BUFFER_BIT);// glfw: swap buffers and poll IO events (keys pressed/released, mouse moved etc.)// ---glfwSwapBuffers...
Content ofC:\Users\Y\AppData\Local\.xmake\cache\packages\2409\g\glfw\3.4\installdir.failed\logs\install.txt: cannotremovedirectoryC:\Users\Y\AppData\Local\Temp\.xmake\240915.dir\glfw\releaseUnknownError(145) Sometimes I see duplicated error messages. Maybe there is problem with multithreading? =...
//main.cpp#include<print>#include<vulkan/vulkan_raii.hpp>#include<GLFW/glfw3.h>intmain(void) {//c++ teststd::println("Hello, world!");//glfw testglfwInit();glfwTerminate();//vulkan testvk::raii::Context context{}; vk::raii::Instance instance{ context, vk::InstanceCreateInfo{} }; ...
target("glfw-uitest") add_packages("imgui") set_kind("binary") add_files("*.cpp") 一开始的configs里是没有docking=true,后来想试试docking版本改了下,头文件可以解析到,编译的时候还是用的没有docking的版本 compile_commands里对应的内容
releaseLink={"lib/release/*"},link={"glfw/lib/*","kernel32","User32","Gdi32","Shell32"}...
["glfw#31fecfc4"] = { repo = { branch = "master", commit = "eda7adee81bac151f87c507030cc0dd8ab299462", url = "https://github.com/xmake-io/xmake-repo.git" }, version = "3.3.4" }, ["opengl#31fecfc4"] = { repo = { ...
["glfw#31fecfc4"] = { repo = { branch ="master", commit ="eda7adee81bac151f87c507030cc0dd8ab299462", url ="https://github.com/xmake-io/xmake-repo.git"}, version ="3.3.4"}, ["opengl#31fecfc4"] = { repo = { branch ="master", ...
["glfw#31fecfc4"] = { repo = { branch = "master", commit = "eda7adee81bac151f87c507030cc0dd8ab299462", url = "https:///xmake-io/xmake-repo.git" }, version = "3.3.4" }, ["opengl#31fecfc4"] = { repo = { branch = "master", ...
修改xmake.lua,配置本地的vulkan sdk以及远程的glfw作为依赖。 add_rules("mode.debug", "mode.release") add_requires("glfw") target("vulkan_demo") set_kind("binary") add_files("src/*.cpp") -- vulkan add_includedirs("$(env VK_SDK_PATH)/Include") add_linkdirs("$(env VK_SDK_PATH)/...