diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-08-18 18:45:45 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-08-18 21:11:16 +0300 |
commit | 058a3d1c46449dd5159bae30c83db4c2c5c335b4 (patch) | |
tree | 28fae22c49b9cecdda52aa148dde2aba2b568ff9 /solenv/gbuild | |
parent | bd2f7ef662122d5c1202911cb2f3b0ab1e124695 (diff) |
Further work on the "Mac-like app structure" option
Lots of stuff still either ended up in the wrong place, or was looked up from
the wrong place, or both. Fix most cases.
Change-Id: I06ebbce207c219f3cd82b4387dd9b3fdb83420d4
Diffstat (limited to 'solenv/gbuild')
-rw-r--r-- | solenv/gbuild/Gallery.mk | 2 | ||||
-rw-r--r-- | solenv/gbuild/Package.mk | 3 | ||||
-rw-r--r-- | solenv/gbuild/PythonTest.mk | 4 | ||||
-rw-r--r-- | solenv/gbuild/Pyuno.mk | 2 | ||||
-rw-r--r-- | solenv/gbuild/UIConfig.mk | 2 | ||||
-rw-r--r-- | solenv/gbuild/gbuild.mk | 2 | ||||
-rw-r--r-- | solenv/gbuild/platform/IOS_ARM_GCC.mk | 3 | ||||
-rw-r--r-- | solenv/gbuild/platform/com_MSC_class.mk | 3 | ||||
-rw-r--r-- | solenv/gbuild/platform/macosx.mk | 11 | ||||
-rw-r--r-- | solenv/gbuild/platform/mingw.mk | 3 | ||||
-rw-r--r-- | solenv/gbuild/platform/solaris.mk | 3 | ||||
-rw-r--r-- | solenv/gbuild/platform/unxgcc.mk | 3 |
12 files changed, 15 insertions, 26 deletions
diff --git a/solenv/gbuild/Gallery.mk b/solenv/gbuild/Gallery.mk index 113f59bebca4..b19d0cba63a9 100644 --- a/solenv/gbuild/Gallery.mk +++ b/solenv/gbuild/Gallery.mk @@ -41,7 +41,7 @@ gb_Gallery_EXTRA_DEPENCENCIES := \ $(foreach component,$(gb_Gallery__UNO_COMPONENTS),$(call gb_ComponentTarget_get_target_for_build,$(component))) \ $(foreach api,$(gb_Gallery__UNO_TYPES),$(call gb_UnoApi_get_target,$(api))) -gb_Gallery_INSTDIR := share/gallery +gb_Gallery_INSTDIR := $(LIBO_SHARE_FOLDER)/gallery # BRAND_BASE_DIR is for resource files define gb_Gallery__make_env_args diff --git a/solenv/gbuild/Package.mk b/solenv/gbuild/Package.mk index cef49ce9e7f1..52f82f115269 100644 --- a/solenv/gbuild/Package.mk +++ b/solenv/gbuild/Package.mk @@ -55,8 +55,9 @@ endef # Package class +gb_Package_PROGRAMDIRNAME := $(LIBO_BIN_FOLDER) + # defined by platform -# gb_Package_PROGRAMDIRNAME # gb_Package_SDKDIRNAME $(dir $(call gb_Package_get_target,%)).dir : diff --git a/solenv/gbuild/PythonTest.mk b/solenv/gbuild/PythonTest.mk index e6f4412ea2f8..539a961f4a16 100644 --- a/solenv/gbuild/PythonTest.mk +++ b/solenv/gbuild/PythonTest.mk @@ -41,7 +41,7 @@ $(call gb_PythonTest_get_target,%) : $(if $(G_SLICE),G_SLICE=$(G_SLICE)) \ $(if $(GLIBCXX_FORCE_NEW),GLIBCXX_FORCE_NEW=$(GLIBCXX_FORCE_NEW)) \ $(DEFS) \ - URE_BOOTSTRAP=vnd.sun.star.pathname:$(call gb_Helper_get_rcfile,$(gb_DEVINSTALLROOT)/program/fundamental) \ + URE_BOOTSTRAP=vnd.sun.star.pathname:$(call gb_Helper_get_rcfile,$(gb_DEVINSTALLROOT)/$(LIBO_ETC_FOLDER)/fundamental) \ PYTHONPATH="$(PYPATH)" \ UserInstallation=$(call gb_Helper_make_url,$(dir $(call gb_PythonTest_get_target,$*))user) \ TestUserDir="$(call gb_Helper_make_url,$(dir $(call gb_PythonTest_get_target,$*)))" \ @@ -56,7 +56,7 @@ $(call gb_PythonTest_get_target,%) : # always use udkapi and URE services define gb_PythonTest_PythonTest -$(call gb_PythonTest_get_target,$(1)) : PYPATH := $(SRCDIR)/unotest/source/python$$(gb_CLASSPATHSEP)$(gb_DEVINSTALLROOT)/program +$(call gb_PythonTest_get_target,$(1)) : PYPATH := $(SRCDIR)/unotest/source/python$$(gb_CLASSPATHSEP)$(gb_DEVINSTALLROOT)/$(LIBO_LIB_PYUNO_FOLDER) $(call gb_PythonTest_get_target,$(1)) : MODULES := $(eval $(call gb_Module_register_target,$(call gb_PythonTest_get_target,$(1)),$(call gb_PythonTest_get_clean_target,$(1)))) diff --git a/solenv/gbuild/Pyuno.mk b/solenv/gbuild/Pyuno.mk index 498a4de71d63..36385d2856af 100644 --- a/solenv/gbuild/Pyuno.mk +++ b/solenv/gbuild/Pyuno.mk @@ -46,7 +46,7 @@ endef # gb_Pyuno_add_file component destination source define gb_Pyuno_add_file -$(call gb_Package_add_file,$(call gb_Pyuno_get_packagename,$(1)),$(gb_PROGRAMDIRNAME)/$(2),$(3)) +$(call gb_Package_add_file,$(call gb_Pyuno_get_packagename,$(1)),$(LIBO_LIB_PYUNO_FOLDER)/$(2),$(3)) endef diff --git a/solenv/gbuild/UIConfig.mk b/solenv/gbuild/UIConfig.mk index d76d5dd9ec64..2033e06034fd 100644 --- a/solenv/gbuild/UIConfig.mk +++ b/solenv/gbuild/UIConfig.mk @@ -167,7 +167,7 @@ endef # of .ui files. This filelist only exists if the UIConfig contains any # .ui files. -gb_UIConfig_INSTDIR := share/config/soffice.cfg +gb_UIConfig_INSTDIR := $(LIBO_SHARE_FOLDER)/config/soffice.cfg # en-US is the default, so there is no translation for it gb_UIConfig_LANGS := $(filter-out en-US,$(gb_WITH_LANG)) diff --git a/solenv/gbuild/gbuild.mk b/solenv/gbuild/gbuild.mk index 9681dd25f8aa..b320cf4cc403 100644 --- a/solenv/gbuild/gbuild.mk +++ b/solenv/gbuild/gbuild.mk @@ -181,6 +181,8 @@ $(eval $(call gb_Helper_collect_knownlibs)) gb_Library_DLLPOSTFIX := lo +gb_PROGRAMDIRNAME := $(LIBO_BIN_FOLDER) + # Include platform/cpu/compiler specific config/definitions include $(GBUILDDIR)/platform/$(OS)_$(CPUNAME)_$(COM).mk diff --git a/solenv/gbuild/platform/IOS_ARM_GCC.mk b/solenv/gbuild/platform/IOS_ARM_GCC.mk index 3ad06e558e9e..33217b4c2546 100644 --- a/solenv/gbuild/platform/IOS_ARM_GCC.mk +++ b/solenv/gbuild/platform/IOS_ARM_GCC.mk @@ -19,8 +19,6 @@ gb_CPUDEFS := -DARM32 -gb_PROGRAMDIRNAME := program - ifeq ($(CC),) $(error You must set CC in the environment. See README.cross for example.) endif @@ -262,7 +260,6 @@ gb_UnoApiHeadersTarget_select_variant = $(2) endif # Package class -gb_Package_PROGRAMDIRNAME := program gb_Package_SDKDIRNAME := sdk # UIMenubarTarget class diff --git a/solenv/gbuild/platform/com_MSC_class.mk b/solenv/gbuild/platform/com_MSC_class.mk index 8999838c8a69..3d3791501ed5 100644 --- a/solenv/gbuild/platform/com_MSC_class.mk +++ b/solenv/gbuild/platform/com_MSC_class.mk @@ -19,8 +19,6 @@ gb_DEVINSTALLROOT := $(DEVINSTALLDIR)/opt -gb_PROGRAMDIRNAME := program - # Convert path to file URL. define gb_Helper_make_url file:///$(strip $(1)) @@ -564,7 +562,6 @@ gb_UnoApiHeadersTarget_select_variant = $(2) endif # Package class -gb_Package_PROGRAMDIRNAME := program gb_Package_SDKDIRNAME := sdk # UIMenubarTarget class diff --git a/solenv/gbuild/platform/macosx.mk b/solenv/gbuild/platform/macosx.mk index cb27bf20e298..893c203b11a4 100644 --- a/solenv/gbuild/platform/macosx.mk +++ b/solenv/gbuild/platform/macosx.mk @@ -19,8 +19,6 @@ gb_DEVINSTALLROOT := $(DEVINSTALLDIR)/opt/LibreOffice.app/Contents -gb_PROGRAMDIRNAME := MacOS - gb_SDKDIR := $(MACOSX_SDK_PATH) include $(GBUILDDIR)/platform/com_GCC_defs.mk @@ -313,7 +311,11 @@ endef # PythonTest class -gb_PythonTest_PRECOMMAND := $(gb_Helper_LIBRARY_PATH_VAR)=$${$(gb_Helper_LIBRARY_PATH_VAR):+$$$(gb_Helper_LIBRARY_PATH_VAR):}$(gb_DEVINSTALLROOT)/ure-link/lib:$(gb_DEVINSTALLROOT)/program:$(OUTDIR)/lib +gb_PythonTest_PRECOMMAND := $(gb_Helper_LIBRARY_PATH_VAR)=$${$(gb_Helper_LIBRARY_PATH_VAR):+$$$(gb_Helper_LIBRARY_PATH_VAR):}$(gb_DEVINSTALLROOT)/$(LIBO_URE_LIB_FOLDER) +ifneq ($(LIBO_LIB_FOLDER),$(LIBO_URE_LIB_FOLDER)) +gb_PythonTest_PRECOMMAND := $(gb_PythonTest_PRECOMMAND):$(gb_DEVINSTALLROOT)/$(LIBO_LIB_FOLDER) +endif +gb_PythonTest_PRECOMMAND := $(gb_PythonTest_PRECOMMAND):$(OUTDIR)/lib # Module class @@ -367,7 +369,6 @@ gb_UnoApiHeadersTarget_select_variant = $(2) endif # Package class -gb_Package_PROGRAMDIRNAME := MacOS gb_Package_SDKDIRNAME := LibreOffice$(PRODUCTVERSION)_SDK # UIMenubarTarget class @@ -387,7 +388,7 @@ endef # Python gb_Python_PRECOMMAND := DYLD_LIBRARY_PATH=$(OUTDIR)/lib -gb_Python_INSTALLED_EXECUTABLE := $(gb_DEVINSTALLROOT)/program/LibreOfficePython.framework/Versions/$(PYTHON_VERSION_MAJOR).$(PYTHON_VERSION_MINOR)/Resources/Python.app/Contents/MacOS/LibreOfficePython +gb_Python_INSTALLED_EXECUTABLE := $(gb_DEVINSTALLROOT)/$(LIBO_LIB_FOLDER)/LibreOfficePython.framework/Versions/$(PYTHON_VERSION_MAJOR).$(PYTHON_VERSION_MINOR)/Resources/Python.app/Contents/MacOS/LibreOfficePython # this is passed to gdb as executable when running tests gb_Python_INSTALLED_EXECUTABLE_GDB := $(gb_Python_INSTALLED_EXECUTABLE) diff --git a/solenv/gbuild/platform/mingw.mk b/solenv/gbuild/platform/mingw.mk index 9375a0574ff3..d0bbc71a3164 100644 --- a/solenv/gbuild/platform/mingw.mk +++ b/solenv/gbuild/platform/mingw.mk @@ -17,8 +17,6 @@ # the License at http://www.apache.org/licenses/LICENSE-2.0 . # -gb_PROGRAMDIRNAME := program - gb_RC := $(WINDRES) gb_COMPILERDEFS += \ @@ -375,7 +373,6 @@ gb_UnoApiHeadersTarget_select_variant = $(2) endif # Package class -gb_Package_PROGRAMDIRNAME := program gb_Package_SDKDIRNAME := sdk # UIMenubarTarget class diff --git a/solenv/gbuild/platform/solaris.mk b/solenv/gbuild/platform/solaris.mk index f9d236b1c466..3c633c1718d9 100644 --- a/solenv/gbuild/platform/solaris.mk +++ b/solenv/gbuild/platform/solaris.mk @@ -19,8 +19,6 @@ gb_DEVINSTALLROOT := $(DEVINSTALLDIR)/opt -gb_PROGRAMDIRNAME := program - include $(GBUILDDIR)/platform/com_GCC_defs.mk gb_MKTEMP := mktemp -t gbuild.XXXXXX @@ -397,7 +395,6 @@ gb_UnoApiHeadersTarget_select_variant = $(2) endif # Package class -gb_Package_PROGRAMDIRNAME := program gb_Package_SDKDIRNAME := sdk # UIMenubarTarget class diff --git a/solenv/gbuild/platform/unxgcc.mk b/solenv/gbuild/platform/unxgcc.mk index 9eb79fd9e2c0..0a2c53d99f9b 100644 --- a/solenv/gbuild/platform/unxgcc.mk +++ b/solenv/gbuild/platform/unxgcc.mk @@ -19,8 +19,6 @@ gb_DEVINSTALLROOT := $(DEVINSTALLDIR)/opt -gb_PROGRAMDIRNAME := program - include $(GBUILDDIR)/platform/com_GCC_defs.mk gb_MKTEMP := mktemp -t gbuild.XXXXXX @@ -394,7 +392,6 @@ gb_UnoApiHeadersTarget_select_variant = $(2) endif # Package class -gb_Package_PROGRAMDIRNAME := program gb_Package_SDKDIRNAME := sdk # UIMenubarTarget class |