forked from flutter-tizen/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
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 (flutter-tizen#2) * Exit application method is replaced by 'ui_app_exit' (flutter-tizen#3) * Fix launch failure in sleep mode (flutter-tizen#4) * Fix scorll issue (flutter-tizen#6) * Changed EGL settings to support more Tizen devices (flutter-tizen#5) * Add touch events of platform view channel for tizen (flutter-tizen#8) * Resize egl window when software keyboard is shown (flutter-tizen#7) * Fix texture being not released issue (flutter-tizen#9) * Remove tizen_tools dependency and update BUILD.gn (flutter-tizen#11) * Refactor tizen surface (flutter-tizen#10) * Fix a crash in stop phase of Tizen engine (flutter-tizen#12) * Fix a crash during app shutdown (flutter-tizen#13) * Fix a crash when TizenVsyncWaiter is destroyed. (flutter-tizen#15) * Implement key events for tizen webview (flutter-tizen#14) * Change method name starting with lower case (flutter-tizen#16) * Remove not used code (flutter-tizen#18) * Introduce assertion macros (flutter-tizen#17) * Minor update to Misc (flutter-tizen#19) * Add azure-pipelines.yml (flutter-tizen#20) * Clean-up channel view resource upon exiting app (flutter-tizen#22) * Call a method to set imf_context in platform view channel (flutter-tizen#24) * Support Tizen 4.0 (flutter-tizen#23) * Fix a focused platform view bug (flutter-tizen#27) * Support screen rotations for Tizen 4.0 and Tizen 6.0 (flutter-tizen#28) * Separate the embedder from the engine (flutter-tizen#29) * Add profile build to the CI script (flutter-tizen#30) * Share egl context to egl resource context (flutter-tizen#31) * Implement message queue to handle vblank request (flutter-tizen#32) * Fix a platform view bug (flutter-tizen#33) * Convert timestamp to correct unit (flutter-tizen#35) * Send locales to flutter including default locale (flutter-tizen#38) * Enable FontConfig to improve font fallbacks (flutter-tizen#40) Co-authored-by: Xiaowei Guan <xiaowei.guan@samsung.com> Co-authored-by: MuHong Byun <mh.byun@samsung.com> Co-authored-by: Boram Bae <boram21.bae@samsung.com> Co-authored-by: Seungsoo Lee <seungsoo47.lee@samsung.com> Co-authored-by: Hakkyu Kim <43136596+HakkyuKim@users.noreply.github.com>
- Loading branch information
1 parent
c91aca9
commit 5e210e8
Showing
37 changed files
with
1,851 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.