1 # This file is used with the GYP meta build system.
2 # http://code.google.com/p/gyp/
4 # svn co http://gyp.googlecode.com/svn/trunk gyp
5 # ./gyp/gyp -f make --depth=`pwd` http_parser.gyp
9 'default_configuration': 'Debug',
11 # TODO: hoist these out and put them somewhere common, because
12 # RuntimeLibrary MUST MATCH across the entire project
14 'defines': [ 'DEBUG', '_DEBUG' ],
15 'cflags': [ '-Wall', '-Wextra', '-O0', '-g', '-ftrapv' ],
18 'RuntimeLibrary': 1, # static debug
23 'defines': [ 'NDEBUG' ],
24 'cflags': [ '-Wall', '-Wextra', '-O3' ],
27 'RuntimeLibrary': 0, # static release
38 'GenerateDebugInformation': 'true',
52 'target_name': 'http_parser',
53 'type': 'static_library',
54 'include_dirs': [ '.' ],
55 'direct_dependent_settings': {
56 'defines': [ 'HTTP_PARSER_STRICT=0' ],
57 'include_dirs': [ '.' ],
59 'defines': [ 'HTTP_PARSER_STRICT=0' ],
60 'sources': [ './http_parser.c', ],
65 # Compile as C++. http_parser.c is actually C99, but C++ is
66 # close enough in this case.
75 'target_name': 'http_parser_strict',
76 'type': 'static_library',
77 'include_dirs': [ '.' ],
78 'direct_dependent_settings': {
79 'defines': [ 'HTTP_PARSER_STRICT=1' ],
80 'include_dirs': [ '.' ],
82 'defines': [ 'HTTP_PARSER_STRICT=1' ],
83 'sources': [ './http_parser.c', ],
88 # Compile as C++. http_parser.c is actually C99, but C++ is
89 # close enough in this case.
98 'target_name': 'test-nonstrict',
100 'dependencies': [ 'http_parser' ],
101 'sources': [ 'test.c' ]
105 'target_name': 'test-strict',
106 'type': 'executable',
107 'dependencies': [ 'http_parser_strict' ],
108 'sources': [ 'test.c' ]