f61e73b639
And remove a few windows.h interface functions used before. Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
52 lines
1.1 KiB
CMake
52 lines
1.1 KiB
CMake
# there is no simple package for libretro-common
|
|
# this requires user input
|
|
set(LIBRETRO_COMMON_PATH NONE CACHE PATH "path to libretro-common")
|
|
|
|
if (EXISTS ${LIBRETRO_COMMON_PATH}/include/libretro.h)
|
|
message("Using LIBRETRO_COMMON_PATH=${LIBRETRO_COMMON_PATH}")
|
|
|
|
set(SOURCE_FILES
|
|
environment.cpp
|
|
libretro.cpp
|
|
rdirectsound.cpp
|
|
game.cpp
|
|
joypadbase.cpp
|
|
joypad.cpp
|
|
analog.cpp
|
|
rdirectsound.cpp
|
|
retroregistry.cpp
|
|
retroframe.cpp
|
|
)
|
|
|
|
set(HEADER_FILES
|
|
environment.h
|
|
rdirectsound.h
|
|
game.h
|
|
joypadbase.h
|
|
joypad.h
|
|
analog.h
|
|
rdirectsound.h
|
|
retroregistry.h
|
|
retroframe.h
|
|
)
|
|
|
|
add_library(applewin_libretro SHARED
|
|
${SOURCE_FILES}
|
|
${HEADER_FILES}
|
|
)
|
|
|
|
target_include_directories(applewin_libretro PRIVATE
|
|
${LIBRETRO_COMMON_PATH}/include
|
|
)
|
|
|
|
target_link_libraries(applewin_libretro PRIVATE
|
|
appleii
|
|
common2
|
|
)
|
|
|
|
# just call it "applewin_libretro.so" as per libretro standard
|
|
set_target_properties(applewin_libretro PROPERTIES PREFIX "")
|
|
|
|
else()
|
|
message("Bad LIBRETRO_COMMON_PATH=${LIBRETRO_COMMON_PATH}, skipping libretro code")
|
|
endif()
|