1. Keli Hu
  2. ibapi

Commits

Keli Hu  committed 1e37593

use static linking instead

  • Participants
  • Parent commits 1c3f33e
  • Branches default

Comments (0)

Files changed (1)

File premake4.lua

View file
  • Ignore whitespace
 solution "ibapi"
     configurations { "Debug", "Release" }
-    --location ( "build/" .. _ACTION )
-    --includedirs { "Shared", "PosixSocketClient" }    
     buildoptions { "-Wall"} 
     
     project "libibapi"
-        kind "SharedLib"
+        kind "StaticLib"
         language "C++"
         files { "*.h", "*.cpp" }
         excludes { "Main.cpp" }
         targetname "ibapi"
  
-        configuration "Debug"
+        configuration "Debug*"
             defines { "DEBUG", "IB_USE_STD_STRING" }
             flags { "Symbols" }
-            --objdir ( "build/" .. _ACTION .. "/obj/debug/")
-            --targetdir ( "build/" .. _ACTION .. "/bin/debug/")
-        configuration "Release"
+        configuration "Release*"
             defines { "NDEBUG", "IB_USE_STD_STRING" }
             flags { "Optimize" }    
-            --objdir ( "build/" .. _ACTION .. "/obj/release/")
-            --targetdir ( "build/" .. _ACTION .. "/bin/release/")
 
     project "ibapitest"
         kind "ConsoleApp"
             defines { "DEBUG", "IB_USE_STD_STRING" }
             flags { "Symbols" }
             links { "libibapi" }
-            -- objdir ( "build/" .. _ACTION .. "/obj/debug/")
-            -- targetdir ( "build/" .. _ACTION .. "/bin/debug/")
         configuration "Release"
             defines { "NDEBUG", "IB_USE_STD_STRING" }
             flags { "Optimize" }    
             links { "libibapi" }
-            -- objdir ( "build/" .. _ACTION .. "/obj/release/")
-            -- targetdir ( "build/" .. _ACTION .. "/bin/release/")
 
 if _ACTION == "clean" then
     os.rmdir("obj")