17:39
[skypekit:skypekit.git] / skypekit_2.0.0.190_29281_CB30 / examples / cpp / tutorial / functions.lua
1 function isWindows()
2         if (_ACTION == vs2005) or (_ACTION == vs2008) then return true end
3         if os.is("windows") then return true end
4         return false
5 end
6 function isMacOS()
7         if (_ACTION == xcode3) then return true end
8         if os.is("macosx") then return true end
9         return false
10 end
11
12 function createTutorialProject(m_name,m_files,m_uuid)
13   project(m_name)
14   uuid(m_uuid)
15   language "C++"
16   kind     "ConsoleApp"
17   local cppemb = "../../../../interfaces/skype/cpp_embedded/"
18   if os.is("windows") then
19     links { "Ws2_32" }          
20     includedirs { cppemb .. "/src/platform/threading/win/" }
21   else
22     links { "pthread" }  
23     includedirs { cppemb .. "src/platform/threading/pthread/" }    
24   end
25
26   files(m_files)
27   
28   includedirs { 
29                 cppemb .."/src/api/", 
30                 cppemb .."/src/ipc/",
31                 cppemb .."/src/types/",
32                 cppemb .."/src/platform/threading/",
33                 cppemb .."/src/platform/transport/",
34                 cppemb .."/src/platform/transport/tcp/",
35                 "../../../../ipc/cpp",
36                 "../../../../ipc/cpp/platform/se",
37                 "../apptoken/"
38         }
39                 
40   libdirs { cppemb .."/build/" }
41   links { "skypekit-cppwrapper_2_lib" }
42 end