| 1 |
# Copyright (c) 2022-2025, PostgreSQL Global Development Group |
| 2 |
|
| 3 |
encodings = { |
| 4 |
'cyrillic_and_mic': ['cyrillic_and_mic/cyrillic_and_mic.c'], |
| 5 |
'euc2004_sjis2004': ['euc2004_sjis2004/euc2004_sjis2004.c'], |
| 6 |
'euc_cn_and_mic': ['euc_cn_and_mic/euc_cn_and_mic.c'], |
| 7 |
'euc_jp_and_sjis': ['euc_jp_and_sjis/euc_jp_and_sjis.c'], |
| 8 |
'euc_kr_and_mic': ['euc_kr_and_mic/euc_kr_and_mic.c'], |
| 9 |
'euc_tw_and_big5': [ |
| 10 |
'euc_tw_and_big5/euc_tw_and_big5.c', |
| 11 |
'euc_tw_and_big5/big5.c', |
| 12 |
], |
| 13 |
'latin2_and_win1250': ['latin2_and_win1250/latin2_and_win1250.c'], |
| 14 |
'latin_and_mic': ['latin_and_mic/latin_and_mic.c'], |
| 15 |
'utf8_and_big5': ['utf8_and_big5/utf8_and_big5.c'], |
| 16 |
'utf8_and_cyrillic': ['utf8_and_cyrillic/utf8_and_cyrillic.c'], |
| 17 |
'utf8_and_euc2004': ['utf8_and_euc2004/utf8_and_euc2004.c'], |
| 18 |
'utf8_and_euc_cn': ['utf8_and_euc_cn/utf8_and_euc_cn.c'], |
| 19 |
'utf8_and_euc_jp': ['utf8_and_euc_jp/utf8_and_euc_jp.c'], |
| 20 |
'utf8_and_euc_kr': ['utf8_and_euc_kr/utf8_and_euc_kr.c'], |
| 21 |
'utf8_and_euc_tw': ['utf8_and_euc_tw/utf8_and_euc_tw.c'], |
| 22 |
'utf8_and_gb18030': ['utf8_and_gb18030/utf8_and_gb18030.c'], |
| 23 |
'utf8_and_gbk': ['utf8_and_gbk/utf8_and_gbk.c'], |
| 24 |
'utf8_and_iso8859': ['utf8_and_iso8859/utf8_and_iso8859.c'], |
| 25 |
'utf8_and_iso8859_1': ['utf8_and_iso8859_1/utf8_and_iso8859_1.c'], |
| 26 |
'utf8_and_johab': ['utf8_and_johab/utf8_and_johab.c'], |
| 27 |
'utf8_and_sjis': ['utf8_and_sjis/utf8_and_sjis.c'], |
| 28 |
'utf8_and_sjis2004': ['utf8_and_sjis2004/utf8_and_sjis2004.c'], |
| 29 |
'utf8_and_uhc': ['utf8_and_uhc/utf8_and_uhc.c'], |
| 30 |
'utf8_and_win': ['utf8_and_win/utf8_and_win.c'], |
| 31 |
} |
| 32 |
|
| 33 |
foreach encoding, sources : encodings |
| 34 |
source_files = files(sources) |
| 35 |
|
| 36 |
if host_system == 'windows' |
| 37 |
source_files += rc_lib_gen.process(win32ver_rc, extra_args: [ |
| 38 |
'--NAME', encoding]) |
| 39 |
endif |
| 40 |
|
| 41 |
backend_targets += shared_module(encoding, |
| 42 |
source_files, |
| 43 |
kwargs: pg_mod_args, |
| 44 |
) |
| 45 |
endforeach |