Changeset View
Changeset View
Standalone View
Standalone View
kde-modules/KDEInstallDirs.cmake
Show First 20 Lines • Show All 126 Lines • ▼ Show 20 Line(s) | |||||
127 | # application configuration files (``SYSCONFDIR/xdg``) | 127 | # application configuration files (``SYSCONFDIR/xdg``) | ||
128 | # [``CONFIG_INSTALL_DIR``] | 128 | # [``CONFIG_INSTALL_DIR``] | ||
129 | # ``AUTOSTARTDIR`` | 129 | # ``AUTOSTARTDIR`` | ||
130 | # autostart files (``CONFDIR/autostart``) [``AUTOSTART_INSTALL_DIR``] | 130 | # autostart files (``CONFDIR/autostart``) [``AUTOSTART_INSTALL_DIR``] | ||
131 | # ``LOGGINGCATEGORIESDIR`` | 131 | # ``LOGGINGCATEGORIESDIR`` | ||
132 | # Qt logging categories files directory (``DATAROOTDIR/qlogging-categories5``) Since 5.59.0 | 132 | # Qt logging categories files directory (``DATAROOTDIR/qlogging-categories5``) Since 5.59.0 | ||
133 | # ``JARDIR`` | 133 | # ``JARDIR`` | ||
134 | # Java AAR/JAR files for Android. Since 5.62.0 | 134 | # Java AAR/JAR files for Android. Since 5.62.0 | ||
135 | # ``SYSTEMDUNITDIR`` | ||||
136 | # Systemd Units (``LIBDIR/systemd``) | ||||
137 | # [``SYSTEMD_UNIT_INSTALL_DIR``]. Since 5.FIXME | ||||
138 | # ``SYSTEMDUSERUNITDIR`` | ||||
139 | # Systemd uSER Units (``LIBDIR/systemd/user``) | ||||
140 | # [``SYSTEMD_USER_UNIT_INSTALL_DIR``]. Since 5.FIXME | ||||
krop: These fixme also need to be...fixed :) | |||||
135 | # | 141 | # | ||
136 | # If ``KDE_INSTALL_USE_QT_SYS_PATHS`` is set to TRUE before including this | 142 | # If ``KDE_INSTALL_USE_QT_SYS_PATHS`` is set to TRUE before including this | ||
137 | # module, the default values for some variables are instead queried from | 143 | # module, the default values for some variables are instead queried from | ||
138 | # Qt5's qmake (where mentioned in the parentheses above). | 144 | # Qt5's qmake (where mentioned in the parentheses above). | ||
139 | # If not set, it will default to TRUE if Qt5's qmake is found and | 145 | # If not set, it will default to TRUE if Qt5's qmake is found and | ||
140 | # it's ``QT_INSTALL_PREFIX`` is the same as ``CMAKE_INSTALL_PREFIX``, | 146 | # it's ``QT_INSTALL_PREFIX`` is the same as ``CMAKE_INSTALL_PREFIX``, | ||
141 | # otherwise default to FALSE. | 147 | # otherwise default to FALSE. | ||
142 | # This variable should NOT be set from within CMakeLists.txt files, instead | 148 | # This variable should NOT be set from within CMakeLists.txt files, instead | ||
▲ Show 20 Lines • Show All 88 Lines • ▼ Show 20 Line(s) | |||||
231 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 237 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
232 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 238 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
233 | 239 | | |||
234 | # Figure out what the default install directory for libraries should be. | 240 | # Figure out what the default install directory for libraries should be. | ||
235 | # This is based on the logic in GNUInstallDirs, but simplified (the | 241 | # This is based on the logic in GNUInstallDirs, but simplified (the | ||
236 | # GNUInstallDirs code deals with re-configuring, but that is dealt with | 242 | # GNUInstallDirs code deals with re-configuring, but that is dealt with | ||
237 | # by the _define_* macros in this module). | 243 | # by the _define_* macros in this module). | ||
238 | set(_LIBDIR_DEFAULT "lib") | 244 | set(_LIBDIR_DEFAULT "lib") | ||
239 | # Override this default 'lib' with 'lib64' iff: | 245 | # Override this default 'lib' with 'lib64' iff: | ||
fvogt: IMO the `iff` here can stay | |||||
240 | # - we are on a Linux, kFreeBSD or Hurd system but NOT cross-compiling | 246 | # - we are on a Linux, kFreeBSD or Hurd system but NOT cross-compiling | ||
241 | # - we are NOT on debian | 247 | # - we are NOT on debian | ||
242 | # - we are NOT on flatpak | 248 | # - we are NOT on flatpak | ||
243 | # - we are on a 64 bits system | 249 | # - we are on a 64 bits system | ||
244 | # reason is: amd64 ABI: http://www.x86-64.org/documentation/abi.pdf | 250 | # reason is: amd64 ABI: http://www.x86-64.org/documentation/abi.pdf | ||
245 | # For Debian with multiarch, use 'lib/${CMAKE_LIBRARY_ARCHITECTURE}' if | 251 | # For Debian with multiarch, use 'lib/${CMAKE_LIBRARY_ARCHITECTURE}' if | ||
246 | # CMAKE_LIBRARY_ARCHITECTURE is set (which contains e.g. "i386-linux-gnu" | 252 | # CMAKE_LIBRARY_ARCHITECTURE is set (which contains e.g. "i386-linux-gnu" | ||
247 | # See https://wiki.debian.org/Multiarch | 253 | # See https://wiki.debian.org/Multiarch | ||
▲ Show 20 Lines • Show All 387 Lines • ▼ Show 20 Line(s) | 640 | _define_relative(DBUSINTERFACEDIR DBUSDIR "interfaces" | |||
635 | "D-Bus interfaces" | 641 | "D-Bus interfaces" | ||
636 | DBUS_INTERFACES_INSTALL_DIR) | 642 | DBUS_INTERFACES_INSTALL_DIR) | ||
637 | _define_relative(DBUSSERVICEDIR DBUSDIR "services" | 643 | _define_relative(DBUSSERVICEDIR DBUSDIR "services" | ||
638 | "D-Bus session services" | 644 | "D-Bus session services" | ||
639 | DBUS_SERVICES_INSTALL_DIR) | 645 | DBUS_SERVICES_INSTALL_DIR) | ||
640 | _define_relative(DBUSSYSTEMSERVICEDIR DBUSDIR "system-services" | 646 | _define_relative(DBUSSYSTEMSERVICEDIR DBUSDIR "system-services" | ||
641 | "D-Bus system services" | 647 | "D-Bus system services" | ||
642 | DBUS_SYSTEM_SERVICES_INSTALL_DIR) | 648 | DBUS_SYSTEM_SERVICES_INSTALL_DIR) | ||
643 | 649 | _define_relative(SYSTEMDUNITDIR LIBDIR "systemd" | |||
644 | 650 | "Systemd units" | |||
651 | SYSTEMD_UNIT_INSTALL_DIR) | ||||
652 | _define_relative(SYSTEMDUSERUNITDIR SYSTEMDUNITDIR "user" | ||||
653 | "Systemd user units" | ||||
654 | SYSTEMD_USER_UNIT_INSTALL_DIR) | ||||
645 | 655 | | |||
646 | 656 | | |||
647 | set(_default_sysconf_dir "etc") | 657 | set(_default_sysconf_dir "etc") | ||
648 | if (CMAKE_INSTALL_PREFIX STREQUAL "/usr") | 658 | if (CMAKE_INSTALL_PREFIX STREQUAL "/usr") | ||
649 | set(_default_sysconf_dir "/etc") | 659 | set(_default_sysconf_dir "/etc") | ||
650 | endif() | 660 | endif() | ||
651 | 661 | | |||
652 | 662 | | |||
▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines |
These fixme also need to be...fixed :)