Guest User

Untitled

a guest
Apr 2nd, 2015
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.57 KB | None | 0 0
  1. -------------------------------------------------------------------------------
  2. -- engine.lua
  3. --
  4. -- References were used from Andrew Mac's Torque6 engine, which is under
  5. -- the same license (MIT)
  6. -- https://github.com/andr3wmac/Torque6
  7. -- Copyright (c) 2015 Andrew Mac
  8. --
  9. -- Copyright (c) 2015 Jeff Hutchinson
  10. -- Copyright (c) 2015 Adric Blake
  11. --
  12. -- Permission is hereby granted, free of charge, to any person obtaining a copy
  13. -- of this software and associated documentation files (the "Software"), to
  14. -- deal in the Software without restriction, including without limitation the
  15. -- rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  16. -- sell copies of the Software, and to permit persons to whom the Software is
  17. -- furnished to do so, subject to the following conditions:
  18. --
  19. -- The above copyright notice and this permission notice shall be included in
  20. -- all copies or substantial portions of the Software.
  21. --
  22. -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  23. -- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  24. -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  25. -- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  26. -- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  27. -- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  28. -- IN THE SOFTWARE.
  29. -------------------------------------------------------------------------------
  30.  
  31. project "Engine"
  32.    language "C++"
  33.    kind "ConsoleApp"
  34.    
  35.    includedirs {
  36.       "../../engine/source",
  37.       "../../engine/lib/ljpeg",
  38.       "../../engine/lib/lpng",
  39.       "../../engine/lib/zlib",
  40.    }
  41.    
  42.    files {
  43.       "../../engine/source/algorithm/**",
  44.       "../../engine/source/audio/**",
  45.       "../../engine/source/collection/**",
  46.       "../../engine/source/console/**",
  47.       "../../engine/source/debug/**",
  48.       "../../engine/source/delegates/**",
  49.       "../../engine/source/game/**",
  50.       "../../engine/source/graphics/**",
  51.       "../../engine/source/gui/**",
  52.       "../../engine/source/input/**",
  53.       "../../engine/source/io/**",
  54.       "../../engine/source/math/*.cpp",
  55.       "../../engine/source/math/*.h",
  56.       "../../engine/source/memory/**",
  57.       "../../engine/source/messaging/**",
  58.       "../../engine/source/network/**",
  59.       "../../engine/source/platform/**",
  60.       "../../engine/source/sim/**",
  61.       "../../engine/source/string/**",
  62.       "../../engine/source/testing/**",
  63.       "../../engine/source/utility/**",
  64.       "../../engine/source/torqueConfig.h",
  65.    }
  66.    
  67.    -- Platform specific files for Windows
  68.    configuration "Windows"
  69.       files {
  70.          "../../engine/source/platformWin32/**",
  71.          "../../engine/source/math/*.asm",
  72.       }
  73.       removefiles {
  74.          "../../engine/source/platform/platformNetAsync.unix.cpp",
  75.       }
  76.    
  77.    -- Platform specific files for OSX  
  78.    configuration "macosx"
  79.       files {
  80.          "../../engine/source/platformOSX",
  81.       }
  82.      
  83.    -- Platform specific files for BSD and Linux based systems
  84.    configuration "linux or bsd"
  85.       files {
  86.          "../../engine/source/platformX86Unix/**",
  87.       }
  88.    
  89.    configuration "Debug"
  90.       targetname "Game_DEBUG"
  91.       defines { "_DEBUG", "TORQUE_DEBUG", "TORQUE_ENABLE_PROFILER", "TORQUE_DEBUG_GUARD", }
  92.       flags   { "Symbols" }
  93.      
  94.    configuration "Release"
  95.       defines { "NDEBUG" }
  96.       flags   { "OptimizeSpeed" }
  97.      
  98.    configuration "vs*"
  99.       defines      { "_CRT_SECURE_NO_WARNINGS", "UNICODE" }
  100.       flags        { "EnableSSE2", "NoNativeWChar" }
  101.       buildoptions { "/wd4100", "/wd4800" }
  102.      
  103.    configuration "windows"
  104.       targetdir "../Windows"
  105.       links {
  106.          "COMCTL32",
  107.          "COMDLG32",
  108.          "USER32",
  109.          "ADVAPI32",
  110.          "GDI32",
  111.          "RPCRT4",
  112.          "WINMM",
  113.          "WSOCK32",
  114.          "vfw32",
  115.          "Imm32",
  116.          "shell32",
  117.          "shlwapi",
  118.          "ole32",
  119.          "opengl32",
  120.       }
  121.      
  122.    configuration "linux"
  123.       targetdir "../GNU_Linux"
  124.       links { "dl" }
  125.      
  126.    configuration "bsd"
  127.       targetdir "../BSD"
  128.      
  129.    configuration "macosx"
  130.       targetdir "../OSX"
  131.       defines { }
  132.       links {
  133.          "Cocoa.framework",
  134.          "CoreServices.framework",
  135.          "Services.framework",
  136.          "OpenGL.framework",
  137.          "OpenAL.framework",
  138.       }
  139.      
  140.    configuration { "macosx", "gmake" }
  141.       buildoptions {"-mmacosx-version-min=10.4" }
  142.       linkoptions  {"-mmacosx-version-min=10.4" }
Advertisement
Add Comment
Please, Sign In to add comment