X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=CMakeLists.txt;h=733bfe1f114865e7bac88851130b1b312c69e014;hb=9137928c9a711ff6d7bf25c9627236d3c61f069e;hp=b9654940d21acf9d1b5c5e6f3dd900f31fc1f9ca;hpb=268070612773203845e9b24cb3052158d7548980;p=pulseview.git diff --git a/CMakeLists.txt b/CMakeLists.txt index b965494..733bfe1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -243,6 +243,12 @@ if(ENABLE_DECODE) pv/widgets/decodergroupbox.h pv/widgets/decodermenu.h ) + + if(ANDROID) + list(APPEND pulseview_SOURCES + android/envsetup.cpp + ) + endif() endif() if(WIN32) @@ -252,6 +258,10 @@ if(WIN32) list(APPEND pulseview_SOURCES pulseviewico.rc) endif() +if(ANDROID) + list(APPEND pulseview_SOURCES android/loghandler.cpp) +endif() + if(Qt5Core_FOUND) qt5_wrap_cpp(pulseview_HEADERS_MOC ${pulseview_HEADERS}) qt5_wrap_ui(pulseview_FORMS_HEADERS ${pulseview_FORMS}) @@ -333,6 +343,10 @@ if(WIN32) list(APPEND PULSEVIEW_LINK_LIBS "-lqsvg") endif() +if(ANDROID) + list(APPEND PULSEVIEW_LINK_LIBS "-llog") +endif() + if(ANDROID) add_library(${PROJECT_NAME} SHARED ${pulseview_SOURCES}