Changeset 825


Ignore:
Timestamp:
Nov 24, 2006 9:02:19 AM (14 years ago)
Author:
bennylp
Message:

Fixed footprint calculation script

Location:
pjproject/trunk/pjsip-apps
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/build/Footprint.mak

    r604 r825  
    3030                $(subst /,$(HOST_PSEP),$(PJSIP_SIMPLE_LIB)) \ 
    3131                $(subst /,$(HOST_PSEP),$(PJSIP_LIB)) \ 
     32                $(subst /,$(HOST_PSEP),$(PJMEDIA_LIB)) \ 
    3233                $(subst /,$(HOST_PSEP),$(PJMEDIA_CODEC_LIB)) \ 
    33                 $(subst /,$(HOST_PSEP),$(PJMEDIA_LIB)) \ 
    3434                $(subst /,$(HOST_PSEP),$(PJLIB_UTIL_LIB)) \ 
    3535                $(subst /,$(HOST_PSEP),$(PJLIB_LIB)) 
  • pjproject/trunk/pjsip-apps/build/get-footprint.py

    r604 r825  
    4343    ['HAS_PJLIB_SCANNER',       'PJLIB-UTIL text scanner (needed by SIP parser)'], 
    4444    ['HAS_PJLIB_XML',           'PJLIB-UTIL tiny XML (parsing and API) (needs text scanner)'], 
     45    ['HAS_PJLIB_DNS',           'PJLIB-UTIL DNS packet and parsing'], 
     46    ['HAS_PJLIB_RESOLVER',      'PJLIB-UTIL Asynchronous DNS resolver/caching engine'], 
    4547 
    4648    # PJSIP 
    4749    ['HAS_PJSIP_CORE_MSG_ELEM', 'PJSIP Core - Messaging Elements and Parsing (message, headers, SIP URI, TEL URI/RFC 3966, etc.)'], 
    4850    ['HAS_PJSIP_CORE',          'PJSIP Core - Endpoint (transport management, module management, event distribution, etc.)'], 
    49     ['HAS_PJSIP_CORE_MSG_UTIL', 'PJSIP Core - Stateless operations, server resolution and fail-over'], 
     51    ['HAS_PJSIP_CORE_MSG_UTIL', 'PJSIP Core - Stateless operations, SIP SRV, server resolution and fail-over'], 
    5052    ['HAS_PJSIP_UDP_TRANSPORT', 'PJSIP UDP transport'], 
    5153    ['',                        'Subtotal: A minimalistic SIP application (parsing, UDP transport+STUN, no transaction)'], 
     
    100102    ['HAS_PJMEDIA_GSM_CODEC',   'PJMEDIA GSM codec (including PLC)'], 
    101103    ['HAS_PJMEDIA_SPEEX_CODEC', 'PJMEDIA Speex codec (narrowband, wideband, ultra-wideband)'], 
     104    ['HAS_PJMEDIA_ILBC_CODEC',  'PJMEDIA iLBC codec'], 
    102105 
    103106    # Total 
     
    218221    output.write('\n<H3>&lt;pj/config.site.h&gt;</H3>\n') 
    219222    output.write('<tt>\n') 
    220     f = os.popen('cpp -dM ../../pjlib/include/pj/config_site.h | grep PJ') 
     223    f = os.popen('cpp -dM -I../../pjlib/include ../../pjlib/include/pj/config_site.h | grep PJ') 
    221224    s = f.readlines() 
    222225    for l in s: 
  • pjproject/trunk/pjsip-apps/src/samples/footprint.c

    r604 r825  
    4343#define HAS_PJLIB_XML 
    4444#define HAS_PJLIB_SCANNER 
     45#define HAS_PJLIB_DNS 
     46#define HAS_PJLIB_RESOLVER 
    4547 
    4648#define HAS_PJSIP_CORE_MSG_ELEM 
     
    8385#define HAS_PJMEDIA_GSM_CODEC 
    8486#define HAS_PJMEDIA_SPEEX_CODEC 
     87#define HAS_PJMEDIA_ILBC_CODEC 
    8588#endif 
    8689 
     
    152155    pj_scan_get_newline(NULL); 
    153156    pj_scan_restore_state(NULL, NULL); 
     157#endif 
     158 
     159#ifdef HAS_PJLIB_DNS 
     160    pj_dns_make_query(NULL, NULL, 0, 0, NULL); 
     161    pj_dns_parse_packet(NULL, NULL, 0, NULL); 
     162    pj_dns_packet_dup(NULL, NULL, NULL); 
     163#endif 
     164 
     165#ifdef HAS_PJLIB_RESOLVER 
     166    pj_dns_resolver_create(NULL, NULL, 0, NULL, NULL, NULL); 
     167    pj_dns_resolver_set_ns(NULL, 0, NULL, NULL); 
     168    pj_dns_resolver_handle_events(NULL, NULL); 
     169    pj_dns_resolver_destroy(NULL, 0); 
     170    pj_dns_resolver_start_query(NULL, NULL, 0, 0, NULL, NULL, NULL); 
     171    pj_dns_resolver_cancel_query(NULL, 0); 
     172    pj_dns_resolver_add_entry(NULL, NULL, 0); 
    154173#endif 
    155174 
     
    352371    pjsip_pres_init_module(NULL, NULL); 
    353372    pjsip_pres_instance(); 
    354     pjsip_pres_create_uac(NULL, NULL, NULL); 
     373    pjsip_pres_create_uac(NULL, NULL, 0, NULL); 
    355374    pjsip_pres_create_uas(NULL, NULL, NULL, NULL); 
    356375    pjsip_pres_terminate(NULL, PJ_FALSE); 
     
    526545#endif 
    527546 
     547#ifdef HAS_PJMEDIA_ILBC_CODEC 
     548    pjmedia_codec_ilbc_init(NULL, 0); 
     549    pjmedia_codec_ilbc_deinit(); 
     550#endif 
     551 
    528552    return 0; 
    529553} 
Note: See TracChangeset for help on using the changeset viewer.