|
Packit |
1fb8d4 |
# FreeRDP: A Remote Desktop Protocol Implementation
|
|
Packit |
1fb8d4 |
# FreeRDP cmake build script
|
|
Packit |
1fb8d4 |
#
|
|
Packit |
1fb8d4 |
# Copyright 2012 Laxmikant Rashinkar <LK.Rashinkar@gmail.com>
|
|
Packit |
1fb8d4 |
# Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
|
Packit |
1fb8d4 |
# Copyright 2013 Corey Clayton <can.of.tuna@gmail.com>
|
|
Packit |
1fb8d4 |
#
|
|
Packit |
1fb8d4 |
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
Packit |
1fb8d4 |
# you may not use this file except in compliance with the License.
|
|
Packit |
1fb8d4 |
# You may obtain a copy of the License at
|
|
Packit |
1fb8d4 |
#
|
|
Packit |
1fb8d4 |
# http://www.apache.org/licenses/LICENSE-2.0
|
|
Packit |
1fb8d4 |
#
|
|
Packit |
1fb8d4 |
# Unless required by applicable law or agreed to in writing, software
|
|
Packit |
1fb8d4 |
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
Packit |
1fb8d4 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
Packit |
1fb8d4 |
# See the License for the specific language governing permissions and
|
|
Packit |
1fb8d4 |
# limitations under the License.
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
define_channel_client_subsystem("rdpsnd" "mac" "")
|
|
Packit |
1fb8d4 |
|
|
Packit Service |
5a9772 |
find_library(COCOA_LIBRARY Cocoa REQUIRED)
|
|
Packit |
1fb8d4 |
FIND_LIBRARY(CORE_FOUNDATION CoreFoundation)
|
|
Packit Service |
5a9772 |
FIND_LIBRARY(CORE_AUDIO CoreAudio REQUIRED)
|
|
Packit Service |
5a9772 |
FIND_LIBRARY(AUDIO_TOOL AudioToolbox REQUIRED)
|
|
Packit Service |
5a9772 |
FIND_LIBRARY(AV_FOUNDATION AVFoundation REQUIRED)
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
set(${MODULE_PREFIX}_SRCS
|
|
Packit Service |
5a9772 |
rdpsnd_mac.m)
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
include_directories(..)
|
|
Packit |
1fb8d4 |
include_directories(${MACAUDIO_INCLUDE_DIRS})
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
add_channel_client_subsystem_library(${MODULE_PREFIX} ${MODULE_NAME} ${CHANNEL_NAME} "" TRUE "")
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS}
|
|
Packit |
1fb8d4 |
${AUDIO_TOOL}
|
|
Packit Service |
5a9772 |
${AV_FOUNDATION}
|
|
Packit |
1fb8d4 |
${CORE_AUDIO}
|
|
Packit Service |
5a9772 |
${COCOA_LIBRARY}
|
|
Packit |
1fb8d4 |
${CORE_FOUNDATION})
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} freerdp winpr)
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
target_link_libraries(${MODULE_NAME} ${${MODULE_PREFIX}_LIBS})
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "Channels/${CHANNEL_NAME}/Client/Mac")
|