mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
54 lines
1.3 KiB
CMake
54 lines
1.3 KiB
CMake
|
|
spec2def(ksproxy.ax ksproxy.spec)
|
|
|
|
add_definitions(
|
|
-DNATIVE_CPP_INCLUDE=${REACTOS_SOURCE_DIR}/include/c++
|
|
-DNATIVE_C_INCLUDE=${REACTOS_SOURCE_DIR}/include/crt)
|
|
|
|
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/include/c++/stlport)
|
|
|
|
add_library(ksproxy SHARED
|
|
allocator.cpp
|
|
basicaudio.cpp
|
|
classfactory.cpp
|
|
clockforward.cpp
|
|
cvpconfig.cpp
|
|
cvpvbiconfig.cpp
|
|
datatype.cpp
|
|
enum_mediatypes.cpp
|
|
enumpins.cpp
|
|
input_pin.cpp
|
|
interface.cpp
|
|
ksproxy.cpp
|
|
ksproxy.rc
|
|
mediasample.cpp
|
|
node.cpp
|
|
output_pin.cpp
|
|
proxy.cpp
|
|
qualityforward.cpp
|
|
${CMAKE_CURRENT_BINARY_DIR}/ksproxy.def)
|
|
|
|
set_entrypoint(ksproxy 0)
|
|
set_target_properties(ksproxy PROPERTIES SUFFIX ".ax")
|
|
if(MSVC)
|
|
set_target_properties(ksproxy PROPERTIES COMPILE_FLAGS "/GR-")
|
|
else()
|
|
#FIXME : can't build if this is enabled, check if this is needed
|
|
#set_target_properties(ksproxy PROPERTIES COMPILE_FLAGS "-fno-exceptions -fno-rtti")
|
|
target_link_libraries(ksproxy -lsupc++ -lgcc -lmingw32 oldnames)
|
|
endif()
|
|
|
|
target_link_libraries(ksproxy stlport strmiids)
|
|
|
|
add_importlibs(ksproxy
|
|
advapi32
|
|
ole32
|
|
setupapi
|
|
ksuser
|
|
msvcrt
|
|
kernel32
|
|
ntdll)
|
|
|
|
add_dependencies(ksproxy psdk)
|
|
|
|
add_cd_file(TARGET ksproxy DESTINATION reactos/system32 FOR all)
|