
with "soundlib_osx.gpr";


project av_osx is


	for Languages use ("Ada","C++");

   for Source_Dirs use (
		".",
		"./adautils",
		"./adabindings/gl",
		"./adabindings/sdl207ada",
		"./adabindings/AdaPngLib",
		"./adabindings/sfmlAudio",
		"./adabindings/dmitri",
		"./adabindings/Tables",
		"./adabindings/FreeTypeAda"
		);


   for Object_Dir use "./obj";
   for Exec_Dir use ".";

	package Naming is
		for Spec_Suffix ("Ada") use ".ads";
		for Body_Suffix ("Ada") use ".adb";
	end Naming;



   for Main use ("adaventure.adb");

	package Builder is
		for Executable ("adaventure.adb") use "adaventure_osx_gpr";
	end Builder;

   package Compiler is
      for Default_Switches ("Ada") use ("-c", "-gnat12", "-O2");
   end Compiler;


   package Linker is

      for Default_Switches ("Ada") use (
		"-lm",
		"-lz",
		"-lc++",

		"-Wl,-framework,ForceFeedback",
		"-Wl,-framework,CoreFoundation",
		"-Wl,-framework,Carbon",
		"-Wl,-framework,Cocoa",
		"-Wl,-framework,QuartzCore",
		"-Wl,-framework,IOKit",
		"-Wl,-framework,CoreAudio",
		"-Wl,-framework,AudioUnit",
		"-Wl,-framework,AudioToolBox",
		"-Wl,-framework,OpenGL",

		"./libs/osx/libSDL2-207x.a",
		"./libs/osx/libiconv.a",
		"./libs/osx/libsnd4ada.a",

		"-DSFML_STATIC",
		"./libs/osx/libsfml-audio-s.a",
		"./libs/osx/libsfml-system-s.a",
		"./libs/osx/libopenal.a",

		"./libs/osx/libfreetype.a",
		"./libs/osx/libpng16.a",
		"./libs/osx/libbz2.a",

		"./libs/osx/libvorbis.a",
		"./libs/osx/libvorbisenc.a",
		"./libs/osx/libvorbisfile.a",
		"./libs/osx/libogg.a",
		"./libs/osx/libFLAC-static.a"

		);

   end Linker;

end av_osx;
