DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame] | 1 | add_subdirectory(os) |
DRC | 180c016 | 2010-10-27 07:20:27 +0000 | [diff] [blame] | 2 | add_subdirectory(rdr) |
| 3 | add_subdirectory(network) |
| 4 | add_subdirectory(Xregion) |
| 5 | add_subdirectory(rfb) |
DRC | ce82f4b | 2011-08-23 20:35:06 +0000 | [diff] [blame] | 6 | |
| 7 | # For any convenience libraries that are linked into libvnc.so, we need to |
| 8 | # explicitly build their corresponding sources using PIC. WIN32 is excluded |
| 9 | # because PIC code does not exist on that platform and MinGW complains if -fPIC |
| 10 | # is passed (additionally, libvnc is not used on Windows.) |
| 11 | |
Pierre Ossman | 92c52c3 | 2016-09-22 16:23:32 +0200 | [diff] [blame] | 12 | if(NOT WIN32) |
DRC | ce82f4b | 2011-08-23 20:35:06 +0000 | [diff] [blame] | 13 | set_target_properties(os rdr network Xregion rfb |
| 14 | PROPERTIES COMPILE_FLAGS -fPIC) |
DRC | ce82f4b | 2011-08-23 20:35:06 +0000 | [diff] [blame] | 15 | endif() |
Steve Kondik | 2b56371 | 2017-06-19 23:14:18 -0700 | [diff] [blame] | 16 | |
| 17 | # Generate Android.mk |
| 18 | foreach(ANDROID_SRC_PATH "os/*.cxx" "rdr/*.cxx" "network/*.cxx" "Xregion/*.c") |
| 19 | file(GLOB ANDROID_SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${ANDROID_SRC_PATH}) |
| 20 | foreach(SRC ${ANDROID_SOURCES}) |
| 21 | set(ANDROID_SRC_FILES "${ANDROID_SRC_FILES} \\\n ${SRC}") |
| 22 | endforeach() |
| 23 | endforeach() |
| 24 | |
| 25 | foreach(SRC ${RFB_SOURCES} Logger_android.cxx) |
| 26 | set(ANDROID_RFB_SRC_FILES "${ANDROID_RFB_SRC_FILES} \\\n rfb/${SRC}") |
| 27 | endforeach() |
| 28 | |
| 29 | configure_file(Android.mk.in Android.mk @ONLY) |