[TIMOB-24402] Windows: Building module for specific platform/architecture
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-03-20T18:32:00.000+0000 |
Affected Version/s | Release 6.0.0 |
Fix Version/s | Release 6.1.0 |
Components | Windows |
Labels | n/a |
Reporter | Kota Iguchi |
Assignee | Kota Iguchi |
Created | 2017-02-15T05:58:26.000+0000 |
Updated | 2017-03-24T17:41:26.000+0000 |
Description
When we build module, currently there's no way to limit target platform/architecture, like building "ARM only module" or "Windows 10 only module" etc. This may become a issue when developer have dependency libraries/binaries that is build against specific target.
--So we might want to add new command line option to specify target platform and architecture for module build command--
Steps:
1. Create your module project
appc new -n test --id com.example.test
when prompted for the project type, select "Titanium Module"
2. Limit for "Windows 10 only"
Edit **YOUR_MODULE_PROJECT/windows/timodule.xml**
<windows>
<manifest>
<uses-sdk targetSdkVersion="10.0"/>
</manifest>
</windows>
3. Limit for"ARM only"
Edit **YOUR_MODULE_PROJECT/windows/manifest**
BEFORE
architectures: ARM x86
AFTER (Remove **ARM**)
architectures: x86
4. Build it
appc ti build -p windows --build-only
This should create module zip that targets Windows 10 only. You can see there is win10
folder and there's no phone
and store
folder. Also there should be no win10/ARM
folder.
https://github.com/appcelerator/titanium_mobile_windows/pull/956
Verified fixed in 6.1.0.v20170323174407. Test and other information can be found at: https://github.com/appcelerator/titanium_mobile_windows/pull/956.