Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
bf0117cc
Kaydet (Commit)
bf0117cc
authored
Ock 25, 2018
tarafından
jan Iversen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
iOS, simplified dylib build
Change-Id: Icea9a5e4796dda288fafcd478a769fa7087baab2
üst
376ba90e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
71 deletions
+33
-71
CustomTarget_iOS_link.mk
ios/CustomTarget_iOS_link.mk
+30
-41
Module_ios.mk
ios/Module_ios.mk
+3
-2
StaticLibrary_iOSkit.mk
ios/StaticLibrary_iOSkit.mk
+0
-28
No files found.
ios/CustomTarget_iOS_
pre
link.mk
→
ios/CustomTarget_iOS_link.mk
Dosyayı görüntüle @
bf0117cc
...
...
@@ -5,60 +5,50 @@
# 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/.
#- Env ------------------------------------------------------------------------
IOSLIB = ''
IOSLD = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
IOSCLANG = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
IOSOBJ = $(WORKDIR)/CObject/ios/Kit.o
IOSGEN = $(SRCDIR)/ios/generated
IOSLIBS := $(shell \
(export INSTDIR=$(INSTDIR);export OS=$(OS); \
export WORKDIR=$(WORKDIR);export LIBO_LIB_FOLDER=$(LIBO_LIB_FOLDER); \
$(SRCDIR)/bin/lo-all-static-libs))
IOSOBJ = $(WORKDIR)/ios/Kit.o
IOSSRC = $(SRCDIR)/ios/source/LibreOfficeKit.c
ifeq ($(ENABLE_DEBUG),TRUE)
ifeq ($(CPUNAME),X86_64)
IOSKIT = $(IOSGEN)/simulator/libKit
IOSKIT = $(IOSGEN)/simulator/libKit
.dylib
else
IOSKIT = $(IOSGEN)/debug/libKit
IOSKIT = $(IOSGEN)/debug/libKit
.dylib
endif
else
ifeq ($(CPUNAME),ARM64)
IOSKIT = $(IOSGEN)/release/libKit
IOSKIT = $(IOSGEN)/release/libKit
.dylib
endif
endif
#- Top level -----------------------------------------------------------------
$(eval $(call gb_CustomTarget_CustomTarget,ios/iOS_prelink))
$(call gb_CustomTarget_get_target,ios/iOS_prelink): $(IOSKIT).dylib
$(eval $(call gb_CustomTarget_CustomTarget,ios/iOS_link))
$(call gb_CustomTarget_get_target,ios/iOS_link): $(IOSKIT)
#- build ---------------------------------------------------------------------
.PHONY: FORCE
FORCE:
IOSPREBUILD: FORCE
$(eval IOSLIBS = `$(SRCDIR)/bin/lo-all-static-libs`)
$(IOSKIT).a: IOSPREBUILD $(WORKDIR)/ios $(call gb_StaticLibrary_get_target,iOS_kitBridge) \
$(IOSLIBS)
$(call gb_Output_announce,iOS prelink object,$(true),LNK,2)
$(IOSLD) -r -ios_version_min $(IOS_DEPLOYMENT_VERSION) \
-syslibroot $(MACOSX_SDK_PATH) \
-arch `echo $(CPUNAME) | tr '[:upper:]' '[:lower:]'` \
-o $(IOSOBJ) \
$(WORKDIR)/CObject/ios/source/LibreOfficeKit.o \
$(IOSLIBS)
$(AR) -r $(IOSKIT).a $(IOSOBJ)
$(IOSKIT).dylib: $(IOSKIT).a
$(IOSOBJ): $(IOSSRC) $(call gb_CustomTarget_get_target,ios/iOS_setup)
$(call gb_Output_announce,iOS compile interface,$(true),C,2)
$(gb_CC) $(gb_COMPILERDEFS) $(gb_OSDEFS) $(gb_CFLAGS) \
-DDISABLE_DYNLOADING -DLIBO_INTERNAL_ONLY \
-fvisibility=hidden -Werror -O0 -fstrict-overflow \
$(if $(ENABLE_DEBUG),$(gb_DEBUG_CFLAGS) -g) \
-c $(IOSSRC) -o $(IOSOBJ) \
-I$(SRCDIR)/include -I$(BUILDDIR)/config_host \
$(IOSKIT): $(IOSOBJ) $(IOSLIBS)
$(call gb_Output_announce,iOS dylib,$(true),LNK,2)
$(IOSCLANG) -dynamiclib -mios-simulator-version-min=$(IOS_DEPLOYMENT_VERSION) \
-arch `echo $(CPUNAME) | tr '[:upper:]' '[:lower:]'` \
-isysroot $(MACOSX_SDK_PATH) \
$(gb_CC) -dynamiclib \
-Xlinker -rpath -Xlinker @executable_path/Frameworks \
-Xlinker -rpath -Xlinker @loader_path/Frameworks \
-dead_strip \
...
...
@@ -76,22 +66,21 @@ $(IOSKIT).dylib: $(IOSKIT).a
-single_module \
-compatibility_version 1 \
-current_version 1 \
$(IOSLIBS) \
$(IOSOBJ) \
-o $(IOSKIT)
.dylib
-o $(IOSKIT)
ifeq ($(origin IOS_CODEID),undefined)
@echo "please define environment variable IOS_CODEID as\n" \
"export IOS_CODEID=<your apple code identifier>"
@exit -1
else
codesign -s "$(IOS_CODEID)" $(IOSKIT)
.dylib
codesign -s "$(IOS_CODEID)" $(IOSKIT)
endif
#- clean ios -----------------------------------------------------------------
$(call gb_CustomTarget_get_clean_target,ios/iOS_
pre
link):
rm -f $(IOSKIT).
a $(IOSKIT).
dylib
$(call gb_CustomTarget_get_clean_target,ios/iOS_link):
rm -f $(IOSKIT).dylib
...
...
ios/Module_ios.mk
Dosyayı görüntüle @
bf0117cc
...
...
@@ -12,11 +12,12 @@ ifeq ($(OS),IOS)
$(eval $(call gb_Module_add_targets,ios,\
CustomTarget_iOS_setup \
StaticLibrary_iOSkit \
CustomTarget_iOS_prelink \
CustomTarget_iOS_link \
))
endif
# vim: set noet sw=4 ts=4:
ios/StaticLibrary_iOSkit.mk
deleted
100644 → 0
Dosyayı görüntüle @
376ba90e
# -*- 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/.
#
# 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 .
#
$(eval $(call gb_StaticLibrary_StaticLibrary,iOS_kitBridge))
$(eval $(call gb_StaticLibrary_add_cobjects,iOS_kitBridge,\
ios/source/LibreOfficeKit \
))
$(call gb_StaticLibrary_get_target,ios/iOS_kitBridge): $(call gb_CustomTarget_get_target,ios/iOS_setup)
# vim: set noet sw=4 ts=4:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment