OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 'includes': [ | 6 'includes': [ |
7 '../../../build/common.gypi', | 7 '../../../build/common.gypi', |
8 ], | 8 ], |
9 'variables': { | 9 'variables': { |
10 'irt_sources': [ | 10 'irt_sources': [ |
(...skipping 28 matching lines...) Expand all Loading... | |
39 ], | 39 ], |
40 'irt_browser': [ | 40 'irt_browser': [ |
41 'irt_interfaces_ppapi.c', | 41 'irt_interfaces_ppapi.c', |
42 'irt_entry_ppapi.c', | 42 'irt_entry_ppapi.c', |
43 'irt_ppapi.c', | 43 'irt_ppapi.c', |
44 'irt_manifest.c', | 44 'irt_manifest.c', |
45 'irt_nameservice.c', | 45 'irt_nameservice.c', |
46 'irt_random.c', | 46 'irt_random.c', |
47 ], | 47 ], |
48 }, | 48 }, |
49 'conditions': [ | 49 'targets': [ |
50 # NOTE: We do not support untrusted gyp build on arm yet. | 50 { |
51 ['target_arch!="arm"', { | 51 'target_name': 'irt_core_nexe', |
52 'targets': [ | 52 'type': 'none', |
53 { | 53 'variables': { |
54 'target_name': 'irt_core_nexe', | 54 'nexe_target': 'irt_core', |
55 'type': 'none', | 55 'build_glibc': 0, |
56 'build_newlib': 1, | |
57 'sources': ['<@(irt_sources)', '<@(irt_nonbrowser)'], | |
58 'conditions': [ | |
59 # See comment in native_client/src/untrusted/irt/nacl.scons | |
60 # regarding -Ttext-segment. | |
61 ['target_arch!="arm"', | |
62 { | |
63 'link_flags': [ | |
64 '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)', | |
65 '-Wl,-Ttext-segment=<(NACL_IRT_TEXT_START)', | |
66 ] | |
67 }, { # target_arch == "arm" | |
68 'sources': ['<@(irt_sources)', | |
69 'aeabi_read_tp.S'], | |
70 'cflags': ['--pnacl-allow-translate', | |
71 '-arch', 'arm'], | |
72 'asflags': ['-arch', 'arm'], | |
73 'link_flags': [ | |
74 '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)', | |
75 '-Wl,-Ttext=<(NACL_IRT_TEXT_START)', | |
76 '--pnacl-allow-native', | |
77 '-arch', 'arm', | |
78 '-Wt,-mtls-use-call', | |
79 # TODO(olonho): rethink | |
80 '-L<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm', | |
81 ], | |
82 }, | |
83 ], | |
84 ], | |
85 }, | |
86 'dependencies': [ | |
87 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', | |
88 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib', | |
89 ], | |
90 }, | |
91 { | |
92 'target_name': 'irt_browser_lib', | |
robertm
2012/03/26 14:09:33
just curious: if you run gyp for x86, does it buil
Nikolay
2012/03/26 16:28:51
From what I seen, it's only used from ppapi/native
| |
93 'type': 'none', | |
94 'variables': { | |
95 'nlib_target': 'libirt_browser.a', | |
96 'build_glibc': 0, | |
97 'build_newlib': 1, | |
98 'sources': ['<@(irt_sources)', '<@(irt_browser)'], | |
99 }, | |
100 'conditions': [ | |
101 ['target_arch == "x64" or target_arch == "ia32"', { | |
56 'variables': { | 102 'variables': { |
57 'nexe_target': 'irt_core', | |
58 'build_glibc': 0, | |
59 'build_newlib': 1, | |
60 'sources': ['<@(irt_sources)', '<@(irt_nonbrowser)'], | |
61 'link_flags': [ | 103 'link_flags': [ |
62 '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)', | 104 '-r', |
63 '-Wl,-Ttext-segment=<(NACL_IRT_TEXT_START)', | 105 '-nostartfiles', |
64 ], | 106 ], |
65 }, | 107 }, |
66 'dependencies': [ | 108 }], |
67 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', | |
68 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib' , | |
69 ], | |
70 }, | |
71 { | |
72 'target_name': 'irt_browser_lib', | |
73 'type': 'none', | |
74 'variables': { | |
75 'nlib_target': 'libirt_browser.a', | |
76 'build_glibc': 0, | |
77 'build_newlib': 1, | |
78 'sources': ['<@(irt_sources)', '<@(irt_browser)'], | |
79 }, | |
80 'conditions': [ | |
81 ['target_arch == "x64" or target_arch == "ia32"', { | |
82 'variables': { | |
83 'link_flags': [ | |
84 '-r', | |
85 '-nostartfiles', | |
86 ], | |
87 }, | |
88 }], | |
89 ], | |
90 'dependencies': [ | |
91 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', | |
92 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib' , | |
93 ], | |
94 }, | |
95 ], | 109 ], |
96 }], | 110 'dependencies': [ |
111 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', | |
112 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib', | |
113 ], | |
114 }, | |
97 ], | 115 ], |
98 } | 116 } |
OLD | NEW |