Files
LCUI/lib/platform/xmake.lua
T
Liu 90f595ea20 refactor: redesign platform and ui libraries
feat: redesign the ui library

fixup! feat: redesign the app library

feat: add the ui-server library

fixup! feat: redesign the ui library

fixup! feat: redesign the app library

fixup! feat: redesign the ui library

fixup! feat: redesign the app library

fixup! feat: redesign the app library

feat(ui): add mutation observer

fixup! feat: add the ui-server library

fixup! feat(ui): add mutation observer

feat: migrate to new app and ui libraries

refactor: rename LCUI_Build.h and remove some macros related to malloc

build: copy lib/yutil/include/yutil/*.h into the include/LCUI/util

refactor: lib/app -> lib/platform

refactor: clear compilation errors in Linux

fix: conditional jump depends on uninitialised value

fix(platform): incorrect Linux app driver

feat(platform): add --use-linux-input-event option

fix(platform): correct app driver and data types

fix: test_settings failed

fix: test errors and memcheck errors

fix: undefined reference to 'WinMain'

fix(platform): the error message is not formatted correctly

fix(platform): the mouse position in the mouse event is incorrect

fix(platform): incorrect window size

fix(util): undefined reference to 'logger_log'

refactor: remove the dependency of fontlibrary.h on graph.h

fix: freetype.dll not found

fix(ui): the wheel event was not dispatched correctly

fix(ui-server): the window in the minmaxinfo event is not required

fix: the widget is not connected to the window

fix(ui): mutation observer connection node incorrect

refactor(css): update LCUI_StyleListNode structure

refactor(ui): LCUI_WSTATE_* -> UI_WIDGET_STATE_*

fix: the root widget must have a fixed size for the layout to be correct

fix(ui): root widget did not trigger the ready event

fix(ui): mutation observer not working

fix(ui-server): widget mutation handler is not working

fix: the UI is not redrawn when resizing the window

fix(platform): APP_EVENT_QUIT not working

fix(platform): Incorrect peekmessage usage

test: use the event functions provided by the libui

docs: add README.md for some libraries

feat(ui): add ui logger

fix(ui-server):  `wnd_mutation` is uninitialized

fix(platform): fb app engine not work

build: fix xmake file matching warning

test: update scroll bar test code

build: use system libxml2

build: delete unneeded openMP rules

refactor(platform): remove tick thread

refactor(ui): clear compilation warnings

fix: memory leak bug

test: fix compilation errors

build: add "headers" target

refactor: LCUI_USER -> APP_EVENT_USER

fix: ui image event was not processed

refactor: delete steptimer.h

test: update requires

fix(platform): incorrect window size

refactor: simplify window creation in ui display mode switching

fix(platform): window position not updated

feat(ui-server): set the initial position of the window to center

feat(platform): add APP_EVENT_VISIBILITY_CHANGE

fix(ui-server): the window content is not completely drawn

fix(platform): windows cannot be maximized and minimized

refactor(ui): change image loader API to public

fix: the window size is incorrect in fullscreen mode

refactor(ui): move some types into ui.h
2023-04-01 22:34:36 +08:00

74 lines
1.8 KiB
Lua

add_requires("libomp", {optional = true})
add_includedirs("src", "include")
set_configdir("src")
add_configfiles("src/config.h.in")
option("with-libx11", {showmenu = true, default = true})
option("enable-touch")
set_showmenu(true)
set_default(true)
set_configvar("ENABLE_TOUCH", 1)
option("use-linux-input-event")
set_showmenu(true)
set_configvar("USE_LINUX_INPUT_EVENT", 1)
option("uwp", {showmenu = true, default = false})
if has_config("with-libx11") then
add_requires("libx11", {optional = true})
end
target("lcui-platform-uwp")
if is_plat("windows") and has_config("uwp") then
set_default(true)
else
set_default(false)
end
set_kind("static")
add_includedirs("src/uwp")
add_cxxflags("/ZW", {force = true})
add_defines("WINAPI_FAMILY=WINAPI_FAMILY_APP")
add_links("WindowsApp")
set_pcxxheader("src/uwp/pch.h")
add_files("src/uwp/**.cpp")
target("lcui-platform-windows")
if is_plat("windows") and not has_config("uwp") then
set_default(true)
else
set_default(false)
end
set_kind("static")
add_files("src/windows/*.c")
add_links("Shell32")
target("lcui-platform-linux")
if is_plat("linux") then
set_default(true)
else
set_default(false)
end
add_options("use-linux-input-event")
add_packages("libx11")
if has_package("libx11") then
set_configvar("USE_LIBX11", 1)
end
set_kind("static")
add_files("src/linux/*.c")
target("lcui-platform")
set_kind("static")
add_files("src/*.c")
if is_plat("windows") then
add_options("uwp", "enable-touch")
if has_config("uwp") then
add_deps("lcui-uwp")
else
add_deps("lcui-platform-windows")
end
else
add_deps("lcui-platform-linux")
end
add_deps("lcui-thread")