# HG changeset patch # User Gareth Stockwell <gareth.stockwell@accenture.com> # Date 1285326423 -3600 # Node ID 7fc47a6656f36e96e360bce8b877d660dfbf7a37 # Parent 19c4533e15672f3566a9619a4b7a3b20bca368ef Removed syborg-graphicswrapper model library This has been moved to the adapt/graphics.simulator package - see changeset 563aa0c4cea3. diff -r 19c4533e1567 -r 7fc47a6656f3 symbian-qemu-0.9.1-12/model-libraries/Makefile --- a/symbian-qemu-0.9.1-12/model-libraries/Makefile Fri Sep 24 13:30:20 2010 +0100 +++ b/symbian-qemu-0.9.1-12/model-libraries/Makefile Fri Sep 24 12:07:03 2010 +0100 @@ -14,7 +14,7 @@ .phony: all clean install distclean # Append new model library dirs here. -subdirs := nvmemmory syborg-graphicswrapper +subdirs := nvmemmory all clean install distclean: for d in $(subdirs); do $(MAKE) -C $$d $@; done diff -r 19c4533e1567 -r 7fc47a6656f3 symbian-qemu-0.9.1-12/model-libraries/syborg-graphicswrapper/Makefile --- a/symbian-qemu-0.9.1-12/model-libraries/syborg-graphicswrapper/Makefile Fri Sep 24 13:30:20 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ -# Copyright (c) 2010 Symbian Foundation. -# All rights reserved. -# This component and the accompanying materials are made available -# under the terms of the License "Eclipse Public License v1.0" -# which accompanies this distribution, and is available -# at the URL "http://www.eclipse.org/legal/epl-v10.html". -# -# Description: -# Toplevel Makefile to build syborg-graphicswrapper library in either debug or release mode - -.phony: all clean install distclean - - -# Ensure DEBUG_LIBS is defined to make a debug build -ifneq ($(DEBUG_LIBS),) -build_dir=Debug -else -build_dir=Release -endif - -all clean install distclean: - $(MAKE) -C $(build_dir) $@ -f ../target.mak - - diff -r 19c4533e1567 -r 7fc47a6656f3 symbian-qemu-0.9.1-12/model-libraries/syborg-graphicswrapper/ReadMe.txt --- a/symbian-qemu-0.9.1-12/model-libraries/syborg-graphicswrapper/ReadMe.txt Fri Sep 24 13:30:20 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -======================================================================== - DYNAMIC LINK LIBRARY : syborg-graphicswrapper Project Overview -======================================================================== - -AppWizard has created this syborg-graphicswrapper DLL for you. - -This file contains a summary of what you will find in each of the files that -make up your syborg-graphicswrapper application. - -syborg-graphicswrapper.vcproj - This is the main project file for VC++ projects generated using an Application Wizard. - It contains information about the version of Visual C++ that generated the file, and - information about the platforms, configurations, and project features selected with the - Application Wizard. - -syborg-graphicswrapper.cpp - This is the main DLL source file. - -syborg-graphicswrapper.h - This file contains a class declaration. - -AssemblyInfo.cpp - Contains custom attributes for modifying assembly metadata. - -///////////////////////////////////////////////////////////////////////////// -Other notes: - -AppWizard uses "TODO:" to indicate parts of the source code you -should add to or customize. - -///////////////////////////////////////////////////////////////////////////// diff -r 19c4533e1567 -r 7fc47a6656f3 symbian-qemu-0.9.1-12/model-libraries/syborg-graphicswrapper/Release/BuildLog.htm Binary file symbian-qemu-0.9.1-12/model-libraries/syborg-graphicswrapper/Release/BuildLog.htm has changed diff -r 19c4533e1567 -r 7fc47a6656f3 symbian-qemu-0.9.1-12/model-libraries/syborg-graphicswrapper/Release/RCa04556 Binary file symbian-qemu-0.9.1-12/model-libraries/syborg-graphicswrapper/Release/RCa04556 has changed diff -r 19c4533e1567 -r 7fc47a6656f3 symbian-qemu-0.9.1-12/model-libraries/syborg-graphicswrapper/app.ico Binary file symbian-qemu-0.9.1-12/model-libraries/syborg-graphicswrapper/app.ico has changed diff -r 19c4533e1567 -r 7fc47a6656f3 symbian-qemu-0.9.1-12/model-libraries/syborg-graphicswrapper/syborg-graphicswrapper.cpp --- a/symbian-qemu-0.9.1-12/model-libraries/syborg-graphicswrapper/syborg-graphicswrapper.cpp Fri Sep 24 13:30:20 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,150 +0,0 @@ -// This is the main DLL file. - -#include "platformtypes.h" -#include <KhronosAPIWrapper.h> -#include <guestvideodriverinterfaceconstants.h> //Registers and enums -#include <platformthreading.h> //mutex -#include <graphicsvhwcallback.h> -#include "syborg-graphicswrapper.h" - -SyborgGraphicsWrapper::SyborgGraphicsWrapper() - { - } - -SyborgGraphicsWrapper::~SyborgGraphicsWrapper() - { - delete m_wrapper; - m_wrapper = 0; - - Psu::platform_release_semaphore(m_outputBufferSemaphore); - } - -int SyborgGraphicsWrapper::Reset( uint32_t *aGraphicsMemBase, uint32_t *aCommandMemBase ) - { - int ret = -1; - if ( m_wrapper ) - { - delete m_wrapper; - } - m_wrapper = NULL; - - uint8_t *cmd_buffer = (uint8_t *)aCommandMemBase; - uint8_t *frame_buffer = (uint8_t *)aGraphicsMemBase; - if( (cmd_buffer != NULL) && (frame_buffer != NULL) ) - { - m_wrapper = new KhronosAPIWrapper( (MGraphicsVHWCallback*)this, - frame_buffer, &cmd_buffer[VVHW_INPUT_BASE], &cmd_buffer[VVHW_OUTPUT_BASE] ); - //Reset synchronisation mechanisms - Psu::platform_release_semaphore(m_outputBufferSemaphore); - Psu::platform_create_semaphore(m_outputBufferSemaphore, 1, 1); - ret = 0; - } - else - { - ret = -1; - } - return ret; - } - -void SyborgGraphicsWrapper::LockOutputBuffer() - { - #ifdef KHRONOS_API_W_MULTITHREAD - Psu::platform_wait_for_signal(m_outputBufferSemaphore); - #endif - } - -void SyborgGraphicsWrapper::ReleaseOutputBuffer(){} - -void SyborgGraphicsWrapper::ProcessingDone(int i) - { - m_pythonCallBack( i ); - } - -extern "C" - { - SYBORG_GRAPHICSWRAPPER_API SyborgGraphicsWrapper* create_SyborgGraphicsWrapper() - { - return new SyborgGraphicsWrapper(); - } - SYBORG_GRAPHICSWRAPPER_API int initialize_SyborgGraphicsWrapper( SyborgGraphicsWrapper* aSyborgGraphicsWrapper ) - { - Psu::platform_create_semaphore(m_outputBufferSemaphore, 1, 1); - // Change to proper error handling - return 0; - } - - SYBORG_GRAPHICSWRAPPER_API int set_GraphicsCallBack( SyborgGraphicsWrapper* aSyborgGraphicsWrapper, int (*aGraphicsCallBack) (int) ) - { - m_pythonCallBack = aGraphicsCallBack; - // Change to proper error handling - return 0; - } - - SYBORG_GRAPHICSWRAPPER_API int reset_SyborgGraphicsWrapper( SyborgGraphicsWrapper* aSyborgGraphicsWrapper, uint32_t *aGraphicsMemBase, uint32_t *aCommandMemBase ) - { - return aSyborgGraphicsWrapper->Reset( aGraphicsMemBase, aCommandMemBase ); - } - - SYBORG_GRAPHICSWRAPPER_API uint32_t get_InputBufferTail( SyborgGraphicsWrapper* aSyborgGraphicsWrapper ) - { - return m_wrapper->InputBufferTail(); - } - SYBORG_GRAPHICSWRAPPER_API uint32_t get_InputBufferHead( SyborgGraphicsWrapper* aSyborgGraphicsWrapper ) - { - return m_wrapper->InputBufferHead( ); - } - SYBORG_GRAPHICSWRAPPER_API uint32_t get_InputBufferReadCount( SyborgGraphicsWrapper* aSyborgGraphicsWrapper ) - { - return m_wrapper->InputBufferReadCount( ); - } - SYBORG_GRAPHICSWRAPPER_API uint32_t get_InputBufferWriteCount( SyborgGraphicsWrapper* aSyborgGraphicsWrapper ) - { - return m_wrapper->InputBufferWriteCount( ); - } - SYBORG_GRAPHICSWRAPPER_API uint32_t get_InputMaxTailIndex( SyborgGraphicsWrapper* aSyborgGraphicsWrapper ) - { - return m_wrapper->InputMaxTailIndex( ); - } - SYBORG_GRAPHICSWRAPPER_API uint32_t get_cmd_memsize( void ) - { - return (VVI_PARAMETERS_INPUT_MEMORY_SIZE + - VVI_PARAMETERS_OUTPUT_MEMORY_SIZE); - } - SYBORG_GRAPHICSWRAPPER_API uint32_t get_framebuffer_memsize( void ) - { - return VVI_FRAMEBUFFER_MEMORY_SIZE; - } - - - SYBORG_GRAPHICSWRAPPER_API unsigned int execute_command( SyborgGraphicsWrapper* aSyborgGraphicsWrapper ) - { - return m_wrapper->Execute( ); - } - SYBORG_GRAPHICSWRAPPER_API void set_InputBufferTail( SyborgGraphicsWrapper* aSyborgGraphicsWrapper, uint32_t aVal ) - { - m_wrapper->SetInputBufferTail( aVal ); - } - SYBORG_GRAPHICSWRAPPER_API void set_InputBufferHead( SyborgGraphicsWrapper* aSyborgGraphicsWrapper, uint32_t aVal ) - { - m_wrapper->SetInputBufferHead( aVal ); - } - SYBORG_GRAPHICSWRAPPER_API void set_InputBufferReadCount( SyborgGraphicsWrapper* aSyborgGraphicsWrapper, uint32_t aVal ) - { - m_wrapper->SetInputBufferReadCount( aVal ); - } - SYBORG_GRAPHICSWRAPPER_API void set_InputBufferWriteCount( SyborgGraphicsWrapper* aSyborgGraphicsWrapper, uint32_t aVal ) - { - m_wrapper->SetInputBufferWriteCount( aVal ); - } - SYBORG_GRAPHICSWRAPPER_API void set_InputMaxTailIndex( SyborgGraphicsWrapper* aSyborgGraphicsWrapper, uint32_t aVal ) - { - m_wrapper->SetInputMaxTailIndex( aVal ); - } - SYBORG_GRAPHICSWRAPPER_API void signal_outputbuffer_semafore( SyborgGraphicsWrapper* aSyborgGraphicsWrapper ) - { - #ifdef KHRONOS_API_W_MULTITHREAD - Psu::platform_signal_semaphore(m_outputBufferSemaphore); - #endif - } - - } \ No newline at end of file diff -r 19c4533e1567 -r 7fc47a6656f3 symbian-qemu-0.9.1-12/model-libraries/syborg-graphicswrapper/syborg-graphicswrapper.h --- a/symbian-qemu-0.9.1-12/model-libraries/syborg-graphicswrapper/syborg-graphicswrapper.h Fri Sep 24 13:30:20 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,47 +0,0 @@ -#ifndef _SYBORG_GRAPHICSWRAPPER_H -#define _SYBORG_GRAPHICSWRAPPER_H - -#pragma once - -#ifdef WIN32 -#ifdef SYBORG_GRAPHICSWRAPPER_EXPORTS -#define SYBORG_GRAPHICSWRAPPER_API __declspec(dllexport) -#else -#define SYBORG_GRAPHICSWRAPPER_API __declspec(dllimport) -#endif -#else -#define SYBORG_GRAPHICSWRAPPER_API -#endif - -Psu::PLATFORM_SEMAPHORE_T m_outputBufferSemaphore; -int (*m_pythonCallBack)(int); -KhronosAPIWrapper* m_wrapper; - - -// Derived from GraphicsVirtualHW.lisa -static const int VVHW_BUFFER (0x3000000); -static const int VVHW_INPUT_BUFFER (0x1000000); -static const int VVHW_INPUT_BASE(0x0); -static const int VVHW_OUTPUT_BUFFER (0x1000000); -static const int VVHW_OUTPUT_BASE(0x1000000); -static const int VVHW_FRAME_BUFFER (0x1000000); -static const int VVHW_FRAME_BASE(0x2000000); - -class SyborgGraphicsWrapper : public MGraphicsVHWCallback - { - public: - - SyborgGraphicsWrapper(); - ~SyborgGraphicsWrapper(); - - int Reset( uint32_t *aGraphicsMemBase, uint32_t *aCommandMemBase ); - - virtual void LockOutputBuffer(); - virtual void ReleaseOutputBuffer(); - virtual void ProcessingDone(int i); - - private: - }; - - -#endif // _SYBORG_GRAPHICSWRAPPER_H \ No newline at end of file diff -r 19c4533e1567 -r 7fc47a6656f3 symbian-qemu-0.9.1-12/model-libraries/syborg-graphicswrapper/syborg-graphicswrapper.sln --- a/symbian-qemu-0.9.1-12/model-libraries/syborg-graphicswrapper/syborg-graphicswrapper.sln Fri Sep 24 13:30:20 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 9.00 -# Visual C++ Express 2005 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "syborg-graphicswrapper", "syborg-graphicswrapper.vcproj", "{93690C8A-9167-4A2D-9682-3E437A31347D}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Win32 = Debug|Win32 - Release|Win32 = Release|Win32 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {93690C8A-9167-4A2D-9682-3E437A31347D}.Debug|Win32.ActiveCfg = Debug|Win32 - {93690C8A-9167-4A2D-9682-3E437A31347D}.Debug|Win32.Build.0 = Debug|Win32 - {93690C8A-9167-4A2D-9682-3E437A31347D}.Release|Win32.ActiveCfg = Release|Win32 - {93690C8A-9167-4A2D-9682-3E437A31347D}.Release|Win32.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff -r 19c4533e1567 -r 7fc47a6656f3 symbian-qemu-0.9.1-12/model-libraries/syborg-graphicswrapper/syborg-graphicswrapper.suo Binary file symbian-qemu-0.9.1-12/model-libraries/syborg-graphicswrapper/syborg-graphicswrapper.suo has changed diff -r 19c4533e1567 -r 7fc47a6656f3 symbian-qemu-0.9.1-12/model-libraries/syborg-graphicswrapper/syborg-graphicswrapper.vcproj --- a/symbian-qemu-0.9.1-12/model-libraries/syborg-graphicswrapper/syborg-graphicswrapper.vcproj Fri Sep 24 13:30:20 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,220 +0,0 @@ -<?xml version="1.0" encoding="Windows-1252"?> -<VisualStudioProject - ProjectType="Visual C++" - Version="8.00" - Name="syborg-graphicswrapper" - ProjectGUID="{93690C8A-9167-4A2D-9682-3E437A31347D}" - RootNamespace="syborggraphicswrapper" - Keyword="ManagedCProj" - > - <Platforms> - <Platform - Name="Win32" - /> - </Platforms> - <ToolFiles> - </ToolFiles> - <Configurations> - <Configuration - Name="Debug|Win32" - OutputDirectory="$(SolutionDir)$(ConfigurationName)" - IntermediateDirectory="$(ConfigurationName)" - ConfigurationType="2" - CharacterSet="1" - ManagedExtensions="1" - > - <Tool - Name="VCPreBuildEventTool" - /> - <Tool - Name="VCCustomBuildTool" - /> - <Tool - Name="VCXMLDataGeneratorTool" - /> - <Tool - Name="VCWebServiceProxyGeneratorTool" - /> - <Tool - Name="VCMIDLTool" - /> - <Tool - Name="VCCLCompilerTool" - Optimization="0" - PreprocessorDefinitions="WIN32;_DEBUG" - RuntimeLibrary="3" - UsePrecompiledHeader="2" - WarningLevel="3" - DebugInformationFormat="3" - /> - <Tool - Name="VCManagedResourceCompilerTool" - /> - <Tool - Name="VCResourceCompilerTool" - /> - <Tool - Name="VCPreLinkEventTool" - /> - <Tool - Name="VCLinkerTool" - AdditionalDependencies="$(NoInherit)" - LinkIncremental="2" - GenerateDebugInformation="true" - AssemblyDebug="1" - TargetMachine="1" - /> - <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="Release|Win32" - OutputDirectory="$(SolutionDir)$(ConfigurationName)" - IntermediateDirectory="$(ConfigurationName)" - ConfigurationType="2" - CharacterSet="1" - ManagedExtensions="0" - WholeProgramOptimization="1" - > - <Tool - Name="VCPreBuildEventTool" - /> - <Tool - Name="VCCustomBuildTool" - /> - <Tool - Name="VCXMLDataGeneratorTool" - /> - <Tool - Name="VCWebServiceProxyGeneratorTool" - /> - <Tool - Name="VCMIDLTool" - /> - <Tool - Name="VCCLCompilerTool" - AdditionalIncludeDirectories=""$(SolutionDir)\..\..\..\..\..\adapt\graphics.simulator\hostsupport\hostthreadadapter\inc";"$(SolutionDir)\..\..\..\..\..\os\graphics\graphics_plat\guestvideodriver_api\inc";"$(SolutionDir)\..\..\..\..\..\adapt\graphics.simulator\holdingarea\serialization\Graphics\KhronosAPIWrapper\inc";"$(SolutionDir)\..\..\..\..\..\adapt\graphics.simulator\guestrendering\vghwserialiser\inc"" - PreprocessorDefinitions="WIN32;NDEBUG;_USRDLL;SYBORG_GRAPHICSWRAPPER_EXPORTS;WIN32_LEAN_AND_MEAN" - RuntimeLibrary="2" - UsePrecompiledHeader="0" - WarningLevel="3" - DebugInformationFormat="3" - /> - <Tool - Name="VCManagedResourceCompilerTool" - /> - <Tool - Name="VCResourceCompilerTool" - /> - <Tool - Name="VCPreLinkEventTool" - /> - <Tool - Name="VCLinkerTool" - AdditionalDependencies="hostthreadadapter.lib KhronosApiWrapper.lib" - LinkIncremental="1" - AdditionalLibraryDirectories=""$(SolutionDir)\..\..\..\..\..\adapt\graphics.simulator\holdingarea\lib"" - GenerateDebugInformation="true" - TargetMachine="1" - /> - <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> - <AssemblyReference - RelativePath="System.dll" - AssemblyName="System, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL" - /> - <AssemblyReference - RelativePath="System.Data.dll" - AssemblyName="System.Data, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=x86" - /> - <AssemblyReference - RelativePath="System.XML.dll" - AssemblyName="System.Xml, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL" - /> - </References> - <Files> - <Filter - Name="Source Files" - Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" - UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" - > - <File - RelativePath=".\syborg-graphicswrapper.cpp" - > - </File> - </Filter> - <Filter - Name="Header Files" - Filter="h;hpp;hxx;hm;inl;inc;xsd" - UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" - > - <File - RelativePath=".\syborg-graphicswrapper.h" - > - </File> - </Filter> - <Filter - Name="Resource Files" - Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav" - UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}" - > - <File - RelativePath=".\app.ico" - > - </File> - </Filter> - <File - RelativePath=".\ReadMe.txt" - > - </File> - </Files> - <Globals> - </Globals> -</VisualStudioProject> diff -r 19c4533e1567 -r 7fc47a6656f3 symbian-qemu-0.9.1-12/model-libraries/syborg-graphicswrapper/syborg-graphicswrapper.vcproj.NOE.jahyvone.user --- a/symbian-qemu-0.9.1-12/model-libraries/syborg-graphicswrapper/syborg-graphicswrapper.vcproj.NOE.jahyvone.user Fri Sep 24 13:30:20 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="Windows-1252"?> -<VisualStudioUserFile - ProjectType="Visual C++" - Version="8.00" - ShowAllFiles="false" - > - <Configurations> - <Configuration - Name="Debug|Win32" - > - <DebugSettings - Command="" - WorkingDirectory="" - CommandArguments="" - Attach="false" - DebuggerType="3" - Remote="1" - RemoteMachine="4FIL49437" - RemoteCommand="" - HttpUrl="" - PDBPath="" - SQLDebugging="" - Environment="" - EnvironmentMerge="true" - DebuggerFlavor="" - MPIRunCommand="" - MPIRunArguments="" - MPIRunWorkingDirectory="" - ApplicationCommand="" - ApplicationArguments="" - ShimCommand="" - MPIAcceptMode="" - MPIAcceptFilter="" - /> - </Configuration> - <Configuration - Name="Release|Win32" - > - <DebugSettings - Command="" - WorkingDirectory="" - CommandArguments="" - Attach="false" - DebuggerType="3" - Remote="1" - RemoteMachine="4FIL49437" - RemoteCommand="" - HttpUrl="" - PDBPath="" - SQLDebugging="" - Environment="" - EnvironmentMerge="true" - DebuggerFlavor="" - MPIRunCommand="" - MPIRunArguments="" - MPIRunWorkingDirectory="" - ApplicationCommand="" - ApplicationArguments="" - ShimCommand="" - MPIAcceptMode="" - MPIAcceptFilter="" - /> - </Configuration> - </Configurations> -</VisualStudioUserFile> diff -r 19c4533e1567 -r 7fc47a6656f3 symbian-qemu-0.9.1-12/model-libraries/syborg-graphicswrapper/target.mak --- a/symbian-qemu-0.9.1-12/model-libraries/syborg-graphicswrapper/target.mak Fri Sep 24 13:30:20 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,58 +0,0 @@ -# Copyright (c) 2010 Symbian Foundation. -# All rights reserved. -# This component and the accompanying materials are made available -# under the terms of the License "Eclipse Public License v1.0" -# which accompanies this distribution, and is available -# at the URL "http://www.eclipse.org/legal/epl-v10.html". -# -# Description: -# Bottom level Makefile to build syborg-graphicswrapper library in the current directory - -include ../../../qemu-symbian-svp/config-host.mak - -sources := syborg-graphicswrapper.cpp -objs := syborg-graphicswrapper.o -libname := libsyborg-graphicswrapper.so -soname := $(libname).1 -targ := $(soname).0 - -.phony: all build clean install distclean uninstall - -cflags=-DHAVE_STDINT_H -DSYBORG_GRAPHICSWRAPPER_EXPORTS -ifneq ($(DEBUG_LIBS),) -cflags+="-O0 -g" -else -cflags+=-O2 -endif - -vpath %.cpp .. - -all: $(targ) - -%.o : %.cpp - g++ $(cflags) -fPIC -I../../commoninc -c -o $@ $< - -$(objs): $(sources) - -$(targ): $(objs) - g++ $(cflags) -shared -Wl,-soname,$(soname) -Wl,-l,stdc++ -o $@ $(objs) - -clean: - rm -f $(objs) $(targ) - -install: $(targ) - if [ ! -d "$(DESTDIR)$(libdir)" ]; then mkdir -p "$(DESTDIR)$(libdir)"; fi && \ - $(INSTALL) -m 755 $(targ) "$(DESTDIR)$(libdir)" && \ - rm -f "$(DESTDIR)$(libdir)/$(libname)" && \ - ln -s "$(DESTDIR)$(libdir)/$(targ)" "$(DESTDIR)$(libdir)/$(libname)" - -distclean: clean -# Nothing for distclean - -uninstall: - rm -f "$(DESTDIR)$(libdir)/$(libname)" "$(DESTDIR)$(libdir)/$(targ)" && \ - files=`ls -A "$(DESTDIR)$(libdir)"` && \ - if [ -z "$$files" ]; then rmdir "$(DESTDIR)$(libdir)"; fi - - -