Skip to content

Commit 88b6695

Browse files
committed
In JavaScriptEngineSwitcher.ChakraCore added experimental support of Windows (ARM)
1 parent c2e7d0e commit 88b6695

File tree

16 files changed

+154
-17
lines changed

16 files changed

+154
-17
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
3+
<metadata>
4+
<id>JavaScriptEngineSwitcher.ChakraCore.Native.win8-arm</id>
5+
<version>2.1.0-beta2</version>
6+
<title>JS Engine Switcher: ChakraCore for Windows (ARM)</title>
7+
<authors>Andrey Taritsyn</authors>
8+
<owners>Andrey Taritsyn</owners>
9+
<licenseUrl>http://github.com/Taritsyn/JavaScriptEngineSwitcher/blob/master/LICENSE</licenseUrl>
10+
<projectUrl>http://github.com/Taritsyn/JavaScriptEngineSwitcher</projectUrl>
11+
<iconUrl>https://raw.githubusercontent.com/Taritsyn/JavaScriptEngineSwitcher/master/Icons/JavaScriptEngineSwitcher_ChakraCore_Logo128x128.png</iconUrl>
12+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
13+
<description>This package complements the JavaScriptEngineSwitcher.ChakraCore package and contains the native implementation of ChakraCore version of October 29, 2016 for Windows (ARM).
14+
15+
This package is only compatible with .NET Core and .NET Framework 4.5.1.</description>
16+
<summary>This package complements the JavaScriptEngineSwitcher.ChakraCore package and contains the native implementation of ChakraCore version of October 29, 2016 for Windows (ARM).</summary>
17+
<copyright>Copyright (c) 2013-2016 Andrey Taritsyn - http://www.taritsyn.ru</copyright>
18+
<language>en-US</language>
19+
<tags>JavaScriptEngineSwitcher JavaScript ECMAScript ChakraCore Windows ARM</tags>
20+
</metadata>
21+
<files>
22+
<file src="**\*.*" exclude="build-package.cmd" />
23+
</files>
24+
</package>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
set project_name=JavaScriptEngineSwitcher.ChakraCore.Native.win8-arm
2+
set lib_dir=..\..\lib\ChakraCore
3+
set licenses_dir=..\..\Licenses
4+
set nuget_package_manager=..\..\.nuget\nuget.exe
5+
6+
call "..\setup.cmd"
7+
8+
rmdir runtimes /Q/S
9+
del chakra-core-license.txt /Q/S
10+
11+
xcopy "%lib_dir%\win8-arm\ChakraCore.dll" runtimes\win8-arm\native\
12+
copy "%licenses_dir%\chakra-core-license.txt" chakra-core-license.txt /Y
13+
14+
%nuget_package_manager% pack "..\%project_name%\%project_name%.nuspec"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<None Include="$(MSBuildThisFileDirectory)..\runtimes\win8-arm\native\ChakraCore.dll">
5+
<Link>arm\ChakraCore.dll</Link>
6+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
7+
<Visible>False</Visible>
8+
</None>
9+
</ItemGroup>
10+
</Project>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+

2+
3+
--------------------------------------------------------------------------------
4+
README file for JS Engine Switcher: ChakraCore for Windows ARM v2.1.0 Beta 2
5+
6+
--------------------------------------------------------------------------------
7+
8+
Copyright (c) 2013-2016 Andrey Taritsyn - http://www.taritsyn.ru
9+
10+
11+
===========
12+
DESCRIPTION
13+
===========
14+
This package complements the JavaScriptEngineSwitcher.ChakraCore package and
15+
contains the native implementation of ChakraCore version of October 29, 2016 for
16+
Windows (ARM).
17+
18+
This package is only compatible with .NET Core and .NET Framework 4.5.1.
19+
20+
=============
21+
DOCUMENTATION
22+
=============
23+
See documentation on GitHub -
24+
http://github.com/Taritsyn/JavaScriptEngineSwitcher
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
param($installPath, $toolsPath, $package, $project)
2+
3+
if ($project.Type -eq "Web Site") {
4+
$runtimesDirectoryPath = Join-Path $installPath "runtimes"
5+
$projectDirectoryPath = $project.Properties.Item("FullPath").Value
6+
$binDirectoryPath = Join-Path $projectDirectoryPath "bin"
7+
$assemblyFileName = "ChakraCore.dll"
8+
9+
$assemblyArmDestDirectoryPath = Join-Path $binDirectoryPath "arm"
10+
if (!(Test-Path $assemblyArmDestDirectoryPath)) {
11+
New-Item -ItemType Directory -Force -Path $assemblyArmDestDirectoryPath
12+
}
13+
14+
$assemblyArmSourceFilePath = Join-Path $runtimesDirectoryPath ("win8-arm/native/" + $assemblyFileName)
15+
Copy-Item $assemblyArmSourceFilePath $assemblyArmDestDirectoryPath -Force
16+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
param($installPath, $toolsPath, $package, $project)
2+
3+
if ($project.Type -eq "Web Site") {
4+
$projectDirectoryPath = $project.Properties.Item("FullPath").Value
5+
$binDirectoryPath = Join-Path $projectDirectoryPath "bin"
6+
$assemblyFileName = "ChakraCore.dll"
7+
8+
$assemblyArmDirectoryPath = Join-Path $binDirectoryPath "arm"
9+
$assemblyArmFilePath = Join-Path $assemblyArmDirectoryPath $assemblyFileName
10+
11+
if (Test-Path $assemblyArmFilePath) {
12+
Remove-Item $assemblyArmFilePath -Force
13+
}
14+
}

NuGet/JavaScriptEngineSwitcher.ChakraCore/JavaScriptEngineSwitcher.ChakraCore.nuspec

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,11 @@ This package does not contain the native implementations of ChakraCore. Therefor
1616

1717
* JavaScriptEngineSwitcher.ChakraCore.Native.win-x86
1818
* JavaScriptEngineSwitcher.ChakraCore.Native.win-x64
19+
* JavaScriptEngineSwitcher.ChakraCore.Native.win8-arm
1920
* JavaScriptEngineSwitcher.ChakraCore.Native.debian-x64
2021
* JavaScriptEngineSwitcher.ChakraCore.Native.osx-x64</description>
2122
<summary>JavaScriptEngineSwitcher.ChakraCore contains adapter `ChakraCoreJsEngine` (wrapper for the ChakraCore).</summary>
22-
<releaseNotes>1. Fixed a errors, that occurred during marshaling of Unicode strings in Unix-based operating systems;
23-
2. Native assemblies have been moved to separate packages: JavaScriptEngineSwitcher.ChakraCore.Native.win-x86 and JavaScriptEngineSwitcher.ChakraCore.Native.win-x64;
24-
3. ChakraCore was updated to version of October 29, 2016;
25-
4. New version of the ChakraCore for Windows requires `msvcp140.dll` assembly from the Visual C++ Redistributable for Visual Studio 2015;
26-
5. Added the JavaScriptEngineSwitcher.ChakraCore.Native.debian-x64 and JavaScriptEngineSwitcher.ChakraCore.Native.osx-x64 packages.</releaseNotes>
23+
<releaseNotes>Added experimental support of Windows (ARM).</releaseNotes>
2724
<copyright>Copyright (c) 2013-2016 Andrey Taritsyn - http://www.taritsyn.ru</copyright>
2825
<language>en-US</language>
2926
<tags>JavaScriptEngineSwitcher JavaScript ECMAScript ChakraCore</tags>

NuGet/JavaScriptEngineSwitcher.ChakraCore/readme.txt

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,14 @@
2323

2424
* JavaScriptEngineSwitcher.ChakraCore.Native.win-x86
2525
* JavaScriptEngineSwitcher.ChakraCore.Native.win-x64
26+
* JavaScriptEngineSwitcher.ChakraCore.Native.win8-arm
2627
* JavaScriptEngineSwitcher.ChakraCore.Native.debian-x64
2728
* JavaScriptEngineSwitcher.ChakraCore.Native.osx-x64
2829

2930
=============
3031
RELEASE NOTES
3132
=============
32-
1. Fixed a errors, that occurred during marshaling of Unicode strings in
33-
Unix-based operating systems;
34-
2. Native assemblies have been moved to separate packages:
35-
JavaScriptEngineSwitcher.ChakraCore.Native.win-x86 and
36-
JavaScriptEngineSwitcher.ChakraCore.Native.win-x64.
37-
3. ChakraCore was updated to version of October 29, 2016;
38-
4. New version of the ChakraCore for Windows requires `msvcp140.dll` assembly
39-
from the Visual C++ Redistributable for Visual Studio 2015;
40-
5. Added the JavaScriptEngineSwitcher.ChakraCore.Native.debian-x64 and
41-
JavaScriptEngineSwitcher.ChakraCore.Native.osx-x64 packages.
33+
Added experimental support of Windows (ARM).
4234

4335
=============
4436
DOCUMENTATION

NuGet/build-all-packages.cmd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ call build-package.cmd
1515
cd %packages_directory%\JavaScriptEngineSwitcher.ChakraCore.Native.osx-x64
1616
call build-package.cmd
1717

18+
cd %packages_directory%\JavaScriptEngineSwitcher.ChakraCore.Native.win8-arm
19+
call build-package.cmd
20+
1821
cd %packages_directory%\JavaScriptEngineSwitcher.ChakraCore.Native.win-x64
1922
call build-package.cmd
2023

NuGet/move-packages-to-nuget-repository.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ move %packages_directory%\JavaScriptEngineSwitcher.Extensions.MsDependencyInject
66
move %packages_directory%\JavaScriptEngineSwitcher.ChakraCore\*.nupkg %repository_directory%
77
move %packages_directory%\JavaScriptEngineSwitcher.ChakraCore.Native.debian-x64\*.nupkg %repository_directory%
88
move %packages_directory%\JavaScriptEngineSwitcher.ChakraCore.Native.osx-x64\*.nupkg %repository_directory%
9+
move %packages_directory%\JavaScriptEngineSwitcher.ChakraCore.Native.win8-arm\*.nupkg %repository_directory%
910
move %packages_directory%\JavaScriptEngineSwitcher.ChakraCore.Native.win-x64\*.nupkg %repository_directory%
1011
move %packages_directory%\JavaScriptEngineSwitcher.ChakraCore.Native.win-x86\*.nupkg %repository_directory%
1112
move %packages_directory%\JavaScriptEngineSwitcher.Jint\*.nupkg %repository_directory%

0 commit comments

Comments
 (0)