-
-
Notifications
You must be signed in to change notification settings - Fork 621
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1203 from tempura-sukiyaki/vsandroid-javacompile
Add support for JavaCompile in vsandroid
- Loading branch information
Showing
3 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
require ("android") | ||
|
||
return { | ||
"test_android_project.lua" | ||
"test_android_files.lua", | ||
"test_android_project.lua", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
local p = premake | ||
local suite = test.declare("test_android_files") | ||
local vc2010 = p.vstudio.vc2010 | ||
|
||
|
||
-- | ||
-- Setup | ||
-- | ||
|
||
local wks, prj | ||
|
||
function suite.setup() | ||
p.action.set("vs2015") | ||
wks = test.createWorkspace() | ||
end | ||
|
||
local function prepare() | ||
prj = test.getproject(wks, 1) | ||
system "android" | ||
vc2010.files(prj) | ||
end | ||
|
||
|
||
-- | ||
-- Test filtering of source files into the correct categories. | ||
-- | ||
|
||
function suite.none_onJavaFile() | ||
files { "hello.java" } | ||
prepare() | ||
test.capture [[ | ||
<ItemGroup> | ||
<None Include="hello.java" /> | ||
</ItemGroup> | ||
]] | ||
end | ||
|
||
function suite.javaCompile_onJavaFile() | ||
kind "androidproj" | ||
files { "hello.java" } | ||
prepare() | ||
test.capture [[ | ||
<ItemGroup> | ||
<JavaCompile Include="hello.java" /> | ||
</ItemGroup> | ||
]] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters