Warning, /maui/mauikit-documents/src/code/epub/qhttpserver/http-parser/http_parser.gyp is written in an unsupported language. File is not indexed.

0001 # This file is used with the GYP meta build system.
0002 # http://code.google.com/p/gyp/
0003 # To build try this:
0004 #   svn co http://gyp.googlecode.com/svn/trunk gyp
0005 #   ./gyp/gyp -f make --depth=`pwd` http_parser.gyp 
0006 #   ./out/Debug/test 
0007 {
0008   'target_defaults': {
0009     'default_configuration': 'Debug',
0010     'configurations': {
0011       # TODO: hoist these out and put them somewhere common, because
0012       #       RuntimeLibrary MUST MATCH across the entire project
0013       'Debug': {
0014         'defines': [ 'DEBUG', '_DEBUG' ],
0015         'cflags': [ '-Wall', '-Wextra', '-O0', '-g', '-ftrapv' ],
0016         'msvs_settings': {
0017           'VCCLCompilerTool': {
0018             'RuntimeLibrary': 1, # static debug
0019           },
0020         },
0021       },
0022       'Release': {
0023         'defines': [ 'NDEBUG' ],
0024         'cflags': [ '-Wall', '-Wextra', '-O3' ],
0025         'msvs_settings': {
0026           'VCCLCompilerTool': {
0027             'RuntimeLibrary': 0, # static release
0028           },
0029         },
0030       }
0031     },
0032     'msvs_settings': {
0033       'VCCLCompilerTool': {
0034       },
0035       'VCLibrarianTool': {
0036       },
0037       'VCLinkerTool': {
0038         'GenerateDebugInformation': 'true',
0039       },
0040     },
0041     'conditions': [
0042       ['OS == "win"', {
0043         'defines': [
0044           'WIN32'
0045         ],
0046       }]
0047     ],
0048   },
0049 
0050   'targets': [
0051     {
0052       'target_name': 'http_parser',
0053       'type': 'static_library',
0054       'include_dirs': [ '.' ],
0055       'direct_dependent_settings': {
0056         'defines': [ 'HTTP_PARSER_STRICT=0' ],
0057         'include_dirs': [ '.' ],
0058       },
0059       'defines': [ 'HTTP_PARSER_STRICT=0' ],
0060       'sources': [ './http_parser.c', ],
0061       'conditions': [
0062         ['OS=="win"', {
0063           'msvs_settings': {
0064             'VCCLCompilerTool': {
0065               # Compile as C++. http_parser.c is actually C99, but C++ is
0066               # close enough in this case.
0067               'CompileAs': 2,
0068             },
0069           },
0070         }]
0071       ],
0072     },
0073 
0074     {
0075       'target_name': 'http_parser_strict',
0076       'type': 'static_library',
0077       'include_dirs': [ '.' ],
0078       'direct_dependent_settings': {
0079         'defines': [ 'HTTP_PARSER_STRICT=1' ],
0080         'include_dirs': [ '.' ],
0081       },
0082       'defines': [ 'HTTP_PARSER_STRICT=1' ],
0083       'sources': [ './http_parser.c', ],
0084       'conditions': [
0085         ['OS=="win"', {
0086           'msvs_settings': {
0087             'VCCLCompilerTool': {
0088               # Compile as C++. http_parser.c is actually C99, but C++ is
0089               # close enough in this case.
0090               'CompileAs': 2,
0091             },
0092           },
0093         }]
0094       ],
0095     },
0096 
0097     {
0098       'target_name': 'test-nonstrict',
0099       'type': 'executable',
0100       'dependencies': [ 'http_parser' ],
0101       'sources': [ 'test.c' ]
0102     },
0103 
0104     {
0105       'target_name': 'test-strict',
0106       'type': 'executable',
0107       'dependencies': [ 'http_parser_strict' ],
0108       'sources': [ 'test.c' ]
0109     }
0110   ]
0111 }