Guest User

Zmq premake4 solution script.

a guest
Oct 19th, 2010
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.15 KB | None | 0 0
  1. function active_target( a )
  2.     return true
  3. end
  4.  
  5. function build_configs( base )
  6.     -- Debug Config
  7.     configuration "Debug"
  8.         objdir          ( path.join( path.join( base, _ACTION ), "obj" ) )
  9.  
  10.         configuration { "Debug", "x32" }
  11.             targetdir       ( path.join( path.join( base, _ACTION ), "bin/x32/Debug" ) )
  12.         configuration { "Debug", "x64" }
  13.             targetdir       ( path.join( path.join( base, _ACTION ), "bin/x64/Debug" ) )
  14.         configuration { "Debug" }
  15.  
  16.         defines         { "DEBUG" }
  17.         flags
  18.         {
  19.             "StaticRuntime",
  20.             "Symbols"
  21.         }
  22.  
  23.     -- Release Config
  24.     configuration "Release"
  25.         objdir          ( path.join( path.join( base, _ACTION ), "obj" ) )
  26.  
  27.         configuration { "Release", "x32" }
  28.             targetdir       ( path.join( path.join( base, _ACTION ), "bin/x32/Release" ) )
  29.         configuration { "Release", "x64" }
  30.             targetdir       ( path.join( path.join( base, _ACTION ), "bin/x64/Release" ) )
  31.         configuration { "Release" }
  32.  
  33.         defines         { "NDEBUG" }
  34.         flags
  35.         {
  36.             "StaticRuntime",
  37.             "OptimizeSpeed"
  38.         }
  39.  
  40.  
  41.     -- Clear Current
  42.     configuration {}
  43. end
  44.  
  45.  
  46. solution "zeromq"
  47.     platforms       { "x32", "x64" }
  48.     configurations  { "Debug", "Release" }
  49.     location        ( _ACTION )
  50.  
  51.     dofile "zeromq_project.lua"
Advertisement
Add Comment
Please, Sign In to add comment