33 lines
1.4 KiB
Lua
33 lines
1.4 KiB
Lua
gear_core = gear4:AddLibrary("gear_core", {})
|
|
|
|
updatetable(gear_core.projects.library.extrafiles,
|
|
{ joinpath(".", "geardef.h"),
|
|
iif(not gear_core.projects.library.noblob, joinpath("gear_core", "gear_core.cpp")),
|
|
iif(not gear_core.projects.library.noblob, joinpath("gear_core", "gear_core.h")),
|
|
joinpath("gear_core", "gearconfig.h") })
|
|
|
|
if gear4.platform:startswith("ps3") then
|
|
gear_core:CreateSPULibrary()
|
|
updatetable(gear_core.projects.spu_library.extrafiles,
|
|
{ joinpath(".", "geardef.h"),
|
|
iif(not gear_core.projects.library.noblob, joinpath("gear_core", "gear_core.cpp")),
|
|
iif(not gear_core.projects.library.noblob, joinpath("gear_core", "gear_core.h")),
|
|
joinpath("gear_core", "gearconfig.h") })
|
|
elseif gear4.platform == "win32" or gear4.platform == "win64" then
|
|
-- This section is used so that test_mapfilereader.cpp works correctly
|
|
if gear4.platform == "win32" then
|
|
gear_core.projects.tests:UpdateConfigurations {
|
|
["*"] = {
|
|
postbuildcommands = {
|
|
"copy \"$(TargetDir)$(TargetName).map\" \"$(ProjectDir)\""
|
|
},
|
|
linkoptions = {
|
|
"/MAP",
|
|
"/MAPINFO:EXPORTS",
|
|
"/INCREMENTAL:NO"
|
|
}
|
|
}
|
|
}
|
|
end
|
|
end
|
|
-- Add end of line in perforce.
|