| 1 |
# Copyright (c) 2022-2025, PostgreSQL Global Development Group |
| 2 |
|
| 3 |
ecpg_inc = include_directories('.') |
| 4 |
|
| 5 |
ecpg_conf_keys = [ |
| 6 |
'SIZEOF_LONG', |
| 7 |
'SIZEOF_LONG_LONG', |
| 8 |
] |
| 9 |
|
| 10 |
ecpg_conf_data = configuration_data() |
| 11 |
|
| 12 |
ecpg_conf_data.set('ENABLE_THREAD_SAFETY', 1) |
| 13 |
|
| 14 |
foreach key : ecpg_conf_keys |
| 15 |
if cdata.has(key) |
| 16 |
ecpg_conf_data.set(key, cdata.get(key)) |
| 17 |
endif |
| 18 |
endforeach |
| 19 |
|
| 20 |
ecpg_config_h = configure_file( |
| 21 |
output: 'ecpg_config.h', |
| 22 |
configuration: ecpg_conf_data, |
| 23 |
install_dir: dir_include, |
| 24 |
) |
| 25 |
configure_files += ecpg_config_h |
| 26 |
|
| 27 |
generated_sources_ac += {'src/interfaces/ecpg/include': ['stamp-h']} |
| 28 |
|
| 29 |
install_headers( |
| 30 |
'ecpg_informix.h', |
| 31 |
'ecpgerrno.h', |
| 32 |
'ecpglib.h', |
| 33 |
'ecpgtype.h', |
| 34 |
'pgtypes.h', |
| 35 |
'pgtypes_date.h', |
| 36 |
'pgtypes_error.h', |
| 37 |
'pgtypes_interval.h', |
| 38 |
'pgtypes_numeric.h', |
| 39 |
'pgtypes_timestamp.h', |
| 40 |
'sql3types.h', |
| 41 |
'sqlca.h', |
| 42 |
'sqlda.h', |
| 43 |
'sqlda-compat.h', |
| 44 |
'sqlda-native.h', |
| 45 |
) |
| 46 |
|
| 47 |
install_headers( |
| 48 |
'datetime.h', |
| 49 |
'decimal.h', |
| 50 |
'sqltypes.h', |
| 51 |
install_dir: dir_include_pkg / 'informix' / 'esql', |
| 52 |
) |