~ubuntu-branches/ubuntu/vivid/freerdp/vivid

« back to all changes in this revision

Viewing changes to channels/rdpsnd/client/mac/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2014-11-11 12:20:50 UTC
  • mfrom: (1.1.9) (9.1.17 sid)
  • Revision ID: package-import@ubuntu.com-20141111122050-wyr8hrnwco9fcmum
Tags: 1.1.0~git20140921.1.440916e+dfsg1-2ubuntu1
* Merge with Debian unstable, remaining changes
  - Disable ffmpeg support
* Disable gstreamer support, this relies on gstreamer 0.10 and we don't want
  to add any more deps on that.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# FreeRDP: A Remote Desktop Protocol Implementation
 
2
# FreeRDP cmake build script
 
3
#
 
4
# Copyright 2012 Laxmikant Rashinkar <LK.Rashinkar@gmail.com>
 
5
# Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
 
6
# Copyright 2013 Corey Clayton <can.of.tuna@gmail.com>
 
7
#
 
8
# Licensed under the Apache License, Version 2.0 (the "License");
 
9
# you may not use this file except in compliance with the License.
 
10
# You may obtain a copy of the License at
 
11
#
 
12
#     http://www.apache.org/licenses/LICENSE-2.0
 
13
#
 
14
# Unless required by applicable law or agreed to in writing, software
 
15
# distributed under the License is distributed on an "AS IS" BASIS,
 
16
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
17
# See the License for the specific language governing permissions and
 
18
# limitations under the License.
 
19
 
 
20
define_channel_client_subsystem("rdpsnd" "mac" "")
 
21
 
 
22
FIND_LIBRARY(CORE_AUDIO CoreAudio)
 
23
FIND_LIBRARY(AUDIO_TOOL AudioToolbox)
 
24
FIND_LIBRARY(CORE_FOUNDATION CoreFoundation)
 
25
 
 
26
set(${MODULE_PREFIX}_SRCS
 
27
        rdpsnd_mac.c)
 
28
 
 
29
include_directories(..)
 
30
include_directories(${MACAUDIO_INCLUDE_DIRS})
 
31
 
 
32
add_channel_client_subsystem_library(${MODULE_PREFIX} ${MODULE_NAME} ${CHANNEL_NAME} "" TRUE "")
 
33
 
 
34
set_target_properties(${MODULE_NAME} PROPERTIES PREFIX "")
 
35
 
 
36
set_complex_link_libraries(VARIABLE ${MODULE_PREFIX}_LIBS
 
37
        MONOLITHIC ${MONOLITHIC_BUILD}
 
38
        MODULE freerdp
 
39
        MODULES freerdp-utils)
 
40
        
 
41
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} 
 
42
    ${AUDIO_TOOL}
 
43
    ${CORE_AUDIO}
 
44
    ${CORE_FOUNDATION})
 
45
 
 
46
target_link_libraries(${MODULE_NAME} ${${MODULE_PREFIX}_LIBS})
 
47
 
 
48
if(NOT STATIC_CHANNELS)
 
49
        install(TARGETS ${MODULE_NAME} DESTINATION ${FREERDP_ADDIN_PATH})
 
50
endif()
 
51
 
 
52
set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "Channels/${CHANNEL_NAME}/Client/Mac")