Kaydet (Commit) 77de797f authored tarafından Mathias Bauer's avatar Mathias Bauer Kaydeden (comit) Bjoern Michaelsen

CWS gnumake4: convert cppcanvas to new build system [hg:a93ffc180db8]

üst 4a1b61df
......@@ -2,7 +2,7 @@
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2000, 2010 Oracle and/or its affiliates.
# Copyright 2000, 2011 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
......@@ -25,36 +25,63 @@
#
#*************************************************************************
PRJ=..$/..
$(eval $(call gb_Library_Library,cppcanvas))
PRJNAME=cppcanvas
TARGET=canvaswrapper
ENABLE_EXCEPTIONS=TRUE
$(eval $(call gb_Library_add_package_headers,cppcanvas,cppcanvas_inc))
$(eval $(call gb_Library_add_precompiled_header,cppcanvas,$(SRCDIR)/cppcanvas/inc/precompiled_cppcanvas))
# --- Settings -----------------------------------------------------------
$(eval $(call gb_Library_set_include,cppcanvas,\
-I$(SRCDIR)/cppcanvas/inc \
-I$(SRCDIR)/cppcanvas/inc/pch \
-I$(SRCDIR)/cppcanvas/source/inc \
$$(INCLUDE) \
-I$(OUTDIR)/inc/offuh \
))
.INCLUDE : settings.mk
$(eval $(call gb_Library_set_defs,cppcanvas,\
$$(DEFS) \
-DCPPCANVAS_DLLIMPLEMENTATION \
))
# --- Common ----------------------------------------------------------
$(eval $(call gb_Library_add_linked_libs,cppcanvas,\
tl \
cppu \
sal \
vcl \
stl \
comphelper \
canvastools \
cppuhelper \
basegfx \
i18nisolang1 \
$(gb_STDLIBS) \
))
.IF "$(verbose)"!="" || "$(VERBOSE)"!=""
CDEFS+= -DVERBOSE
.ENDIF
$(eval $(call gb_Library_add_exception_objects,cppcanvas,\
cppcanvas/source/wrapper/vclfactory \
cppcanvas/source/wrapper/implcolor \
cppcanvas/source/wrapper/basegfxfactory \
cppcanvas/source/wrapper/implcustomsprite \
cppcanvas/source/wrapper/implspritecanvas \
cppcanvas/source/wrapper/implsprite \
cppcanvas/source/wrapper/implpolypolygon \
cppcanvas/source/wrapper/implcanvas \
cppcanvas/source/wrapper/implbitmap \
cppcanvas/source/wrapper/implfont \
cppcanvas/source/wrapper/impltext \
cppcanvas/source/wrapper/implbitmapcanvas \
cppcanvas/source/tools/tools \
cppcanvas/source/tools/canvasgraphichelper \
cppcanvas/source/mtfrenderer/transparencygroupaction \
cppcanvas/source/mtfrenderer/cachedprimitivebase \
cppcanvas/source/mtfrenderer/lineaction \
cppcanvas/source/mtfrenderer/pointaction \
cppcanvas/source/mtfrenderer/polypolyaction \
cppcanvas/source/mtfrenderer/textaction \
cppcanvas/source/mtfrenderer/implrenderer \
cppcanvas/source/mtfrenderer/mtftools \
cppcanvas/source/mtfrenderer/bitmapaction \
))
SLOFILES = $(SLO)$/implbitmap.obj \
$(SLO)$/implcanvas.obj \
$(SLO)$/implcolor.obj \
$(SLO)$/implfont.obj \
$(SLO)$/vclfactory.obj \
$(SLO)$/basegfxfactory.obj \
$(SLO)$/impltext.obj \
$(SLO)$/implpolypolygon.obj \
$(SLO)$/implbitmapcanvas.obj \
$(SLO)$/implspritecanvas.obj \
$(SLO)$/implsprite.obj \
$(SLO)$/implcustomsprite.obj
# ==========================================================================
.INCLUDE : target.mk
# vim: set noet sw=4 ts=4:
......@@ -2,7 +2,7 @@
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2000, 2010 Oracle and/or its affiliates.
# Copyright 2000, 2011 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
......@@ -25,26 +25,14 @@
#
#*************************************************************************
PRJ=..$/..
ifeq ($(strip $(SOLARENV)),)
$(error No environment set!)
endif
PRJNAME=cppcanvas
TARGET=cppcanvastools
ENABLE_EXCEPTIONS=TRUE
gb_PARTIALBUILD := T
GBUILDDIR := $(SOLARENV)/gbuild
include $(GBUILDDIR)/gbuild.mk
$(eval $(call gb_Module_make_global_targets,$(shell ls $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/Module*.mk)))
# --- Settings -----------------------------------------------------------
.INCLUDE : settings.mk
# --- Common ----------------------------------------------------------
.IF "$(verbose)"!="" || "$(VERBOSE)"!=""
CDEFS+= -DVERBOSE
.ENDIF
SLOFILES = $(SLO)$/canvasgraphichelper.obj \
$(SLO)$/tools.obj
# ==========================================================================
.INCLUDE : target.mk
# vim: set noet sw=4 ts=4:
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# Copyright 2000, 2011 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
......@@ -25,34 +25,11 @@
#
#*************************************************************************
PRJ=..$/..
PRJNAME=cppcanvas
TARGET=metafilerenderer
ENABLE_EXCEPTIONS=TRUE
# --- Settings -----------------------------------------------------------
.INCLUDE : settings.mk
# --- Common ----------------------------------------------------------
.IF "$(verbose)"!="" || "$(VERBOSE)"!=""
CDEFS+= -DVERBOSE
.ENDIF
SLOFILES = $(SLO)$/cachedprimitivebase.obj \
$(SLO)$/bitmapaction.obj \
$(SLO)$/implrenderer.obj \
$(SLO)$/lineaction.obj \
$(SLO)$/pointaction.obj \
$(SLO)$/polypolyaction.obj \
$(SLO)$/rendergraphicaction.obj \
$(SLO)$/textaction.obj \
$(SLO)$/transparencygroupaction.obj \
$(SLO)$/mtftools.obj
$(eval $(call gb_Module_Module,cppcanvas))
# ==========================================================================
$(eval $(call gb_Module_add_targets,cppcanvas,\
Library_cppcanvas \
Package_inc \
))
.INCLUDE : target.mk
# vim: set noet sw=4 ts=4:
......@@ -2,7 +2,7 @@
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2000, 2010 Oracle and/or its affiliates.
# Copyright 2000, 2011 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
......@@ -25,46 +25,21 @@
#
#*************************************************************************
PRJ=..
PRJNAME=cppcanvas
TARGET=cppcanvas
ENABLE_EXCEPTIONS=TRUE
# --- Settings -----------------------------------------------------------
.INCLUDE : settings.mk
# --- Common ----------------------------------------------------------
LIB1TARGET=$(SLB)$/$(TARGET).lib
LIB1FILES=\
$(SLB)$/canvaswrapper.lib \
$(SLB)$/metafilerenderer.lib \
$(SLB)$/cppcanvastools.lib
SHL1TARGET= $(TARGET)$(DLLPOSTFIX)
SHL1IMPLIB= i$(TARGET)
SHL1STDLIBS= $(TOOLSLIB) $(CPPULIB) $(SALLIB) $(VCLLIB) $(COMPHELPERLIB) $(CANVASTOOLSLIB) $(CPPUHELPERLIB) $(BASEGFXLIB) $(I18NISOLANGLIB)
.IF "$(debug)$(dbgutil)"!=""
SHL1STDLIBS += $(CPPUHELPERLIB)
.ENDIF # "$(debug)$(dbgutil)"!=""
SHL1LIBS= $(SLB)$/$(TARGET).lib
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
DEF1NAME =$(SHL1TARGET)
DEF1DEPN =$(MISC)$/$(SHL1TARGET).flt \
$(LIB1TARGET)
DEF1DES =CPPCanvas
DEFLIB1NAME =$(TARGET)
# ==========================================================================
.INCLUDE : target.mk
$(MISC)$/$(SHL1TARGET).flt : makefile.mk
@$(TYPE) $(TARGET).flt > $@
$(eval $(call gb_Package_Package,cppcanvas_inc,$(SRCDIR)/cppcanvas/inc))
$(eval $(call gb_Package_add_file,cppcanvas_inc,inc/cppcanvas/canvas.hxx,cppcanvas/canvas.hxx))
$(eval $(call gb_Package_add_file,cppcanvas_inc,inc/cppcanvas/sprite.hxx,cppcanvas/sprite.hxx))
$(eval $(call gb_Package_add_file,cppcanvas_inc,inc/cppcanvas/vclfactory.hxx,cppcanvas/vclfactory.hxx))
$(eval $(call gb_Package_add_file,cppcanvas_inc,inc/cppcanvas/font.hxx,cppcanvas/font.hxx))
$(eval $(call gb_Package_add_file,cppcanvas_inc,inc/cppcanvas/customsprite.hxx,cppcanvas/customsprite.hxx))
$(eval $(call gb_Package_add_file,cppcanvas_inc,inc/cppcanvas/canvasgraphic.hxx,cppcanvas/canvasgraphic.hxx))
$(eval $(call gb_Package_add_file,cppcanvas_inc,inc/cppcanvas/polypolygon.hxx,cppcanvas/polypolygon.hxx))
$(eval $(call gb_Package_add_file,cppcanvas_inc,inc/cppcanvas/color.hxx,cppcanvas/color.hxx))
$(eval $(call gb_Package_add_file,cppcanvas_inc,inc/cppcanvas/spritecanvas.hxx,cppcanvas/spritecanvas.hxx))
$(eval $(call gb_Package_add_file,cppcanvas_inc,inc/cppcanvas/text.hxx,cppcanvas/text.hxx))
$(eval $(call gb_Package_add_file,cppcanvas_inc,inc/cppcanvas/renderer.hxx,cppcanvas/renderer.hxx))
$(eval $(call gb_Package_add_file,cppcanvas_inc,inc/cppcanvas/basegfxfactory.hxx,cppcanvas/basegfxfactory.hxx))
$(eval $(call gb_Package_add_file,cppcanvas_inc,inc/cppcanvas/bitmap.hxx,cppcanvas/bitmap.hxx))
$(eval $(call gb_Package_add_file,cppcanvas_inc,inc/cppcanvas/bitmapcanvas.hxx,cppcanvas/bitmapcanvas.hxx))
$(eval $(call gb_Package_add_file,cppcanvas_inc,inc/cppcanvas/cppcanvasdllapi.h,cppcanvas/cppcanvasdllapi.h))
# vim: set noet sw=4 ts=4:
......@@ -38,6 +38,7 @@
#include <cppcanvas/sprite.hxx>
#include <basegfx/vector/b2isize.hxx>
#include <cppcanvas/cppcanvasdllapi.h>
namespace basegfx
{
......@@ -62,7 +63,7 @@ namespace cppcanvas
only be drawn on exactly that canvas. You have to regenerate
them for different canvases.
*/
class BaseGfxFactory
class CPPCANVAS_DLLPUBLIC BaseGfxFactory
{
public:
static BaseGfxFactory& getInstance();
......
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org 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 Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
#ifndef INCLUDED_CPPCANVASDLLAPI_H
#define INCLUDED_CPPCANVASDLLAPI_H
#if defined CPPCANVAS_DLLIMPLEMENTATION
#define CPPCANVAS_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
#else
#define CPPCANVAS_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
#endif
#define CPPCANVAS_DLLPRIVATE SAL_DLLPRIVATE
#endif
......@@ -37,6 +37,7 @@
#include <cppcanvas/text.hxx>
#include <cppcanvas/sprite.hxx>
#include <cppcanvas/cppcanvasdllapi.h>
class Window;
class Bitmap;
......@@ -70,7 +71,7 @@ namespace cppcanvas
only be drawn on exactly that canvas. You have to regenerate
them for different canvases.
*/
class VCLFactory
class CPPCANVAS_DLLPUBLIC VCLFactory
{
public:
static VCLFactory& getInstance();
......
cx cppcanvas : comphelper cppuhelper offuh tools vcl basegfx canvas NULL
cx cppcanvas usr1 - all cx_mkout NULL
cx cppcanvas\inc nmake - all cx_inc NULL
cx cppcanvas\source\tools nmake - all cx_tools cx_inc NULL
cx cppcanvas\source\wrapper nmake - all cx_wrapper cx_inc NULL
cx cppcanvas\source\mtfrenderer nmake - all cx_mtfrenderer cx_inc NULL
cx cppcanvas\util nmake - all cx_util cx_tools cx_wrapper cx_mtfrenderer NULL
cx cppcanvas\prj nmake - all cx_prj NULL
..\%__SRC%\bin\cppcanv*.dll %_DEST%\bin%_EXT%\cppcanv*.dll
..\%__SRC%\lib\icppcanvas.lib %_DEST%\lib%_EXT%\icppcanvas.lib
..\%__SRC%\lib\lib*.* %_DEST%\lib%_EXT%\lib*.*
mkdir: %_DEST%\inc%_EXT%\cppcanvas
..\inc\cppcanvas\bitmap.hxx %_DEST%\inc%_EXT%\cppcanvas\bitmap.hxx
..\inc\cppcanvas\bitmapcanvas.hxx %_DEST%\inc%_EXT%\cppcanvas\bitmapcanvas.hxx
..\inc\cppcanvas\canvas.hxx %_DEST%\inc%_EXT%\cppcanvas\canvas.hxx
..\inc\cppcanvas\canvasgraphic.hxx %_DEST%\inc%_EXT%\cppcanvas\canvasgraphic.hxx
..\inc\cppcanvas\color.hxx %_DEST%\inc%_EXT%\cppcanvas\color.hxx
..\inc\cppcanvas\customsprite.hxx %_DEST%\inc%_EXT%\cppcanvas\customsprite.hxx
..\inc\cppcanvas\font.hxx %_DEST%\inc%_EXT%\cppcanvas\font.hxx
..\inc\cppcanvas\polypolygon.hxx %_DEST%\inc%_EXT%\cppcanvas\polypolygon.hxx
..\inc\cppcanvas\renderer.hxx %_DEST%\inc%_EXT%\cppcanvas\renderer.hxx
..\inc\cppcanvas\sprite.hxx %_DEST%\inc%_EXT%\cppcanvas\sprite.hxx
..\inc\cppcanvas\spritecanvas.hxx %_DEST%\inc%_EXT%\cppcanvas\spritecanvas.hxx
..\inc\cppcanvas\text.hxx %_DEST%\inc%_EXT%\cppcanvas\text.hxx
..\inc\cppcanvas\vclfactory.hxx %_DEST%\inc%_EXT%\cppcanvas\vclfactory.hxx
..\inc\cppcanvas\basegfxfactory.hxx %_DEST%\inc%_EXT%\cppcanvas\basegfxfactory.hxx
......@@ -24,24 +24,17 @@
# for a copy of the LGPLv3 License.
#
#*************************************************************************
PRJ=..
PRJNAME=cppcanvas
TARGET=inc
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
# --- Files --------------------------------------------------------
# --- Targets -------------------------------------------------------
PRJ=..
TARGET=prj
.INCLUDE : target.mk
.INCLUDE : settings.mk
.IF "$(ENABLE_PCH)"!=""
ALLTAR : \
$(SLO)$/precompiled.pch \
$(SLO)$/precompiled_ex.pch
.ENDIF # "$(ENABLE_PCH)"!=""
.IF "$(VERBOSE)"!=""
VERBOSEFLAG :=
.ELSE
VERBOSEFLAG := -s
.ENDIF
all:
cd $(PRJ) && $(GNUMAKE) $(VERBOSEFLAG) -r -j$(MAXPROCESS) $(gb_MAKETARGET) && $(GNUMAKE) $(VERBOSEFLAG) -r deliverlog
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment