Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(830)

Side by Side Diff: chrome/nacl.gypi

Issue 8440003: Revert 108116 - Use GYP to build nacl_irt (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/scan_sources.py ('k') | ppapi/native_client/native_client.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': {
7 'disable_untrusted%': 0
8 },
9 'includes': [
10 '../native_client/build/untrusted.gypi',
11 ],
12 'target_defaults': { 6 'target_defaults': {
13 'variables': { 7 'variables': {
14 'nacl_target': 0, 8 'nacl_target': 0,
15 }, 9 },
16 'target_conditions': [ 10 'target_conditions': [
17 # This part is shared between the targets defined below. Only files and 11 # This part is shared between the targets defined below. Only files and
18 # settings relevant for building the Win64 target should be added here. 12 # settings relevant for building the Win64 target should be added here.
19 ['nacl_target==1', { 13 ['nacl_target==1', {
20 'include_dirs': [ 14 'include_dirs': [
21 '<(INTERMEDIATE_DIR)', 15 '<(INTERMEDIATE_DIR)',
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 ], 55 ],
62 }, 56 },
63 'conditions': [ 57 'conditions': [
64 ['disable_nacl!=1', { 58 ['disable_nacl!=1', {
65 'targets': [ 59 'targets': [
66 { 60 {
67 'target_name': 'nacl', 61 'target_name': 'nacl',
68 'type': 'static_library', 62 'type': 'static_library',
69 'variables': { 63 'variables': {
70 'nacl_target': 1, 64 'nacl_target': 1,
71 }, 65 'irt_build_cmd': [
66 'python', 'build_nacl_irt.py', '--outdir', '<(PRODUCT_DIR)',
67 ],
68 'irt_inputs_cmd':
69 'python build_nacl_irt.py --inputs',
70 },
72 'dependencies': [ 71 'dependencies': [
73 # TODO(gregoryd): chrome_resources and chrome_strings could be
74 # shared with the 64-bit target, but it does not work due to a gyp
75 #issue
76 'chrome_resources', 72 'chrome_resources',
77 'chrome_strings', 73 'chrome_strings',
78 'common', 74 'common',
79 '../ppapi/native_client/native_client.gyp:nacl_irt',
80 '../webkit/support/webkit_support.gyp:glue', 75 '../webkit/support/webkit_support.gyp:glue',
81 '../ppapi/native_client/src/trusted/plugin/plugin.gyp:ppGoogleNaClPl uginChrome', 76 '../ppapi/native_client/src/trusted/plugin/plugin.gyp:ppGoogleNaClPl uginChrome',
82 '../native_client/src/trusted/service_runtime/service_runtime.gyp:se l', 77 '../native_client/src/trusted/service_runtime/service_runtime.gyp:se l',
83 '../native_client/src/trusted/platform_qualify/platform_qualify.gyp: platform_qual_lib', 78 '../native_client/src/trusted/platform_qualify/platform_qualify.gyp: platform_qual_lib',
84 ], 79 ],
85 'direct_dependent_settings': { 80 'direct_dependent_settings': {
86 'defines': [ 81 'defines': [
87 'NACL_BLOCK_SHIFT=5', 82 'NACL_BLOCK_SHIFT=5',
88 'NACL_BLOCK_SIZE=32', 83 'NACL_BLOCK_SIZE=32',
89 '<@(nacl_defines)', 84 '<@(nacl_defines)',
90 ], 85 ],
91 }, 86 },
87 'conditions': [
88 ['OS=="win"', {
89 # Windows needs both the x86-32 and x86-64 IRT.
90 'actions': [
91 {
92 'action_name': 'nacl_irt',
93 'message': 'Building NaCl IRT',
94 'inputs': [
95 '<!@(<(irt_inputs_cmd) --platform=x86-32 --platform=x86-64)' ,
96 ],
97 'outputs': ['<(PRODUCT_DIR)/nacl_irt_x86_32.nexe',
98 '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe'],
99 'action': [
100 '<@(irt_build_cmd)',
101 '--platform', 'x86-32',
102 '--platform', 'x86-64',
103 ],
104 },
105 ],
106 }],
107 ['OS!="win" and target_arch=="ia32"', {
108 # Linux-x86-32 and OSX need only the x86-32 IRT.
109 'actions': [
110 {
111 'action_name': 'nacl_irt',
112 'message': 'Building NaCl IRT',
113 'inputs': [
114 '<!@(<(irt_inputs_cmd) --platform=x86-32)',
115 ],
116 'outputs': ['<(PRODUCT_DIR)/nacl_irt_x86_32.nexe'],
117 'action': [
118 '<@(irt_build_cmd)', '--platform', 'x86-32',
119 ],
120 },
121 ],
122 }],
123 ['OS!="win" and target_arch=="x64"', {
124 # Linux-x86-64 needs only the x86-64 IRT.
125 'actions': [
126 {
127 'action_name': 'nacl_irt',
128 'message': 'Building NaCl IRT',
129 'inputs': [
130 '<!@(<(irt_inputs_cmd) --platform=x86-64)',
131 ],
132 'outputs': ['<(PRODUCT_DIR)/nacl_irt_x86_64.nexe'],
133 'action': [
134 '<@(irt_build_cmd)', '--platform', 'x86-64',
135 ],
136 },
137 ],
138 }],
139 ['OS!="win" and target_arch=="arm"', {
140 'actions': [
141 {
142 'action_name': 'nacl_irt',
143 'message': 'Building NaCl IRT',
144 'inputs': [
145 '<!@(<(irt_inputs_cmd) --platform=arm)',
146 ],
147 'outputs': ['<(PRODUCT_DIR)/nacl_irt_arm.nexe'],
148 'action': [
149 '<@(irt_build_cmd)', '--platform', 'arm',
150 ],
151 },
152 ],
153 }],
154 ],
92 }, 155 },
93 ], 156 ],
94 'conditions': [ 157 'conditions': [
95 ['OS=="win"', { 158 ['OS=="win"', {
96 'targets': [ 159 'targets': [
97 { 160 {
98 'target_name': 'nacl_win64', 161 'target_name': 'nacl_win64',
99 'type': 'static_library', 162 'type': 'static_library',
100 'variables': { 163 'variables': {
101 'nacl_target': 1, 164 'nacl_target': 1,
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 'target_name': 'nacl_win64', 405 'target_name': 'nacl_win64',
343 'type': 'none', 406 'type': 'none',
344 'sources': [], 407 'sources': [],
345 }, 408 },
346 ], 409 ],
347 }], 410 }],
348 ], 411 ],
349 }], 412 }],
350 ], 413 ],
351 } 414 }
OLDNEW
« no previous file with comments | « build/scan_sources.py ('k') | ppapi/native_client/native_client.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698