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.

26 lines
618 B

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