mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 02:57:09 +01:00
[osgearth] Update osgPlugins folder to 3.6.2 (#3920)
* Update osgPlugins folder to 3.6.2 Update osgPlugins folder to 3.6.2 to stay in sync with osg package. * [osgearth] Detect osgplugins version automatically
This commit is contained in:
parent
8d389323a7
commit
a1f0dcd02b
@ -1,4 +1,4 @@
|
||||
Source: osgearth
|
||||
Version: 2.9
|
||||
Version: 2.9-1
|
||||
Description: osgEarth - Dynamic map generation toolkit for OpenSceneGraph Copyright 2015 Pelican Mapping.
|
||||
Build-Depends: osg
|
||||
|
@ -9,6 +9,13 @@ if(VCPKG_CRT_LINKAGE STREQUAL static)
|
||||
message(FATAL_ERROR "osgearth does not support static CRT linkage")
|
||||
endif()
|
||||
|
||||
file(GLOB OSG_PLUGINS_SUBDIR ${CURRENT_INSTALLED_DIR}/tools/osg/osgPlugins-*)
|
||||
list(LENGTH OSG_PLUGINS_SUBDIR OSG_PLUGINS_SUBDIR_LENGTH)
|
||||
if(NOT OSG_PLUGINS_SUBDIR_LENGTH EQUAL 1)
|
||||
message(FATAL_ERROR "Could not determine osg version")
|
||||
endif()
|
||||
string(REPLACE "${CURRENT_INSTALLED_DIR}/tools/osg/" "" OSG_PLUGINS_SUBDIR "${OSG_PLUGINS_SUBDIR}")
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO gwaldron/osgearth
|
||||
@ -26,7 +33,7 @@ vcpkg_install_cmake()
|
||||
|
||||
#Release
|
||||
set(OSGEARTH_TOOL_PATH ${CURRENT_PACKAGES_DIR}/tools/osgearth)
|
||||
set(OSGEARTH_TOOL_PLUGIN_PATH ${OSGEARTH_TOOL_PATH}/osgPlugins-3.5.6)
|
||||
set(OSGEARTH_TOOL_PLUGIN_PATH ${OSGEARTH_TOOL_PATH}/${OSG_PLUGINS_SUBDIR})
|
||||
|
||||
file(MAKE_DIRECTORY ${OSGEARTH_TOOL_PATH})
|
||||
file(MAKE_DIRECTORY ${OSGEARTH_TOOL_PLUGIN_PATH})
|
||||
@ -44,7 +51,7 @@ file(REMOVE_RECURSE ${OSGDB_PLUGINS})
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
set(OSGEARTH_DEBUG_TOOL_PATH ${CURRENT_PACKAGES_DIR}/debug/tools/osgearth)
|
||||
set(OSGEARTH_DEBUG_TOOL_PLUGIN_PATH ${OSGEARTH_DEBUG_TOOL_PATH}/osgPlugins-3.5.6)
|
||||
set(OSGEARTH_DEBUG_TOOL_PLUGIN_PATH ${OSGEARTH_DEBUG_TOOL_PATH}/${OSG_PLUGINS_SUBDIR})
|
||||
|
||||
file(MAKE_DIRECTORY ${OSGEARTH_DEBUG_TOOL_PATH})
|
||||
file(MAKE_DIRECTORY ${OSGEARTH_DEBUG_TOOL_PLUGIN_PATH})
|
||||
@ -61,4 +68,4 @@ file(REMOVE_RECURSE ${OSGDB_DEBUG_PLUGINS})
|
||||
|
||||
# Handle copyright
|
||||
file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/osgearth)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/osgearth/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/osgearth/copyright)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/osgearth/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/osgearth/copyright)
|
||||
|
Loading…
x
Reference in New Issue
Block a user