Customized project creation tools

This commit is contained in:
Jesse 2016-08-31 23:59:23 -05:00
parent d12ebdb58e
commit adcc5408cf
7 changed files with 483 additions and 7 deletions

View file

@ -0,0 +1,3 @@
devtools\bin\vpc.exe /2013 /hl2 /episodic +sdk2013CE /mksln sdk2013ce.sln
pause

View file

@ -0,0 +1,140 @@
//-----------------------------------------------------------------------------
// CLIENT_EPISODIC.VPC
//
// Project Script
//-----------------------------------------------------------------------------
$Macro SRCDIR "..\.."
$Macro GAMENAME "sdk2013ce"
$Include "$SRCDIR\game\client\client_base.vpc"
$Include "$SRCDIR\game\shared\shared_sdk2013CE.vpc"
$Configuration
{
$Compiler
{
$AdditionalIncludeDirectories ".\hl2;.\hl2\elements;$SRCDIR\game\shared\hl2;$SRCDIR\game\shared\episodic;..\..\public;$BASE;$SRCDIR\game\shared\sdk2013ce;$SRCDIR\game\client\sdk2013ce"
$PreprocessorDefinitions "$BASE;HL2_CLIENT_DLL;HL2_EPISODIC;SDK2013CE;SOURCE_2013;GLOWS_ENABLE"
}
}
$Project "Client (SDK2013CE)"
{
$Folder "Source Files"
{
$File "hud_chat.cpp"
$File "c_team_objectiveresource.cpp"
$File "c_team_objectiveresource.h"
$Folder "sdk2013ce"
{
//$File "sdk2013ce\c_lights.cpp"
//$File "sdk2013ce\c_lights.h"
//$File "sdk2013ce\c_sdk2013ce_util.cpp"
//$File "sdk2013ce\c_sdk2013ce_util.h"
}
$Folder "HL2 DLL"
{
$File "$SRCDIR\game\shared\hl2\basehlcombatweapon_shared.cpp"
$File "$SRCDIR\game\shared\episodic\achievements_ep1.cpp"
$File "$SRCDIR\game\shared\episodic\achievements_ep2.cpp"
$File "$SRCDIR\game\shared\episodic\achievements_epx.cpp"
$File "hl2\c_antlion_dust.cpp"
$File "hl2\c_ar2_explosion.cpp"
$File "hl2\c_barnacle.cpp"
$File "hl2\c_barney.cpp"
$File "hl2\c_basehelicopter.cpp"
$File "hl2\c_basehelicopter.h"
$File "hl2\c_basehlcombatweapon.cpp"
$File "hl2\c_basehlcombatweapon.h"
$File "hl2\c_basehlplayer.cpp"
$File "hl2\c_basehlplayer.h"
$File "hl2\c_citadel_effects.cpp"
$File "hl2\c_corpse.cpp"
$File "hl2\c_corpse.h"
$File "hl2\c_env_alyxtemp.cpp"
$File "hl2\c_env_headcrabcanister.cpp"
$File "hl2\c_env_starfield.cpp"
$File "hl2\c_func_tankmortar.cpp"
$File "hl2\c_hl2_playerlocaldata.cpp"
$File "hl2\c_hl2_playerlocaldata.h"
$File "hl2\c_info_teleporter_countdown.cpp"
$File "hl2\c_npc_antlionguard.cpp"
$File "hl2\c_npc_combinegunship.cpp"
$File "hl2\c_npc_manhack.cpp"
$File "hl2\c_npc_rollermine.cpp"
$File "hl2\c_plasma_beam_node.cpp"
$File "hl2\c_prop_combine_ball.cpp"
$File "hl2\c_prop_combine_ball.h"
$File "episodic\c_prop_scalable.cpp"
$File "hl2\c_rotorwash.cpp"
$File "hl2\c_script_intro.cpp"
$File "$SRCDIR\game\shared\script_intro_shared.cpp"
$File "hl2\c_strider.cpp"
$File "hl2\c_te_concussiveexplosion.cpp"
$File "hl2\c_te_flare.cpp"
$File "hl2\c_thumper_dust.cpp"
$File "hl2\c_vehicle_airboat.cpp"
$File "hl2\c_vehicle_cannon.cpp"
$File "hl2\c_vehicle_crane.cpp"
$File "hl2\c_vehicle_crane.h"
$File "episodic\c_vehicle_jeep_episodic.cpp"
$File "hl2\c_vehicle_prisoner_pod.cpp"
$File "episodic\c_vort_charge_token.cpp"
$File "hl2\c_weapon__stubs_hl2.cpp"
$File "hl2\c_weapon_crossbow.cpp"
$File "episodic\c_weapon_hopwire.cpp"
$File "hl2\c_weapon_physcannon.cpp"
$File "hl2\c_weapon_stunstick.cpp"
$File "$SRCDIR\game\shared\hl2\citadel_effects_shared.h"
$File "hl2\clientmode_hlnormal.cpp"
$File "hl2\clientmode_hlnormal.h"
$File "death.cpp"
$File "$SRCDIR\game\shared\hl2\env_headcrabcanister_shared.cpp"
$File "$SRCDIR\game\shared\hl2\env_headcrabcanister_shared.h"
$File "$SRCDIR\game\shared\episodic\npc_advisor_shared.h"
$File "episodic\c_npc_advisor.cpp"
$File "episodic\episodic_screenspaceeffects.cpp"
$File "episodic\episodic_screenspaceeffects.h"
$File "episodic\flesh_internal_material_proxy.cpp"
$File "hl2\fx_antlion.cpp"
$File "hl2\fx_bugbait.cpp"
$File "hl2\fx_hl2_impacts.cpp"
$File "hl2\fx_hl2_tracers.cpp"
$File "hl2\hl2_clientmode.cpp"
$File "$SRCDIR\game\shared\hl2\hl2_gamerules.cpp"
$File "$SRCDIR\game\shared\hl2\hl2_gamerules.h"
$File "$SRCDIR\game\shared\hl2\hl2_shareddefs.h"
$File "$SRCDIR\game\shared\hl2\hl2_usermessages.cpp"
$File "$SRCDIR\game\shared\hl2\hl_gamemovement.cpp"
$File "$SRCDIR\game\shared\hl2\hl_gamemovement.h"
$File "hl2\hl_in_main.cpp"
$File "hl2\hl_prediction.cpp"
$File "hl2\hud_ammo.cpp"
$File "hl2\hud_battery.cpp"
$File "hl2\hud_blood.cpp"
$File "hl2\hud_credits.cpp"
$File "hl2\hud_damageindicator.cpp"
$File "hl2\hud_flashlight.cpp"
$File "hl2\hud_locator.cpp"
$File "hl2\hud_health.cpp"
$File "hl2\hud_poisondamageindicator.cpp"
$File "hud_posture.cpp"
$File "hl2\hud_quickinfo.cpp"
$File "hl2\hud_radar.cpp"
$File "hl2\hud_radar.h"
$File "hud_squadstatus.cpp"
$File "hl2\hud_suitpower.cpp"
$File "hl2\hud_suitpower.h"
$File "hl2\hud_weaponselection.cpp"
$File "hl2\hud_zoom.cpp"
$File "hl2\shieldproxy.cpp"
$File "$SRCDIR\game\shared\hl2\survival_gamerules.cpp"
$File "hl2\vgui_rootpanel_hl2.cpp"
$File "episodic\c_npc_puppet.cpp"
}
}
}

