gnome-control-center/panels/wacom/meson.build
Carlos Garnacho 39402f21ba wacom: Show distinct entries for Wacom Express Key Remote
If you did not know the Wacom Express Key Remote (or EKR for short),
let me introduce it to you:

https://estore.wacom.com/media/catalog/product/cache/fb4143a007ae6439deba9b18afd745f2/a/c/ack-411050_main_2.jpg

This is a hand-sized standalone pad device, meant to be used together
with drawing tablets, providing additional buttons and a touch sensitive
ring that can be mapped to actions and keypresses.

These pads were so far handled in GNOME, but in a very subtle manner.
As the EKR is implicitly paired to a tablet, it was possible to map
EKR buttons from the paired tablet once the pad OSD UI from GNOME
Shell was shown.

As this device basically just needs a "Map buttons" action to
configure it, it just didn't sit well in the older Settings UI,
it would get a separate page with just a lone button in there. So
its support has been kind of an easter egg so far.

But the new UI can indeed accomodate better a device that is neither
tablet nor stylus, and has few options. This commit adds the EKR
as a separate AdwPreferencesGroup.
2022-08-17 11:57:33 +00:00

106 lines
2.2 KiB
Meson

deps = common_deps + wacom_deps + [
gnome_rr_dep,
gnome_settings_dep,
x11_dep,
xi_dep
]
cflags += ['-DGNOMELOCALEDIR="@0@"'.format(control_center_localedir)]
test_cflags = cflags + ['-DFAKE_AREA']
wacom_gresource = gnome.compile_resources(
'cc-' + cappletname + '-resources',
cappletname + '.gresource.xml',
source_dir : '.',
c_name : 'cc_' + cappletname,
dependencies : resource_data,
export : true
)
subdir('calibrator')
panels_list += cappletname
desktop = 'gnome-@0@-panel.desktop'.format(cappletname)
desktop_in = configure_file(
input : desktop + '.in.in',
output : desktop + '.in',
configuration : desktop_conf
)
i18n.merge_file(
type : 'desktop',
input : desktop_in,
output : desktop,
po_dir : po_dir,
install : true,
install_dir : control_center_desktopdir
)
common_sources = files(
'cc-tablet-tool-map.c',
'cc-wacom-button-row.c',
'cc-wacom-device.c',
'cc-wacom-page.c',
'cc-wacom-stylus-page.c',
'cc-wacom-tool.c',
'gsd-wacom-key-shortcut-button.c'
)
resource_data = files(
'calibrator/calibrator.ui',
'calibrator/calibrator.css',
'calibrator/target.svg',
'button-mapping.ui',
'wacom-stylus-3btn.svg',
'wacom-stylus-3btn-no-eraser.svg',
'wacom-stylus-airbrush.svg',
'wacom-stylus-art-pen.svg',
'wacom-stylus-classic.svg',
'wacom-stylus-inking.svg',
'wacom-stylus-no-eraser.svg',
'wacom-stylus.svg',
'wacom-tablet-cintiq.svg',
'wacom-tablet-pc.svg',
'wacom-tablet.svg'
)
common_sources += wacom_gresource
sources = common_sources + files(
'cc-' + cappletname + '-panel.c',
'cc-drawing-area.c',
'cc-wacom-ekr-page.c',
)
deps += libdevice_dep
incs = [
top_inc,
calibrator_inc
]
panels_libs += static_library(
cappletname + '-properties',
sources : sources,
include_directories : incs,
dependencies : deps,
c_args : cflags,
link_with : [ libwacom_calibrator ]
)
name = 'test-wacom'
sources = common_sources + files(name + '.c')
executable(
name,
sources,
include_directories : incs,
dependencies : deps,
c_args : test_cflags,
link_with : [ libwacom_calibrator_test ]
)
subdir('icons')