mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Change the way we handle targets
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
This commit is contained in:
parent
47a985b0c7
commit
320cfccd71
1 changed files with 9 additions and 5 deletions
|
@ -115,12 +115,21 @@ include_directories(.
|
||||||
subsurface-core/
|
subsurface-core/
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Project Target specific configuration should go here,
|
||||||
|
# if the configuration is too big or would disrupt the normal code flux,
|
||||||
|
# move it somewhere else (another file) and include it.
|
||||||
if(SUBSURFACE_TARGET_PLATFORM MATCHES "Android")
|
if(SUBSURFACE_TARGET_PLATFORM MATCHES "Android")
|
||||||
set(FBSUPPORT OFF)
|
set(FBSUPPORT OFF)
|
||||||
set(NO_PRINTING ON)
|
set(NO_PRINTING ON)
|
||||||
list(APPEND QT_EXTRA_COMPONENTS AndroidExtras Quick)
|
list(APPEND QT_EXTRA_COMPONENTS AndroidExtras Quick)
|
||||||
list(APPEND QT_EXTRA_LIBRARIES Qt5::AndroidExtras Qt5::Quick)
|
list(APPEND QT_EXTRA_LIBRARIES Qt5::AndroidExtras Qt5::Quick)
|
||||||
|
set(SUBSURFACE_TARGET subsurface)
|
||||||
|
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -llog)
|
||||||
add_definitions(-DSUBSURFACE_MOBILE)
|
add_definitions(-DSUBSURFACE_MOBILE)
|
||||||
|
elseif(SUBSURFACE_TARGET_PLATFORM MATCHES "AndroidEmulator")
|
||||||
|
elseif(SUBSURFACE_TARGET_PLATFORM MATCHES "iOS")
|
||||||
|
elseif(SUBSURFACE_TARGET_PLATFORM MATCHES "iOSEmulator")
|
||||||
|
elseif(SUBSURFACE_TARGET_PLATFORM MATCHES "Desktop")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(BTSUPPORT)
|
if(BTSUPPORT)
|
||||||
|
@ -152,11 +161,6 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||||
# in some builds we appear to be missing libz for some strange reason...
|
# in some builds we appear to be missing libz for some strange reason...
|
||||||
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -lz)
|
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -lz)
|
||||||
endif()
|
endif()
|
||||||
if(ANDROID)
|
|
||||||
set(SUBSURFACE_TARGET subsurface)
|
|
||||||
# To allow us to debug log to logcat
|
|
||||||
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -llog)
|
|
||||||
endif()
|
|
||||||
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND sh scripts/get-version linux
|
COMMAND sh scripts/get-version linux
|
||||||
|
|
Loading…
Add table
Reference in a new issue