OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright 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': [ |
11 # irt_support_sources | 11 # irt_support_sources |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
45 ], | 45 ], |
46 'irt_browser': [ | 46 'irt_browser': [ |
47 'irt_interfaces_ppapi.c', | 47 'irt_interfaces_ppapi.c', |
48 'irt_entry_ppapi.c', | 48 'irt_entry_ppapi.c', |
49 'irt_ppapi.c', | 49 'irt_ppapi.c', |
50 'irt_manifest.c', | 50 'irt_manifest.c', |
51 ], | 51 ], |
52 }, | 52 }, |
53 'targets': [ | 53 'targets': [ |
54 { | 54 { |
55 'target_name': 'irt_core_common', | |
jvoung (off chromium)
2012/08/27 21:53:58
"irt_core_nexe" doesn't use a shim. How does "irt
Nick Bray (chromium)
2012/08/27 23:00:02
Instead of having the core irt depend on this. The
| |
56 'type': 'none', | |
57 'direct_dependent_settings': { | |
58 'sources': [ '<@(irt_sources)', ], | |
59 }, | |
60 'conditions': [ | |
61 ['target_arch=="x64"', { | |
62 'dependencies': [ 'shim_generator.gyp:shim_generated_source', ], | |
63 'sources': [ '<(SHARED_INTERMEDIATE_DIR)/pnacl_shim.c', ], | |
64 }, { # else | |
65 'sources': [ 'shim_dummy.c', ], | |
66 }], | |
67 ], | |
68 }, | |
69 { | |
55 'target_name': 'irt_core_nexe', | 70 'target_name': 'irt_core_nexe', |
56 'type': 'none', | 71 'type': 'none', |
57 'variables': { | 72 'variables': { |
58 'nexe_target': 'irt_core', | 73 'nexe_target': 'irt_core', |
59 'build_glibc': 0, | 74 'build_glibc': 0, |
60 'build_newlib': 1, | 75 'build_newlib': 1, |
61 }, | 76 }, |
62 'sources': ['<@(irt_sources)', '<@(irt_nonbrowser)'], | 77 'sources': ['<@(irt_nonbrowser)'], |
63 'link_flags': [ | 78 'link_flags': [ |
64 '-lsrpc', | 79 '-lsrpc', |
65 '-limc_syscalls', | 80 '-limc_syscalls', |
66 '-lplatform', | 81 '-lplatform', |
67 '-lgio', | 82 '-lgio', |
68 '-lm', | 83 '-lm', |
69 ], | 84 ], |
70 'conditions': [ | 85 'conditions': [ |
71 # See comment in native_client/src/untrusted/irt/nacl.scons | 86 # See comment in native_client/src/untrusted/irt/nacl.scons |
72 # regarding -Ttext-segment. Also see | 87 # regarding -Ttext-segment. Also see |
73 # http://code.google.com/p/nativeclient/issues/detail?id=2691. | 88 # http://code.google.com/p/nativeclient/issues/detail?id=2691. |
74 ['target_arch!="arm"', | 89 ['target_arch!="arm"', |
75 { | 90 { |
76 'link_flags': [ | 91 'link_flags': [ |
77 '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)', | 92 '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)', |
78 '-Wl,-Ttext-segment=<(NACL_IRT_TEXT_START)', | 93 '-Wl,-Ttext-segment=<(NACL_IRT_TEXT_START)', |
79 ] | 94 ] |
80 }, { # target_arch == "arm" | 95 }, { # target_arch == "arm" |
81 'sources': ['<@(irt_sources)', | 96 'sources': ['aeabi_read_tp.S'], |
82 'aeabi_read_tp.S'], | |
83 'cflags': ['--pnacl-allow-translate', | 97 'cflags': ['--pnacl-allow-translate', |
84 '-arch', 'arm'], | 98 '-arch', 'arm'], |
85 'asflags': ['-arch', 'arm'], | 99 'asflags': ['-arch', 'arm'], |
86 'link_flags': [ | 100 'link_flags': [ |
87 '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)', | 101 '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)', |
88 '-Wl,-Ttext=<(NACL_IRT_TEXT_START)', | 102 '-Wl,-Ttext=<(NACL_IRT_TEXT_START)', |
89 '--pnacl-allow-native', | 103 '--pnacl-allow-native', |
90 '-arch', 'arm', | 104 '-arch', 'arm', |
91 '-Wt,-mtls-use-call', | 105 '-Wt,-mtls-use-call', |
92 # TODO(olonho): rethink | 106 # TODO(olonho): rethink |
93 '-L<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm', | 107 '-L<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm', |
94 ], | 108 ], |
95 }, | 109 }, |
96 ], | 110 ], |
97 ], | 111 ], |
98 'dependencies': [ | 112 'dependencies': [ |
113 'irt_core_common', | |
99 '<(DEPTH)/native_client/src/shared/gio/gio.gyp:gio_lib', | 114 '<(DEPTH)/native_client/src/shared/gio/gio.gyp:gio_lib', |
100 '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform_lib', | 115 '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform_lib', |
101 '<(DEPTH)/native_client/src/shared/srpc/srpc.gyp:srpc_lib', | 116 '<(DEPTH)/native_client/src/shared/srpc/srpc.gyp:srpc_lib', |
102 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib', | 117 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib', |
103 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib', | 118 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib', |
104 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', | 119 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', |
105 ], | 120 ], |
106 }, | 121 }, |
107 { | 122 { |
108 'target_name': 'irt_browser_lib', | 123 'target_name': 'irt_browser_lib', |
109 'type': 'none', | 124 'type': 'none', |
110 'variables': { | 125 'variables': { |
111 'nlib_target': 'libirt_browser.a', | 126 'nlib_target': 'libirt_browser.a', |
112 'build_glibc': 0, | 127 'build_glibc': 0, |
113 'build_newlib': 1, | 128 'build_newlib': 1, |
114 }, | 129 }, |
115 'sources': ['<@(irt_sources)', '<@(irt_browser)'], | 130 'sources': ['<@(irt_browser)'], |
116 'conditions': [ | 131 'conditions': [ |
117 ['target_arch == "x64" or target_arch == "ia32"', { | 132 ['target_arch == "x64" or target_arch == "ia32"', { |
118 'link_flags': [ | 133 'link_flags': [ |
119 '-r', | 134 '-r', |
120 '-nostartfiles', | 135 '-nostartfiles', |
121 ], | 136 ], |
122 }], | 137 }], |
123 ], | 138 ], |
124 'dependencies': [ | 139 'dependencies': [ |
140 'irt_core_common', | |
125 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', | 141 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', |
126 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib', | 142 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib', |
127 ], | 143 ], |
128 }, | 144 }, |
129 ], | 145 ], |
130 } | 146 } |
OLD | NEW |