| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- --
- -- Copyright 2010-2013 Branimir Karadzic. All rights reserved.
- -- License: http://www.opensource.org/licenses/BSD-2-Clause
- --
- solution "bx"
- configurations {
- "Debug",
- "Release",
- }
- platforms {
- "x32",
- "x64",
- "Native", -- for targets where bitness is not specified
- }
- language "C++"
- BX_DIR = (path.getabsolute("..") .. "/")
- local BX_BUILD_DIR = (BX_DIR .. ".build/")
- local BX_THIRD_PARTY_DIR = (BX_DIR .. "3rdparty/")
- defines {
- "BX_CONFIG_ENABLE_MSVC_LEVEL4_WARNINGS=1"
- }
- dofile (BX_DIR .. "premake/toolchain.lua")
- toolchain(BX_BUILD_DIR, BX_THIRD_PARTY_DIR)
- function copyLib()
- end
- dofile "bx.lua"
- dofile "unittest++.lua"
- project "bx.test"
- uuid "8a653da8-23d6-11e3-acb4-887628d43830"
- kind "ConsoleApp"
- debugdir (BX_DIR .. "tests")
- includedirs {
- BX_DIR .. "include",
- BX_THIRD_PARTY_DIR .. "UnitTest++/src/",
- }
- links {
- "UnitTest++",
- }
- files {
- BX_DIR .. "tests/**.cpp",
- BX_DIR .. "tests/**.H",
- }
- configuration { "vs*" }
- configuration { "android*" }
- kind "ConsoleApp"
- targetextension ".so"
- linkoptions {
- "-shared",
- }
- configuration { "nacl or nacl-arm" }
- kind "ConsoleApp"
- targetextension ".nexe"
- links {
- "ppapi",
- "pthread",
- }
- configuration { "pnacl" }
- kind "ConsoleApp"
- targetextension ".pexe"
- links {
- "ppapi",
- "pthread",
- }
- configuration { "linux-*" }
- links {
- "pthread",
- }
- configuration { "osx" }
- links {
- "Cocoa.framework",
- }
- configuration {}
- strip()
|