common.gypi 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # ===
  2. # This configuration defines the differences between Release and Debug builds.
  3. # Some miscellaneous Windows settings are also defined here.
  4. # ===
  5. {
  6. 'variables': { 'sqlite3%': '' },
  7. 'target_defaults': {
  8. 'default_configuration': 'Release',
  9. 'msvs_settings': {
  10. 'VCCLCompilerTool': {
  11. 'ExceptionHandling': 1,
  12. },
  13. },
  14. 'conditions': [
  15. ['OS == "win"', {
  16. 'defines': ['WIN32'],
  17. }],
  18. ],
  19. 'configurations': {
  20. 'Debug': {
  21. 'defines!': [
  22. 'NDEBUG',
  23. ],
  24. 'defines': [
  25. 'DEBUG',
  26. '_DEBUG',
  27. 'SQLITE_DEBUG',
  28. 'SQLITE_MEMDEBUG',
  29. 'SQLITE_ENABLE_API_ARMOR',
  30. 'SQLITE_WIN32_MALLOC_VALIDATE',
  31. ],
  32. 'cflags': [
  33. '-O0',
  34. ],
  35. 'xcode_settings': {
  36. 'MACOSX_DEPLOYMENT_TARGET': '10.7',
  37. 'GCC_OPTIMIZATION_LEVEL': '0',
  38. 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'YES',
  39. },
  40. 'msvs_settings': {
  41. 'VCLinkerTool': {
  42. 'GenerateDebugInformation': 'true',
  43. },
  44. },
  45. },
  46. 'Release': {
  47. 'defines!': [
  48. 'DEBUG',
  49. '_DEBUG',
  50. ],
  51. 'defines': [
  52. 'NDEBUG',
  53. ],
  54. 'cflags': [
  55. '-O3',
  56. ],
  57. 'xcode_settings': {
  58. 'MACOSX_DEPLOYMENT_TARGET': '10.7',
  59. 'GCC_OPTIMIZATION_LEVEL': '3',
  60. 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'NO',
  61. 'DEAD_CODE_STRIPPING': 'YES',
  62. 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES',
  63. },
  64. },
  65. },
  66. },
  67. }