equal
deleted
inserted
replaced
206 |
206 |
207 if(NOT NOVIDEOREC) |
207 if(NOT NOVIDEOREC) |
208 set(FFMPEG_FIND_QUIETLY true) |
208 set(FFMPEG_FIND_QUIETLY true) |
209 find_package(FFMPEG) |
209 find_package(FFMPEG) |
210 if(${FFMPEG_FOUND}) |
210 if(${FFMPEG_FOUND}) |
|
211 # TODO: this check is only for SDL < 2 |
|
212 # fpc will take care of linking but we need to have this library installed |
|
213 find_package(GLUT REQUIRED) |
|
214 |
|
215 #TODO: convert avwrapper to .pas unit so we can skip this step |
211 include_directories(${FFMPEG_INCLUDE_DIR}) |
216 include_directories(${FFMPEG_INCLUDE_DIR}) |
212 set(pascal_flags "-dUSE_VIDEO_RECORDING" ${pascal_flags}) |
217 set(pascal_flags "-dUSE_VIDEO_RECORDING" ${pascal_flags}) |
213 IF (WIN32) |
218 IF (WIN32) |
214 # there are some problems with linking our avwrapper as static lib, so link it as shared |
219 # there are some problems with linking our avwrapper as static lib, so link it as shared |
215 add_library(avwrapper SHARED avwrapper.c) |
220 add_library(avwrapper SHARED avwrapper.c) |
263 if(NOT LUA_FOUND) |
268 if(NOT LUA_FOUND) |
264 add_dependencies(${engine_output_name} lua) |
269 add_dependencies(${engine_output_name} lua) |
265 endif() |
270 endif() |
266 |
271 |
267 #when ffmpeg/libav is found we need to compile it before engine |
272 #when ffmpeg/libav is found we need to compile it before engine |
268 #TODO: convert avwrapper to .pas unit so we can skip this |
273 #TODO: convert avwrapper to .pas unit so we can skip this step |
269 if(${FFMPEG_FOUND}) |
274 if(${FFMPEG_FOUND}) |
270 add_dependencies(${engine_output_name} avwrapper) |
275 add_dependencies(${engine_output_name} avwrapper) |
271 endif() |
276 endif() |
272 |
277 |
273 #this command is a workaround to some inlining issues present in older FreePascal versions and fixed in 2.6 |
278 #this command is a workaround to some inlining issues present in older FreePascal versions and fixed in 2.6 |