• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package(
2    default_visibility = ["//visibility:public"],
3)
4
5cc_binary(
6    name = "ragelc",
7    srcs = [
8        "ragel/rubycodegen.cpp",
9        "ragel/goipgoto.h",
10        "ragel/cdtable.h",
11        "ragel/rubycodegen.h",
12        "ragel/gotable.h",
13        "ragel/gocodegen.cpp",
14        "ragel/rubyfflat.cpp",
15        "ragel/common.cpp",
16        "ragel/gofflat.cpp",
17        "ragel/cdtable.cpp",
18        "ragel/cdsplit.cpp",
19        "ragel/rlparse.cpp",
20        "ragel/csfgoto.cpp",
21        "ragel/javacodegen.cpp",
22        "ragel/gocodegen.h",
23        "ragel/mlgoto.cpp",
24        "ragel/fsmgraph.cpp",
25        "ragel/version.h",
26        "ragel/mlfflat.h",
27        "ragel/fsmgraph.h",
28        "ragel/fsmbase.cpp",
29        "ragel/fsmstate.cpp",
30        "ragel/gotablish.cpp",
31        "ragel/rubyflat.cpp",
32        "ragel/cdfgoto.h",
33        "ragel/cscodegen.h",
34        "ragel/mlflat.cpp",
35        "ragel/rubyflat.h",
36        "ragel/goftable.h",
37        "ragel/rbxgoto.cpp",
38        "ragel/csfflat.cpp",
39        "ragel/gofgoto.cpp",
40        "ragel/gofgoto.h",
41        "ragel/ragel.h",
42        "ragel/goftable.cpp",
43        "ragel/cdcodegen.cpp",
44        "ragel/rlparse.h",
45        "ragel/cdsplit.h",
46        "ragel/xmlcodegen.cpp",
47        "ragel/goipgoto.cpp",
48        "ragel/dotcodegen.h",
49        "ragel/gogoto.cpp",
50        "ragel/csflat.h",
51        "ragel/csfflat.h",
52        #"ragel/config.h.in",
53        "ragel/csipgoto.cpp",
54        "ragel/mltable.cpp",
55        "ragel/mlflat.h",
56        "ragel/csftable.cpp",
57        "ragel/cdgoto.h",
58        "ragel/goflat.cpp",
59        "ragel/rubyfflat.h",
60        "ragel/mlftable.h",
61        "ragel/rubyftable.h",
62        "ragel/fsmap.cpp",
63        "ragel/redfsm.cpp",
64        "ragel/goflat.h",
65        "ragel/parsetree.cpp",
66        "ragel/fsmmin.cpp",
67        "ragel/dotcodegen.cpp",
68        "ragel/redfsm.h",
69        "ragel/mlcodegen.cpp",
70        "ragel/cdfgoto.cpp",
71        "ragel/cssplit.cpp",
72        "ragel/cstable.cpp",
73        "ragel/javacodegen.h",
74        "ragel/parsedata.cpp",
75        "ragel/buffer.h",
76        "ragel/gogoto.h",
77        "ragel/csgoto.h",
78        "ragel/pcheck.h",
79        "ragel/rubyftable.cpp",
80        "ragel/csfgoto.h",
81        "ragel/common.h",
82        "ragel/cdftable.h",
83        "ragel/mlgoto.h",
84        "ragel/csgoto.cpp",
85        "ragel/cdflat.h",
86        "ragel/cdipgoto.h",
87        "ragel/cstable.h",
88        "ragel/gendata.h",
89        "ragel/cdfflat.cpp",
90        "ragel/gotable.cpp",
91        "ragel/cdcodegen.h",
92        "ragel/gendata.cpp",
93        "ragel/rubytable.h",
94        "ragel/csflat.cpp",
95        "ragel/inputdata.h",
96        "ragel/inputdata.cpp",
97        "ragel/rubytable.cpp",
98        "ragel/fsmattach.cpp",
99        "ragel/csipgoto.h",
100        "ragel/cscodegen.cpp",
101        "ragel/cdfflat.h",
102        "ragel/rbxgoto.h",
103        "ragel/xmlcodegen.h",
104        "ragel/gofflat.h",
105        "ragel/parsedata.h",
106        "ragel/mlfgoto.h",
107        "ragel/cdflat.cpp",
108        "ragel/config.h",
109        "ragel/rlscan.cpp",
110        "ragel/mlcodegen.h",
111        "ragel/mlfflat.cpp",
112        "ragel/mlftable.cpp",
113        "ragel/mltable.h",
114        "ragel/cdipgoto.cpp",
115        "ragel/cdftable.cpp",
116        "ragel/parsetree.h",
117        "ragel/rlscan.h",
118        "ragel/main.cpp",
119        "ragel/cssplit.h",
120        "ragel/mlfgoto.cpp",
121        "ragel/csftable.h",
122        "ragel/gotablish.h",
123        "ragel/cdgoto.cpp",
124        "aapl/avlmelkey.h",
125        "aapl/dlistmel.h",
126        "aapl/avliset.h",
127        "aapl/avlkeyless.h",
128        "aapl/sbstset.h",
129        "aapl/sbsttable.h",
130        "aapl/quicksort.h",
131        "aapl/avlitree.h",
132        "aapl/avlcommon.h",
133        "aapl/bstset.h",
134        "aapl/avlmel.h",
135        "aapl/insertsort.h",
136        "aapl/dlist.h",
137        "aapl/avlmap.h",
138        "aapl/mergesort.h",
139        "aapl/resize.h",
140        "aapl/bstcommon.h",
141        "aapl/bstmap.h",
142        "aapl/compare.h",
143        "aapl/svector.h",
144        "aapl/avlset.h",
145        "aapl/bsttable.h",
146        "aapl/avlikeyless.h",
147        "aapl/bubblesort.h",
148        "aapl/table.h",
149        "aapl/avlbasic.h",
150        "aapl/vector.h",
151        "aapl/avlimap.h",
152        "aapl/dlistval.h",
153        "aapl/dlcommon.h",
154        "aapl/avlibasic.h",
155        "aapl/sbstmap.h",
156        "aapl/avlimel.h",
157        "aapl/avlimelkey.h",
158        "aapl/avltree.h",
159    ],
160    includes = [
161        "aapl",
162        "ragel",
163    ],
164)
165
166config_h_contents = """
167#define PACKAGE "ragel"
168
169/* Define to the address where bug reports for this package should be sent. */
170#define PACKAGE_BUGREPORT ""
171
172/* Define to the full name of this package. */
173#define PACKAGE_NAME "ragel"
174
175/* Define to the full name and version of this package. */
176#define PACKAGE_STRING "ragel 6.10"
177
178/* Define to the one symbol short name of this package. */
179#define PACKAGE_TARNAME "ragel"
180
181/* Define to the home page for this package. */
182#define PACKAGE_URL ""
183
184/* Define to the version of this package. */
185#define PACKAGE_VERSION "6.10"
186
187/* Version number of package */
188#define VERSION "6.10"
189"""
190
191genrule(
192    name = "gen_config_h",
193    outs = ["ragel/config.h"],
194    cmd = "(cat <<'HEREDOC'\n%s\nHEREDOC\n) > $@" % config_h_contents,
195)
196