diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-09-09 10:44:56 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-09-09 13:55:23 +0300 |
commit | 6492c8576e0393f7ee548cd938e84c80e8d37127 (patch) | |
tree | 2a633846a61c060481341389e104896b8a17598d /scp2/source/ooo/ure.scp | |
parent | 43efd9b40d40b791a2c2deedcac36b99f7efb2cf (diff) |
Make the "Mac-like" or "canonical" app bundle structure always used on OS X
In other words, only executable files go in the MacOS folder. Dynamic
libraries and bundled frameworks (i.e., LibreOfficePython), and
nothing else, go in the Frameworks folder, and all other files go in
the Resources folder.
Especially, note that Java class files and rc (.ini) files also go in
Resources.
Such an app bundle structure is what Apple strongly suggests one
should use, and it has been hinted that future versions of code
signing and/or Gatekeeper will require such a structure.
There is still some ugliness thanks to traces of the historical
separation of URE from "the office". Like there are two separate
"unorc" files, one for URE, one for the LibreOffice application. IMHO,
this should be cleaned up, but is probably controversial.
(Eek! I now see there are actually *three* unorc files in the app
bundle. Not intentional. Need to fix that later.)
Change-Id: Idcf235038deb5b8e1d061734993e9f31869b7606
Diffstat (limited to 'scp2/source/ooo/ure.scp')
-rw-r--r-- | scp2/source/ooo/ure.scp | 37 |
1 files changed, 12 insertions, 25 deletions
diff --git a/scp2/source/ooo/ure.scp b/scp2/source/ooo/ure.scp index ae538f342ed0..cb143ae92276 100644 --- a/scp2/source/ooo/ure.scp +++ b/scp2/source/ooo/ure.scp @@ -36,23 +36,10 @@ Directory gid_Dir_Common_Ure End #endif -#if defined MACOSX -#if !defined ENABLE_MACOSX_MACLIKE_APP_STRUCTURE -Directory gid_Dir_UreLink - ParentID = gid_Dir_Bundle_Contents; - DosName = "ure-link"; -End -#endif -#endif - -#if !defined ENABLE_MACOSX_MACLIKE_APP_STRUCTURE +#if !defined MACOSX Directory gid_Dir_Ure_Bin -#if defined MACOSX - ParentID = gid_Dir_UreLink; -#else ParentID = gid_Dir_Common_Ure; -#endif DosName = "bin"; End @@ -85,11 +72,11 @@ Directory gid_Dir_Ure_Java End #endif -#endif // !ENABLE_MACOSX_MACLIKE_APP_STRUCTURE +#endif // !MACOSX #if !defined WNT Directory gid_Dir_Ure_Share_Misc -#if defined ENABLE_MACOSX_MACLIKE_APP_STRUCTURE +#if defined MACOSX ParentID = gid_Brand_Dir_Share_Ure_Share; #else ParentID = gid_Dir_Ure_Share; @@ -161,18 +148,18 @@ End // We set up the URE unorc/uno.ini in scp2 because then it is easy to // get the platform differences into it compared to constructing it in -// Makefiles etc. With ENABLE_MACOSX_MACLIKE_APP_STRUCTURE it goes into -// .app/Contents/Resources/ure/unorc, on Unix into .../ure/lib/unorc -// and on Windows into .../ure/bin/unorc. The latter two locations -// are factored out as SCP2_URE_DL_DIR. +// Makefiles etc. On OS X it goes into .app/Contents/Resources/ure/unorc, +// on other Unix into .../ure/lib/unorc and on Windows into +// .../ure/bin/unorc. The latter two locations are factored out as +// SCP2_URE_DL_DIR. // FIXME: remove this completely? // currently getting 'destination' at file not unique error on WNT -// but needs handling of ENABLE_MACOSX_MACLIKE_APP_STRUCTURE then... +// but needs handling of MACOSX then... #ifndef WNT Profile gid_Profile_Dl_Uno_Ini ModuleID = gid_Module_Root_Ure_Hidden; -#if defined ENABLE_MACOSX_MACLIKE_APP_STRUCTURE +#if defined MACOSX Dir = gid_Brand_Dir_Share_Ure; #else Dir = SCP2_URE_DL_DIR; @@ -185,7 +172,7 @@ ProfileItem gid_Profileitem_Dl_Uno_Ure_Internal_Lib_Dir ProfileID = gid_Profile_Dl_Uno_Ini; Section = "Bootstrap"; Key = "URE_INTERNAL_LIB_DIR"; -#if defined ENABLE_MACOSX_MACLIKE_APP_STRUCTURE +#if defined MACOSX Value = "${ORIGIN}/../../Frameworks"; #else Value = "${ORIGIN}"; @@ -197,7 +184,7 @@ ProfileItem gid_Profileitem_Dl_Uno_Ure_Internal_Java_Dir ProfileID = gid_Profile_Dl_Uno_Ini; Section = "Bootstrap"; Key = "URE_INTERNAL_JAVA_DIR"; -#if defined ENABLE_MACOSX_MACLIKE_APP_STRUCTURE +#if defined MACOSX Value = "${ORIGIN}/../java"; #elif defined WNT Value = "${ORIGIN}/../java"; @@ -219,7 +206,7 @@ ProfileItem gid_Profileitem_Dl_Uno_Uno_Types ProfileID = gid_Profile_Dl_Uno_Ini; Section = "Bootstrap"; Key = "UNO_TYPES"; -#if defined ENABLE_MACOSX_MACLIKE_APP_STRUCTURE +#if defined MACOSX Value = "${ORIGIN}/types.rdb ${URE_MORE_TYPES}"; #elif defined WNT Value = "${ORIGIN}/../misc/types.rdb ${URE_MORE_TYPES}"; |