<commit_before>-- A solution contains projects, and defines the available configurations
solution "Dagon"
   configurations { "Debug", "Release" }
   platforms { "x64" }
   location "Build"
      
   configuration { "Debug" }
   targetdir "Build/Debug"
 
   configuration { "Release" }
   targetdir "Build/Release"

  if _ACTION == "clean" then
    os.rmdir("Build")
  end   
 
   -- A project defines one build target
   project "Dagon"
      targetname "dagon"
      location "Build"
      objdir "Build/Objects"
   
      kind "ConsoleApp"
      language "C++"
      files { "Source/**.h", "Source/**.c", "Source/**.cpp" }

      includedirs { "Libraries/Headers", "Libraries/Headers/freetype2" }
      libdirs { "Libraries/Mac" }

      links { "AudioToolbox.framework", "AudioUnit.framework", 
              "Carbon.framework", "Cocoa.framework", 
              "CoreAudio.framework", "CoreFoundation.framework",
              "ForceFeedback.framework", "IOKit.framework",
              "OpenAL.framework", "OpenGL.framework" }
      links { "freetype", "GLEW", "lua", "ogg", "SDL2",
              "vorbis", "vorbisfile", "theoradec" }
 
      configuration "Debug"
         defines { "_DEBUG", "DEBUG" }
         flags { "Symbols" }
 
      configuration "Release"
         defines { "NDEBUG" }
         flags { "Optimize" }
<commit_msg>Improved premake, allowing easy building on Linux distros.<commit_after>-- Dagon - An Adventure Game Engine
solution "Dagon"
  configurations { "Release", "Debug" }
  platforms { "native", "universal" }
  location "Build"
  
  configuration { "Release" }
  defines { "NDEBUG" }
  flags { "Optimize" }
  targetdir "Build/Release"  
      
  configuration { "Debug" }
  defines { "_DEBUG", "DEBUG" }
  flags { "Symbols" }
  targetdir "Build/Debug"

  if _ACTION == "clean" then
    os.rmdir("Build")
  end
 
  project "Dagon"
    targetname "dagon"
    defines { "GLEW_STATIC", "OV_EXCLUDE_STATIC_CALLBACKS" }
    location "Build"
    objdir "Build/Objects"
     
    kind "ConsoleApp"
    language "C++"
    files { "Source/**.h", "Source/**.c", "Source/**.cpp" }
    
    libraries = { "freetype", "GLEW", "lua", "ogg", "SDL2",
                  "vorbis", "vorbisfile", "theoradec" }
                  
    if os.get() == "linux" then
      for i = 1, #libraries do
        local lib = libraries[i]
        if os.findlib(lib) == nil then
          print ("Library not found:", lib)
          print "Aborting..."
          os.exit()
        end
      end
    end
      
    links { libraries }
  
    configuration "macosx"
      includedirs { "Mac/Headers", "Mac/Headers/freetype2" }
      libdirs { "Mac/Libraries" }
    
      links { "AudioToolbox.framework", "AudioUnit.framework", 
              "Carbon.framework", "Cocoa.framework", 
              "CoreAudio.framework", "CoreFoundation.framework",
              "ForceFeedback.framework", "IOKit.framework",
              "OpenAL.framework", "OpenGL.framework" }
              
    configuration "windows"
      includedirs { "Windows/Headers", "Windows/Headers/freetype" }
      libdirs { "Windows/Libraries" }
      
      links { "opengl32", "glu32", "Imm32", "version", "winmm" }
 
{'fraction_non_alphanumeric': 0.14124293785310735, 'fraction_numerical': 0.004080351537978657, 'mean_word_length': 2.3547368421052632, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1817672', 'n_tokens_mistral': 1013, 'n_tokens_neox': 982, 'n_words': 227}