summaryrefslogtreecommitdiff
path: root/xmake/plugins
diff options
context:
space:
mode:
authorruki <[email protected]>2016-05-05 16:08:19 +0800
committerruki <[email protected]>2016-05-05 16:08:19 +0800
commit64cf81d6ddf726e3230b4fab852e4eb0b75c378d (patch)
tree341fa416034a0aa5c23aa17c513a7dcf85cb12b2 /xmake/plugins
parentf68de1b816bd631634a82d6cd8c8ea4636961a54 (diff)
reimpl build objects
Diffstat (limited to 'xmake/plugins')
-rwxr-xr-xxmake/plugins/makefile/makefile.lua20
1 files changed, 2 insertions, 18 deletions
diff --git a/xmake/plugins/makefile/makefile.lua b/xmake/plugins/makefile/makefile.lua
index 6079ae3a0..691d50816 100755
--- a/xmake/plugins/makefile/makefile.lua
+++ b/xmake/plugins/makefile/makefile.lua
@@ -56,24 +56,8 @@ end
-- make the object for the *.[a|lib] source file
function _make_object_for_static(makefile, target, srcfile, objfile)
- -- make command
- local cmd = format("xmake l -P %s -f %s dispatcher ex extract %s %s > %s 2>&1", xmake._PROJECT_DIR, xmake._PROJECT_FILE, srcmakefile:encode(), objmakefile:encode(), makefile._LOGFILE)
-
- -- make head
- makefile:printf("%s:", objfile)
-
- -- make dependence
- makefile:print(" %s", srcfile)
-
- -- make body
- makefile:print("\t@echo inserting.$(mode) %s", srcfile)
- makefile:print("\t@xmake l %$(VERBOSE) verbose \"%s\"", cmd:encode())
- makefile:print("\t@xmake l rmdir %s\n", path.directory(objfile))
- makefile:print("\t@%s", cmd)
-
- -- make tail
- makefile:print("")
-
+ -- not supported
+ raise("source file: %s not supported!", srcfile)
end
-- make the object