Skip to content

Commit

Permalink
[Tizen] Fix Flutter 3.10 build
Browse files Browse the repository at this point in the history
  • Loading branch information
swift-kim committed May 15, 2023
1 parent 018c50f commit e69dc8e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ jobs:

- name: Build
run: |
# Ignore unsupported linker option.
sed -i "/-Wl,--undefined-version/d" src/build/config/compiler/BUILD.gn
src/flutter/tools/gn \
--target-os linux \
--linux-cpu ${{ matrix.arch }} \
Expand Down Expand Up @@ -96,7 +99,7 @@ jobs:
if-no-files-found: error

windows-build:
runs-on: windows-2019
runs-on: windows-latest

strategy:
matrix:
Expand All @@ -118,7 +121,7 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -Force
echo "DEPOT_TOOLS_WIN_TOOLCHAIN=0" >> $Env:GITHUB_ENV
echo "GYP_MSVS_OVERRIDE_PATH=C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise" >> $Env:GITHUB_ENV
echo "GYP_MSVS_OVERRIDE_PATH=C:\Program Files\Microsoft Visual Studio\2022\Enterprise" >> $Env:GITHUB_ENV
echo "WINDOWSSDKDIR=C:\Program Files (x86)\Windows Kits\10" >> $Env:GITHUB_ENV
- name: Install depot_tools
Expand All @@ -129,6 +132,7 @@ jobs:
- name: Run gclient sync
working-directory: C:\workspace\engine
shell: powershell
run: |
gclient config --name=src\flutter --unmanaged https://github.com/flutter-tizen/engine
gclient setdep --var=download_dart_sdk=False --deps-file=src/flutter/DEPS
Expand All @@ -152,7 +156,7 @@ jobs:
if-no-files-found: error

macos-build:
runs-on: macos-11
runs-on: macos-latest

strategy:
matrix:
Expand Down
4 changes: 1 addition & 3 deletions common/config.gni
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,4 @@ if (flutter_prebuilt_dart_sdk) {
# TODO: We can't build the engine artifacts for arm (32-bit) right now;
# see https://github.com/flutter/flutter/issues/74322
build_engine_artifacts =
flutter_build_engine_artifacts &&
(current_toolchain == host_toolchain ||
(is_linux && !is_chromeos && current_cpu != "arm") || is_mac || is_win)
flutter_build_engine_artifacts && current_toolchain == host_toolchain
3 changes: 2 additions & 1 deletion display_list/testing/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ surface_provider_include_software = !is_android && !is_ios
# But, since benchmarks do not run on Windows and rendertests only
# runs on SW by default, this restriction currently only limits the
# ability to manually cross-check OpenGL on Windows for rendertests
surface_provider_include_gl = !is_fuchsia && !is_ios && !is_win && !is_mac
surface_provider_include_gl =
!is_fuchsia && !is_ios && !is_win && !is_mac && !is_linux

# TODO (https://github.com/flutter/flutter/issues/107357):
# impeller_enable_vulkan currently requires skia to not use VMA, which in turn
Expand Down
2 changes: 1 addition & 1 deletion impeller/geometry/half.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifdef FML_OS_WIN
using InternalHalf = uint16_t;
#else
using InternalHalf = _Float16;
using InternalHalf = uint16_t;
#endif

namespace impeller {
Expand Down
2 changes: 1 addition & 1 deletion shell/config.gni
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ declare_args() {
test_enable_metal = shell_enable_metal

# The Vulkan unittests are combined with the GL unittests.
test_enable_vulkan = is_fuchsia || shell_enable_gl
test_enable_vulkan = is_fuchsia
test_enable_software = shell_enable_software
}

0 comments on commit e69dc8e

Please sign in to comment.