You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sg...@apache.org on 2015/11/11 07:29:00 UTC

docs commit: Document and .target-dir support on Windows (CB-9588 CB-8615)

Repository: cordova-docs
Updated Branches:
  refs/heads/master 98c345c5b -> 43992997f


Document <resource-file> and <framework>.target-dir support on Windows (CB-9588 CB-8615)

github close #416


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/43992997
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/43992997
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/43992997

Branch: refs/heads/master
Commit: 43992997f8ca0bdddee0d9f1c37735a89493b362
Parents: 98c345c
Author: sgrebnov <v-...@microsoft.com>
Authored: Mon Nov 9 23:06:08 2015 +0300
Committer: sgrebnov <v-...@microsoft.com>
Committed: Wed Nov 11 09:28:46 2015 +0300

----------------------------------------------------------------------
 www/docs/en/edge/plugin_ref/spec.md | 25 ++++++++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/43992997/www/docs/en/edge/plugin_ref/spec.md
----------------------------------------------------------------------
diff --git a/www/docs/en/edge/plugin_ref/spec.md b/www/docs/en/edge/plugin_ref/spec.md
index c1002c9..ce86297 100644
--- a/www/docs/en/edge/plugin_ref/spec.md
+++ b/www/docs/en/edge/plugin_ref/spec.md
@@ -509,6 +509,23 @@ Android example:
 
     <resource-file src="FooPluginStrings.xml" target="res/values/FooPluginStrings.xml" />
 
+The Windows platform supports `resource-file` only and three additional attributes
+(all optional) to refine when the resource-file should be included:
+
+* `arch`: Indicates that the file should only be included when building for the specified architecture.
+  Supported values are `x86`, `x64` or `ARM`.
+
+* `device-target`: Indicates that the file should only be included when building for the specified target device
+  type. Supported values are `win` (or `windows`), `phone` or `all`.
+
+* `versions`: Indicates that the file should only be included when building for versions that match the specified version
+  string. Value can be any valid node semantic version range string.
+
+Windows example:
+
+    <resource-file src="src/windows/win81/MobServices.pri" target="win81/MobServices.pri"
+    device-target="windows" versions="8.1" arch="x64"/>
+
 ## _lib-file_ Element
 
 Like source, resource, and header files, but specifically for
@@ -603,7 +620,7 @@ application project. It allows to add references between sub projects like in th
 
 ### _framework_ for Windows
 
-The Windows platform supports three additional attributes (all optional) to refine when the framework should be included:
+The Windows platform supports four additional attributes (all optional) to refine when the framework should be included and to adjust target location:
 
     <framework src="path/to/project/LibProj.csproj" custom="true" type="projectReference"/>
 
@@ -616,12 +633,18 @@ type. Supported values are `win` (or `windows`), `phone` or `all`.
 The `versions` attribute indicates that the framework should only be included when building for versions that match the
 specified version string. Value can be any valid node semantic version range string.
 
+The `target-dir` attribute indicates a subdirectory into which the framework should be
+copied. In practice, this is most important when plugin contains different framework
+versions for different chip architectures or device targets, but which have the same name. This allows you to specify different subfolders for each framework version so that they
+don't overlap each other.
+
 Examples of using these Windows specific attributes:
 
     <framework src="src/windows/example.dll" arch="x64" />
     <framework src="src/windows/example.dll" versions=">=8.0" />
     <framework src="src/windows/example.vcxproj" type="projectReference" target="win" />
     <framework src="src/windows/example.vcxproj" type="projectReference" target="all" versions="8.1" arch="x86" />
+    <framework src="src/windows/example.dll" target-dir="bin/x64" arch="x64" custom="true"/>
 
 ## _info_ Element
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org