peg.gyp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. {
  2. 'targets': [
  3. {
  4. 'target_name': 'peg',
  5. 'type': 'executable',
  6. 'msvs_guid': '5ECEC9E5-8F23-47B6-93E0-C3B328B3BE65',
  7. 'sources': [
  8. 'peg.c',
  9. 'tree.c',
  10. 'compile.c',
  11. ],
  12. 'conditions': [
  13. ['OS=="win"', {
  14. 'include_dirs': [
  15. 'win',
  16. ],
  17. 'sources': [
  18. 'win/getopt.c',
  19. ],
  20. }],
  21. ],
  22. },
  23. {
  24. 'target_name': 'leg',
  25. 'type': 'executable',
  26. 'msvs_guid': '5ECEC9E5-8F23-47B6-93E0-C3B328B3BE66',
  27. 'sources': [
  28. 'leg.c',
  29. 'tree.c',
  30. 'compile.c',
  31. ],
  32. 'conditions': [
  33. ['OS=="win"', {
  34. 'include_dirs': [
  35. 'win',
  36. ],
  37. 'sources': [
  38. 'win/getopt.c',
  39. ],
  40. }],
  41. ],
  42. },
  43. ],
  44. 'target_defaults': {
  45. 'configurations': {
  46. 'Debug': {
  47. 'defines': [
  48. 'DEBUG',
  49. ],
  50. },
  51. 'Release': {
  52. 'defines': [
  53. 'NDEBUG',
  54. ],
  55. },
  56. },
  57. },
  58. # define default project settings
  59. 'conditions': [
  60. ['OS=="win"', {
  61. 'target_defaults': {
  62. 'defines': [
  63. 'WIN32',
  64. '_WINDOWS',
  65. ],
  66. 'msvs_settings': {
  67. 'VCLinkerTool': {
  68. 'GenerateDebugInformation': 'true',
  69. # SubSystem values:
  70. # 0 == not set
  71. # 1 == /SUBSYSTEM:CONSOLE
  72. # 2 == /SUBSYSTEM:WINDOWS
  73. 'SubSystem': '1',
  74. },
  75. },
  76. },
  77. }],
  78. ],
  79. }