From aeba96e5a0d9cf22e5a15b593a85a117fe3b7cc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Leclercq?= Date: Tue, 21 Sep 2021 11:10:19 +0200 Subject: [PATCH] Add includedirs for libsdl_xx (#644) --- packages/l/libsdl_gfx/xmake.lua | 2 ++ packages/l/libsdl_image/xmake.lua | 2 ++ packages/l/libsdl_mixer/xmake.lua | 2 ++ packages/l/libsdl_net/xmake.lua | 2 ++ packages/l/libsdl_ttf/xmake.lua | 2 ++ 5 files changed, 10 insertions(+) diff --git a/packages/l/libsdl_gfx/xmake.lua b/packages/l/libsdl_gfx/xmake.lua index 19ebf0316..856a6968b 100644 --- a/packages/l/libsdl_gfx/xmake.lua +++ b/packages/l/libsdl_gfx/xmake.lua @@ -29,6 +29,8 @@ package("libsdl_gfx") add_links("SDL2_gfx") + add_includedirs("include", "include/SDL2") + on_install("windows", function(package) local vs = import("core.tool.toolchain").load("msvc"):config("vs") if tonumber(vs) < 2019 then diff --git a/packages/l/libsdl_image/xmake.lua b/packages/l/libsdl_image/xmake.lua index 8645ce4ed..b3f35510b 100644 --- a/packages/l/libsdl_image/xmake.lua +++ b/packages/l/libsdl_image/xmake.lua @@ -23,6 +23,8 @@ package("libsdl_image") add_links("SDL2_image") + add_includedirs("include", "include/SDL2") + on_install("windows", "mingw", function (package) local arch = package:arch() if package:is_plat("mingw") then diff --git a/packages/l/libsdl_mixer/xmake.lua b/packages/l/libsdl_mixer/xmake.lua index 5276b0ebe..14974e03d 100644 --- a/packages/l/libsdl_mixer/xmake.lua +++ b/packages/l/libsdl_mixer/xmake.lua @@ -23,6 +23,8 @@ package("libsdl_mixer") add_links("SDL2_mixer") + add_includedirs("include", "include/SDL2") + on_install("windows", "mingw", function (package) local arch = package:arch() if package:is_plat("mingw") then diff --git a/packages/l/libsdl_net/xmake.lua b/packages/l/libsdl_net/xmake.lua index 5af1af63c..b53fbec03 100644 --- a/packages/l/libsdl_net/xmake.lua +++ b/packages/l/libsdl_net/xmake.lua @@ -23,6 +23,8 @@ package("libsdl_net") add_links("SDL2_net") + add_includedirs("include", "include/SDL2") + on_install("windows", "mingw", function (package) local arch = package:arch() if package:is_plat("mingw") then diff --git a/packages/l/libsdl_ttf/xmake.lua b/packages/l/libsdl_ttf/xmake.lua index 8113ac057..b7a58f755 100644 --- a/packages/l/libsdl_ttf/xmake.lua +++ b/packages/l/libsdl_ttf/xmake.lua @@ -26,6 +26,8 @@ package("libsdl_ttf") add_links("SDL2_ttf") + add_includedirs("include", "include/SDL2") + on_install("windows", "mingw", function (package) local arch = package:arch() if package:is_plat("mingw") then