1 # Copyright (c) 2022-2023, PostgreSQL Global Development Group
3 # files to build into backend
4 timezone_sources = files(
11 timezone_inc = include_directories('.')
13 timezone_localtime_source = files('localtime.c')
15 # files needed to build zic utility program
20 # we now distribute the timezone data as a single file
26 if get_option('system_tzdata') == ''
27 # FIXME: For cross builds, it would need a native built libpgport/pgcommon to
28 # build our zic. But for that we'd need to run a good chunk of the configure
29 # tests both natively and cross. Unclear if it's worth it.
30 if meson.is_cross_build()
31 zic = find_program(get_option('ZIC'), native: true, required: true)
33 if host_system == 'windows'
34 zic_sources += rc_bin_gen.process(win32ver_rc, extra_args: [
36 '--FILEDESC', 'zic - time zone compiler',])
39 zic = executable('zic', zic_sources,
40 dependencies: [frontend_code],
41 kwargs: default_bin_args + {'install': false}
45 tzdata = custom_target('tzdata',
48 command: [zic, '-d', '@OUTPUT@', '@INPUT@'],
50 install_dir: dir_data,