X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=CMakeLists.txt;h=2c1faddc10c9a0f5d8210fec5f571caa9e5b79b0;hp=733bfe1f114865e7bac88851130b1b312c69e014;hb=ab973f4729258b729d2aa84abfa14b61609fa35e;hpb=9137928c9a711ff6d7bf25c9627236d3c61f069e diff --git a/CMakeLists.txt b/CMakeLists.txt index 733bfe1f..2c1faddc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,6 +64,10 @@ if(ENABLE_DECODE) list(APPEND PKGDEPS libsigrokdecode>=0.3.0) endif() +if(ANDROID) + list(APPEND PKGDEPS libsigrokandroidutils>=0.1.0) +endif() + find_package(PkgConfig) pkg_check_modules(PKGDEPS REQUIRED ${PKGDEPS}) @@ -134,7 +138,6 @@ set(pulseview_SOURCES pv/device/device.cpp pv/device/file.cpp pv/device/devinst.cpp - pv/device/inputfile.cpp pv/device/sessionfile.cpp pv/dialogs/about.cpp pv/dialogs/connect.cpp @@ -243,12 +246,6 @@ if(ENABLE_DECODE) pv/widgets/decodergroupbox.h pv/widgets/decodermenu.h ) - - if(ANDROID) - list(APPEND pulseview_SOURCES - android/envsetup.cpp - ) - endif() endif() if(WIN32) @@ -277,7 +274,7 @@ endif() #= Global Definitions #------------------------------------------------------------------------------- -add_definitions(${QT_DEFINITIONS}) +add_definitions(${QT_DEFINITIONS} -DQT_NO_KEYWORDS) add_definitions(-D__STDC_LIMIT_MACROS) add_definitions(-Wall -Wextra) add_definitions(-std=c++11)