mirror of
https://github.com/bkaradzic/bx.git
synced 2026-06-08 03:03:48 +00:00
Updated genie windows binary.
This commit is contained in:
94
scripts/genie.lua
Normal file
94
scripts/genie.lua
Normal file
@@ -0,0 +1,94 @@
|
||||
--
|
||||
-- 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 "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()
|
||||
Reference in New Issue
Block a user