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
|
# 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/features.gni")
if (enable_nacl) {
# This is separate so it can be used by ../broker:nacl64.
source_set("minimal") {
sources = [
"nacl_cmd_line.cc",
"nacl_cmd_line.h",
"nacl_constants.cc",
"nacl_constants.h",
"nacl_messages.cc",
"nacl_messages.h",
"nacl_process_type.h",
"nacl_renderer_messages.cc",
"nacl_renderer_messages.h",
"nacl_sandbox_type.h",
"nacl_types.cc",
"nacl_types.h",
"nacl_types_param_traits.cc",
"nacl_types_param_traits.h",
]
public_deps = [
":switches",
]
deps = [
":minimal_content_dummy",
"//base",
"//base:base_static",
"//ipc",
]
}
# This exists just to make 'gn check' happy with :minimal. It can't
# depend on //content/public/common or anything like that, because that
# would bring in lots more than counts as "minimal" (stuff that should
# not be in the nacl64.exe build).
source_set("minimal_content_dummy") {
check_includes = false
sources = [
"//content/public/common/content_switches.h",
"//content/public/common/process_type.h",
"//content/public/common/sandbox_type.h",
]
}
source_set("common") {
sources = [
"nacl_host_messages.cc",
"nacl_host_messages.h",
"nacl_nonsfi_util.cc",
"nacl_nonsfi_util.h",
"pnacl_types.cc",
"pnacl_types.h",
]
public_deps = [
":minimal",
":switches",
]
deps = [
"//base",
"//content/public/common",
"//ipc",
"//url",
]
if (is_linux) {
sources += [
"nacl_paths.cc",
"nacl_paths.h",
]
defines = [ "__STDC_LIMIT_MACROS=1" ]
}
}
source_set("debug_exception_handler") {
sources = [
"nacl_debug_exception_handler_win.cc",
"nacl_debug_exception_handler_win.h",
]
deps = [
"//base",
]
}
}
# Depending on this allows targets to unconditionally include
# nacl_process_type.h without testing whether nacl is enabled.
source_set("process_type") {
public = [
"nacl_process_type.h",
]
deps = [
"//content/public/common",
]
}
source_set("switches") {
sources = [
"nacl_switches.cc",
"nacl_switches.h",
]
}
|