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
123
124
125
126
127
128
129
130
131
|
# Copyright (c) 2009 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.
{
'target_defaults': {
'variables': {
'nacl_target': 0,
},
'target_conditions': [
# This part is shared between the targets defined below. Only files and
# settings relevant for building the Win64 target should be added here.
['nacl_target==1', {
'include_dirs': [
'<(INTERMEDIATE_DIR)',
],
'defines': [
'NACL_BLOCK_SHIFT=5',
'NACL_BLOCK_SIZE=32',
'<@(nacl_defines)',
],
'sources': [
# .cc, .h, and .mm files under nacl that are used on all
# platforms, including both 32-bit and 64-bit Windows.
# Test files are also not included.
'nacl/nacl_main.cc',
'nacl/nacl_thread.cc',
'nacl/nacl_thread.h',
'nacl/sel_main.cc',
],
# TODO(gregoryd): consider switching NaCl to use Chrome OS defines
'conditions': [
['OS=="win"', {
'defines': [
'__STD_C',
'_CRT_SECURE_NO_DEPRECATE',
'_SCL_SECURE_NO_DEPRECATE',
'__STDC_LIMIT_MACROS=1',
],
'include_dirs': [
'<(DEPTH)/third_party/wtl/include',
],
},],
['OS=="linux"', {
'defines': [
'__STDC_LIMIT_MACROS=1',
],
},],
],
}],
],
},
'targets': [
{
'target_name': 'nacl',
# The TLS (Thread Local Storage) access used by NaCl on x86-64
# on Linux/ELF can't be linked into a shared library, so we
# can't use '<(library)' here. See http://crbug.com/35829.
'type': 'static_library',
'msvs_guid': '83E86DAF-5763-4711-AD34-5FDAE395560C',
'variables': {
'nacl_target': 1,
},
'dependencies': [
# TODO(gregoryd): chrome_resources and chrome_strings could be
# shared with the 64-bit target, but it does not work due to a gyp
#issue
'chrome_resources',
'chrome_strings',
'common',
'../third_party/npapi/npapi.gyp:npapi',
'../webkit/webkit.gyp:glue',
'../native_client/src/trusted/plugin/plugin.gyp:npGoogleNaClPluginChrome',
'../native_client/src/trusted/service_runtime/service_runtime.gyp:sel',
'../native_client/src/trusted/validator_x86/validator_x86.gyp:ncvalidate',
'../native_client/src/trusted/platform_qualify/platform_qualify.gyp:platform_qual_lib',
],
'direct_dependent_settings': {
'defines': [
'NACL_BLOCK_SHIFT=5',
'NACL_BLOCK_SIZE=32',
'<@(nacl_defines)',
],
},
},
],
'conditions': [
['OS=="win"', {
'targets': [
{
'target_name': 'nacl_win64',
'type': '<(library)',
'msvs_guid': '14135464-9FB9-42E3-99D8-791116FA1204',
'variables': {
'nacl_target': 1,
},
'dependencies': [
# TODO(gregoryd): chrome_resources and chrome_strings could be
# shared with the 32-bit target, but it does not work due to a gyp
#issue
'chrome_resources',
'chrome_strings',
'common_nacl_win64',
'../native_client/src/trusted/plugin/plugin.gyp:npGoogleNaClPluginChrome64',
'../native_client/src/trusted/service_runtime/service_runtime.gyp:sel64',
'../native_client/src/trusted/platform_qualify/platform_qualify.gyp:platform_qual_lib64',
],
'sources': [
'nacl/broker_thread.cc',
'nacl/broker_thread.h',
],
'defines': [
'<@(nacl_win64_defines)',
],
'configurations': {
'Common_Base': {
'msvs_target_platform': 'x64',
},
},
'direct_dependent_settings': {
'defines': [
'NACL_BLOCK_SHIFT=5',
'NACL_BLOCK_SIZE=32',
'<@(nacl_defines)',
],
},
},
],
}],
],
}
|