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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 'build_glibc': 0, | 60 'build_glibc': 0, |
61 'build_newlib': 1, | 61 'build_newlib': 1, |
62 }, | 62 }, |
63 'sources': ['<@(irt_sources)', '<@(irt_nonbrowser)'], | 63 'sources': ['<@(irt_sources)', '<@(irt_nonbrowser)'], |
64 'link_flags': [ | 64 'link_flags': [ |
65 '-lsrpc', | 65 '-lsrpc', |
66 '-limc_syscalls', | 66 '-limc_syscalls', |
67 '-lplatform', | 67 '-lplatform', |
68 '-lgio', | 68 '-lgio', |
69 '-lm', | 69 '-lm', |
| 70 '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)', |
| 71 '-Wl,-Ttext-segment=<(NACL_IRT_TEXT_START)', |
70 ], | 72 ], |
71 'conditions': [ | 73 'conditions': [ |
72 # See comment in native_client/src/untrusted/irt/nacl.scons | 74 # See comment in native_client/src/untrusted/irt/nacl.scons |
73 # regarding -Ttext-segment. Also see | 75 # regarding -Ttext-segment. |
74 # http://code.google.com/p/nativeclient/issues/detail?id=2691. | 76 ['target_arch=="arm"', { |
75 ['target_arch!="arm"', | 77 'sources': ['<@(irt_sources)', |
76 { | 78 'aeabi_read_tp.S'], |
77 'link_flags': [ | 79 }], |
78 '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)', | |
79 '-Wl,-Ttext-segment=<(NACL_IRT_TEXT_START)', | |
80 ] | |
81 }, { # target_arch == "arm" | |
82 'sources': ['<@(irt_sources)', | |
83 'aeabi_read_tp.S'], | |
84 'asflags': ['-arch', 'arm'], | |
85 'link_flags': [ | |
86 '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)', | |
87 '-Wl,-Ttext=<(NACL_IRT_TEXT_START)', | |
88 # TODO(olonho): rethink | |
89 '-L<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm', | |
90 '-Wt,-mtls-use-call', | |
91 '-Wl,--pnacl-irt-link', | |
92 ], | |
93 }, | |
94 ], | |
95 ], | 80 ], |
96 'dependencies': [ | 81 'dependencies': [ |
97 '<(DEPTH)/native_client/src/shared/gio/gio.gyp:gio_lib', | 82 '<(DEPTH)/native_client/src/shared/gio/gio.gyp:gio_lib', |
98 '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform_lib', | 83 '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform_lib', |
99 '<(DEPTH)/native_client/src/shared/srpc/srpc.gyp:srpc_lib', | 84 '<(DEPTH)/native_client/src/shared/srpc/srpc.gyp:srpc_lib', |
100 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib', | 85 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib', |
101 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib', | 86 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib', |
102 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', | 87 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', |
103 ], | 88 ], |
104 }, | 89 }, |
105 { | 90 { |
106 'target_name': 'irt_browser_lib', | 91 'target_name': 'irt_browser_lib', |
107 'type': 'none', | 92 'type': 'none', |
108 'variables': { | 93 'variables': { |
109 'nlib_target': 'libirt_browser.a', | 94 'nlib_target': 'libirt_browser.a', |
110 'build_glibc': 0, | 95 'build_glibc': 0, |
111 'build_newlib': 1, | 96 'build_newlib': 1, |
112 }, | 97 }, |
113 'sources': ['<@(irt_sources)', '<@(irt_browser)'], | 98 'sources': ['<@(irt_sources)', '<@(irt_browser)'], |
114 'include_dirs': ['../../../../ppapi'], | 99 'include_dirs': ['../../../../ppapi'], |
115 'conditions': [ | 100 'conditions': [ |
116 ['target_arch == "x64" or target_arch == "ia32"', { | 101 ['target_arch == "x64" or target_arch == "ia32"', { |
117 'link_flags': [ | 102 'link_flags': [ |
118 '-r', | 103 '-r', |
119 '-nostartfiles', | 104 '-nostartfiles', |
120 ], | 105 ], |
121 }], | 106 }], |
| 107 ['target_arch=="arm"', { |
| 108 'sources': [ 'aeabi_read_tp.S' ], |
| 109 }], |
122 ], | 110 ], |
123 'dependencies': [ | 111 'dependencies': [ |
124 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', | 112 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', |
125 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib', | 113 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib', |
126 ], | 114 ], |
127 }, | 115 }, |
128 ], | 116 ], |
129 } | 117 } |
OLD | NEW |