Преглед изворни кода

ftxui: remove pthread dependency (#8131)

apply latest updates from original CMake repo to xmake port
note: pthread is still required for bsd
Maxime Trimolet пре 2 дана
родитељ
комит
673eeadb91
2 измењених фајлова са 4 додато и 1 уклоњено
  1. 3 0
      packages/f/ftxui/port/xmake.lua
  2. 1 1
      packages/f/ftxui/xmake.lua

+ 3 - 0
packages/f/ftxui/port/xmake.lua

@@ -85,6 +85,9 @@ local libs = {
     "src/ftxui/component/resizable_split.cpp",
     "src/ftxui/component/screen_interactive.cpp",
     "src/ftxui/component/slider.cpp",
+    "src/ftxui/component/task.cpp",
+    "src/ftxui/component/task_queue.cpp",
+    "src/ftxui/component/task_runner.cpp",
     "src/ftxui/component/terminal_input_parser.cpp",
     "src/ftxui/component/util.cpp",
     "src/ftxui/component/window.cpp",

+ 1 - 1
packages/f/ftxui/xmake.lua

@@ -21,7 +21,7 @@ to counteract its implementations problems.", type = "boolean" })
 
     if is_plat("windows") then
         add_configs("shared", {description = "Build shared library.", default = false, type = "boolean", readonly = true})
-    elseif is_plat("linux", "bsd") then
+    elseif is_plat("bsd") then
         add_syslinks("pthread")
     end