Skip to content

Commit

Permalink
update build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mnutt committed Jul 2, 2023
1 parent 38793ec commit 6372d8b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/build_cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ jobs:
git -c protocol.version=2 fetch --no-tags --prune --progress --depth=10 origin +${GITHUB_SHA}:refs/remotes/origin/${BRANCH}
git checkout --progress --force -B $BRANCH refs/remotes/origin/$BRANCH
- name: Python Setup Windows
uses: actions/setup-python@v4
with:
python-version: '3.11'
if: runner.os == 'Windows'
- name: Download Qt Windows
id: qt_win
if: runner.os == 'Windows'
Expand All @@ -76,9 +81,9 @@ jobs:
DIR: "msvc2019_64"
shell: bash --noprofile --norc -eo pipefail -x {0}
run: |
py -m pip install -r Tools/qt/qt-downloader-requirements.txt
pip install -r Tools/qt/qt-downloader-requirements.txt
QT_INSTALL_DIR="/c/Qt"
py Tools/qt/qt-downloader windows desktop ${QT_VERSION} ${TOOLCHAIN} --output=${QT_INSTALL_DIR} --qt_modules="${QT_MODULES}"
python Tools/qt/qt-downloader windows desktop ${QT_VERSION} ${TOOLCHAIN} --output=${QT_INSTALL_DIR} --qt_modules="${QT_MODULES}"
export QTDIR="${QT_INSTALL_DIR}/${QT_VERSION}/${DIR}"
ls $QTDIR
Tools/qt/license_writer.sh
Expand Down Expand Up @@ -132,14 +137,14 @@ jobs:
if: runner.os == 'Windows' || runner.os == 'macOS'
shell: bash --noprofile --norc -eo pipefail -x {0}
run: |
pip3 install conan
pip3 install conan==1.60.1
- name: Install dependencies (Ubuntu)
if: runner.os == 'Linux'
run: |
sudo apt-get update && sudo apt-get install \
ninja-build build-essential bison flex gperf libfontconfig1-dev libgl1-mesa-dev libglib2.0-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev libhyphen-dev libicu-dev libjpeg-dev libpng-dev libqt5opengl5-dev libqt5sensors5-dev libqt5webchannel5-dev libsqlite3-dev libwebp-dev libwoff-dev libxcomposite-dev libxml2-dev libxrender-dev libxslt1-dev mesa-common-dev pkg-config python3 qtbase5-private-dev qtdeclarative5-private-dev qtpositioning5-dev ruby libqt5sql5-sqlite qtbase5-doc-html qttools5-dev-tools \
libtasn1-6-dev libgcrypt20-dev
libtasn1-6-dev libgcrypt20-dev libunwind-dev libharfbuzz-dev
- name: CMake version
id: cmake_version
Expand All @@ -150,18 +155,15 @@ jobs:
- name: CMake environment
shell: bash --noprofile --norc -eo pipefail -x {0}
run: |
echo "::add-path::$GITHUB_WORKSPACE"
echo "::set-env name=CCACHE_BASEDIR::$GITHUB_WORKSPACE"
echo "::set-env name=CCACHE_DIR::$GITHUB_WORKSPACE/.ccache"
echo "::set-env name=cmake_args::\
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DENABLE_PCH=OFF"
echo "$GITHUB_WORKSPACE" >> $GITHUB_PATH
echo "CCACHE_BASEDIR=$GITHUB_WORKSPACE" >> $GITHUB_ENV
echo "CCACHE_DIR=$GITHUB_WORKSPACE/.ccache" >> $GITHUB_ENV
echo "cmake_args='-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DENABLE_PCH=OFF'" >> $GITHUB_ENV
- name: Configure (Linux)
if: runner.os == 'Linux'
shell: bash --noprofile --norc -eo pipefail -x {0}
run: cmake $cmake_args -H. -Bbuild -GNinja -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }}
run: cmake $cmake_args -H. -Bbuild -GNinja -DPORT=Qt -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }}

- name: Configure (MSVC)
if: runner.os == 'Windows' && matrix.config.environment_script != ''
Expand Down
3 changes: 3 additions & 0 deletions Source/WTF/wtf/glib/GRefPtr.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ extern "C" {
GDBusNodeInfo* g_dbus_node_info_ref(GDBusNodeInfo*);
void g_dbus_node_info_unref(GDBusNodeInfo*);
};

#if !PLATFORM(QT)
extern "C" void g_object_unref(gpointer);
extern "C" gpointer g_object_ref_sink(gpointer);
#endif

namespace WTF {

Expand Down

0 comments on commit 6372d8b

Please sign in to comment.