YSTest: Dependency.h 源文件

YSTest PreAlpha_b700_20160611 The YSLib Test Project

- 首页
- 相关页面
- 模块
- 命名空间
- 类
- 文件

- 文件列表
- 文件成员

Dependency.h
浏览该文件的文档.
1 /*
2 © 2015 FrankHB.
3
4 This file is part of the YSLib project, and may only be used,
5 modified, and distributed under the terms of the YSLib project
6 license, LICENSE.TXT. By continuing to use, modify, or distribute
7 this file you indicate that you have read the license and
8 understand and accept it fully.
9 */
10
28 #ifndef NPL_INC_Dependency_h_
29 #define NPL_INC_Dependency_h_
30
31 #include "YModules.h"
32 #include YFM_NPL_Lexical // for string, vector;
33 #include <istream>
34
35 namespace NPL
36 {
37
39 enum class DepsEventType : yimpl(size_t)
40 {
41 General,
42 Search,
43 Build,
44 Command,
45 DepsCheck,
46 Max
47 };
48
49
51
52
56 YF_API vector<string>
57 DecomposeMakefileDepList(std::istream&);
58
63 YF_API bool
64 FilterMakefileDependencies(vector<string>&);
66
67
75
76
81 YF_API YB_NONNULL(1, 2) void
83 InstallFile(const char*, const char*);
84 inline PDefH(void, InstallFile, const string& dst, const string& src)
85 ImplExpr(InstallFile(dst.c_str(), src.c_str()))
87
89
90 YF_API void
92 InstallDirectory(const string&, const string&);
93 inline YB_NONNULL(1, 2) PDefH(void, InstallDirectory, const char* dst,
94 const char* src)
95 ImplExpr(InstallDirectory(string(dst), string(src)))
97
98
104 YF_API YB_NONNULL(1, 2) void
106 InstallHardLink(const char*, const char*);
107 inline PDefH(void, InstallHardLink, const string& dst, const string& src)
108 ImplExpr(InstallHardLink(dst.c_str(), src.c_str()))
110
112
113 YF_API YB_NONNULL(1, 2) void
115 InstallSymbolicLink(const char*, const char*);
116 inline PDefH(void, InstallSymbolicLink, const string& dst, const string& src)
117 ImplExpr(InstallSymbolicLink(dst.c_str(), src.c_str()))
119
124
126 YF_API YB_NONNULL(1, 2) void
127 InstallExecutable(const char*, const char*);
128 inline PDefH(void, InstallExecutable, const string& dst, const string& src)
129 ImplExpr(InstallExecutable(dst.c_str(), src.c_str()))
131
132
133 } // namespace NPL;
134
135 #endif
136
NPL::InstallExecutable
src void InstallExecutable(const char *, const char *)
Definition: Dependency.cpp:158
NPL::InstallDirectory
YF_API const char src const string InstallDirectory
Definition: Dependency.h:93
NPL::InstallFile
void InstallFile(const char *dst, const char *src)
Definition: Dependency.cpp:110
NPL::DepsEventType::DepsCheck
NPL::DepsEventType
DepsEventType
Definition: Dependency.h:39
yimpl
#define yimpl(...)
实现标签。
Definition: ydef.h:256
NPL::DepsEventType::General
NPL::InstallHardLink
YF_API const char src const string const char const char *src void InstallHardLink(const char *, const char *)
Definition: Dependency.cpp:135
NPL::dst
YF_API const char src const string const char * dst
Definition: Dependency.h:93
NPL::InstallSymbolicLink
src void InstallSymbolicLink(const char *, const char *)
Definition: Dependency.cpp:148
NPL::DepsEventType::Max
YModules.h
NPL::DepsEventType::Build
NPL::FilterMakefileDependencies
YF_API bool FilterMakefileDependencies(vector< string > &)
过滤 GCC 兼容编译器 -MMD 选项生成的 Makefile 项列表并选取依赖项。
Definition: Dependency.cpp:97
NPL
Definition: NPL/Configuration.h:34
NPL::YB_NONNULL
YF_API YB_NONNULL(1, 2) void InstallFile(const char *
安装文件：复制单个文件。
NPL::c_str
YF_API const char src c_str())) YF_API void InstallDirectory(const string &
安装目录：复制目录树。
NPL::DepsEventType::Command
NPL::DepsEventType::Search
YF_API
#define YF_API
Definition: Platform.h:56
NPL::DecomposeMakefileDepList
YF_API vector< string > DecomposeMakefileDepList(std::istream &)
从内容为 GCC 兼容编译器 -MMD 选项生成的 Makefile 的流中分解路径。
Definition: Dependency.cpp:39
NPL::PDefH
YF_API const char * PDefH(void, InstallFile, const string &dst, const string &src) ImplExpr(InstallFile(dst.c_str()
NPL::ImplExpr
YF_API const char src const string const char const char *src ImplExpr(InstallDirectory(string(dst), string(src))) YF_API YB_NONNULL(1
安装硬链接：创建硬链接，失败则安装文件。