michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: include('/build/gyp.mozbuild') michael@0: michael@0: GYP_DIRS += [ michael@0: 'nICEr', michael@0: 'nrappkit', michael@0: ] michael@0: michael@0: # These files cannot be built in unified mode because of name clashes on RCSSTRING michael@0: nICEr_non_unified_sources = [ michael@0: 'nICEr/src/crypto/nr_crypto.c', michael@0: 'nICEr/src/ice/ice_candidate.c', michael@0: 'nICEr/src/ice/ice_candidate_pair.c', michael@0: 'nICEr/src/ice/ice_component.c', michael@0: 'nICEr/src/ice/ice_ctx.c', michael@0: 'nICEr/src/ice/ice_media_stream.c', michael@0: 'nICEr/src/ice/ice_parser.c', michael@0: 'nICEr/src/ice/ice_peer_ctx.c', michael@0: 'nICEr/src/ice/ice_socket.c', michael@0: 'nICEr/src/net/nr_socket.c', michael@0: 'nICEr/src/net/transport_addr.c', michael@0: 'nICEr/src/net/transport_addr_reg.c', michael@0: 'nICEr/src/stun/addrs.c', michael@0: 'nICEr/src/stun/nr_socket_turn.c', michael@0: 'nICEr/src/stun/stun_build.c', michael@0: 'nICEr/src/stun/stun_client_ctx.c', michael@0: 'nICEr/src/stun/stun_codec.c', michael@0: 'nICEr/src/stun/stun_hint.c', michael@0: 'nICEr/src/stun/stun_msg.c', michael@0: 'nICEr/src/stun/stun_proc.c', michael@0: 'nICEr/src/stun/stun_server_ctx.c', michael@0: 'nICEr/src/stun/stun_util.c', michael@0: 'nICEr/src/stun/turn_client_ctx.c', michael@0: 'nICEr/src/util/cb_args.c', michael@0: 'nICEr/src/util/ice_util.c', michael@0: ] michael@0: michael@0: # This file cannot be built in unified mode because it breaks Linux ASAN builds michael@0: nICEr_non_unified_sources += [ michael@0: 'nICEr/src/util/mbslen.c', michael@0: ] michael@0: nrappkit_non_unified_sources = [ michael@0: 'nrappkit/src/log/r_log.c', michael@0: 'nrappkit/src/util/byteorder.c', michael@0: 'nrappkit/src/util/hex.c', michael@0: 'nrappkit/src/util/libekr/debug.c', michael@0: 'nrappkit/src/util/libekr/r_assoc.c', michael@0: 'nrappkit/src/util/libekr/r_bitfield.c', michael@0: 'nrappkit/src/util/libekr/r_crc32.c', michael@0: 'nrappkit/src/util/libekr/r_data.c', michael@0: 'nrappkit/src/util/libekr/r_errors.c', michael@0: 'nrappkit/src/util/libekr/r_list.c', michael@0: 'nrappkit/src/util/libekr/r_memory.c', michael@0: 'nrappkit/src/util/libekr/r_replace.c', michael@0: 'nrappkit/src/util/libekr/r_time.c', michael@0: 'nrappkit/src/util/p_buf.c', michael@0: 'nrappkit/src/util/util.c', michael@0: ] michael@0: michael@0: GYP_DIRS['nICEr'].input = 'nICEr/nicer.gyp' michael@0: GYP_DIRS['nICEr'].variables = gyp_vars michael@0: GYP_DIRS['nICEr'].sandbox_vars['FINAL_LIBRARY'] = 'webrtc' michael@0: GYP_DIRS['nICEr'].non_unified_sources += nICEr_non_unified_sources michael@0: michael@0: GYP_DIRS['nrappkit'].input = 'nrappkit/nrappkit.gyp' michael@0: GYP_DIRS['nrappkit'].variables = gyp_vars michael@0: GYP_DIRS['nrappkit'].sandbox_vars['FINAL_LIBRARY'] = 'webrtc' michael@0: GYP_DIRS['nrappkit'].non_unified_sources += nrappkit_non_unified_sources