aboutsummaryrefslogtreecommitdiff
path: root/project/cmake/scripts/darwin/pathsetup.cmake
blob: 1296060cd84abd6d1704e4903b0280eebdae5ce4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
if(NOT prefix)
  set(prefix ${DEPENDS_PATH})
endif()
if(NOT exec_prefix)
  set(exec_prefix ${prefix})
endif()
if(NOT libdir)
  set(libdir ${prefix}/lib)
endif()
if(NOT bindir)
  set(bindir ${prefix}/bin)
endif()
if(NOT includedir)
  set(includedir ${prefix}/include)
endif()
if(NOT datarootdir)
  set(datarootdir ${prefix}/share)
endif()
if(NOT datadir)
  set(datadir ${datarootdir})
endif()

list(APPEND final_message "-- PATH config --")
list(APPEND final_message "Prefix: ${prefix}")
list(APPEND final_message "Libdir: ${libdir}")
list(APPEND final_message "Bindir: ${bindir}")
list(APPEND final_message "Includedir: ${includedir}")
list(APPEND final_message "Datarootdir: ${datarootdir}")
list(APPEND final_message "Datadir: ${datadir}")

set(PATH_DEFINES -DBIN_INSTALL_PATH=\"${libdir}/xbmc\"
                   -DINSTALL_PATH=\"${datarootdir}/xbmc\")