mirror of
https://github.com/reactos/reactos.git
synced 2024-11-10 00:34:39 +00:00
9967209aea
- More work on the dlls. svn path=/branches/cmake-bringup/; revision=49060
27 lines
1,017 B
CMake
27 lines
1,017 B
CMake
|
|
add_definitions(-D_DLL -D__USE_CRTIMP)
|
|
add_definitions(-D__WINESRC__ -DWIN32)
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/libmpg123)
|
|
|
|
add_custom_command(
|
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/winemp3.acm.def
|
|
COMMAND native-winebuild -o ${CMAKE_CURRENT_BINARY_DIR}/winemp3.acm.def --def -E ${CMAKE_CURRENT_SOURCE_DIR}/winemp3.acm.spec --filename winemp3.acm
|
|
DEPENDS native-winebuild)
|
|
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/winemp3.acm.def PROPERTIES GENERATED TRUE)
|
|
add_custom_target(winemp3.acm_def ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/winemp3.acm.def)
|
|
|
|
add_library(winemp3.acm SHARED mpegl3.c)
|
|
|
|
set_entrypoint(winemp3.acm 0)
|
|
set_target_properties(winemp3.acm PROPERTIES SUFFIX "")
|
|
|
|
target_link_libraries(winemp3.acm
|
|
${CMAKE_CURRENT_BINARY_DIR}/winemp3.acm.def
|
|
mingw_common
|
|
wine
|
|
mpg123)
|
|
|
|
add_importlibs(winemp3.acm msvcrt winmm user32)
|
|
add_dependencies(winemp3.acm winemp3.acm_def psdk)
|