equal
deleted
inserted
replaced
77 options.inc |
77 options.inc |
78 adler32.pas |
78 adler32.pas |
79 ${CMAKE_CURRENT_BINARY_DIR}/config.inc |
79 ${CMAKE_CURRENT_BINARY_DIR}/config.inc |
80 ) |
80 ) |
81 |
81 |
82 if(BUILD_ENGINE_LIBRARY) |
82 if(LIBENGINE) |
83 message(STATUS "Engine will be built as library (experimental)") |
83 message(STATUS "Engine will be built as library (experimental)") |
84 set(hwengine_project ${hedgewars_SOURCE_DIR}/hedgewars/hwLibrary.pas) |
84 set(hwengine_project ${hedgewars_SOURCE_DIR}/hedgewars/hwLibrary.pas) |
85 set(pascal_flags "-dHWLIBRARY" ${pascal_flags}) |
85 set(pascal_flags "-dHWLIBRARY" ${pascal_flags}) |
86 |
86 |
87 # create position independent code, only required for x68_64 builds, similar to -fPIC |
87 # create position independent code, only required for x68_64 builds, similar to -fPIC |
95 endif() |
95 endif() |
96 |
96 |
97 if (APPLE) |
97 if (APPLE) |
98 set(engine_output_name "hwengine.dylib") |
98 set(engine_output_name "hwengine.dylib") |
99 endif (APPLE) |
99 endif (APPLE) |
100 endif(BUILD_ENGINE_LIBRARY) |
100 endif(LIBENGINE) |
101 |
101 |
102 IF(FPC) |
102 IF(FPC) |
103 set(fpc_executable ${FPC}) |
103 set(fpc_executable ${FPC}) |
104 ELSE() |
104 ELSE() |
105 find_program(fpc_executable fpc) |
105 find_program(fpc_executable fpc) |
131 if(powerpc_build) |
131 if(powerpc_build) |
132 set(powerpc_build "powerpc") |
132 set(powerpc_build "powerpc") |
133 endif() |
133 endif() |
134 |
134 |
135 #on OSX we need to provide the SDL_main() function when building as executable |
135 #on OSX we need to provide the SDL_main() function when building as executable |
136 if(NOT BUILD_ENGINE_LIBRARY) |
136 if(NOT LIBENGINE) |
137 #let's look for the installed sdlmain file; if it is not found, let's build our own |
137 #let's look for the installed sdlmain file; if it is not found, let's build our own |
138 find_package(SDL REQUIRED) |
138 find_package(SDL REQUIRED) |
139 #remove the ";-framework Cocoa" from the SDL_LIBRARY variable |
139 #remove the ";-framework Cocoa" from the SDL_LIBRARY variable |
140 string(REGEX REPLACE "(.*);-.*" "\\1" sdl_dir "${SDL_LIBRARY}") |
140 string(REGEX REPLACE "(.*);-.*" "\\1" sdl_dir "${SDL_LIBRARY}") |
141 #find libsdmain.a |
141 #find libsdmain.a |