mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
Updated the custom build task for Eclipse projects as well
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
|
||||
export module tk {
|
||||
export module tk {
|
||||
export enum TargetOS {
|
||||
iOS,
|
||||
Android,
|
||||
|
@ -198,13 +198,20 @@
|
||||
-->
|
||||
<PropertyGroup Condition=" '$(Configuration)' == 'iOS_Deploy'">
|
||||
<JSConfig>Deploy\xCode\Configuration.xml</JSConfig>
|
||||
<JSMainFile>main.js</JSMainFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Android_Deploy'">
|
||||
<JSConfig>Deploy\Eclipse\Configuration.xml</JSConfig>
|
||||
<JSMainFile>app.js</JSMainFile>
|
||||
</PropertyGroup>
|
||||
<UsingTask TaskName="BuildTasks.CopyForPlatformBuildTask" AssemblyFile="../../Build/lib/BuildTasks.dll" />
|
||||
<Target Name="AfterBuild">
|
||||
<CopyForPlatformBuildTask TargetPlatform="$(Configuration)" Platforms="iOS;Android" InputFiles="@(GeneratedJavascript)" DestinationFolder="$(OutputPath)\$(Configuration)\" JSConfigFile="$(JSConfig)" />
|
||||
<CopyForPlatformBuildTask TargetPlatform="$(Configuration)"
|
||||
Platforms="iOS;Android"
|
||||
InputFiles="@(GeneratedJavascript)"
|
||||
DestinationFolder="$(OutputPath)\$(Configuration)\"
|
||||
JSConfigFile="$(JSConfig)"
|
||||
AppMainJSFile="$(JSMainFile)"/>
|
||||
</Target>
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>
|
||||
|
1
Deploy/Eclipse/.gitignore
vendored
Normal file
1
Deploy/Eclipse/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/Configuration.xml
|
@ -1,3 +1,3 @@
|
||||
///<reference no-default-lib="true"/>
|
||||
///<reference path='libjs.d.ts' />
|
||||
///<reference path='declarations.d.ts' />
|
||||
///<reference path='declarations.d.ts' />
|
Reference in New Issue
Block a user