You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
716 B

  1. {deps, [
  2. {proper, ".*", {git, "https://github.com/manopapad/proper.git", "master"}}
  3. ]}.
  4. {port_sources, ["c_src/*.c"]}.
  5. {so_name, "jiffy.so"}.
  6. {port_envs, [
  7. %% Link the spidermonkey library
  8. {".*", "CFLAGS", "$CFLAGS -g -Wall"},
  9. %% Make sure to link -lstdc++ on linux or solaris
  10. {"(linux|solaris)", "LDFLAGS", "$LDFLAGS -lstdc++"},
  11. %% OS X Leopard flags for 64-bit
  12. {"darwin9.*-64$", "CXXFLAGS", "-m64"},
  13. {"darwin9.*-64$", "LDFLAGS", "-arch x86_64"},
  14. %% OS X Snow Leopard flags for 32-bit
  15. {"darwin10.*-32$", "CXXFLAGS", "-m32"},
  16. {"darwin10.*-32$", "LDFLAGS", "-arch i386"}
  17. ]}.
  18. {eunit_opts, [
  19. verbose,
  20. {report, {
  21. eunit_surefire, [{dir,"."}]
  22. }}
  23. ]}.