Skip to content

Commit

Permalink
build studio statically
Browse files Browse the repository at this point in the history
  • Loading branch information
zerotacg committed Aug 5, 2024
1 parent 08fa027 commit 1a9887a
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 10 deletions.
62 changes: 58 additions & 4 deletions .github/workflows/build-studio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,70 @@ on:
- '!.github/workflows/build-studio.yml'

jobs:
build:
strings:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set reusable strings
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
build:
needs:
- strings
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Dependencies
run: |
sudo apt update
sudo apt install --yes software-properties-common
sudo apt update
sudo apt install --yes \
cmake build-essential ninja-build ccache \
bison autoconf automake \
libpng-dev \
libjpeg-dev \
libgif-dev libfreetype6-dev \
freeglut3-dev \
liblua5.2-dev libluabind-dev libcpptest-dev \
libogg-dev libvorbis-dev libopenal-dev \
libavcodec-dev libavformat-dev libavdevice-dev libswscale-dev libpostproc-dev \
libmysqlclient-dev \
libxml2-dev \
libcurl4-openssl-dev libssl-dev \
libsquish-dev \
liblzma-dev \
libgsf-1-dev \
qtbase5-dev qttools5-dev qttools5-dev-tools libqtpropertybrowser-dev
- name: Configure CMake
run: >
cmake -B ${{ needs.strings.outputs.build-output-dir }}
-G "Ninja"
-DWITH_QT5=ON
-DWITH_STUDIO=ON
-DWITH_RYZOM=OFF
-DWITH_NEL_TOOLS=OFF
-DWITH_NEL_SAMPLES=OFF
-DWITH_NEL_TESTS=OFF
-S ${{ github.workspace }}
- name: Build
run: cmake --build ${{ needs.strings.outputs.build-output-dir }} --target studio

build-static:
needs:
- strings
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Dependencies
run: |
sudo apt update
Expand All @@ -49,15 +102,16 @@ jobs:
- name: Configure CMake
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }}
cmake -B ${{ needs.strings.outputs.build-output-dir }}
-G "Ninja"
-DWITH_QT5=ON
-DWITH_STUDIO=ON
-DWITH_STATIC=ON
-DWITH_RYZOM=OFF
-DWITH_NEL_TOOLS=OFF
-DWITH_NEL_SAMPLES=OFF
-DWITH_NEL_TESTS=OFF
-S ${{ github.workspace }}
- name: Build
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --target studio
run: cmake --build ${{ needs.strings.outputs.build-output-dir }} --target studio
4 changes: 0 additions & 4 deletions studio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ ELSE()
ADD_DEFINITIONS(-DHAVE_OVQT_CONFIG_H)
ENDIF()

IF(UNIX AND WITH_STATIC)
MESSAGE(FATAL_ERROR "Studio does not work with static NeL builds on Unix atm.")
ENDIF()

ADD_SUBDIRECTORY(src)

INSTALL(DIRECTORY data/
Expand Down
3 changes: 2 additions & 1 deletion studio/src/plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ IF(WITH_GUI)
ADD_SUBDIRECTORY(gui_editor)
ENDIF()

ADD_SUBDIRECTORY(translation_manager)
# QFtp isn't available anymore only as a standalone module
#ADD_SUBDIRECTORY(translation_manager)
ADD_SUBDIRECTORY(tile_editor)
ADD_SUBDIRECTORY(bnp_manager)
# Note: Temporarily disabled until development continues.
Expand Down
2 changes: 1 addition & 1 deletion studio/src/plugins/gui_editor/link_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ namespace GUIEditor
item->setData( 3, Qt::UserRole, itr->first );
linkTree->addTopLevelItem( item );
}
linkTree->sortByColumn( 0 );
linkTree->sortByColumn( 0, Qt::AscendingOrder );
}

void LinkList::onAddButtonClicked()
Expand Down

0 comments on commit 1a9887a

Please sign in to comment.