Kaydet (Commit) 947244c1 authored tarafından David Tardon's avatar David Tardon

convert custom makefile code into a package

Change-Id: I72b41e4826b7e93b5c8aeacbf6d9d52e3780f090
üst 1fa4154c
...@@ -25,73 +25,25 @@ ...@@ -25,73 +25,25 @@
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above. # instead of those above.
ifeq ($(OS),WNT) $(eval $(call gb_Executable_Executable,soffice.bin))
sofficebin := soffice_bin
else
sofficebin := soffice.bin
endif
$(eval $(call gb_Executable_Executable,$(sofficebin)))
$(eval $(call gb_Executable_set_targettype_gui,$(sofficebin),YES)) $(eval $(call gb_Executable_set_targettype_gui,soffice.bin,YES))
$(eval $(call gb_Executable_set_include,$(sofficebin),\ $(eval $(call gb_Executable_set_include,soffice.bin,\
$$(INCLUDE) \ $$(INCLUDE) \
-I$(SRCDIR)/desktop/source/inc \ -I$(SRCDIR)/desktop/source/inc \
)) ))
$(eval $(call gb_Executable_use_libraries,$(sofficebin),\ $(eval $(call gb_Executable_use_libraries,soffice.bin,\
sal \ sal \
sofficeapp \ sofficeapp \
$(gb_STDLIBS) \ $(gb_STDLIBS) \
)) ))
$(eval $(call gb_Executable_add_cobjects,$(sofficebin),\ $(eval $(call gb_Executable_add_cobjects,soffice.bin,\
desktop/source/app/main \ desktop/source/app/main \
)) ))
ifeq ($(OS),WNT)
$(eval $(call gb_Executable_use_static_libraries,$(sofficebin),\
ooopathutils \
winextendloaderenv \
))
ifeq ($(COM),MSC)
$(eval $(call gb_Executable_add_ldflags,$(sofficebin),\
/STACK:10000000 \
))
endif
$(call gb_Module_get_target,desktop) : $(OUTDIR)/bin/soffice.bin
$(OUTDIR)/bin/soffice.bin : $(call gb_Executable_get_target,$(sofficebin))
$(call gb_Executable_get_clean_target,$(sofficebin)) : $(WORKDIR)/Clean/OutDir/bin/soffice.bin
$(OUTDIR)/bin/soffice.bin : $(call gb_LinkTarget_get_target,$(call gb_Executable_get_linktargetname,$(sofficebin)))
$(call gb_Deliver_deliver,$<,$@)
.PHONY : $(WORKDIR)/Clean/OutDir/bin/soffice.bin
$(WORKDIR)/Clean/OutDir/bin/soffice.bin :
rm -f $(OUTDIR)/bin/soffice.bin
ifeq ($(COM),MSC)
$(call gb_Module_get_target,desktop) : $(OUTDIR)/bin/soffice.bin.manifest
$(OUTDIR)/bin/soffice.bin.manifest : $(call gb_Executable_get_target,$(sofficebin))
$(call gb_Executable_get_clean_target,$(sofficebin)) : $(WORKDIR)/Clean/OutDir/bin/soffice.bin.manifest
$(OUTDIR)/bin/soffice.bin.manifest : $(call gb_LinkTarget_get_target,$(call gb_Executable_get_linktargetname,$(sofficebin)))
$(call gb_Deliver_deliver,$<.manifest,$@)
.PHONY : $(WORKDIR)/Clean/OutDir/bin/soffice.bin.manifest
$(WORKDIR)/Clean/OutDir/bin/soffice.bin.manifest :
rm -f $(OUTDIR)/bin/soffice.bin.manifest
endif
endif
ifeq ($(OS),MACOSX) ifeq ($(OS),MACOSX)
$(eval $(call gb_Executable_set_ldflags,\ $(eval $(call gb_Executable_set_ldflags,\
...@@ -100,6 +52,4 @@ $(eval $(call gb_Executable_set_ldflags,\ ...@@ -100,6 +52,4 @@ $(eval $(call gb_Executable_set_ldflags,\
endif endif
$(eval $(call gb_Executable_add_nativeres,$(sofficebin),sofficebin/src))
# vim: set ts=4 sw=4 et: # vim: set ts=4 sw=4 et:
# -*- Mode: makefile-gmake; 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.
#
# Major Contributor(s):
# Copyright (C) 2011 Red Hat, Inc., David Tardon <dtardon@redhat.com>
# (initial developer)
#
# All Rights Reserved.
#
# 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,soffice_bin))
$(eval $(call gb_Executable_set_targettype_gui,soffice_bin,YES))
$(eval $(call gb_Executable_set_include,soffice_bin,\
$$(INCLUDE) \
-I$(SRCDIR)/desktop/source/inc \
))
$(eval $(call gb_Executable_use_libraries,soffice_bin,\
sal \
sofficeapp \
$(gb_STDLIBS) \
))
$(eval $(call gb_Executable_add_cobjects,soffice_bin,\
desktop/source/app/main \
))
$(eval $(call gb_Executable_use_static_libraries,soffice_bin,\
ooopathutils \
winextendloaderenv \
))
ifeq ($(COM),MSC)
$(eval $(call gb_Executable_add_ldflags,soffice_bin,\
/STACK:10000000 \
))
endif
$(eval $(call gb_Executable_add_nativeres,soffice_bin,sofficebin/src))
# vim: set ts=4 sw=4 et:
...@@ -43,7 +43,6 @@ $(eval $(call gb_Module_add_targets,desktop,\ ...@@ -43,7 +43,6 @@ $(eval $(call gb_Module_add_targets,desktop,\
ifneq (,$(filter DESKTOP,$(BUILD_TYPE))) ifneq (,$(filter DESKTOP,$(BUILD_TYPE)))
$(eval $(call gb_Module_add_targets,desktop,\ $(eval $(call gb_Module_add_targets,desktop,\
Executable_soffice.bin \
Executable_unopkg.bin \ Executable_unopkg.bin \
Library_deploymentgui \ Library_deploymentgui \
Library_migrationoo2 \ Library_migrationoo2 \
...@@ -57,6 +56,12 @@ $(eval $(call gb_Module_add_targets,desktop,\ ...@@ -57,6 +56,12 @@ $(eval $(call gb_Module_add_targets,desktop,\
Pagein_writer \ Pagein_writer \
)) ))
ifneq ($(OS),WNT)
$(eval $(call gb_Module_add_targets,desktop,\
Executable_soffice.bin \
))
endif
ifneq ($(OS),MACOSX) ifneq ($(OS),MACOSX)
ifneq ($(OS),WNT) ifneq ($(OS),WNT)
$(eval $(call gb_Module_add_targets,desktop,\ $(eval $(call gb_Module_add_targets,desktop,\
...@@ -80,11 +85,13 @@ $(eval $(call gb_Module_add_targets,desktop,\ ...@@ -80,11 +85,13 @@ $(eval $(call gb_Module_add_targets,desktop,\
Executable_simpress \ Executable_simpress \
Executable_smath \ Executable_smath \
Executable_soffice \ Executable_soffice \
Executable_soffice_bin \
Executable_sweb \ Executable_sweb \
Executable_swriter \ Executable_swriter \
Executable_unoinfo \ Executable_unoinfo \
Executable_unopkg \ Executable_unopkg \
Executable_unopkg.com \ Executable_unopkg.com \
Package_soffice_bin \
WinResTarget_quickstart \ WinResTarget_quickstart \
WinResTarget_sbase \ WinResTarget_sbase \
WinResTarget_scalc \ WinResTarget_scalc \
......
# -*- Mode: makefile-gmake; 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.
#
# Major Contributor(s):
# Copyright (C) 2012 Red Hat, Inc., David Tardon <dtardon@redhat.com>
# (initial developer)
#
# All Rights Reserved.
#
# 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,desktop_soffice_bin,$(gb_Executable_BINDIR)))
$(eval $(call gb_Package_add_file,desktop_soffice_bin,bin/soffice.bin,soffice_bin$(gb_Executable_EXT)))
ifeq ($(COM),MSC)
$(eval $(call gb_Package_add_file,desktop_soffice_bin,bin/soffice.bin.manifest,soffice_bin$(gb_Executable_EXT).manifest))
endif
# vim: set shiftwidth=4 tabstop=4 noexpandtab:
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