summaryrefslogtreecommitdiff
path: root/hw/dmx/config/meson.build
blob: c77cd0b44cc2394b641d16823a7066b008aab66e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
flex = find_program('flex')
bison = find_program('bison')

lgen = generator(
    flex,
    output : '@PLAINNAME@.yy.c',
    arguments : ['-o', '@OUTPUT@', '@INPUT@']
)
lfiles = lgen.process('scanner.l')

pgen = generator(
    bison,
    output : ['@BASENAME@.c', '@BASENAME@.h'],
    arguments : ['@INPUT@', '--defines=@OUTPUT1@', '--output=@OUTPUT0@']
)
pfiles = pgen.process('parser.y')

srcs_dmx_config = [
    'dmxparse.c',
    'dmxprint.c',
    'dmxcompat.c',
    'dmxconfig.c',
    pfiles,
    lfiles,
]

dmx_inc = [
    inc,
    include_directories('../')
]

dmx_c_args = [
    '-DHAVE_DMX_CONFIG_H',
    '-DDMX_LOG_STANDALONE',
]

dmx_config = static_library('dmx_config',
    srcs_dmx_config,
    include_directories: dmx_inc,
    dependencies: common_dep,
    c_args: dmx_c_args,
)

executable('xdmxconfig',
    [
        'xdmxconfig.c',
        '../dmxlog.c',
        'Canvas.c',
    ],
    include_directories: [
        inc,
        include_directories('../')
    ],
    dependencies: [
        common_dep,
        dependency('xaw7'),
        dependency('xmu'),
        dependency('xt'),
        dependency('xpm'),
        dependency('x11'),
    ],
    link_with: dmx_config,
    c_args: dmx_c_args,
    install: true,
)

executable('vdltodmx',
    'vdltodmx.c',
    include_directories: dmx_inc,
    link_with: dmx_config,
    c_args: dmx_c_args,
    install: true,
)

executable('dmxtodmx',
    'dmxtodmx.c',
    include_directories: dmx_inc,
    link_with: dmx_config,
    c_args: dmx_c_args,
    install: true,
)