diff options
author | Be <be@mixxx.org> | 2020-12-14 05:17:19 -0600 |
---|---|---|
committer | Be <be@mixxx.org> | 2020-12-14 05:17:19 -0600 |
commit | dff536b605f2024ca731e521fd765ca7c7f6e224 (patch) | |
tree | 622240b547ca847d9ace22505afb59dea83c001d | |
parent | 244674929a7f66d93c168f173754868fdd801ba1 (diff) | |
parent | 13fd25a00ff9bbfb9f0c80ca78ae6c4111b7abdf (diff) |
Merge remote-tracking branch 'upstream/2.3' into main
99 files changed, 31 insertions, 18927 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 285a046092..3567dcf9d5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,7 +26,7 @@ jobs: buildenv_basepath: /home/runner/buildenv buildenv_script: tools/ubuntu_buildenv.sh artifacts_name: Ubuntu 18.04 DEB - artifacts_path: cmake_build/*.deb + artifacts_path: build/*.deb qt_qpa_platform: offscreen - name: Ubuntu 20.04 (gcc) os: ubuntu-20.04 @@ -45,7 +45,7 @@ jobs: buildenv_basepath: /home/runner/buildenv buildenv_script: tools/ubuntu_buildenv.sh artifacts_name: Ubuntu 20.04 DEB - artifacts_path: cmake_build/*.deb + artifacts_path: build/*.deb qt_qpa_platform: offscreen - name: macOS 10.15 os: macos-10.15 @@ -62,7 +62,7 @@ jobs: buildenv_basepath: /Users/runner/buildenv buildenv_script: tools/macos_buildenv.sh artifacts_name: macOS DMG - artifacts_path: cmake_build/*.dmg + artifacts_path: build/*.dmg qt_qpa_platform: offscreen - name: Windows 2019 (MSVC) os: windows-2019 @@ -84,7 +84,7 @@ jobs: buildenv_basepath: C:\buildenv buildenv_script: tools/windows_buildenv.bat artifacts_name: Windows Installer - artifacts_path: cmake_build/*.msi + artifacts_path: build/*.msi qt_qpa_platform: windows env: @@ -133,7 +133,7 @@ jobs: # Decrypt the certificate openssl enc -aes-256-cbc -d -md sha512 \ -k "${MACOS_CODESIGN_OPENSSL_PASSWORD}" \ - -in /Users/runner/work/mixxx/mixxx/cmake/macos_developer_id_codesign_certificate.p12.enc \ + -in /Users/runner/work/mixxx/mixxx/packaging/certificates/macos_developer_id_codesign_certificate.p12.enc \ -out ~/certificate.p12 # Create a temporary keychain for the certificate and import it. @@ -182,7 +182,7 @@ jobs: ${{ matrix.os }}-${{ matrix.compiler_cache }} - name: "Create build directory" - run: mkdir cmake_build + run: mkdir build - name: "Configure" run: >- @@ -201,7 +201,7 @@ jobs: -DQTKEYCHAIN=ON -DVINYLCONTROL=ON .. - working-directory: cmake_build + working-directory: build env: CC: ${{ matrix.cc }} CXX: ${{ matrix.cxx }} @@ -216,7 +216,7 @@ jobs: - name: "Build" run: cmake --build . - working-directory: cmake_build + working-directory: build env: CC: ${{ matrix.cc }} CXX: ${{ matrix.cxx }} @@ -231,7 +231,7 @@ jobs: - name: "Test" run: ctest --timeout 45 ${{ matrix.ctest_args }} - working-directory: cmake_build + working-directory: build env: # Render analyzer waveform tests to an offscreen buffer QT_QPA_PLATFORM: ${{ matrix.qt_qpa_platform }} @@ -241,29 +241,29 @@ jobs: - name: Benchmark run: cmake --build . --target mixxx-benchmark - working-directory: cmake_build + working-directory: build env: # Render analyzer waveform tests to an offscreen buffer QT_QPA_PLATFORM: ${{ matrix.qt_qpa_platform }} - name: "Package" run: cpack -G ${{ matrix.cpack_generator }} -V - working-directory: cmake_build + working-directory: build - name: "Package for PPA" if: startsWith(matrix.os, 'ubuntu') run: cpack -G External -D DEB_SOURCEPKG=ON - working-directory: cmake_build + working-directory: build - name: "[macOS] Sign Package" if: runner.os == 'macOS' && env.MACOS_CODESIGN_OPENSSL_PASSWORD != null && env.MACOS_CODESIGN_CERTIFICATE_PASSWORD != null - run: codesign --verbose=4 --options runtime --sign "${APPLE_CODESIGN_IDENTITY}" --entitlements ../build/osx/entitlements.plist *.dmg - working-directory: cmake_build + run: codesign --verbose=4 --options runtime --sign "${APPLE_CODESIGN_IDENTITY}" --entitlements ../packaging/macos/entitlements.plist *.dmg + working-directory: build - name: "[Windows] Sign Package" if: runner.os == 'Windows' && env.WINDOWS_CODESIGN_CERTIFICATE_PATH != null && env.WINDOWS_CODESIGN_CERTIFICATE_PASSWORD != null run: signtool sign /f $Env:WINDOWS_CODESIGN_CERTIFICATE_PATH /p $Env:WINDOWS_CODESIGN_CERTIFICATE_PASSWORD *.msi - working-directory: cmake_build + working-directory: build - name: "[macOS] Upload build to downloads.mixxx.org" # skip deploying Ubuntu builds to downloads.mixxx.org because these are deployed to the PPA @@ -273,7 +273,7 @@ jobs: FILE_TO_DEPLOY: ${{ matrix.artifacts_path }} OS: ${{ runner.os }} DOWNLOADS_HOSTGATOR_DOT_MIXXX_DOT_ORG_KEY_PASSWORD: ${{ secrets.DOWNLOADS_HOSTGATOR_DOT_MIXXX_DOT_ORG_KEY_PASSWORD }} - SSH_KEY: build/certificates/downloads-hostgator.mixxx.org.key + SSH_KEY: packaging/certificates/downloads-hostgator.mixxx.org.key - name: "Upload GitHub Actions artifacts" uses: actions/upload-artifact@v2 diff --git a/.gitignore b/.gitignore index 904f4ca997..2808c3d7c0 100644 --- a/.gitignore +++ b/.gitignore @@ -24,11 +24,5 @@ compile_commands.json # Doxygen documentation /doxygen/ -# SCons -.sconf_temp -.sconsign.branch -.sconsign.dblite -cache/ - # Exclude buildenv directory from our helper scripts /buildenv/ diff --git a/CMakeLists.txt b/CMakeLists.txt index e2c19bec17..591fd6ba64 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1112,7 +1112,7 @@ if (APPLE) set_target_properties(mixxx PROPERTIES MACOSX_BUNDLE true - MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/cmake/macos_bundle.plist.in" + MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/packaging/macos/bundle.plist.in" ) endif() else() @@ -2637,11 +2637,11 @@ set(CPACK_DEBIAN_UPLOAD_PPA_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/packaging/CPackD set(CPACK_WIX_UPGRADE_GUID "921DC99C-4DCF-478D-B950-50685CB9E6BE") -set(CPACK_WIX_LICENSE_RTF "${CMAKE_CURRENT_SOURCE_DIR}/build/wix/LICENSE.rtf") +set(CPACK_WIX_LICENSE_RTF "${CMAKE_CURRENT_SOURCE_DIR}/packaging/wix/LICENSE.rtf") set(CPACK_WIX_PRODUCT_ICON "${CMAKE_SOURCE_DIR}/res/images/ic_mixxx.ico") set(CPACK_WIX_PROPERTY_ARPHELPLINK "${CPACK_PACKAGE_HOMEPAGE_URL}") -set(CPACK_WIX_UI_BANNER "${CMAKE_CURRENT_SOURCE_DIR}/build/wix/images/banner.bmp") -set(CPACK_WIX_UI_DIALOG "${CMAKE_CURRENT_SOURCE_DIR}/build/wix/images/dialog.bmp") +set(CPACK_WIX_UI_BANNER "${CMAKE_CURRENT_SOURCE_DIR}/packaging/wix/images/banner.bmp") +set(CPACK_WIX_UI_DIALOG "${CMAKE_CURRENT_SOURCE_DIR}/packaging/wix/images/dialog.bmp") set(CPACK_PROJECT_CONFIG_FILE "${CMAKE_SOURCE_DIR}/packaging/CPackConfig.cmake" ) @@ -2675,7 +2675,7 @@ if(APPLE AND MACOS_BUNDLE) set(BUNDLE_NAME "${MIXXX_INSTALL_PREFIX}") set(BUNDLE_DIRS "${CMAKE_PREFIX_PATH}/lib;${Qt5Widgets_DIR}/../..") - set(APPLE_CODESIGN_ENTITLEMENTS "${CMAKE_CURRENT_SOURCE_DIR}/build/osx/entitlements.plist") + set(APPLE_CODESIGN_ENTITLEMENTS "${CMAKE_CURRENT_SOURCE_DIR}/packaging/macos/entitlements.plist") configure_file(cmake/modules/BundleInstall.cmake.in "${CMAKE_CURRENT_BINARY_DIR}/BundleInstall.cmake" @ONLY) install(SCRIPT "${CMAKE_CURRENT_BINARY_DIR}/BundleInstall.cmake") @@ -38,9 +38,12 @@ bug list][easybugs] and get started! * Jenkins [![Build status](https://img.shields.io/jenkins/s/https/builds.mixxx.org/job/master-release.svg)](https://builds.mixxx.org/job/master-release) First, you must install all of Mixxx's dependencies. To compile Mixxx using -[SCons], run: +[CMake], run: - $ scons + $ mkdir build + $ cd build + $ cmake .. + $ cmake --build . Please see our helpful guides on the [wiki] for more information: - [Compiling on Linux] @@ -98,7 +101,7 @@ license. [compiling on macOS]: https://mixxx.org/wiki/doku.php/compiling_on_os_x [compiling on windows]: https://mixxx.org/wiki/doku.php/compiling_on_windows [mailing list]: https://lists.sourceforge.net/lists/listinfo/mixxx-devel -[SCons]: https://www.scons.org/ +[CMake]: https://cmake.org/ [launchpad 2.3.0]: https://launchpad.net/mixxx/+milestone/2.3.0 [wiki roadmap]: https://mixxx.org/wiki/doku.php/development_roadmap [easybugs]: https://bugs.launchpad.net/mixxx/+bugs?field.searchtext=&orderby=-importance&search=Search&field.status%3Alist=NEW&field.status%3Alist=CONFIRMED&field.status%3Alist=TRIAGED&field.status%3Alist=INPROGRESS&field.status%3Alist=INCOMPLETE_WITH_RESPONSE&field.status%3Alist=INCOMPLETE_WITHOUT_RESPONSE&assignee_option=any&field.assignee=&field.bug_reporter=&field.bug_commenter=&field.subscriber=&field.structural_subscriber=&field.tag=easy&field.tags_combinator=ANY&field.has_cve.used=&field.omit_dupes.used=&field.omit_dupes=on&field.affects_me.used=&field.has_patch.used=&field.has_branches.used=&field.has_branches=on&field.has_no_branches.used=&field.has_no_branches=on&field.has_blueprints.used=&field.has_blueprints=on&field.has_no_blueprints.used=&field.has_no_blueprints=on |