Commit eabdb7e2 authored by Ben Boeckel's avatar Ben Boeckel

win32: use zlib, bzip2, and freetype from python tarball

parent c4ed6396
......@@ -182,14 +182,6 @@ if (WIN32)
find_program(NMAKE_PATH nmake)
mark_as_advanced(DEVENV_PATH NMAKE_PATH)
endif()
# Freetype uses its own build system on win32...
find_program(FTJAM_EXECUTABLE jam)
mark_as_advanced(FTJAM_EXECUTABLE)
if (freetype_ENABLED)
if (NOT FTJAM_EXECUTABLE)
message(FATAL_ERROR "FreeType's 'jam' build tool not found! Download it from http://sourceforge.net/projects/freetype/files/ftjam/2.5.2/ and set FTJAM_EXECUTABLE appropriately.")
endif()
endif()
endif()
#-----------------------------------------------------------------------------
include (CMBModules)
......
add_external_dummy_project(bzip2
DEPENDS python)
set(ENV{JAM_TOOLSET} VISUALC)
execute_process(COMMAND ${FTJAM_EXECUTABLE}
WORKING_DIRECTORY ${WORKING_DIRECTORY}
OUTPUT_VARIABLE output
ERROR_VARIABLE error
RESULT_VARIABLE rv)
if(NOT ${rv} EQUAL 0)
message(FATAL_ERROR "Error building freetype!\n${output}\n${error}")
endif()
execute_process(COMMAND "${CMAKE_COMMAND}" -E copy_if_different
"${SOURCE_DIR}/objs/freetype.lib"
"${INSTALL_DIR}/lib/freetype.lib"
)
execute_process(COMMAND "${CMAKE_COMMAND}" -E copy_directory
"${SOURCE_DIR}/include"
"${INSTALL_DIR}/include/freetype2"
)
add_external_project(
freetype
DEPENDS zlib
CONFIGURE_COMMAND ""
BUILD_IN_SOURCE 1
BUILD_COMMAND
${CMAKE_COMMAND}
-DFTJAM_EXECUTABLE:PATH=${FTJAM_EXECUTABLE}
-DWORKING_DIRECTORY:PATH=<SOURCE_DIR>
-P ${SuperBuild_PROJECTS_DIR}/win32/freetype-build.cmake
INSTALL_COMMAND
${CMAKE_COMMAND}
-DSOURCE_DIR:PATH=<SOURCE_DIR>
-DINSTALL_DIR:PATH=<INSTALL_DIR>
-P ${SuperBuild_PROJECTS_DIR}/win32/freetype-install.cmake
)
add_external_dummy_project(freetype
DEPENDS python)
add_external_dummy_project(zlib
DEPENDS python)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment