Browse Source

remove-sdl-subsystem (#3194)

Latias94 1 năm trước cách đây
mục cha
commit
dc397749b5
1 tập tin đã thay đổi với 1 bổ sung3 xóa
  1. 1 3
      packages/l/libsdl/xmake.lua

+ 1 - 3
packages/l/libsdl/xmake.lua

@@ -104,11 +104,9 @@ package("libsdl")
         local libsuffix = package:is_debug() and "d" or ""
         component:add("links", "SDL2main" .. libsuffix)
         if package:is_plat("windows") then
-            component:add("ldflags", "-subsystem:windows")
             component:add("syslinks", "shell32")
         elseif package:is_plat("mingw") then
             component:add("syslinks", "mingw32")
-            component:add("ldflags", "-mwindows")
         end
         component:add("deps", "lib")
     end)
@@ -236,5 +234,5 @@ package("libsdl")
                 SDL_Init(0);
                 return 0;
             }
-        ]]}));
+        ]]}, {configs = {defines = "SDL_MAIN_HANDLED"}}));
     end)