[Build] Enable exceptions and Clang STL on Android

This commit is contained in:
Triang3l 2020-11-21 23:40:34 +03:00
parent 0dcc1b18d6
commit 233daa018d
1 changed files with 6 additions and 1 deletions

View File

@ -29,6 +29,7 @@ defines({
}) })
cppdialect("C++17") cppdialect("C++17")
exceptionhandling("On")
symbols("On") symbols("On")
-- TODO(DrChat): Find a way to disable this on other architectures. -- TODO(DrChat): Find a way to disable this on other architectures.
@ -146,6 +147,9 @@ filter({"platforms:Linux", "language:C++", "toolset:clang", "files:*.cc or *.cpp
"-stdlib=libstdc++", "-stdlib=libstdc++",
}) })
filter("platforms:Android")
system("android")
filter("platforms:Windows") filter("platforms:Windows")
system("windows") system("windows")
toolset("msc") toolset("msc")
@ -198,8 +202,9 @@ solution("xenia")
uuid("931ef4b0-6170-4f7a-aaf2-0fece7632747") uuid("931ef4b0-6170-4f7a-aaf2-0fece7632747")
startproject("xenia-app") startproject("xenia-app")
if os.istarget("android") then if os.istarget("android") then
architecture("ARM64") -- Not setting architecture as that's handled by ndk-build itself.
platforms({"Android"}) platforms({"Android"})
ndkstl("c++_static")
else else
architecture("x86_64") architecture("x86_64")
if os.istarget("linux") then if os.istarget("linux") then