Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1001 B

  1. //-----------------------------------------------------------------------------
  2. // UNITLIB.VPC
  3. //
  4. // Project Script
  5. //-----------------------------------------------------------------------------
  6. $Macro SRCDIR ".."
  7. $Macro OUTBINDIR "$SRCDIR\..\game\bin"
  8. $Include "$SRCDIR\vpc_scripts\source_dll_base.vpc"
  9. $Linux
  10. {
  11. $BuildForLinux 1
  12. }
  13. $Configuration
  14. {
  15. $Compiler
  16. {
  17. $PreprocessorDefinitions "$BASE;fopen=dont_use_fopen;UNITLIB_DLL_EXPORT"
  18. }
  19. $PreLinkEvent [$WIN32]
  20. {
  21. $CommandLine "call $SRCDIR\vpc_scripts\valve_p4_edit.cmd $SRCDIR\lib\public\$(TargetName).lib $SRCDIR" "\n" \
  22. "call $SRCDIR\vpc_scripts\valve_p4_edit.cmd $SRCDIR\lib\public\$(TargetName).exp $SRCDIR" "\n" \
  23. "$BASE"
  24. }
  25. $Linker
  26. {
  27. $AdditionalDependencies "$BASE odbc32.lib odbccp32.lib"
  28. $ImportLibrary "$SRCDIR\lib\public\$(TargetName).lib"
  29. }
  30. }
  31. $Project "Unitlib"
  32. {
  33. $Folder "Source Files"
  34. {
  35. $File "unitlib.cpp"
  36. }
  37. $Folder "Header Files"
  38. {
  39. $File "$SRCDIR\public\unitlib\UnitLib.h"
  40. }
  41. }