Kaydet (Commit) dce040cb authored tarafından Matúš Kukan's avatar Matúš Kukan

convert rsc to gbuild

üst 5dbd7837
# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*-
# Version: MPL 1.1 / GPLv3+ / LGPLv3+
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License or as specified alternatively below. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Initial Developer of the Original Code is
# Matúš Kukan <matus.kukan@gmail.com>
# Portions created by the Initial Developer are Copyright (C) 2011 the
# Initial Developer. All Rights Reserved.
#
# Major Contributor(s):
#
# For minor contributions see the git repository.
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above.
$(eval $(call gb_Executable_Executable,rsc))
$(eval $(call gb_Executable_add_package_headers,rsc,rsc_yacc))
$(eval $(call gb_Executable_set_include,rsc,\
$$(INCLUDE) \
-I$(realpath $(SRCDIR)/rsc/inc) \
-I$(realpath $(SRCDIR)/rsc/inc/pch) \
-I$(realpath $(WORKDIR))/CustomTarget/rsc/source/parser \
))
$(eval $(call gb_Executable_add_api,rsc,\
udkapi \
offapi \
))
$(eval $(call gb_Executable_add_defs,rsc,\
-DSOLAR \
))
$(eval $(call gb_Executable_add_linked_libs,rsc,\
i18nisolang1 \
sal \
tl \
$(gb_STDLIBS) \
))
$(eval $(call gb_Executable_add_exception_objects,rsc,\
rsc/source/misc/rscdbl \
rsc/source/misc/rsclst \
rsc/source/parser/erscerr \
rsc/source/parser/rscdb \
rsc/source/parser/rscibas \
rsc/source/parser/rscicpx \
rsc/source/parser/rscinit \
rsc/source/parser/rsckey \
rsc/source/parser/rsclex \
rsc/source/parser/rscpar \
rsc/source/parser/rscyacc \
rsc/source/prj/gui \
rsc/source/prj/start \
rsc/source/res/rscall \
rsc/source/res/rscarray \
rsc/source/res/rscclass \
rsc/source/res/rscclobj \
rsc/source/res/rscconst \
rsc/source/res/rsccont \
rsc/source/res/rscflag \
rsc/source/res/rscmgr \
rsc/source/res/rscrange \
rsc/source/res/rscstr \
rsc/source/res/rsctop \
rsc/source/rsc/rsc \
rsc/source/tools/rscchar \
rsc/source/tools/rscdef \
rsc/source/tools/rschash \
rsc/source/tools/rsctools \
rsc/source/tools/rsctree \
))
$(eval $(call gb_Executable_add_cobjects,rsc,\
rsc/source/rscpp/cpp1 \
rsc/source/rscpp/cpp2 \
rsc/source/rscpp/cpp3 \
rsc/source/rscpp/cpp4 \
rsc/source/rscpp/cpp5 \
rsc/source/rscpp/cpp6 \
))
ifeq ($(GUI),UNX)
$(eval $(call gb_Executable_add_defs,rsc,\
-Dunix \
))
endif
# vim: set noet sw=4 ts=4:
# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*-
#*************************************************************************
#
# 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,28 +26,14 @@
#
#*************************************************************************
PRJ=..$/..
PRJNAME=rsc
TARGET=rscmis
# --- Settings ------------------------------------------------------
ENABLE_EXCEPTIONS=true
.INCLUDE : settings.mk
.IF "$(BUILD_TYPE)"=="$(BUILD_TYPE:s/DESKTOP//)"
ALL:
@echo No need for this on non-desktop OSes
.ENDIF
ifeq ($(strip $(SOLARENV)),)
$(error No environment set!)
endif
# --- Files ---------------------------------------------------------
gb_PARTIALBUILD := T
GBUILDDIR := $(SOLARENV)/gbuild
include $(GBUILDDIR)/gbuild.mk
CXXFILES= rsclst.cxx \
rscdbl.cxx
$(eval $(call gb_Module_make_global_targets,$(shell ls $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/Module*.mk)))
OBJFILES= $(OBJ)$/rsclst.obj \
$(OBJ)$/rscdbl.obj
.INCLUDE : target.mk
# vim: set noet sw=4 ts=4:
# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*-
# Version: MPL 1.1 / GPLv3+ / LGPLv3+
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License or as specified alternatively below. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Initial Developer of the Original Code is
# Matúš Kukan <matus.kukan@gmail.com>
# Portions created by the Initial Developer are Copyright (C) 2011 the
# Initial Developer. All Rights Reserved.
#
# Major Contributor(s):
#
# For minor contributions see the git repository.
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above.
$(eval $(call gb_Module_Module,rsc))
$(eval $(call gb_Module_add_targets,rsc,\
Package_inc \
))
$(if $(filter DESKTOP,$(BUILD_TYPE)),$(eval $(call gb_Module_add_targets,rsc,\
Executable_rsc \
Package_yacc \
)))
# vim: set noet sw=4 ts=4:
# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*-
# Version: MPL 1.1 / GPLv3+ / LGPLv3+
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License or as specified alternatively below. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Initial Developer of the Original Code is
# Matúš Kukan <matus.kukan@gmail.com>
# Portions created by the Initial Developer are Copyright (C) 2011 the
# Initial Developer. All Rights Reserved.
#
# Major Contributor(s):
#
# For minor contributions see the git repository.
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above.
$(eval $(call gb_Package_Package,rsc_inc,$(SRCDIR)/rsc/inc))
$(eval $(call gb_Package_add_file,rsc_inc,inc/rsc/rscsfx.hxx,rsc/rscsfx.hxx))
# vim: set noet sw=4 ts=4:
# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*-
# Version: MPL 1.1 / GPLv3+ / LGPLv3+
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License or as specified alternatively below. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Initial Developer of the Original Code is
# Matúš Kukan <matus.kukan@gmail.com>
# Portions created by the Initial Developer are Copyright (C) 2011 the
# Initial Developer. All Rights Reserved.
#
# Major Contributor(s):
#
# For minor contributions see the git repository.
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above.
$(eval $(call gb_Package_Package,rsc_yacc,$(WORKDIR)/rsc/source/parser))
$(eval $(call gb_Package_add_customtarget,rsc_yacc,rsc/source/parser,SRCDIR))
# vim: set noet sw=4 ts=4:
r rsc : tools NULL
r rsc usr1 - all rsc_mkout NULL
r rsc\source\misc nmake - all rsc_misc NULL
r rsc\source\tools nmake - all rsc_tool NULL
r rsc\source\res nmake - all rsc_res NULL
r rsc\source\parser nmake - all rsc_pars NULL
r rsc\source\rsc nmake - all rsc_rsc NULL
r rsc\source\rscpp nmake - all rsc_cpp NULL
r rsc\source\prj nmake - all rsc_sprj rsc_cpp rsc_misc rsc_pars rsc_res rsc_rsc rsc_tool NULL
r rsc\prj nmake - all rsc_prj NULL
..\%__SRC%\bin\rsc.exe %_DEST%\bin\rsc.exe
..\%__SRC%\bin\rsc %_DEST%\bin\rsc
mkdir: %_DEST%\inc\rsc
..\inc\rsc/rscsfx.hxx %_DEST%\inc\rsc\rscsfx.hxx
#*************************************************************************
#
# 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
......@@ -25,17 +25,16 @@
#
#*************************************************************************
PRJ=..$/..
PRJNAME=rsc
TARGET=rscrsc
# --- Settings -------------------------------------------------------
ENABLE_EXCEPTIONS=true
PRJ=..
TARGET=prj
.INCLUDE : settings.mk
.INCLUDE : settings.mk
OBJFILES= $(OBJ)$/rsc.obj
.IF "$(VERBOSE)"!=""
VERBOSEFLAG :=
.ELSE
VERBOSEFLAG := -s
.ENDIF
.INCLUDE : target.mk
all:
cd $(PRJ) && $(GNUMAKE) $(VERBOSEFLAG) -r -j$(MAXPROCESS) $(gb_MAKETARGET) && $(GNUMAKE) $(VERBOSEFLAG) -r deliverlog
# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*-
# Version: MPL 1.1 / GPLv3+ / LGPLv3+
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License or as specified alternatively below. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Initial Developer of the Original Code is
# Matúš Kukan <matus.kukan@gmail.com>
# Portions created by the Initial Developer are Copyright (C) 2011 the
# Initial Developer. All Rights Reserved.
#
# Major Contributor(s):
#
# For minor contributions see the git repository.
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above.
BISON := bison
all : yyrscyacc.cxx
yyrscyacc.cxx : $(realpath $(SRC_ROOT)/rsc/source/parser/rscyacc.y)
$(BISON) -d -o $@ $<
.PHONY: all
# 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.
#
# 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.
#
#*************************************************************************
PRJ=..$/..
PROJECTPCH=parser
PROJECTPCHSOURCE=parser
PRJNAME=rsc
TARGET=rscpar
# --- Settings -----------------------------------------------------
#prjpch=T
ENABLE_EXCEPTIONS=true
.INCLUDE : settings.mk
.IF "$(BUILD_TYPE)"=="$(BUILD_TYPE:s/DESKTOP//)"
ALL:
@echo No need for this on non-desktop OSes
.ENDIF
# --- Files --------------------------------------------------------
YACCTARGET= $(INCCOM)$/yyrscyacc.cxx
YACCFILES= rscyacc.y
OBJFILES= $(OBJ)$/rscpar.obj \
$(OBJ)$/rscyacc.obj \
$(OBJ)$/rsclex.obj \
$(OBJ)$/erscerr.obj \
$(OBJ)$/rsckey.obj \
$(OBJ)$/rscinit.obj \
$(OBJ)$/rscibas.obj \
$(OBJ)$/rscdb.obj \
$(OBJ)$/rscicpx.obj
# --- Targets ------------------------------------------------------
.INCLUDE : target.mk
$(OBJ)$/rscibas.obj : $(YACCTARGET)
$(OBJ)$/rscinit.obj : $(YACCTARGET)
$(OBJ)$/rscicpx.obj : $(YACCTARGET)
$(OBJ)$/rsclex.obj : $(YACCTARGET)
$(OBJ)$/rscyacc.obj : $(YACCTARGET)
#*************************************************************************
#
# 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.
#
#*************************************************************************
PRJ=..$/..
PRJNAME=rsc
TARGETTYPE=CUI
TARGET=rsc
LIBTARGET=NO
# --- Settings -----------------------------------------------------------
ENABLE_EXCEPTIONS=true
.INCLUDE : settings.mk
.IF "$(BUILD_TYPE)"=="$(BUILD_TYPE:s/DESKTOP//)"
ALL:
@echo No need for this on non-desktop OSes
.ENDIF
# --- Files --------------------------------------------------------------
OBJFILES= $(OBJ)$/gui.obj \
$(OBJ)$/start.obj
APP1TARGET= rsc
APP1STDLIBS=$(TOOLSLIB) $(I18NISOLANGLIB) $(SALLIB) # $(RTLLIB)
APP1LIBS= $(LB)$/rscmis.lib \
$(LB)$/rscpar.lib \
$(LB)$/rscres.lib \
$(LB)$/rscrsc.lib \
$(LB)$/rscpp.lib \
$(LB)$/rsctoo.lib
APP1OBJS= $(OBJ)$/start.obj \
$(OBJ)$/gui.obj
APP1STACK=64000
APP1RPATH=NONE
# --- Targets ------------------------------------------------------------
.INCLUDE : target.mk
#*************************************************************************
#
# 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.
#
#*************************************************************************
PRJ=..$/..
PRJNAME=rsc
TARGET=rscres
# --- Settings ------------------------------------------------------
ENABLE_EXCEPTIONS=true
.INCLUDE : settings.mk
.IF "$(BUILD_TYPE)"=="$(BUILD_TYPE:s/DESKTOP//)"
ALL:
@echo No need for this on non-desktop OSes
.ENDIF
OBJFILES= $(OBJ)$/rscclobj.obj \
$(OBJ)$/rsccont.obj \
$(OBJ)$/rsctop.obj \
$(OBJ)$/rscrange.obj \
$(OBJ)$/rscconst.obj \
$(OBJ)$/rscflag.obj \
$(OBJ)$/rscstr.obj \
$(OBJ)$/rscall.obj \
$(OBJ)$/rscmgr.obj \
$(OBJ)$/rscclass.obj \
$(OBJ)$/rscarray.obj
CXXFILES= rscclobj.cxx \
rsctop.cxx \
rscrange.cxx \
rscconst.cxx \
rscflag.cxx \
rscstr.cxx \
rscall.cxx \
rsccont.cxx \
rscclass.cxx \
rscmgr.cxx \
rscarray.cxx
.INCLUDE : target.mk
#*************************************************************************
#
# 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.
#
#*************************************************************************
PRJ=..$/..
TARGETTYPE=CUI
NO_DEFAULT_STL=TRUE
PRJNAME=rsc
TARGET=rscpp
.IF "$(cpp)" != ""
PRJNAME=CPP
TARGET=cpp
.ENDIF
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
.IF "$(BUILD_TYPE)"=="$(BUILD_TYPE:s/DESKTOP//)"
ALL:
@echo No need for this on non-desktop OSes
.ENDIF
CDEFS+=-DSOLAR
.IF "$(cpp)" != ""
CDEFS+=-DNOMAIN
.ENDIF
# --- Files --------------------------------------------------------
OBJFILES= \
$(OBJ)$/cpp1.obj \
$(OBJ)$/cpp2.obj \
$(OBJ)$/cpp3.obj \
$(OBJ)$/cpp4.obj \
$(OBJ)$/cpp5.obj \
$(OBJ)$/cpp6.obj \
.IF "$(GUI)"=="UNX"
CDEFS+=-Dunix
.ENDIF
.IF "$(OS)$(CPU)"=="SOLARISI"
# cc: Sun C 5.5 Patch 112761-10 2004/08/10
# Solaris x86 compiler ICE
# "cpp6.c", [get]:ube: internal error
# remove after compiler upgrade
NOOPTFILES=$(OBJ)$/cpp6.obj
.ENDIF
# --- Targets ------------------------------------------------------
.INCLUDE : target.mk
#*************************************************************************
#
# 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.
#
#*************************************************************************
PRJ=..$/..
PRJNAME=rsc
TARGET=rsctoo
# --- Settings ------------------------------------------------------
ENABLE_EXCEPTIONS=true
.INCLUDE : settings.mk
.IF "$(BUILD_TYPE)"=="$(BUILD_TYPE:s/DESKTOP//)"
ALL:
@echo No need for this on non-desktop OSes
.ENDIF
OBJFILES= $(OBJ)$/rschash.obj \
$(OBJ)$/rsctree.obj \
$(OBJ)$/rsctools.obj \
$(OBJ)$/rscchar.obj \
$(OBJ)$/rscdef.obj
.INCLUDE : target.mk
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