# # FixupBundlePostBuild.cmake.in # cmake/templates # # Copyright 2015 High Fidelity, Inc. # Created by Stephen Birarda on February 13, 2014 # # Distributed under the Apache License, Version 2.0. # See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html # include(BundleUtilities) function(gp_resolved_file_type_override resolved_file type_var) if( file MATCHES ".*VCRUNTIME140.*" ) set(type "system" PARENT_SCOPE) endif() if( file MATCHES ".*concrt140.*" ) set(type "system" PARENT_SCOPE) endif() if( file MATCHES ".*msvcp140.*" ) set(type "system" PARENT_SCOPE) endif() if( file MATCHES ".*vcruntime140.*" ) set(type "system" PARENT_SCOPE) endif() if( file MATCHES ".*api-ms-win-crt-conio.*" ) set(type "system" PARENT_SCOPE) endif() if( file MATCHES ".*api-ms-win-core-winrt.*" ) set(type "system" PARENT_SCOPE) endif() endfunction() message(STATUS "FIXUP_LIBS for fixup_bundle called for bundle ${BUNDLE_EXECUTABLE} are @FIXUP_LIBS@") message(STATUS "Scanning for plugins from ${BUNDLE_PLUGIN_DIR}") if (APPLE) set(PLUGIN_EXTENSION "dylib") elseif (WIN32) set(PLUGIN_EXTENSION "dll") else() set(PLUGIN_EXTENSION "so") endif() file(GLOB EXTRA_PLUGINS "${BUNDLE_PLUGIN_DIR}/*.${PLUGIN_EXTENSION}") fixup_bundle("${BUNDLE_EXECUTABLE}" "${EXTRA_PLUGINS}" "@FIXUP_LIBS@")