mirror of https://github.com/mgba-emu/mgba.git
Updater: Don't link against libmgba
This commit is contained in:
parent
6b5ad35d5b
commit
ccbb44e95a
|
@ -952,8 +952,11 @@ if(BUILD_QT AND (WIN32 OR APPLE))
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(BUILD_UPDATER)
|
if(BUILD_UPDATER)
|
||||||
add_executable(updater-stub WIN32 ${CMAKE_CURRENT_SOURCE_DIR}/src/feature/updater-main.c)
|
add_executable(updater-stub WIN32 ${CORE_VFS_SRC} ${OS_SRC} ${UTIL_SRC} ${THIRD_PARTY_SRC}
|
||||||
target_link_libraries(updater-stub ${OS_LIB} ${PLATFORM_LIBRARY} ${BINARY_NAME})
|
${CMAKE_CURRENT_SOURCE_DIR}/src/core/config.c
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/src/feature/updater.c
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/src/feature/updater-main.c)
|
||||||
|
target_link_libraries(updater-stub ${OS_LIB} ${PLATFORM_LIBRARY})
|
||||||
set_target_properties(updater-stub PROPERTIES COMPILE_DEFINITIONS "${OS_DEFINES};${FUNCTION_DEFINES}")
|
set_target_properties(updater-stub PROPERTIES COMPILE_DEFINITIONS "${OS_DEFINES};${FUNCTION_DEFINES}")
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
set_target_properties(updater-stub PROPERTIES LINK_FLAGS /ENTRY:mainCRTStartup)
|
set_target_properties(updater-stub PROPERTIES LINK_FLAGS /ENTRY:mainCRTStartup)
|
||||||
|
|
Loading…
Reference in New Issue