summaryrefslogtreecommitdiff
path: root/indra/media_plugins/winmmshim/CMakeLists.txt
blob: bf74f818093d60144e59752d215c6f669ef01ce6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# -*- cmake -*-

project(winmm_shim)

### winmm_shim
# *HACK - override msvcrt implementation (intialized on 00-Common) to be
# statically linked for winmm.dll this relies on vc taking the last flag on
# the command line
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /MT")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")

set(winmm_shim_SOURCE_FILES
    forwarding_api.cpp
    winmm_shim.cpp
    )

set(winmm_shim_HEADER_FILES
    forwarding_api.h
    winmm.def
    )

list(APPEND winmm_shim_SOURCE_FILES ${winmm_shim_HEADER_FILES})

set_source_files_properties(${media_plugin_webkit_HEADER_FILES}
                            PROPERTIES HEADER_FILE_ONLY TRUE)

add_library(winmm_shim
    SHARED
    ${winmm_shim_SOURCE_FILES}
)

if (WINDOWS)
  set_target_properties(
    winmm_shim
    PROPERTIES
    LINK_FLAGS "/MANIFEST:NO"
    OUTPUT_NAME "winmm"
    )
endif (WINDOWS)