2013-02-18 18:00:55 +04:00
|
|
|
# FreeRDP: A Remote Desktop Protocol Implementation
|
|
|
|
# Android Client
|
|
|
|
#
|
2016-02-01 17:25:40 +03:00
|
|
|
# Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
2013-12-04 14:37:57 +04:00
|
|
|
# Copyright 2013 Bernhard Miklautz <bernhard.miklautz@thincast.com>
|
2013-02-18 18:00:55 +04:00
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2016-02-01 17:25:40 +03:00
|
|
|
set(MODULE_NAME "freerdp-android")
|
|
|
|
set(MODULE_PREFIX "FREERDP_CLIENT_ANDROID")
|
2013-11-08 15:44:28 +04:00
|
|
|
|
2016-02-01 17:25:40 +03:00
|
|
|
include_directories(.)
|
2013-11-08 15:44:28 +04:00
|
|
|
|
2016-02-01 17:25:40 +03:00
|
|
|
if(CMAKE_COMPILER_IS_GNUCC)
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-pointer-sign")
|
2013-11-08 15:44:28 +04:00
|
|
|
endif()
|
2013-09-23 19:48:02 +04:00
|
|
|
|
2016-02-01 17:25:40 +03:00
|
|
|
set(${MODULE_PREFIX}_SRCS
|
|
|
|
android_event.c
|
|
|
|
android_event.h
|
|
|
|
android_freerdp.c
|
|
|
|
android_freerdp.h
|
|
|
|
android_jni_utils.c
|
|
|
|
android_jni_utils.h
|
|
|
|
android_jni_callback.c
|
|
|
|
android_jni_callback.h)
|
|
|
|
|
|
|
|
if(WITH_CLIENT_CHANNELS)
|
|
|
|
set(${MODULE_PREFIX}_SRCS ${${MODULE_PREFIX}_SRCS}
|
|
|
|
android_cliprdr.c
|
|
|
|
android_cliprdr.h)
|
2014-06-23 14:58:59 +04:00
|
|
|
endif()
|
|
|
|
|
2016-02-01 17:25:40 +03:00
|
|
|
add_library(${MODULE_NAME} SHARED ${${MODULE_PREFIX}_SRCS})
|
2013-11-08 15:44:28 +04:00
|
|
|
|
2016-02-01 17:25:40 +03:00
|
|
|
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} freerdp-client)
|
|
|
|
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} winpr freerdp)
|
2013-09-23 14:39:41 +04:00
|
|
|
|
2016-02-01 17:25:40 +03:00
|
|
|
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} dl)
|
|
|
|
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} log)
|
|
|
|
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} jnigraphics)
|
2014-06-23 15:29:38 +04:00
|
|
|
|
2016-02-01 17:25:40 +03:00
|
|
|
target_link_libraries(${MODULE_NAME} ${${MODULE_PREFIX}_LIBS})
|
|
|
|
install(TARGETS ${MODULE_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT libraries EXPORT AndroidTargets)
|