Home | History | Annotate | Download | only in gyp
      1 # Copyright 2016 Google Inc.
      2 #
      3 # Use of this source code is governed by a BSD-style license that can be
      4 # found in the LICENSE file.
      5 # A simple gyp file to generate microhttpd for internal purposes
      6 # most of the work(configure and make) is performed in a python script
      7 {
      8   'targets': [
      9     {
     10       'target_name': 'microhttpd',
     11       'type': 'static_library',
     12       'variables': {
     13         'base_dir%': '../third_party/libmicrohttpd',
     14         'src_dir%': '../third_party/externals/microhttpd',
     15       },
     16       'direct_dependent_settings': {
     17         'include_dirs': [
     18           '<(src_dir)/src/include',
     19         ],
     20         # for reasons I can't quite fathom, we need the below line to trigger
     21         # a link
     22         'libraries': [
     23           'libmicrohttpd.a',
     24         ],
     25       },
     26       'actions': [
     27         {
     28           'action_name': 'configure_and_build',
     29           'inputs': [
     30             '<(PRODUCT_DIR)/',
     31           ],
     32           'outputs': [ '<(PRODUCT_DIR)/libmicrohttpd.a' ],
     33           'action': [
     34             'python',
     35             '<(base_dir)/build.py', 
     36             '--src', '<(src_dir)',
     37             '--dst', '<(PRODUCT_DIR)',
     38           ],
     39         },
     40       ],
     41     },
     42   ],
     43 }
     44