Kaydet (Commit) 1bd8cd25 authored tarafından jan Iversen's avatar jan Iversen

iOS, simplified lib ref and copy to device

Named libKit directories so they can be referenced simple within xCode

Change-Id: Ic05fa4e87b6cc87e2823177474c3ed9ac3433dd3
üst 5184506f
......@@ -18,13 +18,13 @@ IOSSRC = $(SRCDIR)/ios/source/LibreOfficeKit.c
ifeq ($(ENABLE_DEBUG),TRUE)
ifeq ($(CPUNAME),X86_64)
IOSKIT = $(IOSGEN)/simulator/libKit.dylib
IOSKIT = $(IOSGEN)/Debug_x86_64/libKit.dylib
else
IOSKIT = $(IOSGEN)/debug/libKit.dylib
IOSKIT = $(IOSGEN)/Debug_arm64/libKit.dylib
endif
else
ifeq ($(CPUNAME),ARM64)
IOSKIT = $(IOSGEN)/release/libKit.dylib
IOSKIT = $(IOSGEN)/Release_arm64/libKit.dylib
endif
endif
......@@ -81,7 +81,7 @@ endif
#- clean ios -----------------------------------------------------------------
$(call gb_CustomTarget_get_clean_target,ios/iOS_link):
rm -f $(IOSKIT).dylib
rm -f $(IOSKIT)
......
......@@ -12,9 +12,9 @@
IOSGEN = $(SRCDIR)/ios/generated
IOSRES = $(IOSGEN)/resources
IOSDIRS = $(IOSGEN) \
$(IOSGEN)/simulator \
$(IOSGEN)/debug \
$(IOSGEN)/release \
$(IOSGEN)/Debug_x86_64 \
$(IOSGEN)/Debug_arm64 \
$(IOSGEN)/Release_arm64 \
$(IOSRES) \
$(IOSRES)/services \
$(IOSRES)/program \
......@@ -108,16 +108,5 @@ $(call gb_CustomTarget_get_clean_target,ios/iOS_setup):
$(call gb_Output_announce,$(subst $(WORKDIR)/Clean/,,$@),$(false),ENV,2)
rm -rf $(IOSRES)/* $(IOSGEN)/native-code.h $(IOSGEN)/build
rm -rf $(WORKDIR)/ios
ifeq ($(ENABLE_DEBUG),TRUE)
ifeq ($(CPUNAME),X86_64)
rm -f $(IOSGEN)/simulator/*
else
rm -f $(IOSGEN)/debug/*
endif
else
ifeq ($(CPUNAME),ARM64)
rm -f $(IOSGEN)/release/*
endif
endif
# vim: set noet sw=4 ts=4:
......@@ -324,7 +324,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/bash;
shellScript = "echo hello\n\nGEN=$PROJECT_DIR/../generated\necho $arch\nif [ $arch = \"x86_64\" ]; then\nLIB=$GEN/simulator/libKit.dylib\nelse\nLIB=$GEN/release/libKit.dylib\nfi\necho $LIB\nln -sf $LIB $TARGET_BUILD_DIR/libKit.dylib\n\n\n\n\n";
shellScript = "\nGEN=$PROJECT_DIR/../generated/$CONFIGURATION\\_$arch/libKit.dylib\ncp $GEN $TARGET_BUILD_DIR/libKit.dylib\n\n\n\n\n";
};
/* End PBXShellScriptBuildPhase section */
......@@ -527,6 +527,7 @@
INFOPLIST_FILE = LibreOfficeLight/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.2;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LIBRARY_SEARCH_PATHS = "";
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = "$(LINK_LDFLAGS)";
PRODUCT_BUNDLE_IDENTIFIER = com.jani.Editors.LibreOfficeLight;
......@@ -560,6 +561,7 @@
INFOPLIST_FILE = LibreOfficeLight/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.2;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LIBRARY_SEARCH_PATHS = "";
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = "$(LINK_LDFLAGS)";
PRODUCT_BUNDLE_IDENTIFIER = com.jani.Editors.LibreOfficeLight;
......
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