use submodules for core library and kddockwidgets
This commit is contained in:
@@ -56,6 +56,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout Source Code
|
- name: Checkout Source Code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: 'true'
|
||||||
|
|
||||||
- name: Generate Patreon List
|
- name: Generate Patreon List
|
||||||
env:
|
env:
|
||||||
@@ -67,26 +69,10 @@ jobs:
|
|||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Build Core Library
|
|
||||||
shell: bash
|
|
||||||
working-directory: ${{ runner.workspace }}
|
|
||||||
run: |
|
|
||||||
git clone https://github.com/olive-editor/core
|
|
||||||
cd core
|
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} -G "${{ matrix.cmake-gen }}" \
|
|
||||||
-DCMAKE_C_COMPILER="${{ matrix.cc-compiler }}" \
|
|
||||||
-DCMAKE_CXX_COMPILER="${{ matrix.cxx-compiler }}" \
|
|
||||||
-DCMAKE_INSTALL_PREFIX="$GITHUB_WORKSPACE/core/install" \
|
|
||||||
$CMAKE_ARGS
|
|
||||||
ninja install
|
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
run: |
|
run: |
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
PATH=$GITHUB_WORKSPACE/core/install:$PATH
|
|
||||||
cmake .. -G "${{ matrix.cmake-gen }}" \
|
cmake .. -G "${{ matrix.cmake-gen }}" \
|
||||||
-DCMAKE_BUILD_TYPE="${{ matrix.build-type }}" \
|
-DCMAKE_BUILD_TYPE="${{ matrix.build-type }}" \
|
||||||
-DCMAKE_C_COMPILER="${{ matrix.cc-compiler }}" \
|
-DCMAKE_C_COMPILER="${{ matrix.cc-compiler }}" \
|
||||||
@@ -172,6 +158,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout Source Code
|
- name: Checkout Source Code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: 'true'
|
||||||
|
|
||||||
- name: Automatically Generate Package Name
|
- name: Automatically Generate Package Name
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -218,25 +206,10 @@ jobs:
|
|||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Build Core Library
|
|
||||||
shell: bash
|
|
||||||
working-directory: ${{ runner.workspace }}
|
|
||||||
run: |
|
|
||||||
git clone https://github.com/olive-editor/core
|
|
||||||
cd core
|
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} -G "${{ matrix.cmake-gen }}" \
|
|
||||||
-DCMAKE_INSTALL_PREFIX="install" \
|
|
||||||
$CMAKE_ARGS
|
|
||||||
ninja install
|
|
||||||
echo "$(pwd -W)/install" >> $GITHUB_PATH
|
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: ${{ runner.workspace }}/build
|
working-directory: ${{ runner.workspace }}/build
|
||||||
run: |
|
run: |
|
||||||
PATH=$GITHUB_WORKSPACE/core/install:$PATH
|
|
||||||
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} -G "${{ matrix.cmake-gen }}" \
|
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} -G "${{ matrix.cmake-gen }}" \
|
||||||
$CMAKE_ARGS
|
$CMAKE_ARGS
|
||||||
|
|
||||||
@@ -339,6 +312,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout Source Code
|
- name: Checkout Source Code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: 'true'
|
||||||
|
|
||||||
- name: Automatically Generate Package Name
|
- name: Automatically Generate Package Name
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -382,27 +357,11 @@ jobs:
|
|||||||
brew update
|
brew update
|
||||||
brew install ninja
|
brew install ninja
|
||||||
|
|
||||||
- name: Build Core Library
|
|
||||||
shell: bash
|
|
||||||
working-directory: ${{ runner.workspace }}
|
|
||||||
run: |
|
|
||||||
git clone https://github.com/olive-editor/core
|
|
||||||
cd core
|
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
PATH=$DEP_LOCATION:$DEP_LOCATION/bin:$DEP_LOCATION/include:$DEP_LOCATION/lib:$DEP_LOCATION/crashpad:$PATH \
|
|
||||||
cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} \
|
|
||||||
-DCMAKE_OSX_DEPLOYMENT_TARGET=${{ matrix.min-deploy }} -G "${{ matrix.cmake-gen }}" \
|
|
||||||
-DCMAKE_OSX_ARCHITECTURES="${{ matrix.os-arch }}" \
|
|
||||||
-DCMAKE_INSTALL_PREFIX="$GITHUB_WORKSPACE/core/install" \
|
|
||||||
$CMAKE_ARGS
|
|
||||||
ninja install
|
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: ${{ runner.workspace }}/build
|
working-directory: ${{ runner.workspace }}/build
|
||||||
run: |
|
run: |
|
||||||
PATH=$DEP_LOCATION:$DEP_LOCATION/bin:$DEP_LOCATION/include:$DEP_LOCATION/lib:$DEP_LOCATION/crashpad:$GITHUB_WORKSPACE/core/install:$PATH \
|
PATH=$DEP_LOCATION:$DEP_LOCATION/bin:$DEP_LOCATION/include:$DEP_LOCATION/lib:$DEP_LOCATION/crashpad:$PATH \
|
||||||
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} \
|
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} \
|
||||||
-DCMAKE_OSX_DEPLOYMENT_TARGET=${{ matrix.min-deploy }} -G "${{ matrix.cmake-gen }}" \
|
-DCMAKE_OSX_DEPLOYMENT_TARGET=${{ matrix.min-deploy }} -G "${{ matrix.cmake-gen }}" \
|
||||||
-DCMAKE_OSX_ARCHITECTURES="${{ matrix.os-arch }}" \
|
-DCMAKE_OSX_ARCHITECTURES="${{ matrix.os-arch }}" \
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
[submodule "ext/core"]
|
||||||
|
path = ext/core
|
||||||
|
url = https://github.com/olive-editor/core
|
||||||
|
[submodule "ext/KDDockWidgets"]
|
||||||
|
path = ext/KDDockWidgets
|
||||||
|
url = https://github.com/KDAB/KDDockWidgets
|
||||||
+6
-9
@@ -1,5 +1,5 @@
|
|||||||
# Olive - Non-Linear Video Editor
|
# Olive - Non-Linear Video Editor
|
||||||
# Copyright (C) 2022 Olive Team
|
# Copyright (C) 2023 Olive Studios LLC
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -95,12 +95,8 @@ list(APPEND OLIVE_LIBRARIES ${OPENEXR_LIBRARIES})
|
|||||||
list(APPEND OLIVE_INCLUDE_DIRS ${OPENEXR_INCLUDES})
|
list(APPEND OLIVE_INCLUDE_DIRS ${OPENEXR_INCLUDES})
|
||||||
|
|
||||||
# Link Olive
|
# Link Olive
|
||||||
find_package(Olive REQUIRED
|
list(APPEND OLIVE_LIBRARIES olivecore)
|
||||||
COMPONENTS
|
list(APPEND OLIVE_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/ext/core/include)
|
||||||
Core
|
|
||||||
)
|
|
||||||
list(APPEND OLIVE_LIBRARIES ${LIBOLIVE_LIBRARIES})
|
|
||||||
list(APPEND OLIVE_INCLUDE_DIRS ${LIBOLIVE_INCLUDE_DIRS})
|
|
||||||
|
|
||||||
# Link Qt
|
# Link Qt
|
||||||
set(QT_LIBRARIES
|
set(QT_LIBRARIES
|
||||||
@@ -152,10 +148,10 @@ if (${QT_VERSION_MAJOR} EQUAL "6")
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Link KDDockWidgets
|
# Link KDDockWidgets
|
||||||
find_package(KDDockWidgets-qt6 CONFIG REQUIRED)
|
#find_package(KDDockWidgets-qt6 CONFIG REQUIRED)
|
||||||
else()
|
else()
|
||||||
# Link KDDockWidgets
|
# Link KDDockWidgets
|
||||||
find_package(KDDockWidgets CONFIG REQUIRED)
|
#find_package(KDDockWidgets CONFIG REQUIRED)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
list(APPEND OLIVE_LIBRARIES
|
list(APPEND OLIVE_LIBRARIES
|
||||||
@@ -251,6 +247,7 @@ endif()
|
|||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||||
list(APPEND OLIVE_INCLUDE_DIRS ${CMAKE_SOURCE_DIR}/ext)
|
list(APPEND OLIVE_INCLUDE_DIRS ${CMAKE_SOURCE_DIR}/ext)
|
||||||
|
|
||||||
|
add_subdirectory(ext)
|
||||||
add_subdirectory(app)
|
add_subdirectory(app)
|
||||||
|
|
||||||
if (BUILD_TESTS)
|
if (BUILD_TESTS)
|
||||||
|
|||||||
@@ -30,6 +30,10 @@ are guaranteed to set these variables or provide targets.
|
|||||||
#]==]
|
#]==]
|
||||||
|
|
||||||
function (_ffmpeg_find component headername)
|
function (_ffmpeg_find component headername)
|
||||||
|
if (${FFMPEG_${component}_FOUND})
|
||||||
|
return()
|
||||||
|
endif()
|
||||||
|
|
||||||
find_path("FFMPEG_${component}_INCLUDE_DIR"
|
find_path("FFMPEG_${component}_INCLUDE_DIR"
|
||||||
NAMES
|
NAMES
|
||||||
"lib${component}/${headername}"
|
"lib${component}/${headername}"
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
# Olive - Non-Linear Video Editor
|
||||||
|
# Copyright (C) 2023 Olive Studios LLC
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
add_subdirectory(core)
|
||||||
|
add_subdirectory(KDDockWidgets)
|
||||||
Submodule
+1
Submodule ext/KDDockWidgets added at c744291d33
Submodule
+1
Submodule ext/core added at 2777928248
Reference in New Issue
Block a user