mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Fix CMake to not add Facebook on Android
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
8abbcc5598
commit
13573915b6
2 changed files with 19 additions and 20 deletions
|
@ -129,7 +129,6 @@ elseif(${SUBSURFACE_TARGET_EXECUTABLE} MATCHES "MobileExecutable")
|
|||
endif()
|
||||
|
||||
if(ANDROID)
|
||||
set(FBSUPPORT OFF)
|
||||
set(NO_PRINTING ON)
|
||||
list(APPEND QT_EXTRA_COMPONENTS AndroidExtras)
|
||||
list(APPEND QT_EXTRA_LIBRARIES Qt5::AndroidExtras)
|
||||
|
@ -208,11 +207,6 @@ if (${SUBSURFACE_TARGET_EXECUTABLE} MATCHES "DesktopExecutable")
|
|||
add_subdirectory(desktop-widgets)
|
||||
endif()
|
||||
|
||||
if(FBSUPPORT)
|
||||
add_definitions(-DFBSUPPORT)
|
||||
set(FACEBOOK_INTEGRATION facebook_integration)
|
||||
endif()
|
||||
|
||||
# create the executables
|
||||
if(${SUBSURFACE_TARGET_EXECUTABLE} MATCHES "MobileExecutable")
|
||||
set(SUBSURFACE_TARGET subsurface-mobile)
|
||||
|
|
|
@ -1,17 +1,22 @@
|
|||
if (ANDROID)
|
||||
set(FACEBOOK_INTEGRATION "")
|
||||
elseif (${FBSUPPORT})
|
||||
add_definitions(-DFBSUPPORT)
|
||||
set(FACEBOOK_INTEGRATION facebook_integration)
|
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||
set(FACEBOOK_PLUGIN_UI
|
||||
facebookconnectwidget.ui
|
||||
socialnetworksdialog.ui
|
||||
)
|
||||
|
||||
set(FACEBOOK_PLUGIN_UI
|
||||
facebookconnectwidget.ui
|
||||
socialnetworksdialog.ui
|
||||
)
|
||||
set(FACEBOOK_PLUGIN_SRCS
|
||||
facebook_integration.cpp
|
||||
facebookconnectwidget.cpp
|
||||
)
|
||||
|
||||
set(FACEBOOK_PLUGIN_SRCS
|
||||
facebook_integration.cpp
|
||||
facebookconnectwidget.cpp
|
||||
)
|
||||
|
||||
qt5_wrap_ui(FACEBOOK_PLUGIN_UI_SRCS ${FACEBOOK_PLUGIN_UI})
|
||||
add_library(facebook_integration STATIC ${FACEBOOK_PLUGIN_SRCS} ${FACEBOOK_PLUGIN_UI_SRCS})
|
||||
target_link_libraries(facebook_integration ${QT_LIBRARIES})
|
||||
add_dependencies(facebook_integration subsurface_corelib)
|
||||
qt5_wrap_ui(FACEBOOK_PLUGIN_UI_SRCS ${FACEBOOK_PLUGIN_UI})
|
||||
add_library(facebook_integration STATIC ${FACEBOOK_PLUGIN_SRCS} ${FACEBOOK_PLUGIN_UI_SRCS})
|
||||
target_link_libraries(facebook_integration ${QT_LIBRARIES})
|
||||
add_dependencies(facebook_integration subsurface_corelib)
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue