Imported Upstream version 8.2.2
[platform/upstream/harfbuzz.git] / subprojects / packagefiles / ragel / meson.build
1 project('ragel', 'c', 'cpp',
2   version : '6.10',
3   default_options: [
4     'cpp_eh=default',
5   ],
6 )
7
8 cpp = meson.get_compiler('cpp')
9 add_project_arguments(cpp.get_supported_arguments([
10   '-fexceptions',
11 ]), language: 'cpp')
12
13 conf = configuration_data()
14 conf.set_quoted('PACKAGE', meson.project_name())
15 conf.set_quoted('VERSION', meson.project_version())
16 configure_file(
17   output : 'config.h',
18   configuration : conf
19 )
20
21 ragel_sources = files(
22   'ragel/buffer.h', 'ragel/cdcodegen.cpp', 'ragel/cdcodegen.h',
23   'ragel/cdfflat.cpp', 'ragel/cdfflat.h', 'ragel/cdfgoto.cpp',
24   'ragel/cdfgoto.h', 'ragel/cdflat.cpp', 'ragel/cdflat.h',
25   'ragel/cdftable.cpp', 'ragel/cdftable.h', 'ragel/cdgoto.cpp',
26   'ragel/cdgoto.h', 'ragel/cdipgoto.cpp', 'ragel/cdipgoto.h',
27   'ragel/cdsplit.cpp', 'ragel/cdsplit.h', 'ragel/cdtable.cpp',
28   'ragel/cdtable.h', 'ragel/common.cpp', 'ragel/common.h',
29   'ragel/cscodegen.cpp', 'ragel/cscodegen.h', 'ragel/csfflat.cpp',
30   'ragel/csfflat.h', 'ragel/csfgoto.cpp', 'ragel/csfgoto.h',
31   'ragel/csflat.cpp', 'ragel/csflat.h', 'ragel/csftable.cpp',
32   'ragel/csftable.h', 'ragel/csgoto.cpp', 'ragel/csgoto.h',
33   'ragel/csipgoto.cpp', 'ragel/csipgoto.h', 'ragel/cssplit.cpp',
34   'ragel/cssplit.h', 'ragel/cstable.cpp', 'ragel/cstable.h',
35   'ragel/dotcodegen.cpp', 'ragel/dotcodegen.h', 'ragel/fsmap.cpp',
36   'ragel/fsmattach.cpp', 'ragel/fsmbase.cpp', 'ragel/fsmgraph.cpp',
37   'ragel/fsmgraph.h', 'ragel/fsmmin.cpp', 'ragel/fsmstate.cpp',
38   'ragel/gendata.cpp', 'ragel/gendata.h', 'ragel/gocodegen.cpp',
39   'ragel/gocodegen.h', 'ragel/gofflat.cpp', 'ragel/gofflat.h',
40   'ragel/gofgoto.cpp', 'ragel/gofgoto.h', 'ragel/goflat.cpp', 'ragel/goflat.h',
41   'ragel/goftable.cpp', 'ragel/goftable.h', 'ragel/gogoto.cpp',
42   'ragel/gogoto.h', 'ragel/goipgoto.cpp', 'ragel/goipgoto.h',
43   'ragel/gotable.cpp', 'ragel/gotable.h', 'ragel/gotablish.cpp',
44   'ragel/gotablish.h', 'ragel/inputdata.cpp', 'ragel/inputdata.h',
45   'ragel/javacodegen.cpp', 'ragel/javacodegen.h', 'ragel/main.cpp',
46   'ragel/mlcodegen.cpp', 'ragel/mlcodegen.h', 'ragel/mlfflat.cpp',
47   'ragel/mlfflat.h', 'ragel/mlfgoto.cpp', 'ragel/mlfgoto.h',
48   'ragel/mlflat.cpp', 'ragel/mlflat.h', 'ragel/mlftable.cpp',
49   'ragel/mlftable.h', 'ragel/mlgoto.cpp', 'ragel/mlgoto.h',
50   'ragel/mltable.cpp', 'ragel/mltable.h', 'ragel/parsedata.cpp',
51   'ragel/parsedata.h', 'ragel/parsetree.cpp', 'ragel/parsetree.h',
52   'ragel/pcheck.h', 'ragel/ragel.h', 'ragel/rbxgoto.cpp', 'ragel/rbxgoto.h',
53   'ragel/redfsm.cpp', 'ragel/redfsm.h', 'ragel/rlparse.cpp', 'ragel/rlparse.h',
54   'ragel/rlscan.cpp', 'ragel/rlscan.h', 'ragel/rubycodegen.cpp',
55   'ragel/rubycodegen.h', 'ragel/rubyfflat.cpp', 'ragel/rubyfflat.h',
56   'ragel/rubyflat.cpp', 'ragel/rubyflat.h', 'ragel/rubyftable.cpp',
57   'ragel/rubyftable.h', 'ragel/rubytable.cpp', 'ragel/rubytable.h',
58   'ragel/version.h', 'ragel/xmlcodegen.cpp', 'ragel/xmlcodegen.h',
59 )
60
61 ragel = executable(
62   meson.project_name(),
63   ragel_sources,
64   include_directories : ['aapl', 'ragel'],
65   install : true,
66 )