Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
sxychenjing
engine
提交
c822ab26
E
engine
项目概览
sxychenjing
/
engine
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
c822ab26
编写于
8月 22, 2018
作者:
C
Chinmay Garde
提交者:
GitHub
8月 22, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Allow building the embedder API for the target toolchains. (#6069)
上级
c62248bd
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
34 addition
and
10 deletion
+34
-10
BUILD.gn
BUILD.gn
+1
-1
shell/platform/embedder/BUILD.gn
shell/platform/embedder/BUILD.gn
+16
-8
shell/platform/embedder/embedder.gni
shell/platform/embedder/embedder.gni
+13
-0
tools/gn
tools/gn
+4
-1
未找到文件。
BUILD.gn
浏览文件 @
c822ab26
...
...
@@ -10,6 +10,7 @@ group("flutter") {
public_deps = [
"$flutter_root/lib/snapshot:generate_snapshot_bin",
"$flutter_root/lib/snapshot:kernel_platform_files",
"$flutter_root/shell/platform/embedder:flutter_engine",
"$flutter_root/sky",
]
...
...
@@ -45,7 +46,6 @@ group("flutter") {
"$flutter_root/runtime:runtime_unittests",
"$flutter_root/shell/common:shell_unittests",
"$flutter_root/shell/platform/embedder:embedder_unittests",
"$flutter_root/shell/platform/embedder:flutter_engine",
"$flutter_root/synchronization:synchronization_unittests",
"$flutter_root/third_party/txt:txt_unittests",
]
...
...
shell/platform/embedder/BUILD.gn
浏览文件 @
c822ab26
...
...
@@ -4,6 +4,7 @@
import("$flutter_root/testing/testing.gni")
import("$flutter_root/shell/gpu/gpu.gni")
import("$flutter_root/shell/platform/embedder/embedder.gni")
shell_gpu_configuration("embedder_gpu_configuration") {
enable_software = false
...
...
@@ -205,14 +206,21 @@ if (is_mac) {
}
group("flutter_engine") {
# All platforms require the embedder dylib and headers.
deps = [
":copy_headers",
":flutter_engine_library",
]
deps = []
build_embedder_api =
current_toolchain == host_toolchain || embedder_for_target
if (build_embedder_api) {
# All platforms require the embedder dylib and headers.
deps += [
":copy_headers",
":flutter_engine_library",
]
# For the Mac, the dylib is packaged in a framework with the appropriate headers.
if (is_mac) {
deps += [ ":flutter_embedder_framework" ]
# For the Mac, the dylib is packaged in a framework with the appropriate headers.
if (is_mac) {
deps += [ ":flutter_embedder_framework" ]
}
}
}
shell/platform/embedder/embedder.gni
0 → 100644
浏览文件 @
c822ab26
# Copyright 2018 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
declare_args() {
# By default, the dynamic library target exposing the embedder API is only
# built for the host. The reasoning is that platforms that have target
# definitions would not need an embedder API because an embedder
# implementation is already provided for said target. This flag allows tbe
# builder to obtain a shared library exposing the embedder API for alternative
# embedder implementations.
embedder_for_target = false
}
tools/gn
浏览文件 @
c822ab26
...
...
@@ -89,6 +89,8 @@ def to_gn_args(args):
gn_args
[
'is_debug'
]
=
args
.
unoptimized
gn_args
[
'android_full_debug'
]
=
args
.
target_os
==
'android'
and
args
.
unoptimized
gn_args
[
'is_clang'
]
=
not
sys
.
platform
.
startswith
((
'cygwin'
,
'win'
))
gn_args
[
'embedder_for_target'
]
=
args
.
embedder_for_target
enable_lto
=
args
.
lto
if
args
.
unoptimized
:
...
...
@@ -234,9 +236,10 @@ def parse_args(args):
parser
.
add_argument
(
'--target-sysroot'
,
type
=
str
)
parser
.
add_argument
(
'--toolchain-prefix'
,
type
=
str
)
parser
.
add_argument
(
'--use-glfw'
,
action
=
'store_true'
,
default
=
False
)
parser
.
add_argument
(
'--enable-vulkan'
,
action
=
'store_true'
,
default
=
False
)
parser
.
add_argument
(
'--embedder-for-target'
,
dest
=
'embedder_for_target'
,
action
=
'store_true'
,
default
=
False
)
return
parser
.
parse_args
(
args
)
def
main
(
argv
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录