summaryrefslogtreecommitdiff
path: root/scp2/source
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-08-18 18:45:45 +0200
committerTor Lillqvist <tml@iki.fi>2013-08-18 21:11:16 +0300
commit058a3d1c46449dd5159bae30c83db4c2c5c335b4 (patch)
tree28fae22c49b9cecdda52aa148dde2aba2b568ff9 /scp2/source
parentbd2f7ef662122d5c1202911cb2f3b0ab1e124695 (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 'scp2/source')
-rw-r--r--scp2/source/ooo/common_brand.scp28
-rw-r--r--scp2/source/ooo/directory_ooo.scp8
-rw-r--r--scp2/source/ooo/shortcut_ooo.scp3
-rw-r--r--scp2/source/ooo/ure.scp4
-rw-r--r--scp2/source/python/profileitem_python.scp4
5 files changed, 31 insertions, 16 deletions
diff --git a/scp2/source/ooo/common_brand.scp b/scp2/source/ooo/common_brand.scp
index 8ea797982a77..665b8bfedf76 100644
--- a/scp2/source/ooo/common_brand.scp
+++ b/scp2/source/ooo/common_brand.scp
@@ -135,7 +135,9 @@ Directory gid_Brand_Dir_Program_Shell
End
Directory gid_Brand_Dir_Readme
-#if defined MACOSX
+#if defined ENABLE_MACOSX_MACLIKE_APP_STRUCTURE
+ ParentID = gid_Dir_Bundle_Contents_Resources;
+#elif defined MACOSX
ParentID = gid_Dir_Bundle_Contents;
#else
ParentID = gid_Dir_Brand_Root;
@@ -485,7 +487,9 @@ End
File gid_Brand_File_Html_Thirdpartylicensereadme
Name = "LICENSE.html";
-#ifdef MACOSX
+#if defined ENABLE_MACOSX_MACLIKE_APP_STRUCTURE
+ Dir = gid_Dir_Bundle_Contents_Resources;
+#elif defined MACOSX
Dir = gid_Dir_Bundle_Contents;
#else
Dir = gid_Dir_Brand_Root;
@@ -494,7 +498,7 @@ File gid_Brand_File_Html_Thirdpartylicensereadme
TXT_FILE_BODY;
End
-#if defined UNX && !defined ENABLE_MACOSX_SANDBOX
+#if defined UNX && !defined ENABLE_MACOSX_SANDBOX && !defined ENABLE_MACOSX_MACLIKE_APP_STRUCTURE
File gid_Brand_File_Gdb_Trace
TXT_FILE_BODY;
@@ -591,7 +595,7 @@ File gid_Brand_File_Script_Unopkg
End
#endif
-#if defined MACOSX && !defined ENABLE_MACOSX_SANDBOX
+#if defined MACOSX && !defined ENABLE_MACOSX_MACLIKE_APP_STRUCTURE
Unixlink gid_Brand_Unixlink_Unopkg
BIN_FILE_BODY;
Dir = gid_Brand_Dir_Program;
@@ -1400,7 +1404,9 @@ End
File gid_License_Txt
TXT_FILE_BODY;
-#if defined MACOSX
+#if defined ENABLE_MACOSX_MACLIKE_APP_STRUCTURE
+ Dir = gid_Dir_Bundle_Contents_Resources;
+#elif defined MACOSX
Dir = gid_Dir_Bundle_Contents;
#else
Dir = gid_Dir_Brand_Root;
@@ -1416,7 +1422,9 @@ End
File gid_License_Odt
BIN_FILE_BODY;
-#if defined MACOSX
+#if defined ENABLE_MACOSX_MACLIKE_APP_STRUCTURE
+ Dir = gid_Dir_Bundle_Contents_Resources;
+#elif defined MACOSX
Dir = gid_Dir_Bundle_Contents;
#else
Dir = gid_Dir_Brand_Root;
@@ -1427,7 +1435,9 @@ End
File gid_Credits_Odt
BIN_FILE_BODY;
-#if defined MACOSX
+#if defined ENABLE_MACOSX_MACLIKE_APP_STRUCTURE
+ Dir = gid_Dir_Bundle_Contents_Resources;
+#elif defined MACOSX
Dir = gid_Dir_Bundle_Contents;
#else
Dir = gid_Dir_Brand_Root;
@@ -1438,7 +1448,9 @@ End
File gid_Apache_Notice
BIN_FILE_BODY;
-#if defined MACOSX
+#if defined ENABLE_MACOSX_MACLIKE_APP_STRUCTURE
+ Dir = gid_Dir_Bundle_Contents_Resources;
+#elif defined MACOSX
Dir = gid_Dir_Bundle_Contents;
#else
Dir = gid_Dir_Brand_Root;
diff --git a/scp2/source/ooo/directory_ooo.scp b/scp2/source/ooo/directory_ooo.scp
index 3a099a25293e..36d652290598 100644
--- a/scp2/source/ooo/directory_ooo.scp
+++ b/scp2/source/ooo/directory_ooo.scp
@@ -112,7 +112,9 @@ End
#endif
Directory gid_Dir_User
-#if defined MACOSX
+#if defined ENABLE_MACOSX_MACLIKE_APP_STRUCTURE
+ ParentID = gid_Dir_Bundle_Contents_Resources;
+#elif defined MACOSX
ParentID = gid_Dir_Bundle_Contents;
#else
ParentID = gid_Dir_Brand_Root;
@@ -357,7 +359,9 @@ Directory gid_Dir_Share_Fingerprint
End
Directory gid_Dir_Help
-#if defined MACOSX
+#if defined ENABLE_MACOSX_MACLIKE_APP_STRUCTURE
+ ParentID = gid_Dir_Bundle_Contents_Resources;
+#elif defined MACOSX
ParentID = gid_Dir_Bundle_Contents;
#else
ParentID = gid_Dir_Brand_Root;
diff --git a/scp2/source/ooo/shortcut_ooo.scp b/scp2/source/ooo/shortcut_ooo.scp
index 99e65909239f..2df138ab3e7d 100644
--- a/scp2/source/ooo/shortcut_ooo.scp
+++ b/scp2/source/ooo/shortcut_ooo.scp
@@ -19,7 +19,6 @@
#include "macros.inc"
#ifdef UNX
-#ifndef ENABLE_MACOSX_MACLIKE_APP_STRUCTURE
#ifndef SYSTEM_ICU
Shortcut gid_Shortcut_Lib_Icudata
@@ -59,8 +58,6 @@ End
#endif
-#endif
-
#ifdef MACOSX
#ifdef SOLAR_JAVA
diff --git a/scp2/source/ooo/ure.scp b/scp2/source/ooo/ure.scp
index 939bd3caf395..08b60f66f38b 100644
--- a/scp2/source/ooo/ure.scp
+++ b/scp2/source/ooo/ure.scp
@@ -18,10 +18,10 @@
#include "macros.inc"
-#if !defined ENABLE_MACOSX_MACLIKE_APP_STRUCTURE
-
#include "AutoInstall/ure"
+#if !defined ENABLE_MACOSX_MACLIKE_APP_STRUCTURE
+
Directory gid_Dir_Ure_Bin
#if defined MACOSX
ParentID = gid_Dir_UreLink;
diff --git a/scp2/source/python/profileitem_python.scp b/scp2/source/python/profileitem_python.scp
index ee4dac62b9fa..e66eb1aa7602 100644
--- a/scp2/source/python/profileitem_python.scp
+++ b/scp2/source/python/profileitem_python.scp
@@ -38,8 +38,10 @@ ProfileItem gid_Profileitem_Pythonloader_Pythonhome
Section = "Bootstrap";
Order = 1;
Key = "PYUNO_LOADER_PYTHONHOME";
- #ifdef MACOSX
+ #if defined ENABLE_MACOSX_MACLIKE_APP_STRUCTURE
Value = "$ORIGIN/../Frameworks/LibreOfficePython.framework";
+ #elif defined MACOSX
+ Value = CONCAT2($ORIGIN,/LibreOfficePython.framework);
#else
Value = CONCAT2($ORIGIN/python-core-,PYVERSION);
#endif