Edit

kc3-lang/brotli/premake5.lua

Branch :

  • Show log

    Commit

  • Author : Eugene Kliuchnikov
    Date : 2017-04-23 14:07:08
    Hash : 6ece1d87
    Message : Move files & update paths (#541) * Move files & update paths * Rename build to scripts. * Fix paths * Fix script.

  • premake5.lua
  • -- A solution contains projects, and defines the available configurations
    solution "brotli"
    configurations { "Release", "Debug" }
    targetdir "bin"
    location "buildfiles"
    flags "RelativeLinks"
    includedirs { "c/include" }
    
    filter "configurations:Release"
      optimize "Speed"
      flags { "StaticRuntime" }
    
    filter "configurations:Debug"
      flags { "Symbols" }
    
    configuration { "gmake" }
      buildoptions { "-Wall -fno-omit-frame-pointer" }
      location "buildfiles/gmake"
    
    configuration { "xcode4" }
      location "buildfiles/xcode4"
    
    configuration "linux"
      links "m"
    
    configuration { "macosx" }
      defines { "OS_MACOSX" }
    
    project "brotlicommon"
      kind "SharedLib"
      language "C"
      files { "c/common/**.h", "c/common/**.c" }
    
    project "brotlicommon_static"
      kind "StaticLib"
      targetname "brotlicommon"
      language "C"
      files { "c/common/**.h", "c/common/**.c" }
    
    project "brotlidec"
      kind "SharedLib"
      language "C"
      files { "c/dec/**.h", "c/dec/**.c" }
      links "brotlicommon"
    
    project "brotlidec_static"
      kind "StaticLib"
      targetname "brotlidec"
      language "C"
      files { "c/dec/**.h", "c/dec/**.c" }
      links "brotlicommon_static"
    
    project "brotlienc"
      kind "SharedLib"
      language "C"
      files { "c/enc/**.h", "c/enc/**.c" }
      links "brotlicommon"
    
    project "brotlienc_static"
      kind "StaticLib"
      targetname "brotlienc"
      language "C"
      files { "c/enc/**.h", "c/enc/**.c" }
      links "brotlicommon_static"
    
    project "bro"
      kind "ConsoleApp"
      language "C"
      linkoptions "-static"
      files { "c/tools/bro.c" }
      links { "brotlicommon_static", "brotlidec_static", "brotlienc_static" }