[ragel] Minimize work done copying files. Add version number.

This commit is contained in:
Robert Schumacher 2016-10-04 17:17:42 -07:00
parent 48e05bd339
commit cb10c3610b
3 changed files with 7 additions and 18 deletions

View File

@ -1,8 +1,6 @@
cmake_minimum_required(VERSION 3.0)
project(ragel CXX)
find_program(NMAKE nmake)
file(GLOB HEADERS
ragel/buffer.h
ragel/cdgoto.h
@ -127,5 +125,4 @@ include_directories(aapl)
add_executable(ragel ${SRC})
install(TARGETS ragel DESTINATION tools)
install(FILES ${HEADERS} DESTINATION include)
install(TARGETS ragel DESTINATION tools CONFIGURATIONS Release)

View File

@ -1,3 +1,3 @@
Source: ragel
Version:
Version: 6.9
Description:

View File

@ -21,17 +21,10 @@ file(COPY ${CMAKE_CURRENT_LIST_DIR}/config.h DESTINATION ${SOURCE_PATH}/ragel)
vcpkg_apply_patches(
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src
PATCHES "${CMAKE_CURRENT_LIST_DIR}/0001-Remove-unistd.h-include-1.patch"
)
vcpkg_apply_patches(
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src
PATCHES "${CMAKE_CURRENT_LIST_DIR}/0002-Remove-unistd.h-include-2.patch"
)
vcpkg_apply_patches(
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src
PATCHES "${CMAKE_CURRENT_LIST_DIR}/0003-Fix-rsxgoto.cpp-build.patch"
PATCHES
"${CMAKE_CURRENT_LIST_DIR}/0001-Remove-unistd.h-include-1.patch"
"${CMAKE_CURRENT_LIST_DIR}/0002-Remove-unistd.h-include-2.patch"
"${CMAKE_CURRENT_LIST_DIR}/0003-Fix-rsxgoto.cpp-build.patch"
)
vcpkg_configure_cmake(
@ -39,10 +32,9 @@ vcpkg_configure_cmake(
GENERATOR "Visual Studio 14 2015"
)
vcpkg_build_cmake()
vcpkg_install_cmake()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(WRITE ${CURRENT_PACKAGES_DIR}/include/ragel.txt)
# Handle copyright
file(COPY ${CURRENT_BUILDTREES_DIR}/src/ragel-6.9/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/ragel)