1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
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')
|