diff options
| author | ruki <[email protected]> | 2019-02-13 23:59:44 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-02-13 17:58:28 +0800 |
| commit | 10241ef57bdb9b18bb3b0a33a69737c6359a4d63 (patch) | |
| tree | 9a700a9b148480b03d1f7fbb8401827051731271 /xmake/plugins | |
| parent | 8e72c0d06cf0934af1082b9f5592890b97c2e1a1 (diff) | |
add comment for cmakelists.txt
Diffstat (limited to 'xmake/plugins')
| -rw-r--r-- | xmake/plugins/project/cmake/cmakelists.lua | 5 | ||||
| -rw-r--r-- | xmake/plugins/project/make/makefile.lua | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/xmake/plugins/project/cmake/cmakelists.lua b/xmake/plugins/project/cmake/cmakelists.lua index 81d366cfa..45b9a0b46 100644 --- a/xmake/plugins/project/cmake/cmakelists.lua +++ b/xmake/plugins/project/cmake/cmakelists.lua @@ -82,6 +82,7 @@ end -- make project info function _make_project(cmakelists) + cmakelists:print("# project") cmakelists:print("cmake_minimum_required(VERSION 3.1.0)") local project_name = project.name() if project_name then @@ -128,6 +129,7 @@ function _make_all(cmakelists) _make_project(cmakelists) -- make variables for source kinds + cmakelists:print("# compilers") for sourcekind, _ in pairs(language.sourcekinds()) do local program = platform.tool(sourcekind) if program and program ~= "" then @@ -137,6 +139,7 @@ function _make_all(cmakelists) cmakelists:print("") -- make variables for linker kinds + cmakelists:print("# linkers") local linkerkinds = {} for _, _linkerkinds in pairs(language.targetkinds()) do table.join2(linkerkinds, _linkerkinds) @@ -157,6 +160,7 @@ function _make_all(cmakelists) end -- make variables for target flags + cmakelists:print("# common flags") local targetflags = {} for targetname, target in pairs(project.targets()) do if not target:isphony() then @@ -172,6 +176,7 @@ function _make_all(cmakelists) cmakelists:print("") -- make it for all targets + cmakelists:print("# targets") for _, target in pairs(project.targets()) do _make_target(cmakelists, target, targetflags) end diff --git a/xmake/plugins/project/make/makefile.lua b/xmake/plugins/project/make/makefile.lua index 9e2f2a51d..e5aaaa201 100644 --- a/xmake/plugins/project/make/makefile.lua +++ b/xmake/plugins/project/make/makefile.lua @@ -30,8 +30,6 @@ import("core.platform.platform") -- get log makefile function _logfile() - - -- get it return vformat("$(buildir)/.build.log") end |
