diff options
| author | Dmitry Baryshev <dmitrymq@gmail.com> | 2021-06-01 22:20:31 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-01 12:20:31 -0700 |
| commit | 835f1613b5d785eed9cfc6c0b76d6ac2aa0a61ba (patch) | |
| tree | cdccf9b9a024041aeac0010bcf7fdf76a3321946 /ports/aom/aom-install.diff | |
| parent | b2dd1261bfcff3f837d8d1283270addbfd62eeaa (diff) | |
| download | vcpkg-835f1613b5d785eed9cfc6c0b76d6ac2aa0a61ba.tar.gz vcpkg-835f1613b5d785eed9cfc6c0b76d6ac2aa0a61ba.zip | |
[aom] Add new port (#18083)
* [aom] Add new port
* [aom] vcpkg x-add-version --all
* [aom] Added versions/a-/aom.json
* [aom] Fixes after review
* [aom] vcpkg x-add-version --all --overwrite-version
* [aom] Remove usage
* [aom] vcpkg x-add-version --all --overwrite-version
* [aom] Update ports/aom/portfile.cmake
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
* [aom] vcpkg x-add-version --all --overwrite-version
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
Diffstat (limited to 'ports/aom/aom-install.diff')
| -rw-r--r-- | ports/aom/aom-install.diff | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/ports/aom/aom-install.diff b/ports/aom/aom-install.diff new file mode 100644 index 000000000..64c45df54 --- /dev/null +++ b/ports/aom/aom-install.diff @@ -0,0 +1,75 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 18190f647..f4b1b359d 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -23,6 +23,9 @@ endif() + + project(AOM C CXX) + ++include(GNUInstallDirs) ++include(CMakePackageConfigHelpers) ++ + if(NOT EMSCRIPTEN) + if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) + set(CMAKE_BUILD_TYPE +@@ -289,6 +292,52 @@ if(BUILD_SHARED_LIBS) + set(AOM_LIB_TARGETS ${AOM_LIB_TARGETS} aom_static) + endif() + ++set(PUBLIC_HEADERS ++ aom/aom.h ++ aom/aom_codec.h ++ aom/aom_decoder.h ++ aom/aom_encoder.h ++ aom/aom_frame_buffer.h ++ aom/aom_image.h ++ aom/aom_integer.h ++ aom/aomcx.h ++ aom/aomdx.h ++) ++ ++set_target_properties(aom PROPERTIES ++ PUBLIC_HEADER "${PUBLIC_HEADERS}") ++ ++ ++target_include_directories(aom ++ PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> ++ $<INSTALL_INTERFACE:include>) ++ ++install(TARGETS aom ++ EXPORT unofficial-aom-targets ++ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}" ++ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" ++ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" ++ PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/aom") ++ ++install(EXPORT unofficial-aom-targets ++ FILE unofficial-aom-targets.cmake ++ NAMESPACE unofficial:: ++ DESTINATION lib/cmake/aom) ++ ++configure_package_config_file(cmake/aom-config.cmake.in ++ ${CMAKE_CURRENT_BINARY_DIR}/aom-config.cmake ++ INSTALL_DESTINATION lib/cmake/aom ++ NO_SET_AND_CHECK_MACRO ++ NO_CHECK_REQUIRED_COMPONENTS_MACRO) ++ ++write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR}/aom-config-version.cmake ++ VERSION ${SO_FILE_VERSION} ++ COMPATIBILITY SameMajorVersion) ++ ++install(FILES ${CMAKE_CURRENT_BINARY_DIR}/aom-config.cmake ++ ${CMAKE_CURRENT_BINARY_DIR}/aom-config-version.cmake ++ DESTINATION lib/cmake/aom) ++ + # Setup dependencies. + setup_aom_dsp_targets() + setup_aom_mem_targets() +diff --git a/cmake/aom-config.cmake.in b/cmake/aom-config.cmake.in +new file mode 100644 +index 000000000..91cac3b5b +--- /dev/null ++++ b/cmake/aom-config.cmake.in +@@ -0,0 +1,2 @@ ++@PACKAGE_INIT@ ++include(${CMAKE_CURRENT_LIST_DIR}/unofficial-aom-targets.cmake) |
