-
-
Notifications
You must be signed in to change notification settings - Fork 618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android fixes from bliz #1112
Android fixes from bliz #1112
Changes from all commits
15d6c97
187a60f
03ef46d
2648ade
7ed2203
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,6 +65,7 @@ | |
"3.5", | ||
"3.6", | ||
"3.8", | ||
"5.0", | ||
}, | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ require ("android") | |
return { | ||
"test_android_files.lua", | ||
"test_android_project.lua", | ||
"test_config_props.lua" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
local p = premake | ||
local suite = test.declare("android_config_props") | ||
local vc2010 = p.vstudio.vc2010 | ||
local project = p.project | ||
|
||
|
||
-- | ||
-- Setup | ||
-- | ||
|
||
local wks, prj | ||
|
||
function suite.setup() | ||
p.action.set("vs2015") | ||
wks, prj = test.createWorkspace() | ||
end | ||
|
||
local function prepare() | ||
system "android" | ||
local cfg = test.getconfig(prj, "Debug") | ||
vc2010.configurationProperties(cfg) | ||
end | ||
|
||
|
||
-- | ||
-- Check the structure with the default project values. | ||
-- | ||
|
||
function suite.structureIsCorrect_onDefaultValues() | ||
prepare() | ||
test.capture [[ | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Android'" Label="Configuration"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This doesn't seem right to me, the value for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not my code! The tests run ;) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How can Android use the arch as the platform, and not be confused with windows configurations (that are also named for the arch)? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's something wrong with the test cases in general. We already had test cases for rtti and there a bug fixes here specifically for rtti. Somehow the tests are working differently in isolation and it might be why the platform is weird here too. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, this looks like the vs-android configuration. Microsoft uses the platform to indicate the architecture, not the system - they use |
||
<ConfigurationType>Application</ConfigurationType> | ||
<UseDebugLibraries>false</UseDebugLibraries> | ||
<CharacterSet>Unicode</CharacterSet> | ||
</PropertyGroup> | ||
]] | ||
end | ||
|
||
|
||
-- | ||
-- Check the configuration type for different architectures. | ||
-- | ||
|
||
function suite.architecture_ARM() | ||
architecture "ARM" | ||
prepare() | ||
test.capture [[ | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Android'" Label="Configuration"> | ||
<ConfigurationType>Application</ConfigurationType> | ||
<UseDebugLibraries>false</UseDebugLibraries> | ||
<CharacterSet>Unicode</CharacterSet> | ||
</PropertyGroup> | ||
]] | ||
end | ||
|
||
-- | ||
-- Check toolchainversion | ||
-- | ||
|
||
function suite.toolchainversion_clang_5_0() | ||
toolchainversion '5.0' | ||
prepare() | ||
test.capture [[ | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Android'" Label="Configuration"> | ||
<ConfigurationType>Application</ConfigurationType> | ||
<UseDebugLibraries>false</UseDebugLibraries> | ||
<CharacterSet>Unicode</CharacterSet> | ||
<PlatformToolset>Clang_5_0</PlatformToolset> | ||
</PropertyGroup> | ||
]] | ||
end | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to see this list disappear one day, a function that checks if there's a
.
and that both sides contain a number should be sufficient. We just need to generate{Toolset}_{LeftNumber}_{RightNumber}
- a PR into core shouldn't be required to use a different version of the toolset. I'm happy for a warning to be emit when encountering a toolset outside of this list, but only a warning not an error like we do now.