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