GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — muduo/premake4.lua at master · chencl/muduo Expand file tree/ Copy pathpremake4.luaMore file actions 69 lines (62 loc) · 2.04 KB / Copy pathpremake4.luaFile metadata and controls69 lines (62 loc) · 2.04 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 solution "muduo" projectdir = basedir() builddir = path.join(projectdir, '../build') installdir = path.join(projectdir, '../install') bindir = path.join(installdir, 'bin') libdir = path.join(installdir, 'lib') includedir = path.join(installdir, 'include') curheadersdir = includedir -- set the sub header dir to install files function headersdir(dir) curheadersdir = dir end -- install header files function headers(files) if type(files) == 'string' then files = { files } end local finalfiles = {} for _, file in ipairs(files) do if file:find('*') then file = os.matchfiles(file) end finalfiles = table.join(finalfiles, file) end local source = table.concat(finalfiles, ' ') local target = path.join(includedir, curheadersdir) assert(os.mkdir(target)) assert(os.execute('cp ' .. source .. ' ' .. target)) end -- solution level settings configurations { "Debug", "Release" } location(builddir) includedirs(includedir) defines '_FILE_OFFSET_BITS=64' flags {"ExtraWarnings", "FatalWarnings", "Symbols"} buildoptions { '-g', '-march=native', '-rdynamic', '-Wconversion', '-Wno-unused-parameter', '-Wold-style-cast', '-Woverloaded-virtual', '-Wpointer-arith', '-Wshadow', '-Wwrite-strings', } configuration "Debug" buildoptions {'-O0'} targetsuffix('-g') configuration "Release" buildoptions {'-finline-limit=1000'} defines { "NDEBUG" } flags { "Optimize" } -- filter by kind not support in premake4.4 .4 .4 .4 beta -- configuration {"*App"} -- targetdir(bindir) -- configuration { "*Lib" } -- targetdir(libdir) -- configuration {} include 'muduo/base' include 'muduo/net' include 'examples/simple' |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |