Skip to content

Commit

Permalink
添加gn 构建运行
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaominghe2014 committed Jul 28, 2023
1 parent 8ffead7 commit 6b0a04c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .gn
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

# GN 文件
buildconfig = "//gn/build/config/BUILDCONFIG.gn"

# 导入源文件
# sources = exec_script("generate_sources.py", [], "list")
# lib_sources = ["src/crypto/md5.cpp", "src/crypto/base64.cpp", "src/crypto/url.cpp", "src/crypto/sha1.cpp", "src/crypto/base85.cpp", "src/net/XEpoll.cpp", "src/net/XSocket.cpp", "src/algorithm/sort.cpp", "src/algorithm/search.cpp", "src/algorithm/dlx.cpp", "src/algorithm/AStar.cpp", "src/parser/SgfParser.cpp", "src/parser/YamlParser.cpp", "src/parser/xml.cpp", "src/parser/json.cpp", "src/math/util.cpp", "src/math/matrix.cpp", "src/base/XRegex.cpp", "src/base/XLog.cpp", "src/base/XThread.cpp", "src/base/XString.cpp", "src/base/XFileUtil.cpp", "src/base/XUtf8.cpp", "src/base/XRandom.cpp", "src/base/XTime.cpp"]

# 排除的文件
# exclude_sources = [
# "main.cpp",
# ]

# 过滤掉排除的文件
# sources = get_target_outputs(":${sources}") - get_target_outputs(":${exclude_sources}")

# 引用 sources.gn 文件
import("//sources.gn")

0 comments on commit 6b0a04c

Please sign in to comment.