2019-05-03 13:57:43 +08:00
vcpkg_check_linkage ( ONLY_DYNAMIC_LIBRARY )
2019-12-24 06:39:17 +08:00
if ( VCPKG_TARGET_IS_LINUX )
2019-09-30 01:25:14 +08:00
message ( WARNING "Building with a gcc version less than 6.1 is not supported." )
2020-03-17 05:50:40 +08:00
message ( WARNING "${PORT} currently requires the following libraries from the system package manager:\n libx11-dev\n libmesa-dev\n libxi-dev\n libxext-dev\n\nThese can be installed on Ubuntu systems via apt-get install libx11-dev libmesa-dev libxi-dev libxext-dev." )
2019-09-30 01:25:14 +08:00
endif ( )
2019-05-03 13:57:43 +08:00
if ( VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" )
set ( ANGLE_CPU_BITNESS ANGLE_IS_32_BIT_CPU )
elseif ( VCPKG_TARGET_ARCHITECTURE STREQUAL "x64" )
set ( ANGLE_CPU_BITNESS ANGLE_IS_64_BIT_CPU )
elseif ( VCPKG_TARGET_ARCHITECTURE STREQUAL "arm" )
set ( ANGLE_CPU_BITNESS ANGLE_IS_32_BIT_CPU )
2020-01-23 05:06:38 +08:00
elseif ( VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64" )
set ( ANGLE_CPU_BITNESS ANGLE_IS_64_BIT_CPU )
2019-05-03 13:57:43 +08:00
else ( )
message ( FATAL_ERROR "Unsupported architecture: ${VCPKG_TARGET_ARCHITECTURE}" )
endif ( )
vcpkg_from_github (
O U T _ S O U R C E _ P A T H S O U R C E _ P A T H
R E P O g o o g l e / a n g l e
2020-01-23 05:06:38 +08:00
R E F 1 f d f 6 c a 5 1 4 1 d 8 e 3 4 9 e 8 7 5 e a b 6 e 5 1 d 9 3 d 9 2 9 a 7 f 0 e
S H A 5 1 2 2 5 5 3 3 0 7 f 3 d 1 0 b 5 c 3 2 1 6 6 b 9 e d 6 1 0 b 4 b 1 5 3 1 0 d c c b a 0 0 c 6 4 4 c d 3 5 0 2 6 d e 8 6 d 8 7 e a 2 e 2 2 1 c 2 e 5 2 8 f 3 3 b 0 2 f 0 1 c 1 d e d 2 f 0 8 1 5 0 e 4 2 9 d e 1 f a 3 0 0 b 7 3 d 6 5 5 f 8 9 4 4 f 6 f 5 0 4 7 a 8 2
P A T C H E S
2019-05-03 13:57:43 +08:00
0 0 1 - f i x - u w p . p a t c h
2019-12-24 06:39:17 +08:00
0 0 2 - f i x - b u i l d e r - e r r o r . p a t c h
2019-05-03 13:57:43 +08:00
)
file ( COPY ${ CMAKE_CURRENT_LIST_DIR } /CMakeLists.txt DESTINATION ${ SOURCE_PATH } )
file ( COPY ${ CMAKE_CURRENT_LIST_DIR } /commit.h DESTINATION ${ SOURCE_PATH } )
vcpkg_configure_cmake (
S O U R C E _ P A T H $ { S O U R C E _ P A T H }
P R E F E R _ N I N J A
O P T I O N S _ D E B U G - D D I S A B L E _ I N S T A L L _ H E A D E R S = 1
O P T I O N S
- D $ { A N G L E _ C P U _ B I T N E S S } = 1
)
vcpkg_install_cmake ( )
vcpkg_fixup_cmake_targets ( CONFIG_PATH share/unofficial-angle TARGET_PATH share/unofficial-angle )
vcpkg_copy_pdbs ( )
2019-12-24 06:39:17 +08:00
file ( INSTALL ${ SOURCE_PATH } /LICENSE DESTINATION ${ CURRENT_PACKAGES_DIR } /share/ ${ PORT } RENAME copyright )