Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2012 the V8 project authors. All rights reserved. | 1 # Copyright 2012 the V8 project authors. All rights reserved. |
| 2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
| 3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
| 4 # met: | 4 # met: |
| 5 # | 5 # |
| 6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
| 7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
| 8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
| 9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
| 10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 115 'HAVE_OFF64_T', | 115 'HAVE_OFF64_T', |
| 116 'HAVE_SYS_UIO_H', | 116 'HAVE_SYS_UIO_H', |
| 117 'ANDROID_BINSIZE_HACK', # Enable temporary hacks to reduce binsize. | 117 'ANDROID_BINSIZE_HACK', # Enable temporary hacks to reduce binsize. |
| 118 ], | 118 ], |
| 119 'ldflags!': [ | 119 'ldflags!': [ |
| 120 '-pthread', # Not supported by Android toolchain. | 120 '-pthread', # Not supported by Android toolchain. |
| 121 ], | 121 ], |
| 122 'ldflags': [ | 122 'ldflags': [ |
| 123 '-nostdlib', | 123 '-nostdlib', |
| 124 '-Wl,--no-undefined', | 124 '-Wl,--no-undefined', |
| 125 # Don't export symbols from statically linked libraries. | |
| 126 '-Wl,--exclude-libs=ALL', | |
| 127 ], | 125 ], |
| 128 'libraries!': [ | 126 'libraries!': [ |
| 129 '-lrt', # librt is built into Bionic. | 127 '-lrt', # librt is built into Bionic. |
| 130 # Not supported by Android toolchain. | 128 # Not supported by Android toolchain. |
| 131 # Where do these come from? Can't find references in | 129 # Where do these come from? Can't find references in |
| 132 # any Chromium gyp or gypi file. Maybe they come from | 130 # any Chromium gyp or gypi file. Maybe they come from |
| 133 # gyp itself? | 131 # gyp itself? |
| 134 '-lpthread', '-lnss3', '-lnssutil3', '-lsmime3', '-lplds4', '-lplc4' , '-lnspr4', | 132 '-lpthread', '-lnss3', '-lnssutil3', '-lsmime3', '-lplds4', '-lplc4' , '-lnspr4', |
| 135 ], | 133 ], |
| 136 'libraries': [ | 134 'libraries': [ |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 212 ], | 210 ], |
| 213 'libraries': [ | 211 'libraries': [ |
| 214 # crtend_android.o needs to be the last item in libraries. | 212 # crtend_android.o needs to be the last item in libraries. |
| 215 # Do not add any libraries after this! | 213 # Do not add any libraries after this! |
| 216 '<(android_lib)/crtend_android.o', | 214 '<(android_lib)/crtend_android.o', |
| 217 ], | 215 ], |
| 218 }], | 216 }], |
| 219 ['_type=="shared_library"', { | 217 ['_type=="shared_library"', { |
| 220 'ldflags': [ | 218 'ldflags': [ |
| 221 '-Wl,-shared,-Bsymbolic', | 219 '-Wl,-shared,-Bsymbolic', |
| 220 '<(android_lib)/crtbegin_so.o', | |
| 221 ], | |
| 222 }], | |
| 223 ['_type=="static_library"', { | |
| 224 'ldflags': [ | |
| 225 # Don't export symbols from statically linked libraries. | |
| 226 '-Wl,--exclude-libs=ALL', | |
|
Jakob Kummerow
2012/10/24 08:41:44
nit: indentation (align with the line above please
| |
| 222 ], | 227 ], |
| 223 }], | 228 }], |
| 224 ], | 229 ], |
| 225 }], # _toolset=="target" | 230 }], # _toolset=="target" |
| 226 # Settings for building host targets using the system toolchain. | 231 # Settings for building host targets using the system toolchain. |
| 227 ['_toolset=="host"', { | 232 ['_toolset=="host"', { |
| 228 'cflags': [ '-m32', '-pthread' ], | 233 'cflags': [ '-m32', '-pthread' ], |
| 229 'ldflags': [ '-m32', '-pthread' ], | 234 'ldflags': [ '-m32', '-pthread' ], |
| 230 'ldflags!': [ | 235 'ldflags!': [ |
| 231 '-Wl,-z,noexecstack', | 236 '-Wl,-z,noexecstack', |
| 232 '-Wl,--gc-sections', | 237 '-Wl,--gc-sections', |
| 233 '-Wl,-O1', | 238 '-Wl,-O1', |
| 234 '-Wl,--as-needed', | 239 '-Wl,--as-needed', |
| 235 ], | 240 ], |
| 236 }], | 241 }], |
| 237 ], # target_conditions | 242 ], # target_conditions |
| 238 }, # target_defaults | 243 }, # target_defaults |
| 239 } | 244 } |
| OLD | NEW |