mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
bc587b89d8
This failed when a current build configuration hadn't got any program depending on LibGL.
14 lines
460 B
CMake
14 lines
460 B
CMake
function (generate_libgl_implementation)
|
|
set(LIBGL_INPUT_FOLDER "${CMAKE_CURRENT_SOURCE_DIR}")
|
|
|
|
invoke_generator(
|
|
"GLAPI.cpp"
|
|
Lagom::GenerateGLAPIWrapper
|
|
"${LIBGL_INPUT_FOLDER}/GLAPI.json"
|
|
"GL/glapi.h"
|
|
"GLAPI.cpp"
|
|
arguments -j "${LIBGL_INPUT_FOLDER}/GLAPI.json"
|
|
)
|
|
|
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/GL/glapi.h" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/LibGL/GL/" OPTIONAL)
|
|
endfunction()
|