libexpat.gyp 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. # This file is used with the GYP meta build system.
  2. # http://code.google.com/p/gyp
  3. # To build try this:
  4. # svn co http://gyp.googlecode.com/svn/trunk gyp
  5. # ./gyp/gyp -f make --depth=`pwd` libexpat.gyp
  6. # make
  7. # ./out/Debug/test
  8. {
  9. 'target_defaults': {
  10. 'default_configuration': 'Debug',
  11. 'configurations': {
  12. # TODO: hoist these out and put them somewhere common, because
  13. # RuntimeLibrary MUST MATCH across the entire project
  14. 'Debug': {
  15. 'defines': [ 'DEBUG', '_DEBUG' ],
  16. 'msvs_settings': {
  17. 'VCCLCompilerTool': {
  18. 'RuntimeLibrary': 1, # static debug
  19. },
  20. },
  21. },
  22. 'Release': {
  23. 'defines': [ 'NDEBUG' ],
  24. 'msvs_settings': {
  25. 'VCCLCompilerTool': {
  26. 'RuntimeLibrary': 0, # static release
  27. },
  28. },
  29. }
  30. },
  31. 'msvs_settings': {
  32. 'VCCLCompilerTool': {
  33. },
  34. 'VCLibrarianTool': {
  35. },
  36. 'VCLinkerTool': {
  37. 'GenerateDebugInformation': 'true',
  38. },
  39. },
  40. },
  41. 'targets': [
  42. {
  43. 'variables': { 'target_arch%': 'ia32' }, # default for node v0.6.x
  44. 'target_name': 'expat',
  45. 'product_prefix': 'lib',
  46. 'type': 'static_library',
  47. 'sources': [
  48. 'lib/xmlparse.c',
  49. 'lib/xmltok.c',
  50. 'lib/xmlrole.c',
  51. ],
  52. 'defines': [
  53. 'PIC',
  54. 'HAVE_EXPAT_CONFIG_H'
  55. ],
  56. 'cflags': [
  57. '-Wno-missing-field-initializers'
  58. ],
  59. 'xcode_settings': {
  60. 'OTHER_CFLAGS': [
  61. '-Wno-missing-field-initializers'
  62. ]
  63. },
  64. 'include_dirs': [
  65. '.',
  66. 'lib',
  67. ],
  68. 'direct_dependent_settings': {
  69. 'include_dirs': [
  70. '.',
  71. 'lib',
  72. ],
  73. 'conditions': [
  74. ['OS=="win"', {
  75. 'defines': [
  76. 'XML_STATIC'
  77. ]
  78. }]
  79. ],
  80. },
  81. },
  82. {
  83. 'target_name': 'version',
  84. 'type': 'executable',
  85. 'dependencies': [ 'expat' ],
  86. 'sources': [ 'version.c' ]
  87. },
  88. ]
  89. }