Added target and objects directories

This commit is contained in:
starkos 2009-08-20 20:38:42 +00:00
parent 8fc3153608
commit 947661686b

View File

@ -20,7 +20,10 @@
function xcode.getfiletype(fname) function xcode.getfiletype(fname)
local types = { local types = {
[".c" ] = "sourcecode.c.c", [".c" ] = "sourcecode.c.c",
[".cc" ] = "sourcecode.cpp.cpp",
[".cpp" ] = "sourcecode.cpp.cpp",
[".css" ] = "text.css", [".css" ] = "text.css",
[".cxx" ] = "sourcecode.cpp.cpp",
[".gif" ] = "image.gif", [".gif" ] = "image.gif",
[".h" ] = "sourcecode.c.h", [".h" ] = "sourcecode.c.h",
[".html"] = "text.html", [".html"] = "text.html",
@ -307,6 +310,8 @@
_p('\t\t\tisa = XCBuildConfiguration;') _p('\t\t\tisa = XCBuildConfiguration;')
_p('\t\t\tbuildSettings = {') _p('\t\t\tbuildSettings = {')
_p('\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;') _p('\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;')
_p('\t\t\t\tCONFIGURATION_BUILD_DIR = %s;', cfg.buildtarget.directory)
_p('\t\t\t\tCONFIGURATION_TEMP_DIR = %s;', cfg.objectsdir)
if cfg.flags.Symbols then if cfg.flags.Symbols then
_p('\t\t\t\tCOPY_PHASE_STRIP = NO;') _p('\t\t\t\tCOPY_PHASE_STRIP = NO;')
end end
@ -315,6 +320,11 @@
_p('\t\t\t\tGCC_ENABLE_FIX_AND_CONTINUE = YES;') _p('\t\t\t\tGCC_ENABLE_FIX_AND_CONTINUE = YES;')
end end
_p('\t\t\t\tGCC_MODEL_TUNING = G5;') _p('\t\t\t\tGCC_MODEL_TUNING = G5;')
if #cfg.defines > 0 then
_p('\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (')
_p(table.implode(cfg.defines, "\t\t\t\t", ",\n"))
_p('\t\t\t\t);')
end
_p('\t\t\t\tPRODUCT_NAME = %s;', cfg.buildtarget.name) _p('\t\t\t\tPRODUCT_NAME = %s;', cfg.buildtarget.name)
_p('\t\t\t};') _p('\t\t\t};')
_p('\t\t\tname = %s;', cfg.name) _p('\t\t\tname = %s;', cfg.name)