mirror of
https://github.com/cemu-project/vcpkg.git
synced 2024-11-24 19:59:43 +00:00
[ragel] Minimize work done copying files. Add version number.
This commit is contained in:
parent
48e05bd339
commit
cb10c3610b
@ -1,8 +1,6 @@
|
|||||||
cmake_minimum_required(VERSION 3.0)
|
cmake_minimum_required(VERSION 3.0)
|
||||||
project(ragel CXX)
|
project(ragel CXX)
|
||||||
|
|
||||||
find_program(NMAKE nmake)
|
|
||||||
|
|
||||||
file(GLOB HEADERS
|
file(GLOB HEADERS
|
||||||
ragel/buffer.h
|
ragel/buffer.h
|
||||||
ragel/cdgoto.h
|
ragel/cdgoto.h
|
||||||
@ -127,5 +125,4 @@ include_directories(aapl)
|
|||||||
|
|
||||||
add_executable(ragel ${SRC})
|
add_executable(ragel ${SRC})
|
||||||
|
|
||||||
install(TARGETS ragel DESTINATION tools)
|
install(TARGETS ragel DESTINATION tools CONFIGURATIONS Release)
|
||||||
install(FILES ${HEADERS} DESTINATION include)
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
Source: ragel
|
Source: ragel
|
||||||
Version:
|
Version: 6.9
|
||||||
Description:
|
Description:
|
||||||
|
@ -21,17 +21,10 @@ file(COPY ${CMAKE_CURRENT_LIST_DIR}/config.h DESTINATION ${SOURCE_PATH}/ragel)
|
|||||||
|
|
||||||
vcpkg_apply_patches(
|
vcpkg_apply_patches(
|
||||||
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src
|
SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src
|
||||||
PATCHES "${CMAKE_CURRENT_LIST_DIR}/0001-Remove-unistd.h-include-1.patch"
|
PATCHES
|
||||||
)
|
"${CMAKE_CURRENT_LIST_DIR}/0001-Remove-unistd.h-include-1.patch"
|
||||||
|
"${CMAKE_CURRENT_LIST_DIR}/0002-Remove-unistd.h-include-2.patch"
|
||||||
vcpkg_apply_patches(
|
"${CMAKE_CURRENT_LIST_DIR}/0003-Fix-rsxgoto.cpp-build.patch"
|
||||||
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"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_configure_cmake(
|
||||||
@ -39,10 +32,9 @@ vcpkg_configure_cmake(
|
|||||||
GENERATOR "Visual Studio 14 2015"
|
GENERATOR "Visual Studio 14 2015"
|
||||||
)
|
)
|
||||||
|
|
||||||
vcpkg_build_cmake()
|
|
||||||
vcpkg_install_cmake()
|
vcpkg_install_cmake()
|
||||||
|
|
||||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
file(WRITE ${CURRENT_PACKAGES_DIR}/include/ragel.txt)
|
||||||
|
|
||||||
# Handle copyright
|
# Handle copyright
|
||||||
file(COPY ${CURRENT_BUILDTREES_DIR}/src/ragel-6.9/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/ragel)
|
file(COPY ${CURRENT_BUILDTREES_DIR}/src/ragel-6.9/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/ragel)
|
||||||
|
Loading…
Reference in New Issue
Block a user