mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
[osgearth] update to 3.0 (#12531)
* [osgearth] update to 3.0 * delete controlfile * fixjsonfile * Update ports/osgearth/portfile.cmake * fixJsonfile * deletejsonfile Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
This commit is contained in:
parent
544222febd
commit
cd6c4e19fa
@ -1,4 +1,5 @@
|
||||
Source: osgearth
|
||||
Version: 2.10.2-1
|
||||
Version: 3.0
|
||||
Homepage: https://github.com/gwaldron/osgearth
|
||||
Description: osgEarth - Dynamic map generation toolkit for OpenSceneGraph Copyright 2015 Pelican Mapping.
|
||||
Build-Depends: osg[plugins]
|
||||
|
@ -1,8 +1,8 @@
|
||||
diff --git a/CMakeModules/FindRocksDB.cmake b/CMakeModules/FindRocksDB.cmake
|
||||
index 109b383..8382ed9 100644
|
||||
index b0692b0..984d3f2 100644
|
||||
--- a/CMakeModules/FindRocksDB.cmake
|
||||
+++ b/CMakeModules/FindRocksDB.cmake
|
||||
@@ -40,5 +40,49 @@ find_package_handle_standard_args(ROCKSDB
|
||||
@@ -39,5 +39,49 @@ find_package_handle_standard_args(ROCKSDB
|
||||
"Could NOT find ROCKSDB"
|
||||
)
|
||||
|
||||
@ -52,33 +52,28 @@ index 109b383..8382ed9 100644
|
||||
+
|
||||
set(ROCKSDB_INCLUDE_DIRS ${ROCKSDB_INCLUDE_DIR} )
|
||||
set(ROCKSDB_LIBRARIES ${ROCKSDB_LIBRARY})
|
||||
-
|
||||
-
|
||||
|
||||
diff --git a/src/osgEarthDrivers/cache_rocksdb/CMakeLists.txt b/src/osgEarthDrivers/cache_rocksdb/CMakeLists.txt
|
||||
index 68ad85d..86bb18a 100644
|
||||
index ecaac34..b4ec764 100644
|
||||
--- a/src/osgEarthDrivers/cache_rocksdb/CMakeLists.txt
|
||||
+++ b/src/osgEarthDrivers/cache_rocksdb/CMakeLists.txt
|
||||
@@ -16,7 +16,19 @@ SET(TARGET_SRC
|
||||
RocksDBCacheDriver.cpp
|
||||
)
|
||||
@@ -34,7 +34,19 @@ IF(ROCKSDB_FOUND OR RocksDB_FOUND)
|
||||
RocksDBCacheDriver.cpp
|
||||
)
|
||||
|
||||
-SET(TARGET_LIBRARIES_VARS ROCKSDB_LIBRARY ZLIB_LIBRARY)
|
||||
+if(SNAPPY_FOUND)
|
||||
+ SET(ROCKSDB_DEPENDENT_LIBRARY ${ROCKSDB_DEPENDENT_LIBRARY} ${SNAPPY_LIBRARY})
|
||||
+endif(SNAPPY_FOUND)
|
||||
- SET(TARGET_LIBRARIES_VARS ROCKSDB_LIBRARY ZLIB_LIBRARY)
|
||||
+ if(SNAPPY_FOUND)
|
||||
+ SET(ROCKSDB_DEPENDENT_LIBRARY ${ROCKSDB_DEPENDENT_LIBRARY} ${SNAPPY_LIBRARY})
|
||||
+ endif(SNAPPY_FOUND)
|
||||
+
|
||||
+if(LZ4_FOUND)
|
||||
+ SET(ROCKSDB_DEPENDENT_LIBRARY ${ROCKSDB_DEPENDENT_LIBRARY} ${LZ4_LIBRARY})
|
||||
+endif(LZ4_FOUND)
|
||||
+ if(LZ4_FOUND)
|
||||
+ SET(ROCKSDB_DEPENDENT_LIBRARY ${ROCKSDB_DEPENDENT_LIBRARY} ${LZ4_LIBRARY})
|
||||
+ endif(LZ4_FOUND)
|
||||
+
|
||||
+if(ZSTD_FOUND)
|
||||
+ SET(ROCKSDB_DEPENDENT_LIBRARY ${ROCKSDB_DEPENDENT_LIBRARY} ${ZSTD_LIBRARY})
|
||||
+endif(ZSTD_FOUND)
|
||||
+ if(ZSTD_FOUND)
|
||||
+ SET(ROCKSDB_DEPENDENT_LIBRARY ${ROCKSDB_DEPENDENT_LIBRARY} ${ZSTD_LIBRARY})
|
||||
+ endif(ZSTD_FOUND)
|
||||
+
|
||||
+SET(TARGET_LIBRARIES_VARS ROCKSDB_LIBRARY ZLIB_LIBRARY ROCKSDB_DEPENDENT_LIBRARY)
|
||||
+ SET(TARGET_LIBRARIES_VARS ROCKSDB_LIBRARY ZLIB_LIBRARY ROCKSDB_DEPENDENT_LIBRARY)
|
||||
|
||||
IF(MSVC)
|
||||
SET(TARGET_EXTERNAL_LIBRARIES ws2_32 winmm rpcrt4 shlwapi)
|
||||
-
|
||||
-
|
||||
IF(MSVC)
|
||||
SET(TARGET_EXTERNAL_LIBRARIES ws2_32 winmm rpcrt4 shlwapi)
|
||||
|
@ -1,5 +1,3 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY ONLY_DYNAMIC_CRT)
|
||||
|
||||
file(GLOB OSG_PLUGINS_SUBDIR ${CURRENT_INSTALLED_DIR}/tools/osg/osgPlugins-*)
|
||||
@ -12,11 +10,11 @@ string(REPLACE "${CURRENT_INSTALLED_DIR}/tools/osg/" "" OSG_PLUGINS_SUBDIR "${OS
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO gwaldron/osgearth
|
||||
REF osgearth-2.10.2
|
||||
SHA512 fa306a82374716dafae9d834ed0fb07a7369ae0961696de36b6e2af45bc150040295985d9b9781ab713fd0707691451a6a8f173b34253749ab22764f51e60045
|
||||
REF 90ad04f281cbc87ffc45bed847ebaaecb188e593 #version 3.0
|
||||
SHA512 d1d59ae65cb4ef8a71e01b42411029e61bef20e2fd6d95b81c091d7d32b8c30f96d3156d7fd28e177ca83fd74ed113b9e31bf5ef360757524beb7cec7ced4996
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
RocksDB.patch
|
||||
RocksDB.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
@ -27,7 +25,7 @@ vcpkg_configure_cmake(
|
||||
vcpkg_install_cmake()
|
||||
|
||||
#Release
|
||||
set(OSGEARTH_TOOL_PATH ${CURRENT_PACKAGES_DIR}/tools/osgearth)
|
||||
set(OSGEARTH_TOOL_PATH ${CURRENT_PACKAGES_DIR}/tools/${PORT})
|
||||
set(OSGEARTH_TOOL_PLUGIN_PATH ${OSGEARTH_TOOL_PATH}/${OSG_PLUGINS_SUBDIR})
|
||||
|
||||
file(MAKE_DIRECTORY ${OSGEARTH_TOOL_PATH})
|
||||
@ -45,7 +43,7 @@ file(REMOVE_RECURSE ${OSGDB_PLUGINS})
|
||||
#Debug
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
set(OSGEARTH_DEBUG_TOOL_PATH ${CURRENT_PACKAGES_DIR}/debug/tools/osgearth)
|
||||
set(OSGEARTH_DEBUG_TOOL_PATH ${CURRENT_PACKAGES_DIR}/debug/tools/${PORT})
|
||||
set(OSGEARTH_DEBUG_TOOL_PLUGIN_PATH ${OSGEARTH_DEBUG_TOOL_PATH}/${OSG_PLUGINS_SUBDIR})
|
||||
|
||||
file(MAKE_DIRECTORY ${OSGEARTH_DEBUG_TOOL_PATH})
|
||||
@ -62,5 +60,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(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
|
Loading…
x
Reference in New Issue
Block a user