Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
sxychenjing
engine
提交
e60e5038
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,发现更多精彩内容 >>
提交
e60e5038
编写于
11月 16, 2015
作者:
G
George Kulakowski
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add fnl build configuration
上级
bf44514f
变更
17
隐藏空白更改
内联
并排
Showing
17 changed file
with
145 addition
and
15 deletion
+145
-15
base/debug/stack_trace_posix.cc
base/debug/stack_trace_posix.cc
+2
-2
base/files/file_util_posix.cc
base/files/file_util_posix.cc
+0
-1
base/trace_event/BUILD.gn
base/trace_event/BUILD.gn
+1
-1
base/trace_event/memory_dump_manager.cc
base/trace_event/memory_dump_manager.cc
+1
-1
build/config/BUILD.gn
build/config/BUILD.gn
+3
-0
build/config/BUILDCONFIG.gn
build/config/BUILDCONFIG.gn
+23
-1
build/config/fnl/BUILD.gn
build/config/fnl/BUILD.gn
+48
-0
build/toolchain/fnl/BUILD.gn
build/toolchain/fnl/BUILD.gn
+24
-0
sky/BUILD.gn
sky/BUILD.gn
+4
-0
sky/dist/BUILD.gn
sky/dist/BUILD.gn
+9
-1
sky/engine/wtf/Assertions.cpp
sky/engine/wtf/Assertions.cpp
+1
-1
sky/shell/BUILD.gn
sky/shell/BUILD.gn
+5
-2
sky/shell/platform/android/sky_main.cc
sky/shell/platform/android/sky_main.cc
+2
-0
sky/shell/platform/mac/platform_mac.mm
sky/shell/platform/mac/platform_mac.mm
+1
-0
sky/shell/shell.cc
sky/shell/shell.cc
+0
-4
sky/tools/gn
sky/tools/gn
+17
-1
third_party/libevent/BUILD.gn
third_party/libevent/BUILD.gn
+4
-0
未找到文件。
base/debug/stack_trace_posix.cc
浏览文件 @
e60e5038
...
...
@@ -22,7 +22,7 @@
#if defined(__GLIBCXX__)
#include <cxxabi.h>
#endif
#if !defined(__UCLIBC__)
#if !defined(__UCLIBC__)
&& !defined(FNL_MUSL)
#include <execinfo.h>
#endif
...
...
@@ -738,7 +738,7 @@ StackTrace::StackTrace() {
// NOTE: This code MUST be async-signal safe (it's used by in-process
// stack dumping signal handler). NO malloc or stdio is allowed here.
#if !defined(__UCLIBC__)
#if !defined(__UCLIBC__)
&& !defined(FNL_MUSL)
// Though the backtrace API man page does not list any possible negative
// return values, we take no chance.
count_
=
base
::
saturated_cast
<
size_t
>
(
backtrace
(
trace_
,
arraysize
(
trace_
)));
...
...
base/files/file_util_posix.cc
浏览文件 @
e60e5038
...
...
@@ -12,7 +12,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/errno.h>
#include <sys/mman.h>
#include <sys/param.h>
#include <sys/stat.h>
...
...
base/trace_event/BUILD.gn
浏览文件 @
e60e5038
...
...
@@ -59,7 +59,7 @@ source_set("trace_event") {
]
}
if (
is_linux || is_android
) {
if (
(is_linux || is_android) && !is_fnl
) {
sources += [
"malloc_dump_provider.cc",
"malloc_dump_provider.h",
...
...
base/trace_event/memory_dump_manager.cc
浏览文件 @
e60e5038
...
...
@@ -116,7 +116,7 @@ void MemoryDumpManager::Initialize() {
RegisterDumpProvider
(
ProcessMemoryTotalsDumpProvider
::
GetInstance
());
#endif
#if
defined(OS_LINUX
) || defined(OS_ANDROID)
#if
(defined(OS_LINUX) && !defined(FNL_MUSL)
) || defined(OS_ANDROID)
g_mmaps_dump_provider
=
ProcessMemoryMapsDumpProvider
::
GetInstance
();
RegisterDumpProvider
(
g_mmaps_dump_provider
);
RegisterDumpProvider
(
MallocDumpProvider
::
GetInstance
());
...
...
build/config/BUILD.gn
浏览文件 @
e60e5038
...
...
@@ -272,6 +272,9 @@ config("feature_flags") {
if (enable_webvr) {
defines += [ "ENABLE_WEBVR" ]
}
if (is_fnl) {
defines += [ "HAVE_SYS_QUEUE_H_=0" ]
}
}
# Debug/release ----------------------------------------------------------------
...
...
build/config/BUILDCONFIG.gn
浏览文件 @
e60e5038
...
...
@@ -176,6 +176,7 @@ declare_args() {
if (current_os == "win") {
is_android = false
is_chromeos = false
is_fnl = false
is_ios = false
is_linux = false
is_mac = false
...
...
@@ -185,6 +186,7 @@ if (current_os == "win") {
} else if (current_os == "mac") {
is_android = false
is_chromeos = false
is_fnl = false
is_ios = false
is_linux = false
is_mac = true
...
...
@@ -194,6 +196,7 @@ if (current_os == "win") {
} else if (current_os == "android") {
is_android = true
is_chromeos = false
is_fnl = false
is_ios = false
is_linux = false
is_mac = false
...
...
@@ -203,6 +206,7 @@ if (current_os == "win") {
} else if (current_os == "chromeos") {
is_android = false
is_chromeos = true
is_fnl = false
is_ios = false
is_linux = true
is_mac = false
...
...
@@ -215,6 +219,7 @@ if (current_os == "win") {
# Posix variant.
is_android = false
is_chromeos = false
is_fnl = false
is_ios = false
is_linux = false
is_mac = false
...
...
@@ -224,6 +229,7 @@ if (current_os == "win") {
} else if (current_os == "ios") {
is_android = false
is_chromeos = false
is_fnl = false
is_ios = true
is_linux = false
is_mac = false
...
...
@@ -233,6 +239,17 @@ if (current_os == "win") {
} else if (current_os == "linux") {
is_android = false
is_chromeos = false
is_fnl = false
is_ios = false
is_linux = true
is_mac = false
is_nacl = false
is_posix = true
is_win = false
} else if (current_os == "fnl") {
is_android = false
is_chromeos = false
is_fnl = true
is_ios = false
is_linux = true
is_mac = false
...
...
@@ -400,7 +417,9 @@ if (is_posix) {
]
}
if (is_linux) {
if (is_fnl) {
_native_compiler_configs += [ "//build/config/fnl:sdk" ]
} else if (is_linux) {
_native_compiler_configs += [ "//build/config/linux:sdk" ]
} else if (is_mac) {
_native_compiler_configs += [ "//build/config/mac:sdk" ]
...
...
@@ -574,6 +593,9 @@ if (is_win) {
if (is_chromeos && cros_use_custom_toolchain) {
set_default_toolchain("//build/toolchain/cros:target")
}
if (is_fnl) {
set_default_toolchain("//build/toolchain/fnl:target")
}
} else if (is_mac) {
host_toolchain = "//build/toolchain/mac:clang_x64"
set_default_toolchain(host_toolchain)
...
...
build/config/fnl/BUILD.gn
0 → 100644
浏览文件 @
e60e5038
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/linux/pkg_config.gni")
import("//build/config/features.gni")
import("//build/config/sysroot.gni")
import("//build/config/ui.gni")
config("sdk") {
if (sysroot != "") {
cflags = [ "--sysroot=" + sysroot ]
ldflags = [ "--sysroot=" + sysroot ]
# Need to get some linker flags out of the sysroot.
ldflags += [ exec_script("../linux/sysroot_ld_path.py",
[
rebase_path("//build/linux/sysroot_ld_path.sh",
root_build_dir),
sysroot,
],
"value") ]
}
defines = [ "FNL_MUSL" ]
if (use_ozone) {
defines += [ "MESA_EGL_NO_X11_HEADERS" ]
}
}
config("fontconfig") {
libs = [ "fontconfig" ]
}
pkg_config("freetype2") {
packages = [ "freetype2" ]
}
if (use_evdev_gestures) {
pkg_config("libevdev-cros") {
packages = [ "libevdev-cros" ]
}
pkg_config("libgestures") {
packages = [ "libgestures" ]
}
}
build/toolchain/fnl/BUILD.gn
0 → 100644
浏览文件 @
e60e5038
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/toolchain/gcc_toolchain.gni")
declare_args() {
toolchain_prefix = ""
}
gcc_toolchain("target") {
assert(toolchain_prefix != "", "Must provide toolchain_prefix")
cc = "${toolchain_prefix}gcc"
cxx = "${toolchain_prefix}g++"
ar = "${toolchain_prefix}ar"
ld = cxx
readelf = "${toolchain_prefix}readelf"
nm = "${toolchain_prefix}nm"
toolchain_cpu = "${target_cpu}"
toolchain_os = "linux"
is_clang = is_clang
}
sky/BUILD.gn
浏览文件 @
e60e5038
...
...
@@ -18,6 +18,10 @@ group("sky") {
deps += [ "//sky/tools/sky_snapshot($dart_host_toolchain)" ]
}
if (is_fnl) {
deps -= [ "//sky/shell" ]
}
if (is_linux || is_android) {
deps += [ "//sky/shell/platform/mojo" ]
}
...
...
sky/dist/BUILD.gn
浏览文件 @
e60e5038
...
...
@@ -24,7 +24,15 @@ copy("sky_shell") {
deps = [
"//sky/shell:shell_struct",
]
} else if(!is_ios) {
} else if (is_fnl) {
sources = [
"$root_build_dir/flutter.mojo",
]
deps = [
"//sky/shell/platform/mojo",
]
} else if (!is_ios) {
sources = [
"$root_build_dir/flutter.mojo",
"$root_build_dir/icudtl.dat",
...
...
sky/engine/wtf/Assertions.cpp
浏览文件 @
e60e5038
...
...
@@ -46,7 +46,7 @@
#include <signal.h>
#endif
#if (OS(LINUX) && !defined(__UCLIBC__))
#if (OS(LINUX) && !defined(__UCLIBC__)
&& !defined(FNL_MUSL)
)
#include <cxxabi.h>
#include <dlfcn.h>
#include <execinfo.h>
...
...
sky/shell/BUILD.gn
浏览文件 @
e60e5038
...
...
@@ -54,9 +54,9 @@ source_set("common") {
"//sky/services/pointer:interfaces",
"//sky/services/vsync:interfaces",
"//sky/shell/dart",
"//ui/gfx",
"//ui/gfx/geometry",
"//url",
"//ui/gl",
]
}
...
...
@@ -70,6 +70,7 @@ source_set("gpu_direct") {
deps = [
":common",
"//ui/gl",
]
}
...
...
@@ -255,7 +256,7 @@ if (is_android) {
sky_precompilation_sdk("shell") {
sdk_name = "SkySDK"
}
} else if (is_linux) {
} else if (is_linux
&& !is_fnl
) {
executable("shell") {
output_name = "sky_shell"
...
...
@@ -321,6 +322,8 @@ if (is_android) {
":sky_resources",
]
}
} else if (is_fnl) {
# Nothing fnl specific.
} else {
assert(false, "Unsupported platform")
}
sky/shell/platform/android/sky_main.cc
浏览文件 @
e60e5038
...
...
@@ -22,6 +22,7 @@
#include "mojo/edk/embedder/embedder.h"
#include "mojo/edk/embedder/simple_platform_support.h"
#include "sky/shell/shell.h"
#include "ui/gl/gl_surface.h"
using
base
::
LazyInstance
;
...
...
@@ -77,6 +78,7 @@ static void Init(JNIEnv* env,
mojo
::
embedder
::
Init
(
std
::
unique_ptr
<
mojo
::
embedder
::
PlatformSupport
>
(
new
mojo
::
embedder
::
SimplePlatformSupport
()));
CHECK
(
gfx
::
GLSurface
::
InitializeOneOff
());
Shell
::
InitStandalone
();
InitializeTracing
();
...
...
sky/shell/platform/mac/platform_mac.mm
浏览文件 @
e60e5038
...
...
@@ -64,6 +64,7 @@ int PlatformMacMain(int argc,
mojo
::
embedder
::
Init
(
std
::
unique_ptr
<
mojo
::
embedder
::
PlatformSupport
>
(
new
mojo
::
embedder
::
SimplePlatformSupport
()));
CHECK
(
gfx
::
GLSurface
::
InitializeOneOff
());
sky
::
shell
::
Shell
::
InitStandalone
();
result
=
callback
();
...
...
sky/shell/shell.cc
浏览文件 @
e60e5038
...
...
@@ -16,7 +16,6 @@
#include "mojo/message_pump/message_pump_mojo.h"
#include "sky/shell/ui/engine.h"
#include "sky/shell/switches.h"
#include "ui/gl/gl_surface.h"
namespace
sky
{
namespace
shell
{
...
...
@@ -75,9 +74,6 @@ Shell::~Shell() {
void
Shell
::
InitStandalone
()
{
CHECK
(
base
::
i18n
::
InitializeICU
());
#if !defined(OS_LINUX)
CHECK
(
gfx
::
GLSurface
::
InitializeOneOff
());
#endif
base
::
CommandLine
&
command_line
=
*
base
::
CommandLine
::
ForCurrentProcess
();
...
...
sky/tools/gn
浏览文件 @
e60e5038
...
...
@@ -16,6 +16,8 @@ def get_out_dir(args):
target_dir
+=
'android_'
elif
args
.
target_os
==
'ios'
:
target_dir
+=
'ios_'
elif
args
.
target_os
==
'fnl'
:
target_dir
+=
'fnl_'
if
args
.
simulator
:
target_dir
+=
'sim_'
...
...
@@ -38,7 +40,7 @@ def to_gn_args(args):
gn_args
=
{}
gn_args
[
'is_debug'
]
=
args
.
debug
gn_args
[
'is_clang'
]
=
args
.
clang
and
args
.
target_os
not
in
[
'android'
]
gn_args
[
'is_clang'
]
=
args
.
clang
and
args
.
target_os
not
in
[
'android'
,
'fnl'
]
ios_target_cpu
=
'arm64'
if
args
.
ios_force_armv7
:
...
...
@@ -56,6 +58,10 @@ def to_gn_args(args):
else
:
# The iOS simulator snapshot is host targetted
gn_args
[
'dart_target_arch'
]
=
ios_target_cpu
elif
args
.
target_os
==
'fnl'
:
gn_args
[
'target_os'
]
=
'fnl'
gn_args
[
'use_aura'
]
=
False
gn_args
[
'use_ozone'
]
=
True
else
:
gn_args
[
'use_aura'
]
=
False
gn_args
[
'use_system_harfbuzz'
]
=
False
...
...
@@ -71,6 +77,12 @@ def to_gn_args(args):
else
:
gn_args
[
'target_cpu'
]
=
'x64'
if
args
.
target_sysroot
:
gn_args
[
'target_sysroot'
]
=
args
.
target_sysroot
if
args
.
toolchain_prefix
:
gn_args
[
'toolchain_prefix'
]
=
args
.
toolchain_prefix
goma_dir
=
os
.
environ
.
get
(
'GOMA_DIR'
)
goma_home_dir
=
os
.
path
.
join
(
os
.
getenv
(
'HOME'
,
''
),
'goma'
)
if
args
.
goma
and
goma_dir
:
...
...
@@ -94,6 +106,7 @@ def parse_args(args):
parser
.
add_argument
(
'--target-os'
,
type
=
str
,
choices
=
[
'android'
,
'ios'
])
parser
.
add_argument
(
'--android'
,
dest
=
'target_os'
,
action
=
'store_const'
,
const
=
'android'
)
parser
.
add_argument
(
'--fnl'
,
dest
=
'target_os'
,
action
=
'store_const'
,
const
=
'fnl'
)
parser
.
add_argument
(
'--ios'
,
dest
=
'target_os'
,
action
=
'store_const'
,
const
=
'ios'
)
parser
.
add_argument
(
'--ios-force-armv7'
,
dest
=
'ios_force_armv7'
,
action
=
'store_true'
,
default
=
False
)
parser
.
add_argument
(
'--simulator'
,
action
=
'store_true'
,
default
=
False
)
...
...
@@ -104,6 +117,9 @@ def parse_args(args):
parser
.
add_argument
(
'--clang'
,
default
=
True
,
action
=
'store_true'
)
parser
.
add_argument
(
'--no-clang'
,
dest
=
'clang'
,
action
=
'store_false'
)
parser
.
add_argument
(
'--target-sysroot'
,
type
=
str
)
parser
.
add_argument
(
'--toolchain-prefix'
,
type
=
str
)
return
parser
.
parse_args
(
args
)
def
main
(
argv
):
...
...
third_party/libevent/BUILD.gn
浏览文件 @
e60e5038
...
...
@@ -33,6 +33,10 @@ source_set("libevent") {
include_dirs = [ "android" ]
}
if (is_fnl) {
include_dirs += [ "compat" ]
}
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录