]> Repos - portaudio/commitdiff
rename cmake_support directory to cmake
authorBe <be@mixxx.org>
Mon, 11 Jan 2021 18:18:44 +0000 (12:18 -0600)
committerPhil Burk <philburk@mobileer.com>
Thu, 12 Aug 2021 00:23:40 +0000 (17:23 -0700)
.github/workflows/cmake.yml
CMakeLists.txt
cmake/FindASIOSDK.cmake [moved from cmake_support/FindASIOSDK.cmake with 100% similarity]
cmake/FindJack.cmake [moved from cmake_support/FindJack.cmake with 100% similarity]
cmake/cmake_uninstall.cmake.in [moved from cmake_support/cmake_uninstall.cmake.in with 100% similarity]
cmake/i686-w64-mingw32.cmake [moved from i686-w64-mingw32.cmake with 89% similarity]
cmake/options_cmake.h.in [moved from cmake_support/options_cmake.h.in with 100% similarity]
cmake/portaudio-2.0.pc.in [moved from cmake_support/portaudio-2.0.pc.in with 100% similarity]
cmake/portaudioConfig.cmake.in [moved from cmake_support/portaudioConfig.cmake.in with 100% similarity]
cmake/template_portaudio.def [moved from cmake_support/template_portaudio.def with 100% similarity]

index 68e4b6c3466aa949c6658abb6fade94ddcdcc053..db66912766e05d46b883ef9dbee8737d31d4f6ef 100644 (file)
@@ -19,7 +19,7 @@ jobs:
             os: ubuntu-latest
             install_dir: ~/portaudio
             dependencies_extras: mingw-w64
-            cmake_extras: -DCMAKE_TOOLCHAIN_FILE=i686-w64-mingw32.cmake
+            cmake_extras: -DCMAKE_TOOLCHAIN_FILE=cmake/i686-w64-mingw32.cmake
           - name: Windows
             os: windows-latest
             install_dir: C:\portaudio
index 3c90862af9ba5578a1488e620c0dd6f65bfb61ce..39276463f948c986f47e014495c14a7cf0a7104d 100644 (file)
@@ -109,7 +109,7 @@ SOURCE_GROUP("common" FILES ${PA_COMMON_INCLUDES} ${PA_COMMON_SOURCES})
 
 SET(PA_PUBLIC_INCLUDES include/portaudio.h)
 
-SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake_support)
+SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
 
 SET(PA_SKELETON_SOURCES src/hostapi/skeleton/pa_hostapi_skeleton.c)
 SOURCE_GROUP("hostapi\\skeleton" ${PA_SKELETON_SOURCES})
@@ -230,8 +230,8 @@ IF(WIN32)
   ENDIF()
 
   SET(GENERATED_MESSAGE "CMake generated file, do NOT edit! Use CMake-GUI to change configuration instead.")
-  CONFIGURE_FILE(cmake_support/template_portaudio.def ${CMAKE_CURRENT_BINARY_DIR}/portaudio_cmake.def @ONLY)
-  CONFIGURE_FILE(cmake_support/options_cmake.h.in ${CMAKE_CURRENT_BINARY_DIR}/options_cmake.h @ONLY)
+  CONFIGURE_FILE(cmake/template_portaudio.def ${CMAKE_CURRENT_BINARY_DIR}/portaudio_cmake.def @ONLY)
+  CONFIGURE_FILE(cmake/options_cmake.h.in ${CMAKE_CURRENT_BINARY_DIR}/options_cmake.h @ONLY)
   SET(PA_PRIVATE_INCLUDES ${PA_PRIVATE_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR}/options_cmake.h)
   SET(PA_PRIVATE_COMPILE_DEFINITIONS ${PA_PRIVATE_COMPILE_DEFINITIONS} PORTAUDIO_CMAKE_GENERATED)
   SOURCE_GROUP("cmake_generated" FILES ${CMAKE_CURRENT_BINARY_DIR}/portaudio_cmake.def ${CMAKE_CURRENT_BINARY_DIR}/options_cmake.h)
@@ -443,13 +443,13 @@ OPTION(PA_DISABLE_INSTALL "Disable targets install and uninstall (for embedded b
 IF(NOT PA_OUTPUT_OSX_FRAMEWORK AND NOT PA_DISABLE_INSTALL)
   INCLUDE(CMakePackageConfigHelpers)
 
-  CONFIGURE_PACKAGE_CONFIG_FILE(cmake_support/portaudioConfig.cmake.in ${CMAKE_BINARY_DIR}/cmake/portaudio/portaudioConfig.cmake
+  CONFIGURE_PACKAGE_CONFIG_FILE(cmake/portaudioConfig.cmake.in ${CMAKE_BINARY_DIR}/cmake/portaudio/portaudioConfig.cmake
     INSTALL_DESTINATION "lib/cmake/portaudio"
     NO_CHECK_REQUIRED_COMPONENTS_MACRO)
   WRITE_BASIC_PACKAGE_VERSION_FILE(${CMAKE_BINARY_DIR}/cmake/portaudio/portaudioConfigVersion.cmake
     VERSION ${PA_VERSION}
     COMPATIBILITY SameMajorVersion)
-  CONFIGURE_FILE(cmake_support/portaudio-2.0.pc.in ${CMAKE_CURRENT_BINARY_DIR}/portaudio-2.0.pc @ONLY)
+  CONFIGURE_FILE(cmake/portaudio-2.0.pc.in ${CMAKE_CURRENT_BINARY_DIR}/portaudio-2.0.pc @ONLY)
   INSTALL(FILES README.md DESTINATION share/doc/portaudio)
   INSTALL(FILES LICENSE.txt DESTINATION share/doc/portaudio)
   INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/portaudio-2.0.pc DESTINATION lib/pkgconfig)
@@ -467,7 +467,7 @@ IF(NOT PA_OUTPUT_OSX_FRAMEWORK AND NOT PA_DISABLE_INSTALL)
 
   IF (NOT TARGET uninstall)
     CONFIGURE_FILE(
-      "${CMAKE_CURRENT_SOURCE_DIR}/cmake_support/cmake_uninstall.cmake.in"
+      "${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in"
       "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
       IMMEDIATE @ONLY)
     ADD_CUSTOM_TARGET(uninstall
similarity index 89%
rename from i686-w64-mingw32.cmake
rename to cmake/i686-w64-mingw32.cmake
index c3331b67a1b5bd16d35dd8a384e21670581d9023..558c0bdbb6a3b117f77d55f9a5044392be086fd8 100644 (file)
@@ -1,6 +1,6 @@
 # CMake Toolchain file for cross-compiling PortAudio to i686-w64-mingw32
 # Inspired from: https://gitlab.kitware.com/cmake/community/-/wikis/doc/cmake/cross_compiling/Mingw
-# Example usage: $ cmake -DCMAKE_TOOLCHAIN_FILE=i686-w64-mingw32.cmake .
+# Example usage: $ cmake -DCMAKE_TOOLCHAIN_FILE=cmake/i686-w64-mingw32.cmake .
 # i686-w64-mingw32 needs to be installed for this to work. On Debian-based
 # distributions the package is typically named `mingw-w64`.