diff options
Diffstat (limited to 'Makefile.gbuild')
-rw-r--r-- | Makefile.gbuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/Makefile.gbuild b/Makefile.gbuild new file mode 100644 index 000000000..c90a9feee --- /dev/null +++ b/Makefile.gbuild @@ -0,0 +1,62 @@ +# -*- 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/. +# + +ifeq (,$(gb_Side)) +gb_Side := host +endif +ifeq (,$(BUILDDIR)) +BUILDDIR := $(dir $(realpath $(firstword $(MAKEFILE_LIST)))) +endif + +include $(BUILDDIR)/config_$(gb_Side).mk + +include $(SRCDIR)/solenv/gbuild/gbuild.mk + +# If cross-compiling to a DESKTOP platform, just use RepositoryModule_host.mk on the build platform, too +ifeq ($(gb_Side)-$(filter DESKTOP,$(BUILD_TYPE_FOR_HOST)),build-DESKTOP) +$(eval $(call gb_Module_make_global_targets,$(SRCDIR)/RepositoryModule_host.mk)) +else +$(eval $(call gb_Module_make_global_targets,$(SRCDIR)/RepositoryModule_$(gb_Side).mk)) +endif + +upload-symbols: + bin/upload_symbols.py $(WORKDIR)/symbols.zip $(BREAKPAD_SYMBOL_CONFIG) "$(LIBO_VERSION_MAJOR).$(LIBO_VERSION_MINOR).$(LIBO_VERSION_MICRO).$(LIBO_VERSION_PATCH)$(LIBO_VERSION_SUFFIX)$(LIBO_VERSION_SUFFIX_SUFFIX)" + +create-update-info: + $(eval BUILDID := $(shell git -C $(SRCDIR) log -1 --format=%H)) + $(eval VERSION := $(LIBO_VERSION_MAJOR).$(LIBO_VERSION_MINOR).$(LIBO_VERSION_MICRO).$(LIBO_VERSION_PATCH)$(LIBO_VERSION_SUFFIX)$(LIBO_VERSION_SUFFIX_SUFFIX)) + $(eval PLATFORM := $(RTL_OS)_$(RTL_ARCH)) + $(eval MAR_NAME_PREFIX := $(PRODUCTNAME)_$(VERSION)_$(PLATFORM)_$(BUILDID)) + $(eval UPDATE_DIR := $(WORKDIR)/update-info) + $(eval MAR_DIR := $(WORKDIR)/mar) + rm -rf $(MAR_DIR) || true + rm -rf $(UPDATE_DIR) || true + mkdir -p $(MAR_DIR)/language + MAR=$(INSTDIR)/program/mar $(SRCDIR)/bin/update/create_full_mar.py "$(PRODUCTNAME)" "$(WORKDIR)" "$(MAR_NAME_PREFIX)" "$(UPDATE_CONFIG)" + $(if $(filter WNT,$(OS)),, \ + MAR=$(INSTDIR)/program/mar $(SRCDIR)/bin/update/create_full_mar_for_languages.py "$(PRODUCTNAME)" "$(WORKDIR)" "$(MAR_NAME_PREFIX)" "$(UPDATE_CONFIG)" \ + ) + +upload-update-info: + $(eval BUILDID := $(shell git -C $(SRCDIR) log -1 --format=%H)) + $(eval PLATFORM := $(RTL_OS)_$(RTL_ARCH)) + $(eval UPDATE_DIR := $(WORKDIR)/update-info) + $(eval VERSION := $(LIBO_VERSION_MAJOR).$(LIBO_VERSION_MINOR).$(LIBO_VERSION_MICRO).$(LIBO_VERSION_PATCH)$(LIBO_VERSION_SUFFIX)$(LIBO_VERSION_SUFFIX_SUFFIX)) + MAR=$(INSTDIR)/program/mar $(SRCDIR)/bin/update/create_build_config.py "$(PRODUCTNAME)" "$(VERSION)" "$(BUILDID)" "$(PLATFORM)" "$(UPDATE_DIR)" "$(UPDATE_CONFIG)" + MAR=$(INSTDIR)/program/mar $(SRCDIR)/bin/update/upload_builds.py "$(PRODUCTNAME)" "$(BUILDID)" "$(PLATFORM)" "$(UPDATE_DIR)" "$(UPDATE_CONFIG)" + MAR=$(INSTDIR)/program/mar $(SRCDIR)/bin/update/upload_build_config.py "$(UPDATE_DIR)" "$(UPDATE_CONFIG)" + +create-partial-info: + $(eval BUILDID := $(shell git -C $(SRCDIR) log -1 --format=%H)) + $(eval VERSION := $(LIBO_VERSION_MAJOR).$(LIBO_VERSION_MINOR).$(LIBO_VERSION_MICRO).$(LIBO_VERSION_PATCH)$(LIBO_VERSION_SUFFIX)$(LIBO_VERSION_SUFFIX_SUFFIX)) + $(eval PLATFORM := $(RTL_OS)_$(RTL_ARCH)) + $(eval MAR_NAME_PREFIX := $(PRODUCTNAME)_$(VERSION)_$(PLATFORM)_$(BUILDID)) + MBSDIFF=$(WORKDIR)/LinkTarget/Executable/mbsdiff MAR=$(INSTDIR)/program/mar $(SRCDIR)/bin/update/create_partial_update.py "$(WORKDIR)" "$(MAR_NAME_PREFIX)" "$(UPDATE_CONFIG)" "$(PLATFORM)" "$(BUILDID)" + +# vim: set noet sw=4 ts=4: |