View file

@ -0,0 +1,304 @@
//-----------------------------------------------------------------------------
// SERVER_EPISODIC.VPC
//
// Project Script
//-----------------------------------------------------------------------------
$Macro SRCDIR "..\.."
$Macro GAMENAME "sdk2013ce"
$Include "$SRCDIR\game\server\server_base.vpc"
$Include "$SRCDIR\game\shared\shared_sdk2013CE.vpc"
$Configuration
{
$Compiler
{
$AdditionalIncludeDirectories "$BASE;$SRCDIR\game\shared\hl2;$SRCDIR\game\shared\episodic;.\hl2;.\episodic;$SRCDIR\game\shared\sdk2013ce;$SRCDIR\game\server\sdk2013ce"
$PreprocessorDefinitions "$BASE;HL2_DLL;HL2_EPISODIC;USES_SAVERESTORE;SDK2013CE;GLOWS_ENABLE"
}
}
$Project "Server (SDK2013CE)"
{
$Folder "Source Files"
{
$File "ai_eventresponse.cpp"
$File "ai_eventresponse.h"
$File "ai_relationship.cpp"
$File "base_gameinterface.cpp"
$File "basegrenade_concussion.cpp"
$File "basegrenade_contact.cpp"
$File "basegrenade_timed.cpp"
$File "grenadethrown.cpp"
$File "grenadethrown.h"
$File "h_cycler.cpp"
$File "h_cycler.h"
$File "logic_achievement.cpp"
$File "monstermaker.cpp"
$File "monstermaker.h"
$File "physics_bone_follower.h"
$File "$SRCDIR\game\shared\ragdoll_shared.h"
$File "$SRCDIR\game\shared\solidsetdefaults.h"
$File "$SRCDIR\game\shared\hl2\survival_gamerules.cpp"
$File "team_spawnpoint.cpp"
$File "team_spawnpoint.h"
$File "$SRCDIR\game\shared\touchlink.h"
$File "vehicle_choreo_generic.cpp"
$File "$SRCDIR\game\shared\vehicle_choreo_generic_shared.h"
$File "$SRCDIR\game\shared\weapon_parse_default.cpp"
$Folder "HL2 DLL"
{
$File "$SRCDIR\game\shared\episodic\achievements_ep1.cpp"
$File "$SRCDIR\game\shared\episodic\achievements_ep2.cpp"
$File "$SRCDIR\game\shared\episodic\achievements_epx.cpp"
$File "hl2\ai_allymanager.cpp"
$File "hl2\ai_behavior_actbusy.cpp"
$File "hl2\ai_behavior_actbusy.h"
$File "episodic\ai_behavior_alyx_injured.cpp"
$File "episodic\ai_behavior_alyx_injured.h"
$File "hl2\ai_behavior_functank.cpp"
$File "hl2\ai_behavior_functank.h"
$File "hl2\ai_behavior_holster.cpp"
$File "hl2\ai_behavior_holster.h"
$File "hl2\ai_behavior_operator.cpp"
$File "hl2\ai_behavior_operator.h"
$File "ai_behavior_passenger.cpp"
$File "ai_behavior_passenger.h"
$File "episodic\ai_behavior_passenger_companion.cpp"
$File "episodic\ai_behavior_passenger_companion.h"
$File "episodic\ai_behavior_passenger_zombie.cpp"
$File "episodic\ai_behavior_passenger_zombie.h"
$File "hl2\ai_behavior_police.cpp"
$File "hl2\ai_behavior_police.h"
$File "hl2\ai_goal_police.cpp"
$File "hl2\ai_goal_police.h"
$File "hl2\ai_interactions.h"
$File "hl2\ai_spotlight.cpp"
$File "hl2\ai_spotlight.h"
$File "hl2\antlion_dust.cpp"
$File "hl2\antlion_dust.h"
$File "hl2\antlion_maker.cpp"
$File "hl2\antlion_maker.h"
$File "hl2\ar2_explosion.cpp"
$File "hl2\ar2_explosion.h"
$File "basebludgeonweapon.cpp"
$File "basebludgeonweapon.h"
$File "hl2\basehlcombatweapon.cpp"
$File "hl2\basehlcombatweapon.h"
$File "$SRCDIR\game\shared\hl2\basehlcombatweapon_shared.cpp"
$File "$SRCDIR\game\shared\hl2\basehlcombatweapon_shared.h"
$File "hl2\cbasehelicopter.cpp"
$File "hl2\cbasehelicopter.h"
$File "hl2\cbasespriteprojectile.cpp"
$File "hl2\cbasespriteprojectile.h"
$File "hl2\citadel_effects.cpp"
$File "$SRCDIR\game\shared\hl2\citadel_effects_shared.h"
$File "hl2\combine_mine.cpp"
$File "hl2\combine_mine.h"
$File "hl2\energy_wave.h"
$File "hl2\env_alyxemp.cpp"
$File "$SRCDIR\game\shared\hl2\env_alyxemp_shared.h"
$File "hl2\env_headcrabcanister.cpp"
$File "$SRCDIR\game\shared\hl2\env_headcrabcanister_shared.cpp"
$File "$SRCDIR\game\shared\hl2\env_headcrabcanister_shared.h"
$File "hl2\env_speaker.cpp"
$File "hl2\env_starfield.cpp"
$File "hl2\Func_Monitor.cpp"
$File "hl2\func_recharge.cpp"
$File "hl2\func_tank.cpp"
$File "hl2\func_tank.h"
$File "hl2\grenade_ar2.cpp"
$File "hl2\grenade_ar2.h"
$File "hl2\grenade_bugbait.cpp"
$File "hl2\grenade_bugbait.h"
$File "hl2\grenade_frag.cpp"
$File "hl2\grenade_frag.h"
$File "hl2\grenade_spit.cpp"
$File "hl2\grenade_spit.h"
$File "hl2\hl2_ai_network.cpp"
$File "hl2\hl2_client.cpp"
$File "hl2\hl2_eventlog.cpp"
$File "$SRCDIR\game\shared\hl2\hl2_gamerules.cpp"
$File "$SRCDIR\game\shared\hl2\hl2_gamerules.h"
$File "hl2\hl2_player.cpp"
$File "hl2\hl2_player.h"
$File "$SRCDIR\game\shared\hl2\hl2_player_shared.h"
$File "hl2\hl2_playerlocaldata.cpp"
$File "hl2\hl2_playerlocaldata.h"
$File "$SRCDIR\game\shared\hl2\hl2_shareddefs.h"
$File "hl2\hl2_triggers.cpp"
$File "$SRCDIR\game\shared\hl2\hl2_usermessages.cpp"
$File "$SRCDIR\game\shared\hl2\hl_gamemovement.cpp"
$File "$SRCDIR\game\shared\hl2\hl_gamemovement.h"
$File "$SRCDIR\game\shared\hl2\hl_movedata.h"
$File "hl2\hl_playermove.cpp"
$File "hl2\info_darknessmode_lightsource.cpp"
$File "hl2\info_darknessmode_lightsource.h"
$File "hl2\info_teleporter_countdown.cpp"
$File "hl2\item_ammo.cpp"
$File "hl2\item_battery.cpp"
$File "hl2\item_dynamic_resupply.cpp"
$File "hl2\item_dynamic_resupply.h"
$File "hl2\item_healthkit.cpp"
$File "hl2\item_itemcrate.cpp"
$File "hl2\item_suit.cpp"
$File "hl2\look_door.cpp"
$File "hl2\monster_dummy.cpp"
$File "$SRCDIR\game\shared\episodic\npc_advisor_shared.h"
$File "episodic\npc_advisor.cpp"
$File "hl2\npc_alyx_episodic.cpp"
$File "hl2\npc_alyx_episodic.h"
$File "hl2\npc_antlion.cpp"
$File "hl2\npc_antlion.h"
$File "hl2\npc_antlionguard.cpp"
$File "hl2\npc_antliongrub.cpp"
$File "hl2\npc_apcdriver.cpp"
$File "hl2\npc_attackchopper.cpp"
$File "hl2\npc_attackchopper.h"
$File "hl2\npc_barnacle.cpp"
$File "hl2\npc_barnacle.h"
$File "hl2\npc_barney.cpp"
$File "hl2\npc_basescanner.cpp"
$File "hl2\npc_basescanner.h"
$File "hl2\npc_BaseZombie.cpp"
$File "hl2\npc_BaseZombie.h"
$File "hl2\npc_breen.cpp"
$File "hl2\npc_bullseye.cpp"
$File "hl2\npc_bullseye.h"
$File "hl2\npc_citizen17.cpp"
$File "hl2\npc_citizen17.h"
$File "episodic\npc_combine_cannon.cpp"
$File "hl2\npc_combine.cpp"
$File "hl2\npc_combine.h"
$File "hl2\npc_combinecamera.cpp"
$File "hl2\npc_combinedropship.cpp"
$File "hl2\npc_combinegunship.cpp"
$File "hl2\npc_combines.cpp"
$File "hl2\npc_combines.h"
$File "hl2\npc_cranedriver.cpp"
$File "hl2\npc_crow.cpp"
$File "hl2\npc_crow.h"
$File "hl2\npc_dog.cpp"
$File "hl2\npc_eli.cpp"
$File "hl2\npc_enemyfinder.cpp"
$File "hl2\npc_fastzombie.cpp"
$File "hl2\npc_fisherman.cpp"
$File "hl2\npc_gman.cpp"
$File "hl2\npc_headcrab.cpp"
$File "hl2\npc_headcrab.h"
$File "episodic\npc_hunter.cpp"
$File "episodic\npc_hunter.h"
$File "hl2\npc_ichthyosaur.cpp"
$File "hl2\npc_kleiner.cpp"
$File "hl2\npc_launcher.cpp"
$File "episodic\npc_magnusson.cpp"
$File "hl2\npc_manhack.cpp"
$File "hl2\npc_manhack.h"
$File "hl2\npc_metropolice.cpp"
$File "hl2\npc_metropolice.h"
$File "hl2\npc_monk.cpp"
$File "hl2\npc_mossman.cpp"
$File "hl2\npc_playercompanion.cpp"
$File "hl2\npc_playercompanion.h"
$File "hl2\npc_PoisonZombie.cpp"
$File "hl2\npc_rollermine.cpp"
$File "hl2\npc_rollermine.h"
$File "hl2\npc_scanner.cpp"
$File "hl2\npc_scanner.h"
$File "hl2\npc_stalker.cpp"
$File "hl2\npc_stalker.h"
$File "hl2\npc_strider.cpp"
$File "hl2\npc_strider.h"
$File "npc_talker.cpp"
$File "npc_talker.h"
$File "hl2\npc_turret_ceiling.cpp"
$File "hl2\npc_turret_floor.cpp"
$File "hl2\npc_turret_ground.cpp"
$File "hl2\npc_vortigaunt_episodic.cpp"
$File "hl2\npc_vortigaunt_episodic.h"
$File "hl2\npc_zombie.cpp"
$File "hl2\npc_zombine.cpp"
$File "hl2\point_apc_controller.cpp"
$File "hl2\prop_combine_ball.cpp"
$File "hl2\prop_combine_ball.h"
$File "episodic\prop_scalable.cpp"
$File "hl2\prop_thumper.cpp"
$File "hl2\proto_sniper.cpp"
$File "hl2\rotorwash.cpp"
$File "hl2\rotorwash.h"
$File "hl2\script_intro.cpp"
$File "hl2\script_intro.h"
$File "$SRCDIR\game\shared\script_intro_shared.cpp"
$File "hl2\vehicle_airboat.cpp"
$File "hl2\vehicle_apc.h"
$File "hl2\vehicle_cannon.cpp"
$File "hl2\vehicle_crane.cpp"
$File "hl2\vehicle_crane.h"
$File "hl2\vehicle_jeep.cpp"
$File "episodic\vehicle_jeep_episodic.cpp"
$File "episodic\vehicle_jeep_episodic.h"
$File "hl2\vehicle_prisoner_pod.cpp"
$File "hl2\vehicle_viewcontroller.cpp"
$File "hl2\weapon_357.cpp"
$File "hl2\weapon_alyxgun.cpp"
$File "hl2\weapon_alyxgun.h"
$File "hl2\weapon_annabelle.cpp"
$File "hl2\weapon_ar2.cpp"
$File "hl2\weapon_ar2.h"
$File "hl2\weapon_bugbait.cpp"
$File "hl2\weapon_citizenpackage.cpp"
$File "hl2\weapon_citizenpackage.h"
$File "hl2\weapon_crossbow.cpp"
$File "hl2\weapon_crowbar.cpp"
$File "hl2\weapon_crowbar.h"
$File "weapon_cubemap.cpp"
$File "hl2\weapon_frag.cpp"
$File "hl2\weapon_physcannon.cpp"
$File "hl2\weapon_physcannon.h"
$File "hl2\weapon_pistol.cpp"
$File "hl2\weapon_rpg.cpp"
$File "hl2\weapon_rpg.h"
$File "hl2\weapon_shotgun.cpp"
$File "hl2\weapon_smg1.cpp"
$File "episodic\weapon_striderbuster.cpp"
$File "episodic\weapon_striderbuster.h"
$File "hl2\weapon_stunstick.cpp"
$File "hl2\weapon_stunstick.h"
$File "episodic\ep1_gamestats.h"
$File "episodic\ep2_gamestats.h"
$File "episodic\ep1_gamestats.cpp" \
"episodic\ep2_gamestats.cpp"
{
$Configuration
{
$Compiler
{
$Create/UsePrecompiledHeader "Not Using Precompiled Headers"
}
}
}
$File "hl2\func_bulletshield.cpp"
$File "hl2\func_bulletshield.h"
$File "episodic\npc_puppet.cpp"
$Folder "unused"
{
$File "hl2\grenade_beam.cpp"
$File "hl2\grenade_beam.h"
$File "hl2\grenade_homer.cpp"
$File "hl2\grenade_homer.h"
$File "hl2\grenade_pathfollower.cpp"
$File "hl2\grenade_pathfollower.h"
$File "hl2\npc_missiledefense.cpp"
$File "hl2\vehicle_apc.cpp"
$File "hl2\weapon_cguard.cpp"
$File "hl2\weapon_flaregun.cpp"
$File "hl2\weapon_flaregun.h"
}
}
}
}

