[llvm] c85688a - [gn build] (manually) port some of cd2292ef8245
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Wed May 25 04:19:48 PDT 2022
Author: Nico Weber
Date: 2022-05-25T07:19:41-04:00
New Revision: c85688a22ba71afcf8105ac1c79865e6a347ddac
URL: https://github.com/llvm/llvm-project/commit/c85688a22ba71afcf8105ac1c79865e6a347ddac
DIFF: https://github.com/llvm/llvm-project/commit/c85688a22ba71afcf8105ac1c79865e6a347ddac.diff
LOG: [gn build] (manually) port some of cd2292ef8245
Added:
llvm/utils/gn/secondary/clang-tools-extra/pseudo/cxx/BUILD.gn
llvm/utils/gn/secondary/clang-tools-extra/pseudo/gen/BUILD.gn
llvm/utils/gn/secondary/clang-tools-extra/pseudo/lib/grammar/BUILD.gn
Modified:
llvm/utils/gn/secondary/clang-tools-extra/pseudo/lib/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/clang-tools-extra/pseudo/cxx/BUILD.gn b/llvm/utils/gn/secondary/clang-tools-extra/pseudo/cxx/BUILD.gn
new file mode 100644
index 0000000000000..c2a8d61ad5fc2
--- /dev/null
+++ b/llvm/utils/gn/secondary/clang-tools-extra/pseudo/cxx/BUILD.gn
@@ -0,0 +1,7 @@
+# FIXME: Nothing depends on this yet.
+static_library("cxx") {
+ output_name = "clangPseudoCXX"
+ configs += [ "//llvm/utils/gn/build:clang_code" ]
+ deps = [ "//clang-tools-extra/pseudo/lib/grammar" ]
+ sources = [ "CXX.cpp" ]
+}
diff --git a/llvm/utils/gn/secondary/clang-tools-extra/pseudo/gen/BUILD.gn b/llvm/utils/gn/secondary/clang-tools-extra/pseudo/gen/BUILD.gn
new file mode 100644
index 0000000000000..274b6537b099b
--- /dev/null
+++ b/llvm/utils/gn/secondary/clang-tools-extra/pseudo/gen/BUILD.gn
@@ -0,0 +1,9 @@
+executable("pseudo-gen") {
+ configs += [ "//llvm/utils/gn/build:clang_code" ]
+ deps = [
+ "//clang-tools-extra/pseudo/lib/grammar",
+ "//llvm/lib/Support",
+ ]
+ include_dirs = [ "../include" ]
+ sources = [ "Main.cpp" ]
+}
diff --git a/llvm/utils/gn/secondary/clang-tools-extra/pseudo/lib/BUILD.gn b/llvm/utils/gn/secondary/clang-tools-extra/pseudo/lib/BUILD.gn
index 670b5c3263910..04f5cbb840591 100644
--- a/llvm/utils/gn/secondary/clang-tools-extra/pseudo/lib/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang-tools-extra/pseudo/lib/BUILD.gn
@@ -4,6 +4,7 @@ static_library("lib") {
deps = [
"//clang/lib/Basic",
"//clang/lib/Lex",
+ "//clang-tools-extra/pseudo/lib/grammar",
"//llvm/lib/Support",
]
include_dirs = [ "../include" ]
@@ -12,11 +13,6 @@ static_library("lib") {
"DirectiveTree.cpp",
"Forest.cpp",
"GLR.cpp",
- "Grammar.cpp",
- "GrammarBNF.cpp",
- "LRGraph.cpp",
- "LRTable.cpp",
- "LRTableBuild.cpp",
"Lex.cpp",
"Token.cpp",
]
diff --git a/llvm/utils/gn/secondary/clang-tools-extra/pseudo/lib/grammar/BUILD.gn b/llvm/utils/gn/secondary/clang-tools-extra/pseudo/lib/grammar/BUILD.gn
new file mode 100644
index 0000000000000..623e85f60fb59
--- /dev/null
+++ b/llvm/utils/gn/secondary/clang-tools-extra/pseudo/lib/grammar/BUILD.gn
@@ -0,0 +1,17 @@
+static_library("grammar") {
+ output_name = "clangPseudoGrammar"
+ configs += [ "//llvm/utils/gn/build:clang_code" ]
+ deps = [
+ "//clang/lib/Basic",
+ "//llvm/lib/Support",
+ ]
+ include_dirs = [ "../../include" ]
+ sources = [
+ "Grammar.cpp",
+ "GrammarBNF.cpp",
+ "LRGraph.cpp",
+ "LRTable.cpp",
+ "LRTableBuild.cpp",
+ ]
+}
+
More information about the llvm-commits
mailing list