-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from wdigger/cmake
Changed: CMake used for project build
- Loading branch information
Showing
34 changed files
with
615 additions
and
590 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: linux | ||
|
||
on: | ||
pull_request: | ||
push: | ||
release: | ||
types: published | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
|
||
strategy: | ||
matrix: | ||
buildtype: [Debug, Release] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libglx-dev libgl1-mesa-dev | ||
sudo apt-get install -y qt6-base-dev | ||
sudo apt-get install -y libqt6opengl6-dev | ||
- name: Configure FSStudio | ||
run: | | ||
cmake -B build -G "Unix Makefiles" | ||
- name: Build FSStudio | ||
run: | | ||
cd build | ||
make | ||
- name: Pack FSStudio | ||
run: | | ||
cd build | ||
make package | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: FSStudio-${{ matrix.buildtype }} | ||
path: ./build/FSStudio-0.1.0-Linux.tar.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: macos | ||
|
||
on: | ||
pull_request: | ||
push: | ||
release: | ||
types: published | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
|
||
strategy: | ||
matrix: | ||
buildtype: [Debug, Release] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Install dependencies | ||
run: | | ||
brew install qt6 | ||
- name: Configure FSStudio | ||
run: | | ||
cmake -B build -G "Unix Makefiles" | ||
- name: Build FSStudio | ||
run: | | ||
cd build | ||
make | ||
- name: Pack FSStudio | ||
run: | | ||
cd build | ||
make package | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: FSStudio-${{ matrix.buildtype }} | ||
path: ./build/FSStudio.dmg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "fsstudio", | ||
"version-string": "0.1.0", | ||
"dependencies": [ | ||
"qtbase" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: windows | ||
|
||
on: | ||
pull_request: | ||
push: | ||
release: | ||
types: published | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
|
||
strategy: | ||
matrix: | ||
buildtype: [Debug, Release] | ||
architecture: [x64] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Setup environment | ||
uses: ilammy/msvc-dev-cmd@v1 | ||
with: | ||
arch: ${{ matrix.architecture }} | ||
|
||
- name: Install dependencies | ||
uses: jurplel/install-qt-action@v4 | ||
with: | ||
version: '6.2.0' | ||
host: 'windows' | ||
target: 'desktop' | ||
arch: "win64_msvc2019_64" | ||
cache: true | ||
|
||
- name: Configure FSStudio | ||
run: | | ||
cmake -B build -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=${{ matrix.buildtype }} | ||
- name: Build FSStudio | ||
shell: bash | ||
run: | | ||
cd build | ||
nmake | ||
- name: Pack FSStudio | ||
shell: bash | ||
run: | | ||
cd build | ||
nmake package | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: FSStudio-${{ matrix.architecture }}-${{ matrix.buildtype }} | ||
path: ./build/FSStudio-${{ matrix.architecture }}-${{ matrix.buildtype }}.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ Makefile* | |
debug | ||
release | ||
.qmake.stash | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[submodule "freeserf"] | ||
path = freeserf | ||
url = git://github.com/freeserf/freeserf | ||
url = https://github.com/freeserf/freeserf.git |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
cmake_minimum_required(VERSION 3.16) | ||
|
||
project(FSStudio VERSION 0.1.0 LANGUAGES CXX) | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
set(CMAKE_OSX_DEPLOYMENT_TARGET 12.0) | ||
|
||
set(CMAKE_INCLUDE_CURRENT_DIR ON) | ||
include_directories(${INCLUDE_DIRECTORIES} ${CMAKE_CURRENT_SOURCE_DIR} freeserf) | ||
|
||
set(FREESERF_DATA_SOURCES ./freeserf/src/data.cc | ||
./freeserf/src/data-source-dos.cc | ||
./freeserf/src/data-source-amiga.cc | ||
./freeserf/src/data-source-custom.cc | ||
./freeserf/src/data-source-legacy.cc | ||
./freeserf/src/tpwm.cc | ||
./freeserf/src/sfx2wav.cc | ||
./freeserf/src/xmi2mid.cc | ||
./freeserf/src/data-source.cc | ||
./freeserf/src/log.cc | ||
./freeserf/src/configfile.cc | ||
./freeserf/src/buffer.cc | ||
./freeserf/src/pcm2wav.cc | ||
./freeserf/src/debug.cc) | ||
|
||
set(FREESERF_DATA_HEADERS ./freeserf/src/data.h | ||
./freeserf/src/misc.h | ||
./freeserf/src/freeserf_endian.h | ||
./freeserf/src/data-source-dos.h | ||
./freeserf/src/data-source-amiga.h | ||
./freeserf/src/data-source-custom.h | ||
./freeserf/src/data-source-legacy.h | ||
./freeserf/src/tpwm.h | ||
./freeserf/src/sfx2wav.h | ||
./freeserf/src/xmi2mid.h | ||
./freeserf/src/data-source.h | ||
./freeserf/src/log.h | ||
./freeserf/src/configfile.h | ||
./freeserf/src/buffer.h | ||
./freeserf/src/pcm2wav.h | ||
./freeserf/src/debug.h) | ||
|
||
add_library(freeserf_data STATIC ${FREESERF_DATA_SOURCES} ${FREESERF_DATA_HEADERS}) | ||
|
||
add_subdirectory(src) |
This file was deleted.
Oops, something went wrong.
Submodule freeserf
updated
49 files
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.