Skip to content

Commit

Permalink
Disabled networking for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-jonsson committed Jun 27, 2024
1 parent 016cbd7 commit 77b1175
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 16 deletions.
Binary file modified boot/freedos.img
Binary file not shown.
Binary file modified boot/freedos_hd.img
Binary file not shown.
Binary file modified boot/freedos_web_hd.img
Binary file not shown.
3 changes: 3 additions & 0 deletions modules/network/premake5.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
-- Disable this module by default.
module_ignore()

files "network.c"

filter "system:windows"
Expand Down
39 changes: 23 additions & 16 deletions premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -133,19 +133,22 @@ workspace "virtualxt"
end
end

module_link_callback = function(f)
if _OPTIONS["dynamic"] then
filter {}
f()
filter {}
else
table.insert(modules_link_callback, f)
end
end

for _,name in ipairs(mod_list) do
table.insert(modules, name)

module_link_callback = function(f)
if _OPTIONS["dynamic"] then
filter {}
f()
filter {}
else
table.insert(modules_link_callback, f)
end
end

module_ignore = function()
module_ignore = nil
module_link_callback = function() end
end

project(name)
if _OPTIONS["dynamic"] then
kind "SharedLib"
Expand All @@ -169,11 +172,15 @@ workspace "virtualxt"
}

filter {}

dofile("modules/" .. name .. "/premake5.lua")

dofile("modules/" .. name .. "/premake5.lua")
if module_ignore then
table.insert(modules, name)
end

module_ignore = nil
module_link_callback = nil
end

module_link_callback = nil
end

-- This is just a dummy project.
Expand Down

0 comments on commit 77b1175

Please sign in to comment.