mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 04:19:07 +08:00
commit
fe03086399
37
ports/vlpp/CMakeLists.txt
Normal file
37
ports/vlpp/CMakeLists.txt
Normal file
@ -0,0 +1,37 @@
|
||||
cmake_minimum_required(VERSION 3.3.0)
|
||||
|
||||
project(Vlpp VERSION 0.9.3.1 LANGUAGES CXX)
|
||||
|
||||
# Sources
|
||||
set(SRCS
|
||||
Import/Vlpp.cpp
|
||||
Import/VlppWorkflow.cpp
|
||||
Import/VlppWorkflowCompiler.cpp)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
|
||||
|
||||
# Create and configure the target
|
||||
add_library(Vlpp ${SRCS})
|
||||
|
||||
# target_compile_definitions
|
||||
target_compile_definitions(Vlpp PRIVATE UNICODE)
|
||||
target_compile_definitions(Vlpp PRIVATE _UNICODE)
|
||||
|
||||
target_include_directories(Vlpp PRIVATE ${PROJECT_SOURCE_DIR}/Import)
|
||||
|
||||
# Install
|
||||
install(
|
||||
TARGETS Vlpp
|
||||
RUNTIME DESTINATION "bin"
|
||||
LIBRARY DESTINATION "lib"
|
||||
ARCHIVE DESTINATION "lib"
|
||||
)
|
||||
|
||||
if (NOT DEFINED SKIP_HEADERS)
|
||||
install(
|
||||
FILES
|
||||
Import/Vlpp.h
|
||||
Import/VlppWorkflow.h
|
||||
Import/VlppWorkflowCompiler.h
|
||||
DESTINATION "include"
|
||||
)
|
||||
endif()
|
3
ports/vlpp/CONTROL
Normal file
3
ports/vlpp/CONTROL
Normal file
@ -0,0 +1,3 @@
|
||||
Source: vlpp
|
||||
Version: 0.9.3.1
|
||||
Description: Common C++ construction, including string operation / generic container / linq / General-LR parser generator / multithreading / reflection for C++ / etc
|
31
ports/vlpp/portfile.cmake
Normal file
31
ports/vlpp/portfile.cmake
Normal file
@ -0,0 +1,31 @@
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
message(STATUS "Warning: Dynamic building not supported yet. Building static.")
|
||||
set(VCPKG_LIBRARY_LINKAGE static)
|
||||
endif()
|
||||
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/Release-0.9.3.1)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/vczh-libraries/Release/archive/0.9.3.1.tar.gz"
|
||||
FILENAME "GacUI-0.9.3.1.tar.gz"
|
||||
SHA512 f284d3c78f8ae54102457b2cdc4fcee4b8da9a72d13bb325c7c7269261c5b0789eeb7340b0409b2b37294d68edb558503be131948aea3cb53582900339d26b54
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS_DEBUG -DSKIP_HEADERS=1
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGE_DIR}/debug/include)
|
||||
|
||||
# Tools
|
||||
file(INSTALL ${SOURCE_PATH}/Tools/CppMerge.exe DESTINATION ${CURRENT_PACKAGES_DIR}/tools)
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/vlpp RENAME copyright)
|
Loading…
Reference in New Issue
Block a user