forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tizen] Cherrypicks from flutter-1.22-candidate.12-tizen
* Fix memory corruption issue (#2) * Exit application method is replaced by 'ui_app_exit' (#3) * Fix launch failure in sleep mode (#4) * Fix scorll issue (#6) * Changed EGL settings to support more Tizen devices (#5) * Add touch events of platform view channel for tizen (#8) * Resize egl window when software keyboard is shown (#7) * Fix texture being not released issue (#9) * Remove tizen_tools dependency and update BUILD.gn (#11) * Refactor tizen surface (#10) * Fix a crash in stop phase of Tizen engine (#12) * Fix a crash during app shutdown (#13) * Fix a crash when TizenVsyncWaiter is destroyed. (#15) * Implement key events for tizen webview (#14) * Change method name starting with lower case (#16) * Remove not used code (#18) * Introduce assertion macros (#17) * Minor update to Misc (#19) * Add azure-pipelines.yml (#20) * Clean-up channel view resource upon exiting app (#22) * Call a method to set imf_context in platform view channel (#24) * Support Tizen 4.0 (#23) * Fix a focused platform view bug (#27) * Support screen rotations for Tizen 4.0 and Tizen 6.0 (#28) * Separate the embedder from the engine (#29) * Add profile build to the CI script (#30) * Share egl context to egl resource context (#31) * Implement message queue to handle vblank request (#32) * Fix a platform view bug (#33) * Convert timestamp to correct unit (#35) * Send locales to flutter including default locale (#38) * Enable FontConfig to improve font fallbacks (#40) Co-authored-by: Xiaowei Guan <[email protected]> Co-authored-by: MuHong Byun <[email protected]> Co-authored-by: Boram Bae <[email protected]> Co-authored-by: Seungsoo Lee <[email protected]> Co-authored-by: Hakkyu Kim <[email protected]>
- Loading branch information
1 parent
c58751d
commit 3be4793
Showing
36 changed files
with
1,849 additions
and
838 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,135 @@ | ||
# Azure Pipelines YAML pipeline. | ||
# https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema | ||
name: ninja | ||
|
||
trigger: | ||
- flutter-*-tizen | ||
pr: | ||
- flutter-*-tizen | ||
|
||
jobs: | ||
- job: build | ||
strategy: | ||
matrix: | ||
tizen-arm-release: | ||
arch: arm | ||
mode: release | ||
targetTriple: armv7l-tizen-linux-gnueabi | ||
tizen-arm-profile: | ||
arch: arm | ||
mode: profile | ||
targetTriple: armv7l-tizen-linux-gnueabi | ||
tizen-arm-debug: | ||
arch: arm | ||
mode: debug | ||
targetTriple: armv7l-tizen-linux-gnueabi | ||
tizen-x86-debug: | ||
arch: x86 | ||
mode: debug | ||
targetTriple: i586-tizen-linux-gnueabi | ||
pool: | ||
name: Default | ||
demands: agent.os -equals Linux | ||
timeoutInMinutes: 60 | ||
cancelTimeoutInMinutes: 1 | ||
variables: | ||
- name: buildroot | ||
value: $(Pipeline.Workspace)/src | ||
steps: | ||
- checkout: self | ||
path: src/flutter | ||
- bash: | | ||
git reset --hard HEAD | ||
gclient sync -D | ||
sed -i 's/"-Wno-non-c-typedef-for-linkage",//g' build/config/compiler/BUILD.gn | ||
displayName: Prepare for build | ||
workingDirectory: $(buildroot) | ||
failOnStderr: true | ||
- bash: | | ||
flutter/tools/gn \ | ||
--target-os linux \ | ||
--linux-cpu $(arch) \ | ||
--target-toolchain `pwd`/tizen_tools/toolchains \ | ||
--target-sysroot `pwd`/tizen_tools/sysroot/$(arch) \ | ||
--target-triple $(targetTriple) \ | ||
--runtime-mode $(mode) \ | ||
--enable-fontconfig \ | ||
--embedder-for-target \ | ||
--disable-desktop-embeddings \ | ||
--build-tizen-shell \ | ||
--out-dir output/default | ||
ninja -C output/default/out/linux_$(mode)_$(arch) | ||
displayName: Build | ||
workingDirectory: $(buildroot) | ||
failOnStderr: true | ||
- bash: | | ||
flutter/tools/gn \ | ||
--target-os linux \ | ||
--linux-cpu $(arch) \ | ||
--target-toolchain `pwd`/tizen_tools/toolchains \ | ||
--target-sysroot `pwd`/tizen_tools/sysroot/$(arch)_40 \ | ||
--target-triple $(targetTriple) \ | ||
--runtime-mode $(mode) \ | ||
--enable-fontconfig \ | ||
--embedder-for-target \ | ||
--disable-desktop-embeddings \ | ||
--build-tizen-shell \ | ||
--tizen-sdk-4 \ | ||
--out-dir output/tizen40 | ||
ninja -C output/tizen40/out/linux_$(mode)_$(arch) | ||
displayName: Build for Tizen 4.0 | ||
workingDirectory: $(buildroot) | ||
failOnStderr: true | ||
- bash: | | ||
OUTDIR=$(Build.StagingDirectory) | ||
cp default/out/linux_$(mode)_$(arch)/libflutter_tizen.so $OUTDIR | ||
cp tizen40/out/linux_$(mode)_$(arch)/libflutter_tizen.so $OUTDIR/libflutter_tizen40.so | ||
cp tizen40/out/linux_$(mode)_$(arch)/libflutter_engine.so $OUTDIR | ||
displayName: Copy artifacts | ||
workingDirectory: $(buildroot)/output | ||
failOnStderr: true | ||
- publish: $(Build.StagingDirectory) | ||
artifact: $(System.JobName) | ||
- job: release | ||
dependsOn: build | ||
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest')) | ||
pool: | ||
name: Default | ||
demands: agent.os -equals Linux | ||
workspace: | ||
clean: outputs | ||
variables: | ||
- name: upstreamVersion | ||
value: 2f0af3715217a0c2ada72c717d4ed9178d68f6ed | ||
steps: | ||
- checkout: self | ||
path: src/flutter | ||
- download: current | ||
- bash: | | ||
mkdir -p common/client_wrapper | ||
ROOT=$(Pipeline.Workspace)/src/flutter/shell/platform | ||
cp $ROOT/common/cpp/client_wrapper/*.{h,cc} common/client_wrapper | ||
rm common/client_wrapper/{*_unittests.*,engine_method_result.cc} | ||
cp -r $ROOT/common/cpp/public common | ||
cp -r $ROOT/common/cpp/client_wrapper/include common/client_wrapper | ||
cp $ROOT/tizen/public/*.h common/public | ||
cp $ROOT/tizen/LICENSE . | ||
displayName: Copy headers | ||
workingDirectory: $(Build.BinariesDirectory) | ||
failOnStderr: true | ||
- bash: | | ||
cp $(Pipeline.Workspace)/src/third_party/icu/flutter/icudtl.dat common | ||
mv $(Pipeline.Workspace)/tizen-* . | ||
for platform in linux windows darwin; do | ||
for mode in release profile; do | ||
curl -o tmp.zip https://storage.googleapis.com/flutter_infra/flutter/$(upstreamVersion)/android-arm-$mode/$platform-x64.zip 2> /dev/null | ||
unzip tmp.zip -d tizen-arm-$mode/$platform-x64 && rm tmp.zip | ||
done | ||
zip -r $(Build.StagingDirectory)/$platform-x64.zip * | ||
rm -r tizen-arm-*/$platform-x64 | ||
done | ||
displayName: Create releases | ||
workingDirectory: $(Build.BinariesDirectory) | ||
failOnStderr: true | ||
- publish: $(Build.StagingDirectory) | ||
artifact: release |
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
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
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
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
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
Oops, something went wrong.