[gn build] Update build for new OpenMP tablegen logic
[lldb.git] / llvm / utils / gn / secondary / llvm / include / llvm / Frontend / OpenMP / BUILD.gn
1 import("//llvm/utils/TableGen/tablegen.gni")
2
3 tablegen("OMP") {
4   visibility = [ ":public_tablegen" ]
5   args = [ "-gen-directive-decl" ]
6   output_name = "OMP.h.inc"
7 }
8
9 tablegen("OMPImpl") {
10   visibility = [ ":public_tablegen" ]
11   args = [ "-gen-directive-impl" ]
12   td_file = "OMP.td"
13   output_name = "OMP.cpp.inc"
14 }
15
16 # Groups all tablegen() calls that create .inc files that are included in
17 # Frontent/OpenMP's public headers (just one so far).
18 # //llvm/lib/Frontend/OpenMP has this as a public_dep, so targets depending on
19 # //llvm/lib/Frontend/OpenMP don't need to depend on this.
20 group("public_tablegen") {
21   public_deps = [
22     # Frontend/OpenMP's public headers include OMP.h.inc.
23     ":OMP",
24     ":OMPImpl",
25   ]
26 }