| 1 |
icc_display_profiles = [ |
| 2 |
'AdobeRGB1998', |
| 3 |
'AppleRGB', |
| 4 |
'BestRGB', |
| 5 |
'BetaRGB', |
| 6 |
'Bluish', |
| 7 |
'BruceRGB', |
| 8 |
'CIE-RGB', |
| 9 |
'ColorMatchRGB', |
| 10 |
'Crayons', |
| 11 |
'DonRGB4', |
| 12 |
'ECI-RGBv1', |
| 13 |
'ECI-RGBv2', |
| 14 |
'EktaSpacePS5', |
| 15 |
'Gamma5000K', |
| 16 |
'Gamma5500K', |
| 17 |
'Gamma6500K', |
| 18 |
'NTSC-RGB', |
| 19 |
'PAL-RGB', |
| 20 |
'ProPhotoRGB', |
| 21 |
'Rec709', |
| 22 |
'SMPTE-C-RGB', |
| 23 |
'sRGB', |
| 24 |
'SwappedRedAndGreen', |
| 25 |
'WideGamutRGB', |
| 26 |
'x11-colors', |
| 27 |
] |
| 28 |
|
| 29 |
icc_print_profiles = [ |
| 30 |
'FOGRA27L_coated', |
| 31 |
'FOGRA28L_webcoated', |
| 32 |
'FOGRA29L_uncoated', |
| 33 |
'FOGRA30L_uncoated_yellowish', |
| 34 |
'FOGRA39L_coated', |
| 35 |
'FOGRA40L_SC_paper', |
| 36 |
'FOGRA45L_lwc', |
| 37 |
'FOGRA47L_uncoated', |
| 38 |
'GRACoL_TR006_coated', |
| 39 |
'IFRA26S_2004_newsprint', |
| 40 |
'SNAP_TR002_newsprint', |
| 41 |
'SWOP_TR003_coated_3', |
| 42 |
'SWOP_TR005_coated_5', |
| 43 |
] |
| 44 |
|
| 45 |
icc_profiles = icc_display_profiles |
| 46 |
if get_option('print_profiles') |
| 47 |
icc_profiles += icc_print_profiles |
| 48 |
endif |
| 49 |
|
| 50 |
generated_iccs = [] |
| 51 |
foreach arg: icc_profiles |
| 52 |
xml_i18n = i18n.merge_file( |
| 53 |
input: arg + '.iccprofile.xml', |
| 54 |
output: arg + '.iccprofile.xml', |
| 55 |
type: 'xml', |
| 56 |
data_dirs: join_paths(meson.source_root(), 'data', 'profiles'), |
| 57 |
po_dir: join_paths(meson.source_root(), 'po') |
| 58 |
) |
| 59 |
generated_icc = custom_target(arg + '.icc', |
| 60 |
input: xml_i18n, |
| 61 |
output: arg + '.icc', |
| 62 |
command: [ cd_create_profile, '--output=@OUTPUT@', '@INPUT@' ], |
| 63 |
install: true, |
| 64 |
install_dir: join_paths(datadir, 'color', 'icc', 'colord'), |
| 65 |
) |
| 66 |
generated_iccs += generated_icc |
| 67 |
endforeach |