Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
| 3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'use_chromium_nss': 1, | |
|
Søren Gjesse
2012/09/28 09:17:31
Please add a comment here on the different NSSes t
| |
| 7 'crypto_cc_file': '<(SHARED_INTERMEDIATE_DIR)/crypto_gen.cc', | 8 'crypto_cc_file': '<(SHARED_INTERMEDIATE_DIR)/crypto_gen.cc', |
| 8 'io_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_gen.cc', | 9 'io_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_gen.cc', |
| 9 'json_cc_file': '<(SHARED_INTERMEDIATE_DIR)/json_gen.cc', | 10 'json_cc_file': '<(SHARED_INTERMEDIATE_DIR)/json_gen.cc', |
| 10 'uri_cc_file': '<(SHARED_INTERMEDIATE_DIR)/uri_gen.cc', | 11 'uri_cc_file': '<(SHARED_INTERMEDIATE_DIR)/uri_gen.cc', |
| 11 'utf_cc_file': '<(SHARED_INTERMEDIATE_DIR)/utf_gen.cc', | 12 'utf_cc_file': '<(SHARED_INTERMEDIATE_DIR)/utf_gen.cc', |
| 12 'builtin_in_cc_file': 'builtin_in.cc', | 13 'builtin_in_cc_file': 'builtin_in.cc', |
| 13 'builtin_cc_file': '<(SHARED_INTERMEDIATE_DIR)/builtin_gen.cc', | 14 'builtin_cc_file': '<(SHARED_INTERMEDIATE_DIR)/builtin_gen.cc', |
| 14 'snapshot_in_cc_file': 'snapshot_in.cc', | 15 'snapshot_in_cc_file': 'snapshot_in.cc', |
| 15 'snapshot_bin_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.bin', | 16 'snapshot_bin_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.bin', |
| 16 'snapshot_cc_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.cc', | 17 'snapshot_cc_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.cc', |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 221 'dependencies': [ | 222 'dependencies': [ |
| 222 'generate_builtin_cc_file', | 223 'generate_builtin_cc_file', |
| 223 'generate_crypto_cc_file', | 224 'generate_crypto_cc_file', |
| 224 'generate_io_cc_file', | 225 'generate_io_cc_file', |
| 225 'generate_json_cc_file', | 226 'generate_json_cc_file', |
| 226 'generate_uri_cc_file', | 227 'generate_uri_cc_file', |
| 227 'generate_utf_cc_file', | 228 'generate_utf_cc_file', |
| 228 ], | 229 ], |
| 229 'include_dirs': [ | 230 'include_dirs': [ |
| 230 '..', | 231 '..', |
| 232 '/usr/include/nss', | |
| 233 '/usr/include/nspr', | |
|
Søren Gjesse
2012/09/28 09:17:31
Shouldn't the /usr/include/... paths only be there
| |
| 234 '../nss', | |
| 235 '../nspr', | |
|
Søren Gjesse
2012/09/28 09:17:31
Shouldn't the ../... paths be ../third_party/...?
Bill Hesse
2012/10/31 16:33:29
All removed. Replaced by direct-dependent include
| |
| 231 ], | 236 ], |
| 232 'sources': [ | 237 'sources': [ |
| 233 'builtin_natives.cc', | 238 'builtin_natives.cc', |
| 234 'builtin.h', | 239 'builtin.h', |
| 235 ], | 240 ], |
| 236 'includes': [ | 241 'includes': [ |
| 237 'builtin_impl_sources.gypi', | 242 'builtin_impl_sources.gypi', |
| 238 '../platform/platform_sources.gypi', | 243 '../platform/platform_sources.gypi', |
| 239 ], | 244 ], |
| 240 'sources/': [ | 245 'sources/': [ |
| 241 ['exclude', '_test\\.(cc|h)$'], | 246 ['exclude', '_test\\.(cc|h)$'], |
| 242 ], | 247 ], |
| 243 'conditions': [ | 248 'conditions': [ |
| 244 ['OS=="win"', { | 249 ['OS=="win"', { |
| 245 'sources/' : [ | 250 'sources/': [ |
| 246 ['exclude', 'fdutils.h'], | 251 ['exclude', 'fdutils.h'], |
| 247 ], | 252 ], |
| 253 'defines': [ | |
| 254 'NSS_USE_STATIC_LIBS=1', | |
|
Søren Gjesse
2012/09/28 09:17:31
Should this define go with the rest of the NSS con
Bill Hesse
2012/10/31 16:33:29
Yes. Done.
On 2012/09/28 09:17:31, Søren Gjesse
| |
| 255 ], | |
| 256 | |
| 248 # TODO(antonm): fix the implementation. | 257 # TODO(antonm): fix the implementation. |
| 249 # Current implementation accepts char* strings | 258 # Current implementation accepts char* strings |
| 250 # and therefore fails to compile once _UNICODE is | 259 # and therefore fails to compile once _UNICODE is |
| 251 # enabled. That should be addressed using -A | 260 # enabled. That should be addressed using -A |
| 252 # versions of functions and adding necessary conversions. | 261 # versions of functions and adding necessary conversions. |
| 253 'configurations': { | 262 'configurations': { |
| 254 'Common_Base': { | 263 'Common_Base': { |
| 255 'msvs_configuration_attributes': { | 264 'msvs_configuration_attributes': { |
| 256 'CharacterSet': '0', | 265 'CharacterSet': '0', |
| 257 }, | 266 }, |
| 258 }, | 267 }, |
| 259 }, | 268 }, |
| 260 }], | 269 }], |
| 261 ['OS=="linux"', { | 270 ['OS=="linux"', { |
| 262 'link_settings': { | 271 'link_settings': { |
| 263 'libraries': [ | 272 'libraries': [ |
| 264 '-ldl', | 273 '-ldl', |
| 265 ], | 274 ]}}] |
| 266 }, | 275 ['use_chromium_nss==1', { |
| 276 'defines': [ | |
| 277 'CHROMIUM_NSS=1', | |
| 278 ], | |
| 279 'dependencies': [ | |
| 280 '../third_party/nss/nss.gyp:nss', | |
| 281 '../third_party/nss/nss.gyp:nspr', | |
| 282 '../third_party/nss/nss.gyp:nssckbi', | |
| 283 '../third_party/nss/nss.gyp:nss_static', | |
| 284 '../net/third_party/nss/ssl.gyp:libssl', | |
| 285 '../third_party/zlib/zlib.gyp:zlib', | |
| 286 ], | |
| 287 }, { # Else using an unmodified NSS distribution or libraries. | |
| 288 'conditions': [ | |
| 289 ['OS=="win"', { | |
| 290 'include_dirs': [ | |
| 291 # Should be NSS Distribution include directory. | |
|
Søren Gjesse
2012/09/28 09:17:31
Should we use a GYP variable to specify the NSS di
Bill Hesse
2012/10/31 16:33:29
Removed.
On 2012/09/28 09:17:31, Søren Gjesse wro
| |
| 292 '/src/nss-3.13.6/mozilla/dist/WINNT6.1_DBG.OBJ/include', | |
| 293 ], | |
| 294 'link_settings': { | |
| 295 'libraries': [ | |
| 296 '-lnss_static.lib', '-llibssl.lib', '-lcrnspr.lib', | |
| 297 '-lcrnss.lib', '-lcrnssckbi.lib', '-lsqlite3.lib', | |
| 298 '-lzlib.lib', | |
| 299 ]}, | |
| 300 'msvs_sttings': { | |
| 301 'VSLinkerTool': { | |
| 302 'AdditionalDependencies': [ | |
| 303 'nss_static.lib', 'libssl.lib', 'crnspr.lib', 'crnss.lib', | |
| 304 'crnssckbi.lib', 'sqlite3.lib', 'zlib.lib', | |
| 305 ], | |
| 306 'AdditionalLibraryDirectories': [ | |
| 307 # Should be NSS Distribution library directory. | |
| 308 '/src/dart-all/dart/DebugIA32/lib' | |
| 309 ]}}, | |
| 310 }], | |
| 311 ['OS=="mac"', { | |
| 312 'include_dirs': [ | |
| 313 # Add paths to NSS build include directories. | |
| 314 ], | |
| 315 'link_settings': { | |
| 316 'libraries': [ | |
| 317 # Make relative to a NSS build. | |
| 318 '/Users/whesse/dart/nsslib/libnss3.dylib', | |
| 319 '/Users/whesse/dart/nsslib/libnspr4.dylib', | |
| 320 '/Users/whesse/dart/nsslib/libssl3.dylib', | |
| 321 ], | |
| 322 'ldflags': [ | |
| 323 '-lnss3', | |
| 324 '-lnspr4', | |
| 325 '-lssl3', | |
| 326 ], | |
| 327 }, | |
| 328 }], | |
| 329 ['OS=="linux"', { | |
| 330 'include_dirs': [ | |
| 331 '/usr/include/nss', | |
| 332 '/usr/include/nspr', | |
| 333 ], | |
| 334 'link_settings': { | |
| 335 'libraries': [ | |
| 336 '-lnspr4', | |
| 337 '-lnss3', | |
| 338 '-lssl3', | |
| 339 ]}, | |
| 340 }], | |
| 341 ], | |
| 267 }], | 342 }], |
| 268 ], | 343 ], |
| 269 }, | 344 }, |
| 270 { | 345 { |
| 271 'target_name': 'libdart_withcore', | 346 'target_name': 'libdart_withcore', |
| 272 'type': 'static_library', | 347 'type': 'static_library', |
| 273 'dependencies': [ | 348 'dependencies': [ |
| 274 'libdart_lib_withcore', | 349 'libdart_lib_withcore', |
| 275 'libdart_vm', | 350 'libdart_vm', |
| 276 'libjscre', | 351 'libjscre', |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 517 ['OS=="mac"', { | 592 ['OS=="mac"', { |
| 518 'xcode_settings': { | 593 'xcode_settings': { |
| 519 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], | 594 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], |
| 520 }, | 595 }, |
| 521 }], | 596 }], |
| 522 ], | 597 ], |
| 523 }, | 598 }, |
| 524 ], | 599 ], |
| 525 } | 600 } |
| 526 | 601 |
| OLD | NEW |