diff options
| author | ruki <[email protected]> | 2020-03-14 00:35:47 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-03-13 21:34:43 +0800 |
| commit | 4ebb92ada13b8d521542ec371ee9ec97c90a264d (patch) | |
| tree | 9307a99ddd8adab26b0d020e99365758839141c2 /xmake/modules/private/action/build/object.lua | |
| parent | 1925d9171b2dce49cb95e5816fd38bc103a44be3 (diff) | |
fix pcheader
Diffstat (limited to 'xmake/modules/private/action/build/object.lua')
| -rw-r--r-- | xmake/modules/private/action/build/object.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/xmake/modules/private/action/build/object.lua b/xmake/modules/private/action/build/object.lua index 423f7fdaa..4f953384c 100644 --- a/xmake/modules/private/action/build/object.lua +++ b/xmake/modules/private/action/build/object.lua @@ -91,6 +91,17 @@ function _build_object(target, sourcefile, opt) end end +-- build the source files +function build(target, sourcebatch, opt) + for i = 1, #sourcebatch.sourcefiles do + local sourcefile = sourcebatch.sourcefiles[i] + local objectfile = sourcebatch.objectfiles[i] + local dependfile = sourcebatch.dependfiles[i] + local sourcekind = assert(sourcebatch.sourcekind, "%s: sourcekind not found!", sourcefile) + _build_object(target, sourcefile, {objectfile = objectfile, dependfile = dependfile, sourcekind = sourcekind, progress = opt.progress}) + end +end + -- add batch jobs to build the source files function main(target, batchjobs, sourcebatch, opt) local rootjob = opt.rootjob |
