Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add openscenegraph/3.6.5 #2702

Merged
merged 31 commits into from
Jan 18, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
de18580
Add openscenegraph/3.6.5
ohanar Aug 28, 2020
afe53d3
[openscenegraph] add .exe extension for Windows
ohanar Aug 31, 2020
f46aecd
[openscenegraph] use cmake_find_package_multi
ohanar Aug 31, 2020
ff28e1e
[openscenegraph] explicitly set output directory in test package
ohanar Aug 31, 2020
97bece4
[openscenegraph] flesh out test_package
ohanar Sep 1, 2020
3a6b942
[openscenegraph] media plugins are very apple os version specific
ohanar Sep 3, 2020
4140085
[openscenegraph] explicitly set output directory in test package take 2
ohanar Sep 3, 2020
f350de5
[openscenegraph] check for gz support rather than osgz
ohanar Sep 3, 2020
92dcdae
[openscenegraph] Version doesn't handle settings, pass the value
ohanar Sep 14, 2020
20ae237
[openscenegraph] test_package: more apple shenanigans
ohanar Sep 15, 2020
2fce099
[openscenegraph] Macos: can't insure video plugins exist without an o…
ohanar Sep 15, 2020
588a593
[openscenegraph] apple system libs are really frameworks
ohanar Sep 15, 2020
537e4d5
[openscenegraph] refactor package_info method
ohanar Sep 15, 2020
f8e934e
[openscenegraph] imageio plugin uses the Accelerate framework
ohanar Sep 16, 2020
d6aca94
[openscenegraph] fix test package for imageio supported formats
ohanar Sep 16, 2020
a0a8c06
[openscenegraph] rework to use conan's cmake_find_package scripts
ohanar Sep 18, 2020
d33c603
[openscenegraph] add missing OSG_WITH_NVTT to patch
ohanar Sep 21, 2020
78822be
[openscenegraph] remove pdbs via script
ohanar Sep 21, 2020
deda7b2
[openscenegraph] remove workaround for #2311
ohanar Sep 28, 2020
d8abf5c
[openscenegraph] add fix for building against static libjpeg on windows
ohanar Sep 29, 2020
b845c70
[openscenegraph] don't use conan toolchains, they're not stable enough
ohanar Sep 30, 2020
11fad6b
[openscenegraph] add conan_basic_setup to test package
ohanar Sep 30, 2020
d265dc1
[openscenegraph] update dependencies
ohanar Oct 20, 2020
4e9d383
[openescenegraph] fix hooks
ohanar Oct 20, 2020
ad3c4a3
[openscenegraph] uncomment asio stuff where possible
ohanar Oct 28, 2020
308dd74
[openscenegraph] remove no_copy_source and patch in build step
ohanar Oct 28, 2020
24e066f
[openscenegraph] remove build_examples option
ohanar Oct 28, 2020
b2fb8e7
[openscenegraph] cache cmake instance
ohanar Oct 29, 2020
777855a
[openscenegraph] set pkg-config component names
ohanar Oct 29, 2020
b73ae1e
[openscenegraph] add link to asio issue
ohanar Jan 5, 2021
0e58985
[openscenegraph] remove .value from settings
ohanar Jan 5, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions recipes/openscenegraph/all/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
cmake_minimum_required(VERSION 3.1.2)
project(cmake_wrapper)

include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup(NO_OUTPUT_DIRS)

if(APPLE)
add_compile_definitions("GL_SILENCE_DEPRECATION")
endif()

add_subdirectory("source_subfolder")
4 changes: 4 additions & 0 deletions recipes/openscenegraph/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
sources:
3.6.5:
sha256: aea196550f02974d6d09291c5d83b51ca6a03b3767e234a8c0e21322927d1e12
url: https://github.com/openscenegraph/OpenSceneGraph/archive/OpenSceneGraph-3.6.5.tar.gz
594 changes: 594 additions & 0 deletions recipes/openscenegraph/all/conanfile.py

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions recipes/openscenegraph/all/test_package/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
cmake_minimum_required(VERSION 3.1.2)
project(test_package)

find_package(OpenSceneGraph REQUIRED)

include_directories(${OPENSCENEGRAPH_INCLUDE_DIRS})
link_libraries(${OPENSCENEGRAPH_LIBRARIES})
add_compile_definitions(${OPENSCENEGRAPH_COMPILE_DEFINITIONS})

add_compile_definitions(WITH_PNG=${WITH_PNG})

add_executable(${PROJECT_NAME} test_package.cpp)
22 changes: 22 additions & 0 deletions recipes/openscenegraph/all/test_package/conanfile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from conans import ConanFile, CMake, CMakeToolchain, tools
import os


class TestPackageConan(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "cmake_find_package"

def toolchain(self):
toolchain = CMakeToolchain(self)
toolchain.definitions["WITH_PNG"] = 1 if self.options["openscenegraph"].with_png else 0
toolchain.write_toolchain_files()

def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()

def test(self):
if not tools.cross_building(self.settings):
bin_path = os.path.join(os.curdir, "test_package") + (".exe" if self.settings.os == "Windows" else "")
self.run(bin_path, run_environment=True)
33 changes: 33 additions & 0 deletions recipes/openscenegraph/all/test_package/test_package.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#include <cstdlib>

#include <osg/ref_ptr>
#include <osgDB/ReaderWriter>
#include <osgDB/Registry>

#ifdef OSG_LIBRARY_STATIC
USE_OSGPLUGIN ( bmp )
# if WITH_PNG == 1
USE_OSGPLUGIN ( png )
# endif
#endif

int main ( int argc, char** argv )
{
osg::ref_ptr< osgDB::ReaderWriter > reader_writer;

reader_writer = osgDB::Registry::instance()->getReaderWriterForExtension ( "bmp" );

if ( !reader_writer.valid() )
{
std::exit ( 1 );
}

reader_writer = osgDB::Registry::instance()->getReaderWriterForExtension ( "png" );

if ( reader_writer.valid() != bool ( WITH_PNG ) )
{
std::exit ( 1 );
}

return 0;
}
3 changes: 3 additions & 0 deletions recipes/openscenegraph/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
versions:
3.6.5:
folder: all