blob: 0ce0344c83993b388065b18e69b829b9e3539839 [file] [log] [blame]
murgatroid992d6d3302015-09-21 13:29:40 -07001%YAML 1.2
2--- |
3 # GRPC gyp file
4 # This currently builds C and C++ code.
5 # This file has been automatically generated from a template file.
6 # Please look at the templates directory instead.
7 # This file can be regenerated from the template by running
8 # tools/buildgen/generate_projects.sh
9
10 # Copyright 2015, Google Inc.
11 # All rights reserved.
12 #
13 # Redistribution and use in source and binary forms, with or without
14 # modification, are permitted provided that the following conditions are
15 # met:
16 #
17 # * Redistributions of source code must retain the above copyright
18 # notice, this list of conditions and the following disclaimer.
19 # * Redistributions in binary form must reproduce the above
20 # copyright notice, this list of conditions and the following disclaimer
21 # in the documentation and/or other materials provided with the
22 # distribution.
23 # * Neither the name of Google Inc. nor the names of its
24 # contributors may be used to endorse or promote products derived from
25 # this software without specific prior written permission.
26 #
27 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
28 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
29 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
30 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
31 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
32 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
33 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
34 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
35 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
36 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
37 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38
39 # Some of this file is built with the help of
40 # https://n8.io/converting-a-c-library-to-gyp/
41 {
42 'target_defaults': {
43 'default_configuration': 'Debug',
44 'configurations': {
45 'Debug': {
46 'defines': [ 'DEBUG', '_DEBUG' ],
47 'msvs_settings': {
48 'VCCLCompilerTool': {
49 'RuntimeLibrary': 1, # static debug
50 },
51 },
52 },
53 'Release': {
54 'defines': [ 'NDEBUG' ],
55 'msvs_settings': {
56 'VCCLCompilerTool': {
57 'RuntimeLibrary': 0, # static release
58 },
59 },
60 }
61 },
62 'msvs_settings': {
63 'VCLinkerTool': {
64 'GenerateDebugInformation': 'true',
65 },
66 },
67 'include_dirs': [
68 'include'
69 ],
70 'libraries': [
71 '-lcrypto',
72 '-lssl',
73 '-ldl',
74 '-lpthread',
75 '-lz',
76 '-lprotobuf'
77 ]
78 },
79 'targets': [
80 % for lib in libs:
81 {
82 'target_name': '${lib.name}',
83 'product_prefix': 'lib',
84 'type': 'static_library',
85 'dependencies': [
86 % for dep in getattr(lib, 'deps', []):
87 '${dep}',
88 % endfor
89 ],
90 'sources': [
91 % for source in lib.src:
92 '${source}'
93 % endfor
94 ]
95 },
96 % endfor
97 % for tgt in targets:
98 {
99 'target_name': '${tgt.name}',
100 'type': 'executable',
101 'dependencies': [
102 % for dep in getattr(tgt, 'deps', []):
103 '${dep}',
104 % endfor
105 ],
106 'sources': [
107 % for source in tgt.src:
108 '${source}',
109 % endfor
110 ]
111 },
112 % endfor
113 ]
114 }