mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-14 08:56:26 -05:00
Use meson build system
This commit is contained in:
parent
ce886c0353
commit
fdab81e1c9
33 changed files with 157 additions and 1001 deletions
|
|
@ -1,81 +0,0 @@
|
|||
include_directories(
|
||||
${DRM_INCLUDE_DIRS}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${XKBCOMMON_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
add_executable(simple
|
||||
simple.c
|
||||
shared.c
|
||||
)
|
||||
|
||||
target_link_libraries(simple
|
||||
wlr-backend
|
||||
wlr-session
|
||||
${XKBCOMMON_LIBRARIES}
|
||||
)
|
||||
|
||||
add_executable(rotation
|
||||
rotation.c
|
||||
shared.c
|
||||
cat.c
|
||||
)
|
||||
|
||||
target_link_libraries(rotation
|
||||
wlr-backend
|
||||
wlr-session
|
||||
wlr-render
|
||||
${XKBCOMMON_LIBRARIES}
|
||||
)
|
||||
|
||||
add_executable(pointer
|
||||
pointer.c
|
||||
shared.c
|
||||
cat.c
|
||||
)
|
||||
|
||||
target_link_libraries(pointer
|
||||
wlr-backend
|
||||
wlr-session
|
||||
wlr-render
|
||||
${XKBCOMMON_LIBRARIES}
|
||||
)
|
||||
|
||||
add_executable(touch
|
||||
touch.c
|
||||
shared.c
|
||||
cat.c
|
||||
)
|
||||
|
||||
target_link_libraries(touch
|
||||
wlr-backend
|
||||
wlr-session
|
||||
wlr-render
|
||||
${XKBCOMMON_LIBRARIES}
|
||||
)
|
||||
|
||||
add_executable(tablet
|
||||
tablet.c
|
||||
shared.c
|
||||
)
|
||||
|
||||
target_link_libraries(tablet
|
||||
wlr-backend
|
||||
wlr-session
|
||||
wlr-render
|
||||
${XKBCOMMON_LIBRARIES}
|
||||
)
|
||||
|
||||
add_executable(compositor
|
||||
compositor/main.c
|
||||
compositor/wl_compositor.c
|
||||
compositor/wl_shell.c
|
||||
shared.c
|
||||
)
|
||||
|
||||
target_link_libraries(compositor
|
||||
wlr-backend
|
||||
wlr-session
|
||||
wlr-render
|
||||
${XKBCOMMON_LIBRARIES}
|
||||
)
|
||||
17
examples/meson.build
Normal file
17
examples/meson.build
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
lib_shared = static_library('shared',
|
||||
['shared.c', 'cat.c'],
|
||||
dependencies: dep_wlr)
|
||||
|
||||
executable('simple', 'simple.c', dependencies: dep_wlr, link_with: lib_shared)
|
||||
executable('rotation', 'rotation.c', dependencies: dep_wlr, link_with: lib_shared)
|
||||
executable('pointer', 'pointer.c', dependencies: dep_wlr, link_with: lib_shared)
|
||||
executable('touch', 'touch.c', dependencies: dep_wlr, link_with: lib_shared)
|
||||
executable('tablet', 'tablet.c', dependencies: dep_wlr, link_with: lib_shared)
|
||||
|
||||
compositor_src = [
|
||||
'compositor/main.c',
|
||||
'compositor/wl_compositor.c',
|
||||
'compositor/wl_shell.c',
|
||||
]
|
||||
|
||||
executable('compositor', compositor_src, dependencies: dep_wlr, link_with: lib_shared)
|
||||
Loading…
Add table
Add a link
Reference in a new issue