Debian Codegraph @

src/meson.build

raw
1
2 win_export_args = []
3 # Define FcPublic appropriately for exports on windows
4 if host_machine.system() == 'windows'
5 win_export_args += '-DFcPublic=__declspec(dllexport)'
6 win_export_args += '-DDLL_EXPORT'
7 endif
8
9 # Factor our pattern manipulation code into its own library
10 # to break the depedency cycle:
11 # FontConfig pattern handling - Fontations code - FontConfig.
12 pattern_sources = [ 'fcpat.c', fcstdint_h, fclang_h ]
13 pattern_lib = static_library('patternlib_internal',
14 pattern_sources,
15 include_directories: incbase,
16 dependencies: [deps],
17 c_args: win_export_args
18 )
19
20 fc_sources = files([
21 'fcatomic.c',
22 'fccache.c',
23 'fccfg.c',
24 'fccharset.c',
25 'fccompat.c',
26 'fcdbg.c',
27 'fcdefault.c',
28 'fcdir.c',
29 'fcformat.c',
30 'fcfreetype.c',
31 'fcfs.c',
32 'fcptrlist.c',
33 'fchash.c',
34 'fcinit.c',
35 'fclang.c',
36 'fclist.c',
37 'fcmatch.c',
38 'fcmatrix.c',
39 'fcname.c',
40 'fcobjs.c',
41 'fcrange.c',
42 'fcserialize.c',
43 'fcstat.c',
44 'fcstr.c',
45 'fcweight.c',
46 'fcxml.c',
47 'ftglue.c',
48 ])
49
50
51
52 fcobjshash_h = cc.preprocess('fcobjshash.gperf.h', include_directories: incbase)
53 fcobjshash_gperf = custom_target(
54 input: fcobjshash_h,
55 output: 'fcobjshash.gperf',
56 command: ['cutout.py', '@INPUT@', '@OUTPUT@'],
57 build_by_default: true,
58 )
59
60 fcobjshash_h = custom_target('fcobjshash.h',
61 input: fcobjshash_gperf,
62 output: 'fcobjshash.h',
63 command: [gperf, '--pic', '-m', '100', '@INPUT@', '--output-file', '@OUTPUT@']
64 )
65
66 lib_fontconfig_sources = [fc_sources, alias_headers, ft_alias_headers, fccase_h, fclang_h, fcobjshash_h, fcstdint_h]
67 lib_fontconfig_kwargs = {
68 'include_directories': incbase,
69 'dependencies': [deps, math_dep],
70 'link_with': [pattern_lib],
71 }
72