Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a bare-bones example of a Doomsday plugin, as requested by ange…
…liss. All it does is output a message to the Doomsday console during startup.
- Loading branch information
danij
committed
Oct 22, 2007
1 parent
319f12d
commit 985e902
Showing
7 changed files
with
789 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
./../../plugins/exampleplugin/src/example.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,232 @@ | ||
<?xml version="1.0" encoding="Windows-1252"?> | ||
<VisualStudioProject | ||
ProjectType="Visual C++" | ||
Version="8.00" | ||
Name="dpExample" | ||
ProjectGUID="{DC664B00-A393-4B3C-A847-C192E29D053E}" | ||
RootNamespace="dpExample" | ||
> | ||
<Platforms> | ||
<Platform | ||
Name="Win32" | ||
/> | ||
</Platforms> | ||
<ToolFiles> | ||
</ToolFiles> | ||
<Configurations> | ||
<Configuration | ||
Name="Release|Win32" | ||
OutputDirectory="./Bin/Release" | ||
IntermediateDirectory="./Obj/Release/dpExample" | ||
ConfigurationType="2" | ||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops" | ||
UseOfMFC="0" | ||
ATLMinimizesCRunTimeLibraryUsage="false" | ||
CharacterSet="2" | ||
> | ||
<Tool | ||
Name="VCPreBuildEventTool" | ||
/> | ||
<Tool | ||
Name="VCCustomBuildTool" | ||
/> | ||
<Tool | ||
Name="VCXMLDataGeneratorTool" | ||
/> | ||
<Tool | ||
Name="VCWebServiceProxyGeneratorTool" | ||
/> | ||
<Tool | ||
Name="VCMIDLTool" | ||
PreprocessorDefinitions="NDEBUG" | ||
MkTypLibCompatible="true" | ||
SuppressStartupBanner="true" | ||
TargetEnvironment="1" | ||
TypeLibraryName=".\./Bin/Release/dpExample.tlb" | ||
/> | ||
<Tool | ||
Name="VCCLCompilerTool" | ||
InlineFunctionExpansion="1" | ||
AdditionalIncludeDirectories="..\..\..\engine\api;" | ||
PreprocessorDefinitions="EXAMPLE_PLUGIN;WIN32;NDEBUG;_WINDOWS;_USRDLL;DPEXAMPLE_EXPORTS" | ||
StringPooling="true" | ||
RuntimeLibrary="0" | ||
EnableFunctionLevelLinking="true" | ||
UsePrecompiledHeader="0" | ||
PrecompiledHeaderFile=".\./Obj/Release/dpExample/dpExample.pch" | ||
AssemblerListingLocation=".\./Obj/Release/dpExample/" | ||
ObjectFile=".\./Obj/Release/dpExample/" | ||
ProgramDataBaseFileName=".\./Obj/Release/dpExample/" | ||
WarningLevel="3" | ||
SuppressStartupBanner="true" | ||
CallingConvention="0" | ||
CompileAs="0" | ||
/> | ||
<Tool | ||
Name="VCManagedResourceCompilerTool" | ||
/> | ||
<Tool | ||
Name="VCResourceCompilerTool" | ||
PreprocessorDefinitions="NDEBUG" | ||
Culture="1035" | ||
/> | ||
<Tool | ||
Name="VCPreLinkEventTool" | ||
/> | ||
<Tool | ||
Name="VCLinkerTool" | ||
AdditionalOptions="/MACHINE:I386" | ||
AdditionalDependencies="./bin/release/Doomsday.lib" | ||
OutputFile=".\./Bin/Release/dpExample.dll" | ||
LinkIncremental="1" | ||
SuppressStartupBanner="true" | ||
ProgramDatabaseFile=".\./Bin/Release/dpExample.pdb" | ||
ImportLibrary=".\./Bin/Release/dpExample.lib" | ||
/> | ||
<Tool | ||
Name="VCALinkTool" | ||
/> | ||
<Tool | ||
Name="VCManifestTool" | ||
/> | ||
<Tool | ||
Name="VCXDCMakeTool" | ||
/> | ||
<Tool | ||
Name="VCBscMakeTool" | ||
/> | ||
<Tool | ||
Name="VCFxCopTool" | ||
/> | ||
<Tool | ||
Name="VCAppVerifierTool" | ||
/> | ||
<Tool | ||
Name="VCWebDeploymentTool" | ||
/> | ||
<Tool | ||
Name="VCPostBuildEventTool" | ||
/> | ||
</Configuration> | ||
<Configuration | ||
Name="Debug|Win32" | ||
OutputDirectory="./Bin/Debug" | ||
IntermediateDirectory="./Obj/Debug/dpExample" | ||
ConfigurationType="2" | ||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops" | ||
UseOfMFC="0" | ||
ATLMinimizesCRunTimeLibraryUsage="false" | ||
CharacterSet="2" | ||
> | ||
<Tool | ||
Name="VCPreBuildEventTool" | ||
/> | ||
<Tool | ||
Name="VCCustomBuildTool" | ||
/> | ||
<Tool | ||
Name="VCXMLDataGeneratorTool" | ||
/> | ||
<Tool | ||
Name="VCWebServiceProxyGeneratorTool" | ||
/> | ||
<Tool | ||
Name="VCMIDLTool" | ||
PreprocessorDefinitions="_DEBUG" | ||
MkTypLibCompatible="true" | ||
SuppressStartupBanner="true" | ||
TargetEnvironment="1" | ||
TypeLibraryName="./Bin/Debug/dpExample.tlb" | ||
/> | ||
<Tool | ||
Name="VCCLCompilerTool" | ||
Optimization="0" | ||
AdditionalIncludeDirectories="..\..\..\engine\api;" | ||
PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;EXAMPLE_PLUGIN;WIN32;_DEBUG;_WINDOWS;_USRDLL;DPEXAMPLE_EXPORTS" | ||
BasicRuntimeChecks="3" | ||
RuntimeLibrary="1" | ||
UsePrecompiledHeader="0" | ||
PrecompiledHeaderFile="./Obj/Debug/dpExample/dpExample.pch" | ||
AssemblerListingLocation="./Obj/Debug/dpExample/" | ||
ObjectFile="./Obj/Debug/dpExample/" | ||
ProgramDataBaseFileName="./Obj/Debug/dpExample/" | ||
WarningLevel="3" | ||
SuppressStartupBanner="true" | ||
DebugInformationFormat="4" | ||
CallingConvention="0" | ||
CompileAs="0" | ||
/> | ||
<Tool | ||
Name="VCManagedResourceCompilerTool" | ||
/> | ||
<Tool | ||
Name="VCResourceCompilerTool" | ||
PreprocessorDefinitions="_DEBUG" | ||
Culture="1035" | ||
/> | ||
<Tool | ||
Name="VCPreLinkEventTool" | ||
/> | ||
<Tool | ||
Name="VCLinkerTool" | ||
AdditionalOptions="/MACHINE:I386" | ||
AdditionalDependencies="./bin/debug/doomsday.lib" | ||
OutputFile="./Bin/Debug/dpExample.dll" | ||
LinkIncremental="2" | ||
SuppressStartupBanner="true" | ||
GenerateDebugInformation="true" | ||
ProgramDatabaseFile="./Bin/Debug/dpExample.pdb" | ||
ImportLibrary="./Bin/Debug/dpExample.lib" | ||
/> | ||
<Tool | ||
Name="VCALinkTool" | ||
/> | ||
<Tool | ||
Name="VCManifestTool" | ||
/> | ||
<Tool | ||
Name="VCXDCMakeTool" | ||
/> | ||
<Tool | ||
Name="VCBscMakeTool" | ||
/> | ||
<Tool | ||
Name="VCFxCopTool" | ||
/> | ||
<Tool | ||
Name="VCAppVerifierTool" | ||
/> | ||
<Tool | ||
Name="VCWebDeploymentTool" | ||
/> | ||
<Tool | ||
Name="VCPostBuildEventTool" | ||
/> | ||
</Configuration> | ||
</Configurations> | ||
<References> | ||
</References> | ||
<Files> | ||
<Filter | ||
Name="Source Files" | ||
Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" | ||
> | ||
<File | ||
RelativePath="..\..\..\plugins\exampleplugin\src\example.c" | ||
> | ||
</File> | ||
</Filter> | ||
<Filter | ||
Name="Header Files" | ||
Filter="h;hpp;hxx;hm;inl" | ||
> | ||
</Filter> | ||
<Filter | ||
Name="Resource Files" | ||
Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" | ||
> | ||
</Filter> | ||
</Files> | ||
<Globals> | ||
</Globals> | ||
</VisualStudioProject> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
## deng build scripts. | ||
## Copyright © 2006 - 2007 Jamie Jones <jamie_jones_au@yahoo.com.au> | ||
## Copyright © 2007 Daniel Swanson <danij@dengine.net> | ||
## This file is licensed under the GNU GPLv3 or any later versions, | ||
## | ||
## the deng build scripts is free software; you can redistribute it and/or | ||
## modify it under the terms of the GNU General Public License as published by | ||
## the Free Software Foundation; either version 3 of the License, or | ||
## (at your option) any later version. | ||
## | ||
## the deng build scripts is distributed in the hope that it will be useful, | ||
## but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
## GNU General Public License for more details. | ||
## | ||
## You should have received a copy of the GNU General Public License | ||
## along with the deng build scripts; if not, write to the Free Software | ||
## Foundation, Inc., 51 Franklin St, Fifth Floor, | ||
## Boston, MA 02110-1301 USA | ||
## | ||
################################################################################ | ||
######################## Example Plugin ####################################### | ||
|
||
ADD_DEFINITIONS (-EXAMPLE_PLUGIN ) | ||
|
||
FILE(GLOB EXAMPLE_SOURCES src/*.c) | ||
|
||
ADD_LIBRARY (dpexample SHARED ${EXAMPLE_SOURCES} ) | ||
|
||
IF (APPLE) | ||
SET_TARGET_PROPERTIES (dpexample PROPERTIES COMPILE_FLAGS "${CMAKE_C_FLAGS} -bundle -bundle_loader doomsday") | ||
ENDIF (APPLE) | ||
################################################################################ | ||
######################## Install Targets ###################################### | ||
INSTALL(TARGETS dpexample | ||
RUNTIME DESTINATION ${bindir} | ||
LIBRARY DESTINATION ${libdir} ) |
Oops, something went wrong.