binding.gyp 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {
  2. "includes": [ "deps/common-sqlite.gypi" ],
  3. "variables": {
  4. "sqlite%":"internal",
  5. "sqlite_libname%":"sqlite3"
  6. },
  7. "targets": [
  8. {
  9. "target_name": "<(module_name)",
  10. "conditions": [
  11. ["sqlite != 'internal'", {
  12. "libraries": [
  13. "-L<@(sqlite)/lib",
  14. "-l<(sqlite_libname)"
  15. ],
  16. "include_dirs": [ "<@(sqlite)/include" ],
  17. "conditions": [ [ "OS=='linux'", {"libraries+":["-Wl,-rpath=<@(sqlite)/lib"]} ] ]
  18. },
  19. {
  20. "dependencies": [
  21. "deps/sqlite3.gyp:sqlite3"
  22. ]
  23. }
  24. ]
  25. ],
  26. "sources": [
  27. "src/database.cc",
  28. "src/node_sqlite3.cc",
  29. "src/statement.cc"
  30. ]
  31. },
  32. {
  33. "target_name": "action_after_build",
  34. "type": "none",
  35. "dependencies": [ "<(module_name)" ],
  36. "copies": [
  37. {
  38. "files": [ "<(PRODUCT_DIR)/<(module_name).node" ],
  39. "destination": "<(module_path)"
  40. }
  41. ]
  42. }
  43. ]
  44. }