Home | History | Annotate | Download | only in net
      1 # This file is generated; do not edit.
      2 
      3 import os
      4 
      5 Import("env")
      6 
      7 env = env.Clone(COMPONENT_NAME='net',
      8                 TARGET_NAME='net')
      9 
     10 configurations = {
     11     'Debug' : {
     12         'Append' : dict(
     13             CCFLAGS = [
     14                 '-Werror',
     15                 '-pthread',
     16                 '-fno-exceptions',
     17                 '-fno-asynchronous-unwind-tables',
     18                 '-fvisibility=hidden',
     19                 '-Wall',
     20                 '-D_FILE_OFFSET_BITS=64',
     21                 '-DPNG_NO_MMX_CODE',
     22                 '-pthread',
     23                 '-I/usr/include/gtk-2.0',
     24                 '-I/usr/lib/gtk-2.0/include',
     25                 '-I/usr/include/atk-1.0',
     26                 '-I/usr/include/cairo',
     27                 '-I/usr/include/pango-1.0',
     28                 '-I/usr/include/glib-2.0',
     29                 '-I/usr/lib/glib-2.0/include',
     30                 '-I/usr/include/freetype2',
     31                 '-I/usr/include/libpng12',
     32                 '-I/usr/include/pixman-1',
     33                 '-DORBIT2=1',
     34                 '-pthread',
     35                 '-I/usr/include/gconf/2',
     36                 '-I/usr/include/orbit-2.0',
     37                 '-I/usr/include/glib-2.0',
     38                 '-I/usr/lib/glib-2.0/include',
     39                 '-DPNG_NO_MMX_CODE',
     40                 '-I/usr/include/gtk-2.0',
     41                 '-I/usr/lib/gtk-2.0/include',
     42                 '-I/usr/include/pango-1.0',
     43                 '-I/usr/include/glib-2.0',
     44                 '-I/usr/lib/glib-2.0/include',
     45                 '-I/usr/include/cairo',
     46                 '-I/usr/include/freetype2',
     47                 '-I/usr/include/libpng12',
     48                 '-I/usr/include/pixman-1',
     49                 '-I/usr/include/nss',
     50                 '-I/usr/include/nspr',
     51                 '-O0',
     52                 '-g'
     53             ],
     54             CPPDEFINES = [
     55                 '__STDC_FORMAT_MACROS',
     56                 'CHROMIUM_BUILD',
     57                 'U_STATIC_IMPLEMENTATION',
     58                 '_DEBUG'
     59             ],
     60             CPPPATH = [
     61                 env.Dir('$SRC_DIR/net/../third_party/icu/public/common'),
     62                 env.Dir('$SRC_DIR/net/../third_party/icu/public/i18n'),
     63                 env.Dir('$SRC_DIR/net/..'),
     64                 env.Dir('$SRC_DIR/net/../sdch/open-vcdiff/src'),
     65                 env.Dir('$SRC_DIR/net/../third_party/bzip2'),
     66                 env.Dir('$SRC_DIR/net/../third_party/zlib'),
     67                 env.Dir('${SHARED_INTERMEDIATE_DIR}/net'),
     68                 env.Dir('$SRC_DIR/net/../v8/include')
     69             ],
     70             CXXFLAGS = [
     71                 '-fno-rtti',
     72                 '-fno-threadsafe-statics',
     73                 '-fvisibility-inlines-hidden'
     74             ],
     75             LINKFLAGS = [
     76                 '-pthread',
     77                 '-rdynamic'
     78             ],
     79         ),
     80         'FilterOut' : dict(
     81         ),
     82         'Replace' : dict(
     83              FLOCK_LDMODULE = ['flock', '$TOP_BUILDDIR/linker.lock', '$LDMODULE'],
     84              FLOCK_LINK = ['flock', '$TOP_BUILDDIR/linker.lock', '$LINK'],
     85              FLOCK_SHLINK = ['flock', '$TOP_BUILDDIR/linker.lock', '$SHLINK'],
     86              IMPLICIT_COMMAND_DEPENDENCIES = '0',
     87              LDMODULECOM = [['$FLOCK_LDMODULE',
     88   '-o',
     89   '$TARGET',
     90   '$_LIBDIRFLAGS',
     91   '$LDMODULEFLAGS',
     92   '$SOURCES',
     93   '-Wl,--start-group',
     94   '$_LIBFLAGS',
     95   '-Wl,--end-group']],
     96              LIBPATH = ['$LIB_DIR'],
     97              LINKCOM = [['$FLOCK_LINK',
     98   '-o',
     99   '$TARGET',
    100   '$_LIBDIRFLAGS',
    101   '$LINKFLAGS',
    102   '$SOURCES',
    103   '-Wl,--start-group',
    104   '$_LIBFLAGS',
    105   '-Wl,--end-group']],
    106              SHLINKCOM = [['$FLOCK_SHLINK',
    107   '-o',
    108   '$TARGET',
    109   '$_LIBDIRFLAGS',
    110   '$SHLINKFLAGS',
    111   '$SOURCES',
    112   '-Wl,--start-group',
    113   '$_LIBFLAGS',
    114   '-Wl,--end-group']],
    115         ),
    116         'ImportExternal' : [
    117              'AS',
    118              'CC',
    119              'CXX',
    120              'LINK',
    121         ],
    122         'PropagateExternal' : [
    123              'AS',
    124              'CC',
    125              'CCACHE_DIR',
    126              'CXX',
    127              'DISTCC_DIR',
    128              'DISTCC_HOSTS',
    129              'HOME',
    130              'INCLUDE_SERVER_ARGS',
    131              'INCLUDE_SERVER_PORT',
    132              'LINK',
    133              'CHROME_BUILD_TYPE',
    134              'CHROMIUM_BUILD',
    135              'OFFICIAL_BUILD',
    136         ],
    137     },
    138     'Release' : {
    139         'Append' : dict(
    140             CCFLAGS = [
    141                 '-Werror',
    142                 '-pthread',
    143                 '-fno-exceptions',
    144                 '-fno-asynchronous-unwind-tables',
    145                 '-fvisibility=hidden',
    146                 '-Wall',
    147                 '-D_FILE_OFFSET_BITS=64',
    148                 '-DPNG_NO_MMX_CODE',
    149                 '-pthread',
    150                 '-I/usr/include/gtk-2.0',
    151                 '-I/usr/lib/gtk-2.0/include',
    152                 '-I/usr/include/atk-1.0',
    153                 '-I/usr/include/cairo',
    154                 '-I/usr/include/pango-1.0',
    155                 '-I/usr/include/glib-2.0',
    156                 '-I/usr/lib/glib-2.0/include',
    157                 '-I/usr/include/freetype2',
    158                 '-I/usr/include/libpng12',
    159                 '-I/usr/include/pixman-1',
    160                 '-DORBIT2=1',
    161                 '-pthread',
    162                 '-I/usr/include/gconf/2',
    163                 '-I/usr/include/orbit-2.0',
    164                 '-I/usr/include/glib-2.0',
    165                 '-I/usr/lib/glib-2.0/include',
    166                 '-DPNG_NO_MMX_CODE',
    167                 '-I/usr/include/gtk-2.0',
    168                 '-I/usr/lib/gtk-2.0/include',
    169                 '-I/usr/include/pango-1.0',
    170                 '-I/usr/include/glib-2.0',
    171                 '-I/usr/lib/glib-2.0/include',
    172                 '-I/usr/include/cairo',
    173                 '-I/usr/include/freetype2',
    174                 '-I/usr/include/libpng12',
    175                 '-I/usr/include/pixman-1',
    176                 '-I/usr/include/nss',
    177                 '-I/usr/include/nspr',
    178                 '-O2',
    179                 '-fno-ident',
    180                 '-fdata-sections',
    181                 '-ffunction-sections'
    182             ],
    183             CPPDEFINES = [
    184                 '__STDC_FORMAT_MACROS',
    185                 'CHROMIUM_BUILD',
    186                 'U_STATIC_IMPLEMENTATION',
    187                 'NDEBUG',
    188                 'NVALGRIND'
    189             ],
    190             CPPPATH = [
    191                 env.Dir('$SRC_DIR/net/../third_party/icu/public/common'),
    192                 env.Dir('$SRC_DIR/net/../third_party/icu/public/i18n'),
    193                 env.Dir('$SRC_DIR/net/..'),
    194                 env.Dir('$SRC_DIR/net/../sdch/open-vcdiff/src'),
    195                 env.Dir('$SRC_DIR/net/../third_party/bzip2'),
    196                 env.Dir('$SRC_DIR/net/../third_party/zlib'),
    197                 env.Dir('${SHARED_INTERMEDIATE_DIR}/net'),
    198                 env.Dir('$SRC_DIR/net/../v8/include')
    199             ],
    200             CXXFLAGS = [
    201                 '-fno-rtti',
    202                 '-fno-threadsafe-statics',
    203                 '-fvisibility-inlines-hidden'
    204             ],
    205             LINKFLAGS = [
    206                 '-pthread',
    207                 '-Wl,--gc-sections'
    208             ],
    209         ),
    210         'FilterOut' : dict(
    211         ),
    212         'Replace' : dict(
    213              FLOCK_LDMODULE = ['flock', '$TOP_BUILDDIR/linker.lock', '$LDMODULE'],
    214              FLOCK_LINK = ['flock', '$TOP_BUILDDIR/linker.lock', '$LINK'],
    215              FLOCK_SHLINK = ['flock', '$TOP_BUILDDIR/linker.lock', '$SHLINK'],
    216              IMPLICIT_COMMAND_DEPENDENCIES = '0',
    217              LDMODULECOM = [['$FLOCK_LDMODULE',
    218   '-o',
    219   '$TARGET',
    220   '$_LIBDIRFLAGS',
    221   '$LDMODULEFLAGS',
    222   '$SOURCES',
    223   '-Wl,--start-group',
    224   '$_LIBFLAGS',
    225   '-Wl,--end-group']],
    226              LIBPATH = ['$LIB_DIR'],
    227              LINKCOM = [['$FLOCK_LINK',
    228   '-o',
    229   '$TARGET',
    230   '$_LIBDIRFLAGS',
    231   '$LINKFLAGS',
    232   '$SOURCES',
    233   '-Wl,--start-group',
    234   '$_LIBFLAGS',
    235   '-Wl,--end-group']],
    236              SHLINKCOM = [['$FLOCK_SHLINK',
    237   '-o',
    238   '$TARGET',
    239   '$_LIBDIRFLAGS',
    240   '$SHLINKFLAGS',
    241   '$SOURCES',
    242   '-Wl,--start-group',
    243   '$_LIBFLAGS',
    244   '-Wl,--end-group']],
    245         ),
    246         'ImportExternal' : [
    247              'AS',
    248              'CC',
    249              'CXX',
    250              'LINK',
    251         ],
    252         'PropagateExternal' : [
    253              'AS',
    254              'CC',
    255              'CCACHE_DIR',
    256              'CXX',
    257              'DISTCC_DIR',
    258              'DISTCC_HOSTS',
    259              'HOME',
    260              'INCLUDE_SERVER_ARGS',
    261              'INCLUDE_SERVER_PORT',
    262              'LINK',
    263              'CHROME_BUILD_TYPE',
    264              'CHROMIUM_BUILD',
    265              'OFFICIAL_BUILD',
    266         ],
    267     },
    268 }
    269 
    270 config = configurations[env['CONFIG_NAME']]
    271 env.Append(**config['Append'])
    272 env.FilterOut(**config['FilterOut'])
    273 env.Replace(**config['Replace'])
    274 
    275 # Scons forces -fPIC for SHCCFLAGS on some platforms.
    276 # Disable that so we can control it from cflags in gyp.
    277 # Note that Scons itself is inconsistent with its -fPIC
    278 # setting. SHCCFLAGS forces -fPIC, and SHCFLAGS does not.
    279 # This will make SHCCFLAGS consistent with SHCFLAGS.
    280 env['SHCCFLAGS'] = ['$CCFLAGS']
    281 
    282 for _var in config['ImportExternal']:
    283   if _var in ARGUMENTS:
    284     env[_var] = ARGUMENTS[_var]
    285   elif _var in os.environ:
    286     env[_var] = os.environ[_var]
    287 for _var in config['PropagateExternal']:
    288   if _var in ARGUMENTS:
    289     env[_var] = ARGUMENTS[_var]
    290   elif _var in os.environ:
    291     env['ENV'][_var] = os.environ[_var]
    292 
    293 env['ENV']['LD_LIBRARY_PATH'] = env.subst('$LIB_DIR')
    294 
    295 if ARGUMENTS.get('COVERAGE') not in (None, '0'):
    296   env.AppendUnique(
    297             CCFLAGS = [
    298                 '-fprofile-arcs',
    299                 '-ftest-coverage'
    300             ],
    301             LINKFLAGS = [
    302                 '-fprofile-arcs'
    303             ],
    304   )
    305 
    306 if ARGUMENTS.get('PROFILE') not in (None, '0'):
    307   env.AppendUnique(
    308             CCFLAGS = [
    309                 '-pg',
    310                 '-g'
    311             ],
    312             LINKFLAGS = [
    313                 '-pg'
    314             ],
    315   )
    316 
    317 if ARGUMENTS.get('SYMBOLS') not in (None, '0'):
    318   env.AppendUnique(
    319             CCFLAGS = [
    320                 '-g'
    321             ],
    322   )
    323 
    324 input_files = [
    325     'disk_cache/addr.cc',
    326     'disk_cache/addr.h',
    327     'disk_cache/backend_impl.cc',
    328     'disk_cache/backend_impl.h',
    329     'disk_cache/bitmap.cc',
    330     'disk_cache/bitmap.h',
    331     'disk_cache/block_files.cc',
    332     'disk_cache/block_files.h',
    333     'disk_cache/cache_util.h',
    334     'disk_cache/cache_util_posix.cc',
    335     'disk_cache/disk_cache.h',
    336     'disk_cache/disk_format.h',
    337     'disk_cache/entry_impl.cc',
    338     'disk_cache/entry_impl.h',
    339     'disk_cache/errors.h',
    340     'disk_cache/eviction.cc',
    341     'disk_cache/eviction.h',
    342     'disk_cache/file.h',
    343     'disk_cache/file_block.h',
    344     'disk_cache/file_lock.cc',
    345     'disk_cache/file_lock.h',
    346     'disk_cache/file_posix.cc',
    347     'disk_cache/hash.cc',
    348     'disk_cache/hash.h',
    349     'disk_cache/histogram_macros.h',
    350     'disk_cache/mapped_file.h',
    351     'disk_cache/mapped_file_posix.cc',
    352     'disk_cache/mem_backend_impl.cc',
    353     'disk_cache/mem_backend_impl.h',
    354     'disk_cache/mem_entry_impl.cc',
    355     'disk_cache/mem_entry_impl.h',
    356     'disk_cache/mem_rankings.cc',
    357     'disk_cache/mem_rankings.h',
    358     'disk_cache/rankings.cc',
    359     'disk_cache/rankings.h',
    360     'disk_cache/sparse_control.cc',
    361     'disk_cache/sparse_control.h',
    362     'disk_cache/stats.cc',
    363     'disk_cache/stats.h',
    364     'disk_cache/stats_histogram.cc',
    365     'disk_cache/stats_histogram.h',
    366     'disk_cache/storage_block-inl.h',
    367     'disk_cache/storage_block.h',
    368     'disk_cache/trace.cc',
    369     'disk_cache/trace.h',
    370     'flip/flip_bitmasks.h',
    371     'flip/flip_frame_builder.cc',
    372     'flip/flip_frame_builder.h',
    373     'flip/flip_framer.cc',
    374     'flip/flip_framer.h',
    375     'flip/flip_io_buffer.cc',
    376     'flip/flip_io_buffer.h',
    377     'flip/flip_network_transaction.cc',
    378     'flip/flip_network_transaction.h',
    379     'flip/flip_protocol.h',
    380     'flip/flip_session.cc',
    381     'flip/flip_session.h',
    382     'flip/flip_session_pool.cc',
    383     'flip/flip_session_pool.h',
    384     'flip/flip_stream.cc',
    385     'flip/flip_stream.h',
    386     'flip/flip_transaction_factory.h',
    387     'ftp/ftp_auth_cache.cc',
    388     'ftp/ftp_auth_cache.h',
    389     'ftp/ftp_ctrl_response_buffer.cc',
    390     'ftp/ftp_ctrl_response_buffer.h',
    391     'ftp/ftp_directory_listing_buffer.cc',
    392     'ftp/ftp_directory_listing_buffer.h',
    393     'ftp/ftp_directory_listing_parsers.cc',
    394     'ftp/ftp_directory_listing_parsers.h',
    395     'ftp/ftp_network_layer.cc',
    396     'ftp/ftp_network_layer.h',
    397     'ftp/ftp_network_session.h',
    398     'ftp/ftp_network_transaction.cc',
    399     'ftp/ftp_network_transaction.h',
    400     'ftp/ftp_request_info.h',
    401     'ftp/ftp_response_info.h',
    402     'ftp/ftp_server_type_histograms.cc',
    403     'ftp/ftp_server_type_histograms.h',
    404     'ftp/ftp_transaction.h',
    405     'ftp/ftp_transaction_factory.h',
    406     'ftp/ftp_util.cc',
    407     'ftp/ftp_util.h',
    408     'http/des.cc',
    409     'http/des.h',
    410     'http/http_atom_list.h',
    411     'http/http_auth.cc',
    412     'http/http_auth.h',
    413     'http/http_auth_cache.cc',
    414     'http/http_auth_cache.h',
    415     'http/http_auth_handler.h',
    416     'http/http_auth_handler.cc',
    417     'http/http_auth_handler_basic.cc',
    418     'http/http_auth_handler_basic.h',
    419     'http/http_auth_handler_digest.cc',
    420     'http/http_auth_handler_digest.h',
    421     'http/http_auth_handler_ntlm.cc',
    422     'http/http_auth_handler_ntlm.h',
    423     'http/http_auth_handler_ntlm_portable.cc',
    424     'http/http_basic_stream.cc',
    425     'http/http_basic_stream.h',
    426     'http/http_byte_range.cc',
    427     'http/http_byte_range.h',
    428     'http/http_cache.cc',
    429     'http/http_cache.h',
    430     'http/http_cache_transaction.cc',
    431     'http/http_cache_transaction.h',
    432     'http/http_chunked_decoder.cc',
    433     'http/http_chunked_decoder.h',
    434     'http/http_network_layer.cc',
    435     'http/http_network_layer.h',
    436     'http/http_network_session.cc',
    437     'http/http_network_session.h',
    438     'http/http_network_transaction.cc',
    439     'http/http_network_transaction.h',
    440     'http/http_request_info.h',
    441     'http/http_response_headers.cc',
    442     'http/http_response_headers.h',
    443     'http/http_response_info.cc',
    444     'http/http_response_info.h',
    445     'http/http_stream.h',
    446     'http/http_stream_parser.cc',
    447     'http/http_stream_parser.h',
    448     'http/http_transaction.h',
    449     'http/http_transaction_factory.h',
    450     'http/http_util.cc',
    451     'http/http_util_icu.cc',
    452     'http/http_util.h',
    453     'http/http_vary_data.cc',
    454     'http/http_vary_data.h',
    455     'http/http_version.h',
    456     'http/md4.cc',
    457     'http/md4.h',
    458     'http/partial_data.cc',
    459     'http/partial_data.h',
    460     'ocsp/nss_ocsp.cc',
    461     'ocsp/nss_ocsp.h',
    462     'proxy/init_proxy_resolver.cc',
    463     'proxy/init_proxy_resolver.h',
    464     'proxy/proxy_config.cc',
    465     'proxy/proxy_config.h',
    466     'proxy/proxy_config_service.h',
    467     'proxy/proxy_config_service_fixed.h',
    468     'proxy/proxy_config_service_linux.cc',
    469     'proxy/proxy_config_service_linux.h',
    470     'proxy/proxy_config_service_win.h',
    471     'proxy/proxy_info.cc',
    472     'proxy/proxy_info.h',
    473     'proxy/proxy_list.cc',
    474     'proxy/proxy_list.h',
    475     'proxy/proxy_resolver.h',
    476     'proxy/proxy_resolver_js_bindings.cc',
    477     'proxy/proxy_resolver_js_bindings.h',
    478     'proxy/proxy_resolver_mac.h',
    479     'proxy/proxy_resolver_script.h',
    480     'proxy/proxy_resolver_v8.cc',
    481     'proxy/proxy_resolver_v8.h',
    482     'proxy/proxy_resolver_winhttp.h',
    483     'proxy/proxy_retry_info.h',
    484     'proxy/proxy_script_fetcher.cc',
    485     'proxy/proxy_script_fetcher.h',
    486     'proxy/proxy_server.cc',
    487     'proxy/proxy_server.h',
    488     'proxy/proxy_service.cc',
    489     'proxy/proxy_service.h',
    490     'proxy/single_threaded_proxy_resolver.cc',
    491     'proxy/single_threaded_proxy_resolver.h',
    492     'socket/client_socket.cc',
    493     'socket/client_socket.h',
    494     'socket/client_socket_factory.cc',
    495     'socket/client_socket_factory.h',
    496     'socket/client_socket_handle.cc',
    497     'socket/client_socket_handle.h',
    498     'socket/client_socket_pool.h',
    499     'socket/client_socket_pool_base.cc',
    500     'socket/client_socket_pool_base.h',
    501     'socket/socket.h',
    502     'socket/socks5_client_socket.cc',
    503     'socket/socks5_client_socket.h',
    504     'socket/socks_client_socket.cc',
    505     'socket/socks_client_socket.h',
    506     'socket/ssl_client_socket.h',
    507     'socket/ssl_client_socket_mac.h',
    508     'socket/ssl_client_socket_nss.cc',
    509     'socket/ssl_client_socket_nss.h',
    510     'socket/ssl_client_socket_win.h',
    511     'socket/ssl_test_util.cc',
    512     'socket/ssl_test_util.h',
    513     'socket/tcp_client_socket.h',
    514     'socket/tcp_client_socket_libevent.cc',
    515     'socket/tcp_client_socket_libevent.h',
    516     'socket/tcp_client_socket_pool.cc',
    517     'socket/tcp_client_socket_pool.h',
    518     'socket/tcp_client_socket_win.h',
    519     'socket/tcp_pinger.h',
    520     'socket_stream/socket_stream.cc',
    521     'socket_stream/socket_stream.h',
    522     'socket_stream/socket_stream_metrics.cc',
    523     'socket_stream/socket_stream_metrics.h',
    524     'socket_stream/socket_stream_throttle.cc',
    525     'socket_stream/socket_stream_throttle.h',
    526     'third_party/parseftp/ParseFTPList.cpp',
    527     'third_party/parseftp/ParseFTPList.h',
    528     'url_request/request_tracker.h',
    529     'url_request/url_request.cc',
    530     'url_request/url_request.h',
    531     'url_request/url_request_about_job.cc',
    532     'url_request/url_request_about_job.h',
    533     'url_request/url_request_context.h',
    534     'url_request/url_request_data_job.cc',
    535     'url_request/url_request_data_job.h',
    536     'url_request/url_request_error_job.cc',
    537     'url_request/url_request_error_job.h',
    538     'url_request/url_request_file_dir_job.cc',
    539     'url_request/url_request_file_dir_job.h',
    540     'url_request/url_request_file_job.cc',
    541     'url_request/url_request_file_job.h',
    542     'url_request/url_request_filter.cc',
    543     'url_request/url_request_filter.h',
    544     'url_request/url_request_ftp_job.h',
    545     'url_request/url_request_http_job.cc',
    546     'url_request/url_request_http_job.h',
    547     'url_request/url_request_inet_job.h',
    548     'url_request/url_request_job.cc',
    549     'url_request/url_request_job.h',
    550     'url_request/url_request_job_manager.cc',
    551     'url_request/url_request_job_manager.h',
    552     'url_request/url_request_job_metrics.cc',
    553     'url_request/url_request_job_metrics.h',
    554     'url_request/url_request_job_tracker.cc',
    555     'url_request/url_request_job_tracker.h',
    556     'url_request/url_request_new_ftp_job.cc',
    557     'url_request/url_request_new_ftp_job.h',
    558     'url_request/url_request_redirect_job.cc',
    559     'url_request/url_request_redirect_job.h',
    560     'url_request/url_request_simple_job.cc',
    561     'url_request/url_request_simple_job.h',
    562     'url_request/url_request_status.h',
    563     'url_request/url_request_test_job.cc',
    564     'url_request/url_request_test_job.h',
    565     'url_request/url_request_view_net_internals_job.cc',
    566     'url_request/url_request_view_net_internals_job.h',
    567     'url_request/view_cache_helper.cc',
    568     'url_request/view_cache_helper.h',
    569     'websockets/websocket.cc',
    570     'websockets/websocket.h',
    571     'websockets/websocket_throttle.cc',
    572     'websockets/websocket_throttle.h',
    573 ]
    574 
    575 target_files = []
    576 prerequisites = []
    577 
    578 _result = []
    579 for infile in input_files:
    580   if env.compilable(infile):
    581     if (type(infile) == type('')
    582         and (infile.startswith('$SRC_DIR/net/')
    583              or not os.path.isabs(env.subst(infile)))):
    584       # Force files below the build directory by replacing all '..'
    585       # elements in the path with '__':
    586       base, ext = os.path.splitext(os.path.normpath(infile))
    587       base = [d == '..' and '__' or d for d in base.split('/')]
    588       base = os.path.join(*base)
    589       object = '${OBJ_DIR}/${COMPONENT_NAME}/${TARGET_NAME}/' + base
    590       if not infile.startswith('$SRC_DIR/net/'):
    591         infile = '$SRC_DIR/net/' + infile
    592       infile = env.StaticObject(object, infile)[0]
    593     else:
    594       infile = env.StaticObject(infile)[0]
    595   _result.append(infile)
    596 input_files = _result
    597 
    598 _outputs = env.GypStaticLibrary('net', input_files)
    599 target_files.extend(_outputs)
    600 
    601 gyp_target = env.Alias('net', target_files)
    602 dependencies = [
    603     Alias('net_resources'),
    604     Alias('v8'),
    605     Alias('gconf'),
    606     Alias('gdk'),
    607     Alias('nss')
    608 ]
    609 env.Requires(target_files, dependencies)
    610 env.Requires(gyp_target, dependencies)
    611 for prerequisite in prerequisites:
    612   env.Requires(prerequisite, dependencies)
    613 env.Requires(gyp_target, prerequisites)
    614 Return("gyp_target")
    615