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
|
icc_display_profiles = [
'AdobeRGB1998',
'AppleRGB',
'BestRGB',
'BetaRGB',
'Bluish',
'BruceRGB',
'CIE-RGB',
'ColorMatchRGB',
'Crayons',
'DonRGB4',
'ECI-RGBv1',
'ECI-RGBv2',
'EktaSpacePS5',
'Gamma5000K',
'Gamma5500K',
'Gamma6500K',
'NTSC-RGB',
'PAL-RGB',
'ProPhotoRGB',
'Rec709',
'SMPTE-C-RGB',
'sRGB',
'SwappedRedAndGreen',
'WideGamutRGB',
'x11-colors',
]
icc_print_profiles = [
'FOGRA27L_coated',
'FOGRA28L_webcoated',
'FOGRA29L_uncoated',
'FOGRA30L_uncoated_yellowish',
'FOGRA39L_coated',
'FOGRA40L_SC_paper',
'FOGRA45L_lwc',
'FOGRA47L_uncoated',
'GRACoL_TR006_coated',
'IFRA26S_2004_newsprint',
'SNAP_TR002_newsprint',
'SWOP_TR003_coated_3',
'SWOP_TR005_coated_5',
]
icc_profiles = icc_display_profiles
if get_option('enable-print-profiles')
icc_profiles += icc_print_profiles
endif
generated_iccs = []
foreach arg: icc_profiles
xml_i18n = i18n.merge_file(
input: arg + '.iccprofile.xml',
output: arg + '.iccprofile.xml',
type: 'xml',
data_dirs: join_paths(meson.source_root(), 'data', 'profiles'),
po_dir: join_paths(meson.source_root(), 'po')
)
generated_icc = custom_target(arg + '.icc',
input: xml_i18n,
output: arg + '.icc',
command: [ cd_create_profile, '--output=@OUTPUT@', '@INPUT@' ],
install: true,
install_dir: join_paths(datadir, 'color', 'icc', 'colord'),
)
generated_iccs += generated_icc
endforeach
|