Kaydet (Commit) 3ce453d4 authored tarafından David Tardon's avatar David Tardon

gbuildize ucpp

Change-Id: I1e7eda073906f5b289317d307358a63aca2c24dc
üst d07e8fe1
...@@ -137,6 +137,7 @@ tubes\ ...@@ -137,6 +137,7 @@ tubes\
twain\ twain\
ucb\ ucb\
ucbhelper\ ucbhelper\
ucpp\
udkapi\ udkapi\
unixODBC\ unixODBC\
unodevtools\ unodevtools\
...@@ -240,7 +241,6 @@ stax\ ...@@ -240,7 +241,6 @@ stax\
stlport\ stlport\
sysui\ sysui\
tomcat\ tomcat\
ucpp\
udm\ udm\
vigra\ vigra\
xpdf\ xpdf\
......
...@@ -59,6 +59,7 @@ $(eval $(call gb_Helper_register_executables,NONE, \ ...@@ -59,6 +59,7 @@ $(eval $(call gb_Helper_register_executables,NONE, \
svidl \ svidl \
transex3 \ transex3 \
typesconfig \ typesconfig \
ucpp \
ulfconv \ ulfconv \
ulfex \ ulfex \
xml2cmp \ xml2cmp \
......
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_CustomTarget_CustomTarget,ucpp/source))
$(call gb_CustomTarget_get_target,ucpp/source) : $(call gb_CustomTarget_get_workdir,ucpp/source)/done
# FIXME: do not hardcode the path here
ifeq ($(OS_FOR_BUILD),WNT)
ucpp_FIXED_TARFILE_LOCATION := $(shell cygpath -u $(TARFILE_LOCATION))/0168229624cfac409e766913506961a8-ucpp-1.3.2.tar.gz
else
ucpp_FIXED_TARFILE_LOCATION := $(TARFILE_LOCATION)/0168229624cfac409e766913506961a8-ucpp-1.3.2.tar.gz
endif
$(call gb_CustomTarget_get_workdir,ucpp/source)/done : \
$(ucpp_FIXED_TARFILE_LOCATION) \
$(SRCDIR)/ucpp/ucpp.patch \
| $(call gb_CustomTarget_get_workdir,ucpp/source)/.dir
$(call gb_CustomTarget_get_workdir,ucpp/source)/done :
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),TAR,1)
$(call gb_Helper_abbreviate_dirs,\
cd $(dir $@) && \
$(GNUTAR) -x -z $(STRIP_COMPONENTS)=1 -f $< && \
$(GNUPATCH) -p0 < $(SRCDIR)/ucpp/ucpp.patch && \
touch $@ \
)
# vim: set noet sw=4 ts=4:
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_Executable_Executable,ucpp))
$(eval $(call gb_Executable_set_warnings_not_errors,ucpp))
$(eval $(call gb_Executable_use_custom_headers,ucpp,\
ucpp/source \
))
$(eval $(call gb_Executable_add_defs,ucpp,\
-DNO_UCPP_BUF \
-DUCPP_CONFIG \
-DSTAND_ALONE \
))
$(eval $(call gb_Executable_add_generated_cobjects,ucpp,\
CustomTarget/ucpp/source/assert \
CustomTarget/ucpp/source/cpp \
CustomTarget/ucpp/source/eval \
CustomTarget/ucpp/source/hash \
CustomTarget/ucpp/source/lexer \
CustomTarget/ucpp/source/macro \
CustomTarget/ucpp/source/mem \
CustomTarget/ucpp/source/nhash \
))
# vim: set noet sw=4 ts=4:
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
module_directory:=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
include $(module_directory)/../solenv/gbuild/partial_build.mk
# vim: set noet sw=4 ts=4:
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_Module_Module,ucpp))
$(eval $(call gb_Module_add_targets,ucpp,\
CustomTarget_source \
Executable_ucpp \
))
# vim: set noet sw=4 ts=4:
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This file incorporates work covered by the following license notice:
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed
# with this work for additional information regarding copyright
# ownership. The ASF licenses this file to you under the Apache
# License, Version 2.0 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
PRJ=.
PRJNAME=ucpp
TARGET=ucpp
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
# --- Files --------------------------------------------------------
TARFILE_NAME=ucpp-1.3.2
TARFILE_ROOTDIR=ucpp
TARFILE_MD5=0168229624cfac409e766913506961a8
PATCH_FILES=ucpp.patch
ADDITIONAL_FILES=makefile.mk
BUILD_ACTION=dmake $(MFLAGS) $(CALLMACROS)
# --- Targets ------------------------------------------------------
.INCLUDE : set_ext.mk
.INCLUDE : target.mk
.INCLUDE : tg_ext.mk
ucpp ucpp : soltools NULL ucpp ucpp : soltools NULL
ucpp ucpp usr1 - all ucpp_mkout NULL ucpp ucpp usr1 - all ucpp_mkout NULL
ucpp ucpp nmake - all ucpp_ucpp NULL ucpp ucpp\prj nmake - all ucpp_ucpp NULL
..\%__SRC%\bin\ucpp.exe %_DEST%\bin\ucpp.exe
..\%__SRC%\bin\ucpp.pdb %_DEST%\bin\ucpp.pdb
..\%__SRC%\bin\ucpp %_DEST%\bin\ucpp
--- misc/ucpp/makefile.mk --- cpp.c
+++ misc/build/ucpp/makefile.mk +++ cpp.c
@@ -1 +1,47 @@
-dummy
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+# This file incorporates work covered by the following license notice:
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed
+# with this work for additional information regarding copyright
+# ownership. The ASF licenses this file to you under the Apache
+# License, Version 2.0 (the "License"); you may not use this file
+# except in compliance with the License. You may obtain a copy of
+# the License at http://www.apache.org/licenses/LICENSE-2.0 .
+#
+PRJ=..$/..$/..$/..
+
+PRJNAME=ucpp
+TARGET=ucpp
+TARGETTYPE=CUI
+LIBTARGET=NO
+NO_DEFAULT_STL=TRUE
+
+EXTERNAL_WARNINGS_NOT_ERRORS := TRUE
+
+# --- Settings -----------------------------------------------------
+.INCLUDE : settings.mk
+
+UWINAPILIB=
+LIBSALCPPRT=
+
+# --- Files --------------------------------------------------------
+
+CFLAGS+= -DNO_UCPP_BUF -DUCPP_CONFIG -DSTAND_ALONE
+
+APP1TARGET= $(TARGET)
+APP1OBJS= $(OBJ)$/assert.obj $(OBJ)$/cpp.obj $(OBJ)$/eval.obj $(OBJ)$/hash.obj $(OBJ)$/lexer.obj $(OBJ)$/macro.obj $(OBJ)$/mem.obj $(OBJ)$/nhash.obj
+
+APP1STDLIBS=
+
+
+OBJFILES = $(APP1OBJS)
+
+.INCLUDE : target.mk
+
--- misc/ucpp/cpp.c
+++ misc/build/ucpp/cpp.c
@@ -2464,7 +2464,7 @@ @@ -2464,7 +2464,7 @@
warning(-1, "unknown option '%s'", argv[i]); warning(-1, "unknown option '%s'", argv[i]);
} else { } else {
......
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