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.
111 lines
2.9 KiB
111 lines
2.9 KiB
//-----------------------------------------------------------------------------
|
|
// TOGL.VPC
|
|
//
|
|
// Project Script
|
|
//-----------------------------------------------------------------------------
|
|
|
|
$Macro SRCDIR ".."
|
|
$Macro OUTBINDIR "$SRCDIR\..\game\bin"
|
|
$Macro OUTBINNAME "togl"
|
|
$Macro TOGL_SRCDIR "$SRCDIR/togl"
|
|
$Macro TOGL_INCDIR "$SRCDIR/public/togl"
|
|
|
|
|
|
$include "$SRCDIR\vpc_scripts\source_dll_base.vpc"
|
|
|
|
// Common Configuration
|
|
$Configuration
|
|
{
|
|
$Compiler
|
|
{
|
|
$AdditionalIncludeDirectories "$BASE;..\"
|
|
$PreprocessorDefinitions "$BASE;TOGL_DLL_EXPORT;PROTECTED_THINGS_ENABLE;strncpy=use_Q_strncpy_instead;_snprintf=use_Q_snprintf_instead" [!$OSXALL]
|
|
$PreprocessorDefinitions "$BASE;TOGL_DLL_EXPORT" [$OSXALL]
|
|
}
|
|
|
|
$Linker
|
|
{
|
|
$ImportLibrary "$LIBPUBLIC\$_IMPLIB_PREFIX$OUTBINNAME$_IMPLIB_EXT" [!$X360]
|
|
}
|
|
|
|
$Linker [$OSXALL]
|
|
{
|
|
$SystemFrameworks "Carbon;OpenGL;Quartz;Cocoa;IOKit"
|
|
}
|
|
|
|
//$Linker [$LINUXALL]
|
|
//{
|
|
// $GCC_ExtraLinkerFlags "-L$SRCDIR/thirdparty/sdl/build/.libs"
|
|
// $SystemLibraries "SDL2"
|
|
//}
|
|
|
|
$General [$POSIX]
|
|
{
|
|
$GameOutputFile "$OUTBINDIR/$_IMPLIB_PREFIX$OUTBINNAME$_DLL_EXT"
|
|
}
|
|
|
|
$PreLinkEvent [$WINDOWS]
|
|
{
|
|
$CommandLine "call $SRCDIR\vpc_scripts\valve_p4_edit.cmd $LIBPUBLIC\$(TargetName).lib $SRCDIR" "\n" \
|
|
"$BASE"
|
|
}
|
|
}
|
|
|
|
$Project "togl"
|
|
{
|
|
$Folder "Source Files" [$GL]
|
|
{
|
|
$File "$TOGL_SRCDIR/dx9asmtogl2.cpp"
|
|
$File "$TOGL_SRCDIR/dxabstract.cpp"
|
|
$File "$TOGL_SRCDIR/glentrypoints.cpp"
|
|
$File "$TOGL_SRCDIR/glmgr.cpp"
|
|
$File "$TOGL_SRCDIR/glmgrbasics.cpp"
|
|
$File "$TOGL_SRCDIR/glmgrcocoa.mm" [$OSXALL]
|
|
$File "$TOGL_SRCDIR/intelglmallocworkaround.cpp" [$OSXALL]
|
|
$File "$TOGL_SRCDIR/mach_override.c" [$OSXALL]
|
|
$File "$TOGL_SRCDIR/cglmtex.cpp"
|
|
$File "$TOGL_SRCDIR/cglmfbo.cpp"
|
|
$File "$TOGL_SRCDIR/cglmprogram.cpp"
|
|
$File "$TOGL_SRCDIR/cglmbuffer.cpp"
|
|
$File "$TOGL_SRCDIR/cglmquery.cpp"
|
|
}
|
|
|
|
$Folder "DirectX Header Files" [$WINDOWS && !$GL]
|
|
{
|
|
}
|
|
|
|
$Folder "Header Files" [$GL]
|
|
{
|
|
$File "$TOGL_SRCDIR/dx9asmtogl2.h"
|
|
$File "$TOGL_SRCDIR/glmgr_flush.inl"
|
|
$File "$TOGL_SRCDIR/intelglmallocworkaround.h" [$OSXALL]
|
|
$File "$TOGL_SRCDIR/mach_override.h" [$OSXALL]
|
|
}
|
|
|
|
$Folder "Public Header Files" [$GL]
|
|
{
|
|
$File "$SRCDIR/public/togl/rendermechanism.h"
|
|
$File "$TOGL_INCDIR/dxabstract.h"
|
|
$File "$TOGL_INCDIR/dxabstract_types.h"
|
|
$File "$TOGL_INCDIR/glbase.h"
|
|
$File "$TOGL_INCDIR/glentrypoints.h"
|
|
$File "$TOGL_INCDIR/glmgr.h"
|
|
$File "$TOGL_INCDIR/glmdebug.h"
|
|
$File "$TOGL_INCDIR/glmgrbasics.h"
|
|
$File "$TOGL_INCDIR/glmgrext.h"
|
|
$File "$TOGL_INCDIR/glmdisplay.h"
|
|
$File "$TOGL_INCDIR/glmdisplaydb.h"
|
|
$File "$TOGL_INCDIR/glfuncs.h"
|
|
$File "$TOGL_INCDIR/cglmtex.h"
|
|
$File "$TOGL_INCDIR/cglmfbo.h"
|
|
$File "$TOGL_INCDIR/cglmprogram.h"
|
|
$File "$TOGL_INCDIR/cglmbuffer.h"
|
|
$File "$TOGL_INCDIR/cglmquery.h"
|
|
}
|
|
|
|
$Folder "Link Libraries"
|
|
{
|
|
$Lib tier2
|
|
$Lib mathlib
|
|
}
|
|
}
|