Changeset - r24879:89d0ee92066a
[Not reviewed]
master
0 7 5
Michael Lutz - 3 years ago 2021-01-16 15:43:04
michi@icosahedron.de
Add: [Win32] Video driver that uses OpenGL to transfer the video buffer to the screen.
3 files changed:
0 comments (0 inline, 0 general)
CMakeLists.txt
Show inline comments
 
@@ -126,24 +126,28 @@ if(NOT WIN32)
 
        find_package(Fontconfig)
 
        find_package(ICU OPTIONAL_COMPONENTS i18n lx)
 
    else()
 
        find_package(Iconv)
 

	
 
        find_library(AUDIOTOOLBOX_LIBRARY AudioToolbox)
 
        find_library(AUDIOUNIT_LIBRARY AudioUnit)
 
        find_library(COCOA_LIBRARY Cocoa)
 
        find_library(QUARTZCORE_LIBRARY QuartzCore)
 
    endif()
 
endif()
 

	
 
if(NOT EMSCRIPTEN)
 
    find_package(OpenGL COMPONENTS OpenGL)
 
endif()
 

	
 
if(MSVC)
 
    find_package(Editbin REQUIRED)
 
endif()
 

	
 
find_package(SSE)
 
find_package(Xaudio2)
 

	
 
find_package(Grfcodec)
 

	
 
include(CheckIPOSupported)
 
check_ipo_supported(RESULT IPO_FOUND)
 

	
 
@@ -236,24 +240,25 @@ link_package(ZLIB TARGET ZLIB::ZLIB ENCO
 
link_package(LIBLZMA TARGET LibLZMA::LibLZMA ENCOURAGED)
 
link_package(LZO)
 

	
 
if(NOT OPTION_DEDICATED)
 
    link_package(Fluidsynth)
 
    link_package(SDL)
 
    link_package(SDL2 TARGET SDL2::SDL2)
 
    link_package(Allegro)
 
    link_package(FREETYPE TARGET Freetype::Freetype)
 
    link_package(Fontconfig TARGET Fontconfig::Fontconfig)
 
    link_package(ICU_lx)
 
    link_package(ICU_i18n)
 
    link_package(OpenGL TARGET OpenGL::GL)
 
endif()
 

	
 
if(APPLE)
 
    link_package(Iconv TARGET Iconv::Iconv)
 

	
 
    target_link_libraries(openttd
 
        ${AUDIOTOOLBOX_LIBRARY}
 
        ${AUDIOUNIT_LIBRARY}
 
        ${COCOA_LIBRARY}
 
        ${QUARTZCORE_LIBRARY}
 
    )
 

	
src/3rdparty/CMakeLists.txt
Show inline comments
 
add_subdirectory(md5)
 
add_subdirectory(squirrel)
 
add_subdirectory(opengl)
 
add_subdirectory(os2)
src/3rdparty/opengl/CMakeLists.txt
Show inline comments
 
new file 100644
 
add_files(
 
    khrplatform.h
 
    glext.h
 
    CONDITION OPENGL_FOUND
 
)

Changeset was too big and was cut off... Show full diff anyway

0 comments (0 inline, 0 general)