equal
deleted
inserted
replaced
20 |
20 |
21 |
21 |
22 #possible cmake configuration |
22 #possible cmake configuration |
23 option(NOSERVER "Disable gameServer build [default: auto]" OFF) |
23 option(NOSERVER "Disable gameServer build [default: auto]" OFF) |
24 option(NOPNG "Disable screenshoot compression [default: auto]" OFF) |
24 option(NOPNG "Disable screenshoot compression [default: auto]" OFF) |
25 option(NOVIDEOREC "Disable video recording [default: auto]" OFF) |
25 option(NOVIDEOREC "Disable video recording [default: off]" OFF) |
26 |
26 |
27 #set this to ON when 2.1.0 becomes more widespread (and only for linux) |
27 #set this to ON when 2.1.0 becomes more widespread (and only for linux) |
28 option(SYSTEM_PHYSFS "Use system physfs [default:off]" OFF) |
28 option(SYSTEM_PHYSFS "Use system physfs [default:off]" OFF) |
29 |
29 |
30 option(BUILD_ENGINE_LIBRARY "Enable hwengine library [default: off]" OFF) |
30 option(BUILD_ENGINE_LIBRARY "Enable hwengine library [default: off]" OFF) |
192 |
192 |
193 #add user framework directory, other paths can be passed via FPFLAGS |
193 #add user framework directory, other paths can be passed via FPFLAGS |
194 list(APPEND pascal_flags "-Ff~/Library/Frameworks") |
194 list(APPEND pascal_flags "-Ff~/Library/Frameworks") |
195 #set deployment target |
195 #set deployment target |
196 list(APPEND pascal_flags "-k-macosx_version_min" "-k${minimum_macosx_version}" "-XR${CMAKE_OSX_SYSROOT}") |
196 list(APPEND pascal_flags "-k-macosx_version_min" "-k${minimum_macosx_version}" "-XR${CMAKE_OSX_SYSROOT}") |
197 |
|
198 #silly libav that always brings in VideoDecoderAcceleration, avaible only from 10.6.3 |
|
199 if(NOT NOVIDEOREC AND ${minimum_macosx_version} VERSION_LESS "10.6") |
|
200 set(${WARNING} "Video recording support before OS X 10.6 is experimental") |
|
201 endif() |
|
202 endif(APPLE) |
197 endif(APPLE) |
203 |
198 |
204 |
199 |
205 #when build type is not specified, assume Debug/Release according to build version information |
200 #when build type is not specified, assume Debug/Release according to build version information |
206 if (CMAKE_BUILD_TYPE) |
201 if (CMAKE_BUILD_TYPE) |
354 add_subdirectory(misc/libphysfs) |
349 add_subdirectory(misc/libphysfs) |
355 #-XLA is a beta fpc flag that renames libraries before passing them to the linker |
350 #-XLA is a beta fpc flag that renames libraries before passing them to the linker |
356 #we also have to pass PHYSFS_INTERNAL to satisfy windows runtime requirements |
351 #we also have to pass PHYSFS_INTERNAL to satisfy windows runtime requirements |
357 #(should be harmless on other platforms) |
352 #(should be harmless on other platforms) |
358 list(APPEND pascal_flags "-XLAphysfs=${physfs_output_name}" "-dPHYSFS_INTERNAL") |
353 list(APPEND pascal_flags "-XLAphysfs=${physfs_output_name}" "-dPHYSFS_INTERNAL") |
|
354 endif() |
|
355 |
|
356 if(NOT ${NOVIDEOREC}) |
|
357 find_package(FFMPEG) |
|
358 if(NOT ${FFMPEG_FOUND}) |
|
359 message(FATAL_ERROR "Missing FFMPEG/Libav! Rerun cmake with -DNOVIDEOREC=on to disable video recording") |
|
360 endif() |
|
361 else() |
|
362 set(FFMPEG_FOUND false) |
359 endif() |
363 endif() |
360 |
364 |
361 # |
365 # |
362 add_subdirectory(misc/libphyslayer) |
366 add_subdirectory(misc/libphyslayer) |
363 |
367 |