forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.gn
122 lines (106 loc) · 2.89 KB
/
BUILD.gn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# Copyright 2017 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.
source_set("fml") {
sources = [
"icu_util.cc",
"icu_util.h",
"mapping.cc",
"mapping.h",
"message_loop.cc",
"message_loop.h",
"message_loop_impl.cc",
"message_loop_impl.h",
"paths.h",
"task_observer.h",
"task_runner.cc",
"task_runner.h",
"thread.cc",
"thread.h",
"thread_local.h",
"trace_event.cc",
"trace_event.h",
]
deps = [
"//third_party/dart/runtime:dart_api",
"//garnet/public/lib/fxl",
# These need to be in sync with the Fuchsia buildroot.
"//third_party/icu",
]
configs += [ "//third_party/icu:icu_config" ]
public_configs = [
"$flutter_root:config",
]
libs = []
if (is_ios || is_mac) {
sources += [
"platform/darwin/cf_utils.cc",
"platform/darwin/cf_utils.h",
"platform/darwin/message_loop_darwin.h",
"platform/darwin/message_loop_darwin.mm",
"platform/darwin/paths_darwin.mm",
"platform/darwin/platform_version.h",
"platform/darwin/platform_version.mm",
"platform/darwin/resource_mapping_darwin.h",
"platform/darwin/resource_mapping_darwin.mm",
"platform/darwin/scoped_block.h",
"platform/darwin/scoped_block.mm",
"platform/darwin/scoped_nsobject.h",
"platform/darwin/scoped_nsobject.mm",
]
libs += [ "Foundation.framework" ]
}
if (is_android) {
sources += [
"platform/android/jni_util.cc",
"platform/android/jni_util.h",
"platform/android/jni_weak_ref.cc",
"platform/android/jni_weak_ref.h",
"platform/android/message_loop_android.cc",
"platform/android/message_loop_android.h",
"platform/android/paths_android.cc",
"platform/android/scoped_java_ref.cc",
"platform/android/scoped_java_ref.h",
]
libs += [ "android" ]
}
if (is_android) {
# Don't filter away these Linux sources on Android.
set_sources_assignment_filter([])
sources += [
"platform/linux/timerfd.cc",
"platform/linux/timerfd.h",
]
set_sources_assignment_filter(sources_assignment_filter)
}
if (is_linux) {
sources += [
"platform/linux/message_loop_linux.cc",
"platform/linux/message_loop_linux.h",
"platform/linux/paths_linux.cc",
"platform/linux/timerfd.cc",
"platform/linux/timerfd.h",
]
}
if (is_win) {
sources += [
"platform/win/message_loop_win.cc",
"platform/win/message_loop_win.h",
"platform/win/paths_win.cc",
]
}
}
executable("fml_unittests") {
testonly = true
sources = [
"message_loop_unittests.cc",
"thread_local_unittests.cc",
"thread_unittests.cc",
]
deps = [
"//third_party/dart/runtime:libdart_jit",
"$flutter_root/fml",
"$flutter_root/testing",
"//garnet/public/lib/fxl",
]
}