forked from pyrite-dev/pmake
support for rc
This commit is contained in:
parent
9520be0be0
commit
05dff81025
3 changed files with 12 additions and 3 deletions
|
|
@ -20,7 +20,9 @@ Watcom.compile = function(target, obj, src) {
|
|||
const includes = pmake.includes(target).map(add_i).join(" ");
|
||||
const flags = "-bt=nt -fr= -q " + includes + " -fo=" + obj + " " + src;
|
||||
|
||||
if(src.endsWith(".c")) {
|
||||
if(src.endsWith(".rc")){
|
||||
return "wrc -bt=nt -r -fo=" + obj + " " + src;
|
||||
}else if(src.endsWith(".c")) {
|
||||
return "wcc386 " + flags;
|
||||
} else {
|
||||
return "wpp386 " + flags;
|
||||
|
|
@ -33,6 +35,7 @@ Watcom.link = function(target, files) {
|
|||
return "wlib -q -b -n -fo " + this.output(target) + " " + files.join(" ");
|
||||
} else if(target instanceof pmake.ExecutableProject) {
|
||||
function add_file(x) {
|
||||
if(x.endsWith(".res")) return "option resource=" + x;
|
||||
return "file \"" + x + "\"";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue