Adding libboost-chrono dependency on Mac/Linux.
This commit is contained in:
+14
-1
@@ -422,6 +422,8 @@ unix:!mac {
|
|||||||
boost_iostreams-mt
|
boost_iostreams-mt
|
||||||
BOOST_REGEX = boost_regex \
|
BOOST_REGEX = boost_regex \
|
||||||
boost_regex-mt
|
boost_regex-mt
|
||||||
|
BOOST_CHRONO = boost_chrono \
|
||||||
|
boost_chrono-mt
|
||||||
BOOST_SYS = boost_system \
|
BOOST_SYS = boost_system \
|
||||||
boost_system-mt
|
boost_system-mt
|
||||||
BOOST_RANDOM = boost_random \
|
BOOST_RANDOM = boost_random \
|
||||||
@@ -463,6 +465,14 @@ unix:!mac {
|
|||||||
message("Found $$lib")
|
message("Found $$lib")
|
||||||
BOOST_REGEX = -l$$lib
|
BOOST_REGEX = -l$$lib
|
||||||
}
|
}
|
||||||
|
for(lib, BOOST_CHRONO):exists($${dir}/lib$${lib}.so*) {
|
||||||
|
message("Found $$lib")
|
||||||
|
BOOST_CHRONO = -l$$lib
|
||||||
|
}
|
||||||
|
for(lib, BOOST_CHRONO):exists($${dir}/lib$${lib}.a) {
|
||||||
|
message("Found $$lib")
|
||||||
|
BOOST_CHRONO = -l$$lib
|
||||||
|
}
|
||||||
!android{
|
!android{
|
||||||
for(lib, BOOST_RANDOM):exists($${dir}/lib$${lib}.so*) {
|
for(lib, BOOST_RANDOM):exists($${dir}/lib$${lib}.so*) {
|
||||||
message("Found $$lib")
|
message("Found $$lib")
|
||||||
@@ -487,9 +497,10 @@ unix:!mac {
|
|||||||
$$BOOST_FS \
|
$$BOOST_FS \
|
||||||
$$BOOST_IOSTREAMS \
|
$$BOOST_IOSTREAMS \
|
||||||
$$BOOST_REGEX \
|
$$BOOST_REGEX \
|
||||||
|
$$BOOST_CHRONO \
|
||||||
$$BOOST_RANDOM \
|
$$BOOST_RANDOM \
|
||||||
$$BOOST_SYS
|
$$BOOST_SYS
|
||||||
!count(BOOST_LIBS, 6):error("Unable to find boost libraries in PREFIX=$${PREFIX}")
|
!count(BOOST_LIBS, 7):error("Unable to find boost libraries in PREFIX=$${PREFIX}")
|
||||||
if($$system(sdl-config --version)):error("sdl-config not found in PATH - libSDL_mixer, libSDL are required!")
|
if($$system(sdl-config --version)):error("sdl-config not found in PATH - libSDL_mixer, libSDL are required!")
|
||||||
UNAME = $$system(uname -s)
|
UNAME = $$system(uname -s)
|
||||||
BSD = $$find(UNAME, "BSD")
|
BSD = $$find(UNAME, "BSD")
|
||||||
@@ -509,6 +520,7 @@ unix:!mac {
|
|||||||
$$BOOST_FS \
|
$$BOOST_FS \
|
||||||
$$BOOST_IOSTREAMS \
|
$$BOOST_IOSTREAMS \
|
||||||
$$BOOST_REGEX \
|
$$BOOST_REGEX \
|
||||||
|
$$BOOST_CHRONO \
|
||||||
$$BOOST_SYS
|
$$BOOST_SYS
|
||||||
!count(BOOST_LIBS, 5):error("Unable to find boost libraries in PREFIX=$${PREFIX}/armv5")
|
!count(BOOST_LIBS, 5):error("Unable to find boost libraries in PREFIX=$${PREFIX}/armv5")
|
||||||
LIBS += -ltinyxml
|
LIBS += -ltinyxml
|
||||||
@@ -575,6 +587,7 @@ mac {
|
|||||||
LIBS += /usr/local/lib/libboost_thread.a
|
LIBS += /usr/local/lib/libboost_thread.a
|
||||||
LIBS += /usr/local/lib/libboost_filesystem.a
|
LIBS += /usr/local/lib/libboost_filesystem.a
|
||||||
LIBS += /usr/local/lib/libboost_regex.a
|
LIBS += /usr/local/lib/libboost_regex.a
|
||||||
|
LIBS += /usr/local/lib/libboost_chrono.a
|
||||||
LIBS += /usr/local/lib/libboost_random.a
|
LIBS += /usr/local/lib/libboost_random.a
|
||||||
LIBS += /usr/local/lib/libboost_system.a
|
LIBS += /usr/local/lib/libboost_system.a
|
||||||
LIBS += /usr/local/lib/libboost_iostreams.a
|
LIBS += /usr/local/lib/libboost_iostreams.a
|
||||||
|
|||||||
+12
-2
@@ -180,6 +180,7 @@ unix : !mac {
|
|||||||
BOOST_THREAD = boost_thread boost_thread-mt
|
BOOST_THREAD = boost_thread boost_thread-mt
|
||||||
BOOST_PROGRAM_OPTIONS = boost_program_options boost_program_options-mt
|
BOOST_PROGRAM_OPTIONS = boost_program_options boost_program_options-mt
|
||||||
BOOST_IOSTREAMS = boost_iostreams boost_iostreams-mt
|
BOOST_IOSTREAMS = boost_iostreams boost_iostreams-mt
|
||||||
|
BOOST_CHRONO = boost_chrono boost_chrono-mt
|
||||||
BOOST_SYS = boost_system boost_system-mt
|
BOOST_SYS = boost_system boost_system-mt
|
||||||
BOOST_REGEX = boost_regex boost_regex-mt
|
BOOST_REGEX = boost_regex boost_regex-mt
|
||||||
BOOST_RANDOM = boost_random boost_random-mt
|
BOOST_RANDOM = boost_random boost_random-mt
|
||||||
@@ -231,6 +232,14 @@ unix : !mac {
|
|||||||
message("Found $$lib")
|
message("Found $$lib")
|
||||||
BOOST_REGEX = -l$$lib
|
BOOST_REGEX = -l$$lib
|
||||||
}
|
}
|
||||||
|
for(lib, BOOST_CHRONO):exists($${dir}/lib$${lib}.so*) {
|
||||||
|
message("Found $$lib")
|
||||||
|
BOOST_CHRONO = -l$$lib
|
||||||
|
}
|
||||||
|
for(lib, BOOST_CHRONO):exists($${dir}/lib$${lib}.a) {
|
||||||
|
message("Found $$lib")
|
||||||
|
BOOST_CHRONO = -l$$lib
|
||||||
|
}
|
||||||
for(lib, BOOST_RANDOM):exists($${dir}/lib$${lib}.so*) {
|
for(lib, BOOST_RANDOM):exists($${dir}/lib$${lib}.so*) {
|
||||||
message("Found $$lib")
|
message("Found $$lib")
|
||||||
BOOST_RANDOM = -l$$lib
|
BOOST_RANDOM = -l$$lib
|
||||||
@@ -249,8 +258,8 @@ unix : !mac {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
BOOST_LIBS = $$BOOST_THREAD $$BOOST_FS $$BOOST_PROGRAM_OPTIONS $$BOOST_IOSTREAMS $$BOOST_REGEX $$BOOST_RANDOM $$BOOST_SYS
|
BOOST_LIBS = $$BOOST_THREAD $$BOOST_FS $$BOOST_PROGRAM_OPTIONS $$BOOST_IOSTREAMS $$BOOST_REGEX $$BOOST_CHRONO $$BOOST_RANDOM $$BOOST_SYS
|
||||||
!count(BOOST_LIBS, 7){
|
!count(BOOST_LIBS, 8){
|
||||||
error("Unable to find boost libraries in PREFIX=$${PREFIX}")
|
error("Unable to find boost libraries in PREFIX=$${PREFIX}")
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -301,6 +310,7 @@ mac {
|
|||||||
LIBS += /usr/local/lib/libboost_thread.a
|
LIBS += /usr/local/lib/libboost_thread.a
|
||||||
LIBS += /usr/local/lib/libboost_filesystem.a
|
LIBS += /usr/local/lib/libboost_filesystem.a
|
||||||
LIBS += /usr/local/lib/libboost_regex.a
|
LIBS += /usr/local/lib/libboost_regex.a
|
||||||
|
LIBS += /usr/local/lib/libboost_chrono.a
|
||||||
LIBS += /usr/local/lib/libboost_random.a
|
LIBS += /usr/local/lib/libboost_random.a
|
||||||
LIBS += /usr/local/lib/libboost_system.a
|
LIBS += /usr/local/lib/libboost_system.a
|
||||||
LIBS += /usr/local/lib/libboost_iostreams.a
|
LIBS += /usr/local/lib/libboost_iostreams.a
|
||||||
|
|||||||
Reference in New Issue
Block a user