View file

@ -0,0 +1,13 @@
$Project
{
$Folder "Source Files"
{
$Folder "sdk2013ce"
{
//$File "$SRCDIR\game\shared\sdk2013ce\sdk2013ce_cvars.cpp"
//$File "$SRCDIR\game\shared\sdk2013ce\sdk2013ce_cvars.h"
}
}
}

View file

@ -12,6 +12,7 @@ $Games
{
"EPISODIC"
"HL2"
"SDK2013CE"
}
// Makes the VPC scripts work in the SDK's context

View file

@ -8,6 +8,19 @@
// Group definitions //
///////////////////////
$Group "sdk2013ce"
{
"client"
"server"
"game_shader_dx9"
"tier1"
"vgui_controls"
"mathlib"
"raytrace"
}
$Group "gamedlls"
{
"client"

View file

@ -15,10 +15,10 @@ $Project "captioncompiler"
$Project "client"
{
"game\client\client_hl2.vpc" [($WIN32||$X360||$POSIX) && $HL2]
"game\client\client_episodic.vpc" [($WIN32||$X360||$POSIX) && $EPISODIC]
//"game\client\client_hl2.vpc" [($WIN32||$X360||$POSIX) && $HL2]
//"game\client\client_episodic.vpc" [($WIN32||$X360||$POSIX) && $EPISODIC]
"game\client\client_sdk2013CE.vpc" [($WIN32||$X360||$POSIX)]
}
$Project "fgdlib"
{
"fgdlib\fgdlib.vpc" [$WIN32]
@ -26,8 +26,9 @@ $Project "fgdlib"
$Project "game_shader_dx9"
{
"materialsystem\stdshaders\game_shader_dx9_hl2.vpc" [$HL2]
"materialsystem\stdshaders\game_shader_dx9_episodic.vpc" [$EPISODIC]
//"materialsystem\stdshaders\game_shader_dx9_hl2.vpc" [$HL2]
//"materialsystem\stdshaders\game_shader_dx9_episodic.vpc" [$EPISODIC]
//"materialsystem\stdshaders\game_shader_dx9_sdk2013CE.vpc"
}
$Project "glview"
@ -42,8 +43,9 @@ $Project "height2normal"
$Project "server"
{
"game\server\server_hl2.vpc" [($WIN32||$X360||$POSIX) && $HL2]
"game\server\server_episodic.vpc" [($WIN32||$X360||$POSIX) && $EPISODIC]
//"game\server\server_hl2.vpc" [($WIN32||$X360||$POSIX) && $HL2]
//"game\server\server_episodic.vpc" [($WIN32||$X360||$POSIX) && $EPISODIC]
"game\server\server_sdk2013CE.vpc" [($WIN32||$X360||$POSIX)]
}
$Project "mathlib"