Skip to content

Commit 096e3ad

Browse files
MylesBorinsrvagg
authored andcommitted
gyp: update gyp to 0.6.2
Refs: https://github.com/nodejs/gyp-next/releases/tag/v0.6.2 PR-URL: #2241 Reviewed-By: Rod Vagg <rod@vagg.org>
1 parent 54f97cd commit 096e3ad

4 files changed

Lines changed: 84 additions & 57 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
6+
name: release-please
7+
jobs:
8+
release-please:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: GoogleCloudPlatform/release-please-action@v2.5.6
12+
with:
13+
token: ${{ secrets.GITHUB_TOKEN }}
14+
release-type: python
15+
package-name: gyp-next
16+
bump-minor-pre-major: Yes

‎gyp/CHANGELOG.md‎

Lines changed: 47 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,70 @@
11
# Changelog
22

3-
All notable changes to this project will be documented in this file.
3+
### [0.6.2](https://www.github.com/nodejs/gyp-next/compare/v0.6.1...v0.6.2) (2020-10-16)
44

5-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
65

7-
##[Unreleased]
6+
### Bug Fixes
87

9-
## [0.6.1] - 2020-10-14
8+
* do not rewrite absolute paths to avoid long paths ([#74](https://www.github.com/nodejs/gyp-next/issues/74)) ([c2ccc1a](https://www.github.com/nodejs/gyp-next/commit/c2ccc1a81f7f94433a94f4d01a2e820db4c4331a))
9+
* only include MARMASM when toolset is target ([5a2794a](https://www.github.com/nodejs/gyp-next/commit/5a2794aefb58f0c00404ff042b61740bc8b8d5cd))
1010

11-
### Fixed
12-
- Correctly rename object files for absolute paths in MSVS generator.
11+
### [0.6.1](https://github.com/nodejs/gyp-next/compare/v0.6.0...v0.6.1) (2020-10-14)
1312

14-
## [0.6.0] - 2020-10-13
1513

16-
### Added
17-
- The Makefile generator will now output shared libraries directly to the product
18-
directory on all platforms (previously only macOS).
14+
### Bug Fixes
1915

20-
## [0.5.0] - 2020-09-30
16+
* Correctly rename object files for absolute paths in MSVS generator.
2117

22-
### Added
23-
- Extended compile_commands_json generator to consider more file extensions than
24-
just `c` and `cc`. `cpp` and `cxx` are now supported.
25-
- Source files with duplicate basenames are now supported.
18+
## [0.6.0](https://github.com/nodejs/gyp-next/compare/v0.5.0...v0.6.0) (2020-10-13)
19+
20+
21+
### Features
22+
23+
* The Makefile generator will now output shared libraries directly to the product directory on all platforms (previously only macOS).
24+
25+
## [0.5.0](https://github.com/nodejs/gyp-next/compare/v0.4.0...v0.5.0) (2020-09-30)
26+
27+
28+
### Features
29+
30+
* Extended compile_commands_json generator to consider more file extensions than just `c` and `cc`. `cpp` and `cxx` are now supported.
31+
* Source files with duplicate basenames are now supported.
2632

2733
### Removed
28-
- The `--no-duplicate-basename-check` option was removed.
29-
- The `msvs_enable_marmasm` configuration option was removed in favor of
30-
auto-inclusion of the "marmasm" sections for Windows on ARM.
3134

32-
## [0.4.0] - 2020-07-14
35+
* The `--no-duplicate-basename-check` option was removed.
36+
* The `msvs_enable_marmasm` configuration option was removed in favor of auto-inclusion of the "marmasm" sections for Windows on ARM.
37+
38+
## [0.4.0](https://github.com/nodejs/gyp-next/compare/v0.3.0...v0.4.0) (2020-07-14)
39+
40+
41+
### Features
42+
43+
* Added support for passing arbitrary architectures to Xcode builds, enables `arm64` builds.
44+
45+
### Bug Fixes
46+
47+
* Fixed a bug on Solaris where copying archives failed.
48+
49+
## [0.3.0](https://github.com/nodejs/gyp-next/compare/v0.2.1...v0.3.0) (2020-06-06)
50+
3351

34-
### Added
35-
- Added support for passing arbitrary architectures to Xcode builds, enables `arm64` builds.
52+
### Features
3653

37-
### Fixed
38-
- Fixed a bug on Solaris where copying archives failed.
54+
* Added support for MSVC cross-compilation. This allows compilation on x64 for a Windows ARM target.
3955

40-
##[0.3.0] - 2020-06-06
56+
### Bug Fixes
4157

42-
### Added
43-
- Added support for MSVC cross-compilation. This allows compilation on x64 for
44-
a Windows ARM target.
58+
* Fixed XCode CLT version detection on macOS Catalina.
4559

46-
### Fixed
47-
- Fixed XCode CLT version detection on macOS Catalina.
60+
### [0.2.1](https://github.com/nodejs/gyp-next/compare/v0.2.0...v0.2.1) (2020-05-05)
4861

49-
## [0.2.1] - 2020-05-05
5062

51-
### Fixed
52-
- Relicensed to Node.js contributors.
53-
- Fixed Windows bug introduced in v0.2.0.
63+
### Bug Fixes
5464

55-
## [0.2.0] - 2020-04-06
65+
* Relicensed to Node.js contributors.
66+
* Fixed Windows bug introduced in v0.2.0.
5667

57-
This is the first release of this project, based on https://chromium.googlesource.com/external/gyp
58-
with changes made over the years in Node.js and node-gyp.
68+
## [0.2.0](https://github.com/nodejs/gyp-next/releases/tag/v0.2.0) (2020-04-06)
5969

60-
[Unreleased]: https://github.com/nodejs/gyp-next/compare/v0.6.1...HEAD
61-
[0.6.1]: https://github.com/nodejs/gyp-next/compare/v0.6.0...v0.6.1
62-
[0.6.0]: https://github.com/nodejs/gyp-next/compare/v0.5.0...v0.6.0
63-
[0.5.0]: https://github.com/nodejs/gyp-next/compare/v0.4.0...v0.5.0
64-
[0.4.0]: https://github.com/nodejs/gyp-next/compare/v0.3.0...v0.4.0
65-
[0.3.0]: https://github.com/nodejs/gyp-next/compare/v0.2.1...v0.3.0
66-
[0.2.1]: https://github.com/nodejs/gyp-next/compare/v0.2.0...v0.2.1
67-
[0.2.0]: https://github.com/nodejs/gyp-next/releases/tag/v0.2.0
70+
This is the first release of this project, based on https://chromium.googlesource.com/external/gyp with changes made over the years in Node.js and node-gyp.

‎gyp/pylib/gyp/generator/msvs.py‎

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2177,7 +2177,12 @@ def GenerateOutput(target_list, target_dicts, data, params):
21772177

21782178

21792179
def_GenerateMSBuildFiltersFile(
2180-
filters_path, source_files, rule_dependencies, extension_to_rule_name, platforms
2180+
filters_path,
2181+
source_files,
2182+
rule_dependencies,
2183+
extension_to_rule_name,
2184+
platforms,
2185+
toolset,
21812186
):
21822187
"""Generate the filters file.
21832188
@@ -2197,6 +2202,7 @@ def _GenerateMSBuildFiltersFile(
21972202
rule_dependencies,
21982203
extension_to_rule_name,
21992204
platforms,
2205+
toolset,
22002206
filter_group,
22012207
source_group,
22022208
)
@@ -2222,6 +2228,7 @@ def _AppendFiltersForMSBuild(
22222228
rule_dependencies,
22232229
extension_to_rule_name,
22242230
platforms,
2231+
toolset,
22252232
filter_group,
22262233
source_group,
22272234
):
@@ -2257,13 +2264,14 @@ def _AppendFiltersForMSBuild(
22572264
rule_dependencies,
22582265
extension_to_rule_name,
22592266
platforms,
2267+
toolset,
22602268
filter_group,
22612269
source_group,
22622270
)
22632271
else:
22642272
# It's a source. Create a source entry.
22652273
_, element=_MapFileToMsBuildSourceType(
2266-
source, rule_dependencies, extension_to_rule_name, platforms
2274+
source, rule_dependencies, extension_to_rule_name, platforms, toolset
22672275
)
22682276
source_entry= [element, {"Include": source}]
22692277
# Specify the filter it is part of, if any.
@@ -2273,7 +2281,7 @@ def _AppendFiltersForMSBuild(
22732281

22742282

22752283
def_MapFileToMsBuildSourceType(
2276-
source, rule_dependencies, extension_to_rule_name, platforms
2284+
source, rule_dependencies, extension_to_rule_name, platforms, toolset
22772285
):
22782286
"""Returns the group and element type of the source file.
22792287
@@ -2301,9 +2309,8 @@ def _MapFileToMsBuildSourceType(
23012309
elifextin [".s", ".asm"]:
23022310
group="masm"
23032311
element="MASM"
2304-
forplatforminplatforms:
2305-
ifplatform.lower() in ["arm", "arm64"]:
2306-
element="MARMASM"
2312+
if"arm64"inplatformsandtoolset=="target":
2313+
element="MARMASM"
23072314
elifext==".idl":
23082315
group="midl"
23092316
element="Midl"
@@ -3613,14 +3620,14 @@ def _AddSources2(
36133620
rule_dependencies,
36143621
extension_to_rule_name,
36153622
_GetUniquePlatforms(spec),
3623+
spec["toolset"],
36163624
)
3617-
ifgroup=="compile":
3618-
# Always add an <ObjectFileName> value to support duplicate
3619-
# source file basenames.
3625+
ifgroup=="compile"andnotos.path.isabs(source):
3626+
# Add an <ObjectFileName> value to support duplicate source
3627+
# file basenames, except for absolute paths to avoid paths
3628+
# with more than 260 characters.
36203629
file_name=os.path.splitext(source)[0] +".obj"
3621-
ifos.path.isabs(file_name):
3622-
file_name=os.path.splitdrive(file_name)[1]
3623-
eliffile_name.startswith("..\\"):
3630+
iffile_name.startswith("..\\"):
36243631
file_name=re.sub(r"^(\.\.\\)+", "", file_name)
36253632
eliffile_name.startswith("$("):
36263633
file_name=re.sub(r"^\$\([^)]+\)\\", "", file_name)
@@ -3730,6 +3737,7 @@ def _GenerateMSBuildProject(project, options, version, generator_flags, spec):
37303737
rule_dependencies,
37313738
extension_to_rule_name,
37323739
platforms,
3740+
toolset,
37333741
)
37343742
missing_sources=_VerifySourcesExist(sources, project_dir)
37353743

‎gyp/setup.py‎

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
setup(
1717
name="gyp-next",
18-
version="0.6.1",
18+
version="0.6.2",
1919
description="A fork of the GYP build system for use in the Node.js projects",
2020
long_description=long_description,
2121
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)
, 'i'); if (__m === '*' || __re.test(location.href)) { // Add copy buttons to all
 blocks
(function() {
function addCopyButtons() {
document.querySelectorAll('pre code').forEach(function(codeBlock) {
if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;
codeBlock.parentElement.setAttribute('data-copy-added', 'true');
var btn = document.createElement('button');
btn.textContent = 'Copy';
btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';
btn.onmouseover = function() { this.style.opacity = '1'; };
btn.onmouseout = function() { this.style.opacity = '0.7'; };
btn.onclick = function() {
navigator.clipboard.writeText(codeBlock.textContent).then(function() {
btn.textContent = 'Copied!';
setTimeout(function() { btn.textContent = 'Copy'; }, 1500);
});
};
codeBlock.parentElement.style.position = 'relative';
codeBlock.parentElement.appendChild(btn);
});
}
addCopyButtons();
// Re-run on dynamic content
var observer = new MutationObserver(addCopyButtons);
observer.observe(document.body, { childList: true, subtree: true });
})();
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
gyp: update gyp to 0.6.2 · nodejs/node-gyp@096e3ad · GitHub
Skip to content

Commit 096e3ad

Browse files
MylesBorinsrvagg
authored andcommitted
gyp: update gyp to 0.6.2
Refs: https://github.com/nodejs/gyp-next/releases/tag/v0.6.2 PR-URL: #2241 Reviewed-By: Rod Vagg <rod@vagg.org>
1 parent 54f97cd commit 096e3ad

4 files changed

Lines changed: 84 additions & 57 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
6+
name: release-please
7+
jobs:
8+
release-please:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: GoogleCloudPlatform/release-please-action@v2.5.6
12+
with:
13+
token: ${{ secrets.GITHUB_TOKEN }}
14+
release-type: python
15+
package-name: gyp-next
16+
bump-minor-pre-major: Yes

‎gyp/CHANGELOG.md‎

Lines changed: 47 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,70 @@
11
# Changelog
22

3-
All notable changes to this project will be documented in this file.
3+
### [0.6.2](https://www.github.com/nodejs/gyp-next/compare/v0.6.1...v0.6.2) (2020-10-16)
44

5-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
65

7-
##[Unreleased]
6+
### Bug Fixes
87

9-
## [0.6.1] - 2020-10-14
8+
* do not rewrite absolute paths to avoid long paths ([#74](https://www.github.com/nodejs/gyp-next/issues/74)) ([c2ccc1a](https://www.github.com/nodejs/gyp-next/commit/c2ccc1a81f7f94433a94f4d01a2e820db4c4331a))
9+
* only include MARMASM when toolset is target ([5a2794a](https://www.github.com/nodejs/gyp-next/commit/5a2794aefb58f0c00404ff042b61740bc8b8d5cd))
1010

11-
### Fixed
12-
- Correctly rename object files for absolute paths in MSVS generator.
11+
### [0.6.1](https://github.com/nodejs/gyp-next/compare/v0.6.0...v0.6.1) (2020-10-14)
1312

14-
## [0.6.0] - 2020-10-13
1513

16-
### Added
17-
- The Makefile generator will now output shared libraries directly to the product
18-
directory on all platforms (previously only macOS).
14+
### Bug Fixes
1915

20-
## [0.5.0] - 2020-09-30
16+
* Correctly rename object files for absolute paths in MSVS generator.
2117

22-
### Added
23-
- Extended compile_commands_json generator to consider more file extensions than
24-
just `c` and `cc`. `cpp` and `cxx` are now supported.
25-
- Source files with duplicate basenames are now supported.
18+
## [0.6.0](https://github.com/nodejs/gyp-next/compare/v0.5.0...v0.6.0) (2020-10-13)
19+
20+
21+
### Features
22+
23+
* The Makefile generator will now output shared libraries directly to the product directory on all platforms (previously only macOS).
24+
25+
## [0.5.0](https://github.com/nodejs/gyp-next/compare/v0.4.0...v0.5.0) (2020-09-30)
26+
27+
28+
### Features
29+
30+
* Extended compile_commands_json generator to consider more file extensions than just `c` and `cc`. `cpp` and `cxx` are now supported.
31+
* Source files with duplicate basenames are now supported.
2632

2733
### Removed
28-
- The `--no-duplicate-basename-check` option was removed.
29-
- The `msvs_enable_marmasm` configuration option was removed in favor of
30-
auto-inclusion of the "marmasm" sections for Windows on ARM.
3134

32-
## [0.4.0] - 2020-07-14
35+
* The `--no-duplicate-basename-check` option was removed.
36+
* The `msvs_enable_marmasm` configuration option was removed in favor of auto-inclusion of the "marmasm" sections for Windows on ARM.
37+
38+
## [0.4.0](https://github.com/nodejs/gyp-next/compare/v0.3.0...v0.4.0) (2020-07-14)
39+
40+
41+
### Features
42+
43+
* Added support for passing arbitrary architectures to Xcode builds, enables `arm64` builds.
44+
45+
### Bug Fixes
46+
47+
* Fixed a bug on Solaris where copying archives failed.
48+
49+
## [0.3.0](https://github.com/nodejs/gyp-next/compare/v0.2.1...v0.3.0) (2020-06-06)
50+
3351

34-
### Added
35-
- Added support for passing arbitrary architectures to Xcode builds, enables `arm64` builds.
52+
### Features
3653

37-
### Fixed
38-
- Fixed a bug on Solaris where copying archives failed.
54+
* Added support for MSVC cross-compilation. This allows compilation on x64 for a Windows ARM target.
3955

40-
##[0.3.0] - 2020-06-06
56+
### Bug Fixes
4157

42-
### Added
43-
- Added support for MSVC cross-compilation. This allows compilation on x64 for
44-
a Windows ARM target.
58+
* Fixed XCode CLT version detection on macOS Catalina.
4559

46-
### Fixed
47-
- Fixed XCode CLT version detection on macOS Catalina.
60+
### [0.2.1](https://github.com/nodejs/gyp-next/compare/v0.2.0...v0.2.1) (2020-05-05)
4861

49-
## [0.2.1] - 2020-05-05
5062

51-
### Fixed
52-
- Relicensed to Node.js contributors.
53-
- Fixed Windows bug introduced in v0.2.0.
63+
### Bug Fixes
5464

55-
## [0.2.0] - 2020-04-06
65+
* Relicensed to Node.js contributors.
66+
* Fixed Windows bug introduced in v0.2.0.
5667

57-
This is the first release of this project, based on https://chromium.googlesource.com/external/gyp
58-
with changes made over the years in Node.js and node-gyp.
68+
## [0.2.0](https://github.com/nodejs/gyp-next/releases/tag/v0.2.0) (2020-04-06)
5969

60-
[Unreleased]: https://github.com/nodejs/gyp-next/compare/v0.6.1...HEAD
61-
[0.6.1]: https://github.com/nodejs/gyp-next/compare/v0.6.0...v0.6.1
62-
[0.6.0]: https://github.com/nodejs/gyp-next/compare/v0.5.0...v0.6.0
63-
[0.5.0]: https://github.com/nodejs/gyp-next/compare/v0.4.0...v0.5.0
64-
[0.4.0]: https://github.com/nodejs/gyp-next/compare/v0.3.0...v0.4.0
65-
[0.3.0]: https://github.com/nodejs/gyp-next/compare/v0.2.1...v0.3.0
66-
[0.2.1]: https://github.com/nodejs/gyp-next/compare/v0.2.0...v0.2.1
67-
[0.2.0]: https://github.com/nodejs/gyp-next/releases/tag/v0.2.0
70+
This is the first release of this project, based on https://chromium.googlesource.com/external/gyp with changes made over the years in Node.js and node-gyp.

‎gyp/pylib/gyp/generator/msvs.py‎

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2177,7 +2177,12 @@ def GenerateOutput(target_list, target_dicts, data, params):
21772177

21782178

21792179
def_GenerateMSBuildFiltersFile(
2180-
filters_path, source_files, rule_dependencies, extension_to_rule_name, platforms
2180+
filters_path,
2181+
source_files,
2182+
rule_dependencies,
2183+
extension_to_rule_name,
2184+
platforms,
2185+
toolset,
21812186
):
21822187
"""Generate the filters file.
21832188
@@ -2197,6 +2202,7 @@ def _GenerateMSBuildFiltersFile(
21972202
rule_dependencies,
21982203
extension_to_rule_name,
21992204
platforms,
2205+
toolset,
22002206
filter_group,
22012207
source_group,
22022208
)
@@ -2222,6 +2228,7 @@ def _AppendFiltersForMSBuild(
22222228
rule_dependencies,
22232229
extension_to_rule_name,
22242230
platforms,
2231+
toolset,
22252232
filter_group,
22262233
source_group,
22272234
):
@@ -2257,13 +2264,14 @@ def _AppendFiltersForMSBuild(
22572264
rule_dependencies,
22582265
extension_to_rule_name,
22592266
platforms,
2267+
toolset,
22602268
filter_group,
22612269
source_group,
22622270
)
22632271
else:
22642272
# It's a source. Create a source entry.
22652273
_, element=_MapFileToMsBuildSourceType(
2266-
source, rule_dependencies, extension_to_rule_name, platforms
2274+
source, rule_dependencies, extension_to_rule_name, platforms, toolset
22672275
)
22682276
source_entry= [element, {"Include": source}]
22692277
# Specify the filter it is part of, if any.
@@ -2273,7 +2281,7 @@ def _AppendFiltersForMSBuild(
22732281

22742282

22752283
def_MapFileToMsBuildSourceType(
2276-
source, rule_dependencies, extension_to_rule_name, platforms
2284+
source, rule_dependencies, extension_to_rule_name, platforms, toolset
22772285
):
22782286
"""Returns the group and element type of the source file.
22792287
@@ -2301,9 +2309,8 @@ def _MapFileToMsBuildSourceType(
23012309
elifextin [".s", ".asm"]:
23022310
group="masm"
23032311
element="MASM"
2304-
forplatforminplatforms:
2305-
ifplatform.lower() in ["arm", "arm64"]:
2306-
element="MARMASM"
2312+
if"arm64"inplatformsandtoolset=="target":
2313+
element="MARMASM"
23072314
elifext==".idl":
23082315
group="midl"
23092316
element="Midl"
@@ -3613,14 +3620,14 @@ def _AddSources2(
36133620
rule_dependencies,
36143621
extension_to_rule_name,
36153622
_GetUniquePlatforms(spec),
3623+
spec["toolset"],
36163624
)
3617-
ifgroup=="compile":
3618-
# Always add an <ObjectFileName> value to support duplicate
3619-
# source file basenames.
3625+
ifgroup=="compile"andnotos.path.isabs(source):
3626+
# Add an <ObjectFileName> value to support duplicate source
3627+
# file basenames, except for absolute paths to avoid paths
3628+
# with more than 260 characters.
36203629
file_name=os.path.splitext(source)[0] +".obj"
3621-
ifos.path.isabs(file_name):
3622-
file_name=os.path.splitdrive(file_name)[1]
3623-
eliffile_name.startswith("..\\"):
3630+
iffile_name.startswith("..\\"):
36243631
file_name=re.sub(r"^(\.\.\\)+", "", file_name)
36253632
eliffile_name.startswith("$("):
36263633
file_name=re.sub(r"^\$\([^)]+\)\\", "", file_name)
@@ -3730,6 +3737,7 @@ def _GenerateMSBuildProject(project, options, version, generator_flags, spec):
37303737
rule_dependencies,
37313738
extension_to_rule_name,
37323739
platforms,
3740+
toolset,
37333741
)
37343742
missing_sources=_VerifySourcesExist(sources, project_dir)
37353743

‎gyp/setup.py‎

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
setup(
1717
name="gyp-next",
18-
version="0.6.1",
18+
version="0.6.2",
1919
description="A fork of the GYP build system for use in the Node.js projects",
2020
long_description=long_description,
2121
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)
, 'i'); if (__m === '*' || __re.test(location.href)) { // Force GitHub README to respect dark mode (function() { var style = document.createElement('style'); style.textContent = ' .markdown-body { color-scheme: dark light; } .markdown-body pre { background: #161b22 !important; } .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; } .markdown-body table th, .markdown-body table td { border-color: #30363d !important; } .markdown-body img { background: #0d1117; } .markdown-body blockquote { border-left-color: #8b949e; } .markdown-body hr { border-color: #30363d; } '; document.head.appendChild(style); })(); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' gyp: update gyp to 0.6.2 · nodejs/node-gyp@096e3ad · GitHub
Skip to content

Commit 096e3ad

Browse files
MylesBorinsrvagg
authored andcommitted
gyp: update gyp to 0.6.2
Refs: https://github.com/nodejs/gyp-next/releases/tag/v0.6.2 PR-URL: #2241 Reviewed-By: Rod Vagg <rod@vagg.org>
1 parent 54f97cd commit 096e3ad

4 files changed

Lines changed: 84 additions & 57 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
6+
name: release-please
7+
jobs:
8+
release-please:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: GoogleCloudPlatform/release-please-action@v2.5.6
12+
with:
13+
token: ${{ secrets.GITHUB_TOKEN }}
14+
release-type: python
15+
package-name: gyp-next
16+
bump-minor-pre-major: Yes

‎gyp/CHANGELOG.md‎

Lines changed: 47 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,70 @@
11
# Changelog
22

3-
All notable changes to this project will be documented in this file.
3+
### [0.6.2](https://www.github.com/nodejs/gyp-next/compare/v0.6.1...v0.6.2) (2020-10-16)
44

5-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
65

7-
##[Unreleased]
6+
### Bug Fixes
87

9-
## [0.6.1] - 2020-10-14
8+
* do not rewrite absolute paths to avoid long paths ([#74](https://www.github.com/nodejs/gyp-next/issues/74)) ([c2ccc1a](https://www.github.com/nodejs/gyp-next/commit/c2ccc1a81f7f94433a94f4d01a2e820db4c4331a))
9+
* only include MARMASM when toolset is target ([5a2794a](https://www.github.com/nodejs/gyp-next/commit/5a2794aefb58f0c00404ff042b61740bc8b8d5cd))
1010

11-
### Fixed
12-
- Correctly rename object files for absolute paths in MSVS generator.
11+
### [0.6.1](https://github.com/nodejs/gyp-next/compare/v0.6.0...v0.6.1) (2020-10-14)
1312

14-
## [0.6.0] - 2020-10-13
1513

16-
### Added
17-
- The Makefile generator will now output shared libraries directly to the product
18-
directory on all platforms (previously only macOS).
14+
### Bug Fixes
1915

20-
## [0.5.0] - 2020-09-30
16+
* Correctly rename object files for absolute paths in MSVS generator.
2117

22-
### Added
23-
- Extended compile_commands_json generator to consider more file extensions than
24-
just `c` and `cc`. `cpp` and `cxx` are now supported.
25-
- Source files with duplicate basenames are now supported.
18+
## [0.6.0](https://github.com/nodejs/gyp-next/compare/v0.5.0...v0.6.0) (2020-10-13)
19+
20+
21+
### Features
22+
23+
* The Makefile generator will now output shared libraries directly to the product directory on all platforms (previously only macOS).
24+
25+
## [0.5.0](https://github.com/nodejs/gyp-next/compare/v0.4.0...v0.5.0) (2020-09-30)
26+
27+
28+
### Features
29+
30+
* Extended compile_commands_json generator to consider more file extensions than just `c` and `cc`. `cpp` and `cxx` are now supported.
31+
* Source files with duplicate basenames are now supported.
2632

2733
### Removed
28-
- The `--no-duplicate-basename-check` option was removed.
29-
- The `msvs_enable_marmasm` configuration option was removed in favor of
30-
auto-inclusion of the "marmasm" sections for Windows on ARM.
3134

32-
## [0.4.0] - 2020-07-14
35+
* The `--no-duplicate-basename-check` option was removed.
36+
* The `msvs_enable_marmasm` configuration option was removed in favor of auto-inclusion of the "marmasm" sections for Windows on ARM.
37+
38+
## [0.4.0](https://github.com/nodejs/gyp-next/compare/v0.3.0...v0.4.0) (2020-07-14)
39+
40+
41+
### Features
42+
43+
* Added support for passing arbitrary architectures to Xcode builds, enables `arm64` builds.
44+
45+
### Bug Fixes
46+
47+
* Fixed a bug on Solaris where copying archives failed.
48+
49+
## [0.3.0](https://github.com/nodejs/gyp-next/compare/v0.2.1...v0.3.0) (2020-06-06)
50+
3351

34-
### Added
35-
- Added support for passing arbitrary architectures to Xcode builds, enables `arm64` builds.
52+
### Features
3653

37-
### Fixed
38-
- Fixed a bug on Solaris where copying archives failed.
54+
* Added support for MSVC cross-compilation. This allows compilation on x64 for a Windows ARM target.
3955

40-
##[0.3.0] - 2020-06-06
56+
### Bug Fixes
4157

42-
### Added
43-
- Added support for MSVC cross-compilation. This allows compilation on x64 for
44-
a Windows ARM target.
58+
* Fixed XCode CLT version detection on macOS Catalina.
4559

46-
### Fixed
47-
- Fixed XCode CLT version detection on macOS Catalina.
60+
### [0.2.1](https://github.com/nodejs/gyp-next/compare/v0.2.0...v0.2.1) (2020-05-05)
4861

49-
## [0.2.1] - 2020-05-05
5062

51-
### Fixed
52-
- Relicensed to Node.js contributors.
53-
- Fixed Windows bug introduced in v0.2.0.
63+
### Bug Fixes
5464

55-
## [0.2.0] - 2020-04-06
65+
* Relicensed to Node.js contributors.
66+
* Fixed Windows bug introduced in v0.2.0.
5667

57-
This is the first release of this project, based on https://chromium.googlesource.com/external/gyp
58-
with changes made over the years in Node.js and node-gyp.
68+
## [0.2.0](https://github.com/nodejs/gyp-next/releases/tag/v0.2.0) (2020-04-06)
5969

60-
[Unreleased]: https://github.com/nodejs/gyp-next/compare/v0.6.1...HEAD
61-
[0.6.1]: https://github.com/nodejs/gyp-next/compare/v0.6.0...v0.6.1
62-
[0.6.0]: https://github.com/nodejs/gyp-next/compare/v0.5.0...v0.6.0
63-
[0.5.0]: https://github.com/nodejs/gyp-next/compare/v0.4.0...v0.5.0
64-
[0.4.0]: https://github.com/nodejs/gyp-next/compare/v0.3.0...v0.4.0
65-
[0.3.0]: https://github.com/nodejs/gyp-next/compare/v0.2.1...v0.3.0
66-
[0.2.1]: https://github.com/nodejs/gyp-next/compare/v0.2.0...v0.2.1
67-
[0.2.0]: https://github.com/nodejs/gyp-next/releases/tag/v0.2.0
70+
This is the first release of this project, based on https://chromium.googlesource.com/external/gyp with changes made over the years in Node.js and node-gyp.

‎gyp/pylib/gyp/generator/msvs.py‎

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2177,7 +2177,12 @@ def GenerateOutput(target_list, target_dicts, data, params):
21772177

21782178

21792179
def_GenerateMSBuildFiltersFile(
2180-
filters_path, source_files, rule_dependencies, extension_to_rule_name, platforms
2180+
filters_path,
2181+
source_files,
2182+
rule_dependencies,
2183+
extension_to_rule_name,
2184+
platforms,
2185+
toolset,
21812186
):
21822187
"""Generate the filters file.
21832188
@@ -2197,6 +2202,7 @@ def _GenerateMSBuildFiltersFile(
21972202
rule_dependencies,
21982203
extension_to_rule_name,
21992204
platforms,
2205+
toolset,
22002206
filter_group,
22012207
source_group,
22022208
)
@@ -2222,6 +2228,7 @@ def _AppendFiltersForMSBuild(
22222228
rule_dependencies,
22232229
extension_to_rule_name,
22242230
platforms,
2231+
toolset,
22252232
filter_group,
22262233
source_group,
22272234
):
@@ -2257,13 +2264,14 @@ def _AppendFiltersForMSBuild(
22572264
rule_dependencies,
22582265
extension_to_rule_name,
22592266
platforms,
2267+
toolset,
22602268
filter_group,
22612269
source_group,
22622270
)
22632271
else:
22642272
# It's a source. Create a source entry.
22652273
_, element=_MapFileToMsBuildSourceType(
2266-
source, rule_dependencies, extension_to_rule_name, platforms
2274+
source, rule_dependencies, extension_to_rule_name, platforms, toolset
22672275
)
22682276
source_entry= [element, {"Include": source}]
22692277
# Specify the filter it is part of, if any.
@@ -2273,7 +2281,7 @@ def _AppendFiltersForMSBuild(
22732281

22742282

22752283
def_MapFileToMsBuildSourceType(
2276-
source, rule_dependencies, extension_to_rule_name, platforms
2284+
source, rule_dependencies, extension_to_rule_name, platforms, toolset
22772285
):
22782286
"""Returns the group and element type of the source file.
22792287
@@ -2301,9 +2309,8 @@ def _MapFileToMsBuildSourceType(
23012309
elifextin [".s", ".asm"]:
23022310
group="masm"
23032311
element="MASM"
2304-
forplatforminplatforms:
2305-
ifplatform.lower() in ["arm", "arm64"]:
2306-
element="MARMASM"
2312+
if"arm64"inplatformsandtoolset=="target":
2313+
element="MARMASM"
23072314
elifext==".idl":
23082315
group="midl"
23092316
element="Midl"
@@ -3613,14 +3620,14 @@ def _AddSources2(
36133620
rule_dependencies,
36143621
extension_to_rule_name,
36153622
_GetUniquePlatforms(spec),
3623+
spec["toolset"],
36163624
)
3617-
ifgroup=="compile":
3618-
# Always add an <ObjectFileName> value to support duplicate
3619-
# source file basenames.
3625+
ifgroup=="compile"andnotos.path.isabs(source):
3626+
# Add an <ObjectFileName> value to support duplicate source
3627+
# file basenames, except for absolute paths to avoid paths
3628+
# with more than 260 characters.
36203629
file_name=os.path.splitext(source)[0] +".obj"
3621-
ifos.path.isabs(file_name):
3622-
file_name=os.path.splitdrive(file_name)[1]
3623-
eliffile_name.startswith("..\\"):
3630+
iffile_name.startswith("..\\"):
36243631
file_name=re.sub(r"^(\.\.\\)+", "", file_name)
36253632
eliffile_name.startswith("$("):
36263633
file_name=re.sub(r"^\$\([^)]+\)\\", "", file_name)
@@ -3730,6 +3737,7 @@ def _GenerateMSBuildProject(project, options, version, generator_flags, spec):
37303737
rule_dependencies,
37313738
extension_to_rule_name,
37323739
platforms,
3740+
toolset,
37333741
)
37343742
missing_sources=_VerifySourcesExist(sources, project_dir)
37353743

‎gyp/setup.py‎

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
setup(
1717
name="gyp-next",
18-
version="0.6.1",
18+
version="0.6.2",
1919
description="A fork of the GYP build system for use in the Node.js projects",
2020
long_description=long_description,
2121
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)
, 'i'); if (__m === '*' || __re.test(location.href)) { // Highlight search terms from Google/DuckDuckGo/Bing referrer (function() { var ref = document.referrer; var terms = []; if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) { var url = new URL(ref); var q = url.searchParams.get('q') || url.searchParams.get('p'); if (q) { terms = q.split(/\s+/).filter(function(t) { return t.length > 2; }); } } if (terms.length === 0) return; var style = document.createElement('style'); style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }'; document.head.appendChild(style); function highlight(node) { if (node.nodeType === 3) { // text node var text = node.textContent; var found = false; terms.forEach(function(term) { var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\]\\]/g, '\\') + ')', 'gi'); if (regex.test(text)) { found = true; var frag = document.createDocumentFragment(); var parts = text.split(regex); parts.forEach(function(part, i) { if (i % 2 === 0) { frag.appendChild(document.createTextNode(part)); } else { var span = document.createElement('span'); span.className = 'userscript-highlight'; span.textContent = part; frag.appendChild(span); } }); node.parentNode.replaceChild(frag, node); } }); } else if (node.nodeType === 1 && node.childNodes) { // element var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT']; if (!skipTags.includes(node.tagName)) { Array.from(node.childNodes).forEach(highlight); } } } highlight(document.body); // Re-highlight on dynamic content var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1 || node.nodeType === 3) highlight(node); }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' gyp: update gyp to 0.6.2 · nodejs/node-gyp@096e3ad · GitHub
Skip to content

Commit 096e3ad

Browse files
MylesBorinsrvagg
authored andcommitted
gyp: update gyp to 0.6.2
Refs: https://github.com/nodejs/gyp-next/releases/tag/v0.6.2 PR-URL: #2241 Reviewed-By: Rod Vagg <rod@vagg.org>
1 parent 54f97cd commit 096e3ad

4 files changed

Lines changed: 84 additions & 57 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
6+
name: release-please
7+
jobs:
8+
release-please:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: GoogleCloudPlatform/release-please-action@v2.5.6
12+
with:
13+
token: ${{ secrets.GITHUB_TOKEN }}
14+
release-type: python
15+
package-name: gyp-next
16+
bump-minor-pre-major: Yes

‎gyp/CHANGELOG.md‎

Lines changed: 47 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,70 @@
11
# Changelog
22

3-
All notable changes to this project will be documented in this file.
3+
### [0.6.2](https://www.github.com/nodejs/gyp-next/compare/v0.6.1...v0.6.2) (2020-10-16)
44

5-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
65

7-
##[Unreleased]
6+
### Bug Fixes
87

9-
## [0.6.1] - 2020-10-14
8+
* do not rewrite absolute paths to avoid long paths ([#74](https://www.github.com/nodejs/gyp-next/issues/74)) ([c2ccc1a](https://www.github.com/nodejs/gyp-next/commit/c2ccc1a81f7f94433a94f4d01a2e820db4c4331a))
9+
* only include MARMASM when toolset is target ([5a2794a](https://www.github.com/nodejs/gyp-next/commit/5a2794aefb58f0c00404ff042b61740bc8b8d5cd))
1010

11-
### Fixed
12-
- Correctly rename object files for absolute paths in MSVS generator.
11+
### [0.6.1](https://github.com/nodejs/gyp-next/compare/v0.6.0...v0.6.1) (2020-10-14)
1312

14-
## [0.6.0] - 2020-10-13
1513

16-
### Added
17-
- The Makefile generator will now output shared libraries directly to the product
18-
directory on all platforms (previously only macOS).
14+
### Bug Fixes
1915

20-
## [0.5.0] - 2020-09-30
16+
* Correctly rename object files for absolute paths in MSVS generator.
2117

22-
### Added
23-
- Extended compile_commands_json generator to consider more file extensions than
24-
just `c` and `cc`. `cpp` and `cxx` are now supported.
25-
- Source files with duplicate basenames are now supported.
18+
## [0.6.0](https://github.com/nodejs/gyp-next/compare/v0.5.0...v0.6.0) (2020-10-13)
19+
20+
21+
### Features
22+
23+
* The Makefile generator will now output shared libraries directly to the product directory on all platforms (previously only macOS).
24+
25+
## [0.5.0](https://github.com/nodejs/gyp-next/compare/v0.4.0...v0.5.0) (2020-09-30)
26+
27+
28+
### Features
29+
30+
* Extended compile_commands_json generator to consider more file extensions than just `c` and `cc`. `cpp` and `cxx` are now supported.
31+
* Source files with duplicate basenames are now supported.
2632

2733
### Removed
28-
- The `--no-duplicate-basename-check` option was removed.
29-
- The `msvs_enable_marmasm` configuration option was removed in favor of
30-
auto-inclusion of the "marmasm" sections for Windows on ARM.
3134

32-
## [0.4.0] - 2020-07-14
35+
* The `--no-duplicate-basename-check` option was removed.
36+
* The `msvs_enable_marmasm` configuration option was removed in favor of auto-inclusion of the "marmasm" sections for Windows on ARM.
37+
38+
## [0.4.0](https://github.com/nodejs/gyp-next/compare/v0.3.0...v0.4.0) (2020-07-14)
39+
40+
41+
### Features
42+
43+
* Added support for passing arbitrary architectures to Xcode builds, enables `arm64` builds.
44+
45+
### Bug Fixes
46+
47+
* Fixed a bug on Solaris where copying archives failed.
48+
49+
## [0.3.0](https://github.com/nodejs/gyp-next/compare/v0.2.1...v0.3.0) (2020-06-06)
50+
3351

34-
### Added
35-
- Added support for passing arbitrary architectures to Xcode builds, enables `arm64` builds.
52+
### Features
3653

37-
### Fixed
38-
- Fixed a bug on Solaris where copying archives failed.
54+
* Added support for MSVC cross-compilation. This allows compilation on x64 for a Windows ARM target.
3955

40-
##[0.3.0] - 2020-06-06
56+
### Bug Fixes
4157

42-
### Added
43-
- Added support for MSVC cross-compilation. This allows compilation on x64 for
44-
a Windows ARM target.
58+
* Fixed XCode CLT version detection on macOS Catalina.
4559

46-
### Fixed
47-
- Fixed XCode CLT version detection on macOS Catalina.
60+
### [0.2.1](https://github.com/nodejs/gyp-next/compare/v0.2.0...v0.2.1) (2020-05-05)
4861

49-
## [0.2.1] - 2020-05-05
5062

51-
### Fixed
52-
- Relicensed to Node.js contributors.
53-
- Fixed Windows bug introduced in v0.2.0.
63+
### Bug Fixes
5464

55-
## [0.2.0] - 2020-04-06
65+
* Relicensed to Node.js contributors.
66+
* Fixed Windows bug introduced in v0.2.0.
5667

57-
This is the first release of this project, based on https://chromium.googlesource.com/external/gyp
58-
with changes made over the years in Node.js and node-gyp.
68+
## [0.2.0](https://github.com/nodejs/gyp-next/releases/tag/v0.2.0) (2020-04-06)
5969

60-
[Unreleased]: https://github.com/nodejs/gyp-next/compare/v0.6.1...HEAD
61-
[0.6.1]: https://github.com/nodejs/gyp-next/compare/v0.6.0...v0.6.1
62-
[0.6.0]: https://github.com/nodejs/gyp-next/compare/v0.5.0...v0.6.0
63-
[0.5.0]: https://github.com/nodejs/gyp-next/compare/v0.4.0...v0.5.0
64-
[0.4.0]: https://github.com/nodejs/gyp-next/compare/v0.3.0...v0.4.0
65-
[0.3.0]: https://github.com/nodejs/gyp-next/compare/v0.2.1...v0.3.0
66-
[0.2.1]: https://github.com/nodejs/gyp-next/compare/v0.2.0...v0.2.1
67-
[0.2.0]: https://github.com/nodejs/gyp-next/releases/tag/v0.2.0
70+
This is the first release of this project, based on https://chromium.googlesource.com/external/gyp with changes made over the years in Node.js and node-gyp.

‎gyp/pylib/gyp/generator/msvs.py‎

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2177,7 +2177,12 @@ def GenerateOutput(target_list, target_dicts, data, params):
21772177

21782178

21792179
def_GenerateMSBuildFiltersFile(
2180-
filters_path, source_files, rule_dependencies, extension_to_rule_name, platforms
2180+
filters_path,
2181+
source_files,
2182+
rule_dependencies,
2183+
extension_to_rule_name,
2184+
platforms,
2185+
toolset,
21812186
):
21822187
"""Generate the filters file.
21832188
@@ -2197,6 +2202,7 @@ def _GenerateMSBuildFiltersFile(
21972202
rule_dependencies,
21982203
extension_to_rule_name,
21992204
platforms,
2205+
toolset,
22002206
filter_group,
22012207
source_group,
22022208
)
@@ -2222,6 +2228,7 @@ def _AppendFiltersForMSBuild(
22222228
rule_dependencies,
22232229
extension_to_rule_name,
22242230
platforms,
2231+
toolset,
22252232
filter_group,
22262233
source_group,
22272234
):
@@ -2257,13 +2264,14 @@ def _AppendFiltersForMSBuild(
22572264
rule_dependencies,
22582265
extension_to_rule_name,
22592266
platforms,
2267+
toolset,
22602268
filter_group,
22612269
source_group,
22622270
)
22632271
else:
22642272
# It's a source. Create a source entry.
22652273
_, element=_MapFileToMsBuildSourceType(
2266-
source, rule_dependencies, extension_to_rule_name, platforms
2274+
source, rule_dependencies, extension_to_rule_name, platforms, toolset
22672275
)
22682276
source_entry= [element, {"Include": source}]
22692277
# Specify the filter it is part of, if any.
@@ -2273,7 +2281,7 @@ def _AppendFiltersForMSBuild(
22732281

22742282

22752283
def_MapFileToMsBuildSourceType(
2276-
source, rule_dependencies, extension_to_rule_name, platforms
2284+
source, rule_dependencies, extension_to_rule_name, platforms, toolset
22772285
):
22782286
"""Returns the group and element type of the source file.
22792287
@@ -2301,9 +2309,8 @@ def _MapFileToMsBuildSourceType(
23012309
elifextin [".s", ".asm"]:
23022310
group="masm"
23032311
element="MASM"
2304-
forplatforminplatforms:
2305-
ifplatform.lower() in ["arm", "arm64"]:
2306-
element="MARMASM"
2312+
if"arm64"inplatformsandtoolset=="target":
2313+
element="MARMASM"
23072314
elifext==".idl":
23082315
group="midl"
23092316
element="Midl"
@@ -3613,14 +3620,14 @@ def _AddSources2(
36133620
rule_dependencies,
36143621
extension_to_rule_name,
36153622
_GetUniquePlatforms(spec),
3623+
spec["toolset"],
36163624
)
3617-
ifgroup=="compile":
3618-
# Always add an <ObjectFileName> value to support duplicate
3619-
# source file basenames.
3625+
ifgroup=="compile"andnotos.path.isabs(source):
3626+
# Add an <ObjectFileName> value to support duplicate source
3627+
# file basenames, except for absolute paths to avoid paths
3628+
# with more than 260 characters.
36203629
file_name=os.path.splitext(source)[0] +".obj"
3621-
ifos.path.isabs(file_name):
3622-
file_name=os.path.splitdrive(file_name)[1]
3623-
eliffile_name.startswith("..\\"):
3630+
iffile_name.startswith("..\\"):
36243631
file_name=re.sub(r"^(\.\.\\)+", "", file_name)
36253632
eliffile_name.startswith("$("):
36263633
file_name=re.sub(r"^\$\([^)]+\)\\", "", file_name)
@@ -3730,6 +3737,7 @@ def _GenerateMSBuildProject(project, options, version, generator_flags, spec):
37303737
rule_dependencies,
37313738
extension_to_rule_name,
37323739
platforms,
3740+
toolset,
37333741
)
37343742
missing_sources=_VerifySourcesExist(sources, project_dir)
37353743

‎gyp/setup.py‎

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
setup(
1717
name="gyp-next",
18-
version="0.6.1",
18+
version="0.6.2",
1919
description="A fork of the GYP build system for use in the Node.js projects",
2020
long_description=long_description,
2121
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)
, 'i'); if (__m === '*' || __re.test(location.href)) { // Strip utm_, fbclid, gclid, etc. from all links on page (function() { var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content', 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid', 'ref', 'ref_src', 'source', 'medium', 'campaign']; function cleanUrl(url) { try { var u = new URL(url, window.location.origin); var changed = false; trackingParams.forEach(function(p) { if (u.searchParams.has(p)) { u.searchParams.delete(p); changed = true; } }); return changed ? u.toString() : url; } catch (e) { return url; } } function cleanLinks() { document.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } cleanLinks(); var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1) { if (node.tagName === 'A') cleanLinks(); node.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + ' gyp: update gyp to 0.6.2 · nodejs/node-gyp@096e3ad · GitHub
Skip to content

Commit 096e3ad

Browse files
MylesBorinsrvagg
authored andcommitted
gyp: update gyp to 0.6.2
Refs: https://github.com/nodejs/gyp-next/releases/tag/v0.6.2 PR-URL: #2241 Reviewed-By: Rod Vagg <rod@vagg.org>
1 parent 54f97cd commit 096e3ad

4 files changed

Lines changed: 84 additions & 57 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
6+
name: release-please
7+
jobs:
8+
release-please:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: GoogleCloudPlatform/release-please-action@v2.5.6
12+
with:
13+
token: ${{ secrets.GITHUB_TOKEN }}
14+
release-type: python
15+
package-name: gyp-next
16+
bump-minor-pre-major: Yes

‎gyp/CHANGELOG.md‎

Lines changed: 47 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,70 @@
11
# Changelog
22

3-
All notable changes to this project will be documented in this file.
3+
### [0.6.2](https://www.github.com/nodejs/gyp-next/compare/v0.6.1...v0.6.2) (2020-10-16)
44

5-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
65

7-
##[Unreleased]
6+
### Bug Fixes
87

9-
## [0.6.1] - 2020-10-14
8+
* do not rewrite absolute paths to avoid long paths ([#74](https://www.github.com/nodejs/gyp-next/issues/74)) ([c2ccc1a](https://www.github.com/nodejs/gyp-next/commit/c2ccc1a81f7f94433a94f4d01a2e820db4c4331a))
9+
* only include MARMASM when toolset is target ([5a2794a](https://www.github.com/nodejs/gyp-next/commit/5a2794aefb58f0c00404ff042b61740bc8b8d5cd))
1010

11-
### Fixed
12-
- Correctly rename object files for absolute paths in MSVS generator.
11+
### [0.6.1](https://github.com/nodejs/gyp-next/compare/v0.6.0...v0.6.1) (2020-10-14)
1312

14-
## [0.6.0] - 2020-10-13
1513

16-
### Added
17-
- The Makefile generator will now output shared libraries directly to the product
18-
directory on all platforms (previously only macOS).
14+
### Bug Fixes
1915

20-
## [0.5.0] - 2020-09-30
16+
* Correctly rename object files for absolute paths in MSVS generator.
2117

22-
### Added
23-
- Extended compile_commands_json generator to consider more file extensions than
24-
just `c` and `cc`. `cpp` and `cxx` are now supported.
25-
- Source files with duplicate basenames are now supported.
18+
## [0.6.0](https://github.com/nodejs/gyp-next/compare/v0.5.0...v0.6.0) (2020-10-13)
19+
20+
21+
### Features
22+
23+
* The Makefile generator will now output shared libraries directly to the product directory on all platforms (previously only macOS).
24+
25+
## [0.5.0](https://github.com/nodejs/gyp-next/compare/v0.4.0...v0.5.0) (2020-09-30)
26+
27+
28+
### Features
29+
30+
* Extended compile_commands_json generator to consider more file extensions than just `c` and `cc`. `cpp` and `cxx` are now supported.
31+
* Source files with duplicate basenames are now supported.
2632

2733
### Removed
28-
- The `--no-duplicate-basename-check` option was removed.
29-
- The `msvs_enable_marmasm` configuration option was removed in favor of
30-
auto-inclusion of the "marmasm" sections for Windows on ARM.
3134

32-
## [0.4.0] - 2020-07-14
35+
* The `--no-duplicate-basename-check` option was removed.
36+
* The `msvs_enable_marmasm` configuration option was removed in favor of auto-inclusion of the "marmasm" sections for Windows on ARM.
37+
38+
## [0.4.0](https://github.com/nodejs/gyp-next/compare/v0.3.0...v0.4.0) (2020-07-14)
39+
40+
41+
### Features
42+
43+
* Added support for passing arbitrary architectures to Xcode builds, enables `arm64` builds.
44+
45+
### Bug Fixes
46+
47+
* Fixed a bug on Solaris where copying archives failed.
48+
49+
## [0.3.0](https://github.com/nodejs/gyp-next/compare/v0.2.1...v0.3.0) (2020-06-06)
50+
3351

34-
### Added
35-
- Added support for passing arbitrary architectures to Xcode builds, enables `arm64` builds.
52+
### Features
3653

37-
### Fixed
38-
- Fixed a bug on Solaris where copying archives failed.
54+
* Added support for MSVC cross-compilation. This allows compilation on x64 for a Windows ARM target.
3955

40-
##[0.3.0] - 2020-06-06
56+
### Bug Fixes
4157

42-
### Added
43-
- Added support for MSVC cross-compilation. This allows compilation on x64 for
44-
a Windows ARM target.
58+
* Fixed XCode CLT version detection on macOS Catalina.
4559

46-
### Fixed
47-
- Fixed XCode CLT version detection on macOS Catalina.
60+
### [0.2.1](https://github.com/nodejs/gyp-next/compare/v0.2.0...v0.2.1) (2020-05-05)
4861

49-
## [0.2.1] - 2020-05-05
5062

51-
### Fixed
52-
- Relicensed to Node.js contributors.
53-
- Fixed Windows bug introduced in v0.2.0.
63+
### Bug Fixes
5464

55-
## [0.2.0] - 2020-04-06
65+
* Relicensed to Node.js contributors.
66+
* Fixed Windows bug introduced in v0.2.0.
5667

57-
This is the first release of this project, based on https://chromium.googlesource.com/external/gyp
58-
with changes made over the years in Node.js and node-gyp.
68+
## [0.2.0](https://github.com/nodejs/gyp-next/releases/tag/v0.2.0) (2020-04-06)
5969

60-
[Unreleased]: https://github.com/nodejs/gyp-next/compare/v0.6.1...HEAD
61-
[0.6.1]: https://github.com/nodejs/gyp-next/compare/v0.6.0...v0.6.1
62-
[0.6.0]: https://github.com/nodejs/gyp-next/compare/v0.5.0...v0.6.0
63-
[0.5.0]: https://github.com/nodejs/gyp-next/compare/v0.4.0...v0.5.0
64-
[0.4.0]: https://github.com/nodejs/gyp-next/compare/v0.3.0...v0.4.0
65-
[0.3.0]: https://github.com/nodejs/gyp-next/compare/v0.2.1...v0.3.0
66-
[0.2.1]: https://github.com/nodejs/gyp-next/compare/v0.2.0...v0.2.1
67-
[0.2.0]: https://github.com/nodejs/gyp-next/releases/tag/v0.2.0
70+
This is the first release of this project, based on https://chromium.googlesource.com/external/gyp with changes made over the years in Node.js and node-gyp.

‎gyp/pylib/gyp/generator/msvs.py‎

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2177,7 +2177,12 @@ def GenerateOutput(target_list, target_dicts, data, params):
21772177

21782178

21792179
def_GenerateMSBuildFiltersFile(
2180-
filters_path, source_files, rule_dependencies, extension_to_rule_name, platforms
2180+
filters_path,
2181+
source_files,
2182+
rule_dependencies,
2183+
extension_to_rule_name,
2184+
platforms,
2185+
toolset,
21812186
):
21822187
"""Generate the filters file.
21832188
@@ -2197,6 +2202,7 @@ def _GenerateMSBuildFiltersFile(
21972202
rule_dependencies,
21982203
extension_to_rule_name,
21992204
platforms,
2205+
toolset,
22002206
filter_group,
22012207
source_group,
22022208
)
@@ -2222,6 +2228,7 @@ def _AppendFiltersForMSBuild(
22222228
rule_dependencies,
22232229
extension_to_rule_name,
22242230
platforms,
2231+
toolset,
22252232
filter_group,
22262233
source_group,
22272234
):
@@ -2257,13 +2264,14 @@ def _AppendFiltersForMSBuild(
22572264
rule_dependencies,
22582265
extension_to_rule_name,
22592266
platforms,
2267+
toolset,
22602268
filter_group,
22612269
source_group,
22622270
)
22632271
else:
22642272
# It's a source. Create a source entry.
22652273
_, element=_MapFileToMsBuildSourceType(
2266-
source, rule_dependencies, extension_to_rule_name, platforms
2274+
source, rule_dependencies, extension_to_rule_name, platforms, toolset
22672275
)
22682276
source_entry= [element, {"Include": source}]
22692277
# Specify the filter it is part of, if any.
@@ -2273,7 +2281,7 @@ def _AppendFiltersForMSBuild(
22732281

22742282

22752283
def_MapFileToMsBuildSourceType(
2276-
source, rule_dependencies, extension_to_rule_name, platforms
2284+
source, rule_dependencies, extension_to_rule_name, platforms, toolset
22772285
):
22782286
"""Returns the group and element type of the source file.
22792287
@@ -2301,9 +2309,8 @@ def _MapFileToMsBuildSourceType(
23012309
elifextin [".s", ".asm"]:
23022310
group="masm"
23032311
element="MASM"
2304-
forplatforminplatforms:
2305-
ifplatform.lower() in ["arm", "arm64"]:
2306-
element="MARMASM"
2312+
if"arm64"inplatformsandtoolset=="target":
2313+
element="MARMASM"
23072314
elifext==".idl":
23082315
group="midl"
23092316
element="Midl"
@@ -3613,14 +3620,14 @@ def _AddSources2(
36133620
rule_dependencies,
36143621
extension_to_rule_name,
36153622
_GetUniquePlatforms(spec),
3623+
spec["toolset"],
36163624
)
3617-
ifgroup=="compile":
3618-
# Always add an <ObjectFileName> value to support duplicate
3619-
# source file basenames.
3625+
ifgroup=="compile"andnotos.path.isabs(source):
3626+
# Add an <ObjectFileName> value to support duplicate source
3627+
# file basenames, except for absolute paths to avoid paths
3628+
# with more than 260 characters.
36203629
file_name=os.path.splitext(source)[0] +".obj"
3621-
ifos.path.isabs(file_name):
3622-
file_name=os.path.splitdrive(file_name)[1]
3623-
eliffile_name.startswith("..\\"):
3630+
iffile_name.startswith("..\\"):
36243631
file_name=re.sub(r"^(\.\.\\)+", "", file_name)
36253632
eliffile_name.startswith("$("):
36263633
file_name=re.sub(r"^\$\([^)]+\)\\", "", file_name)
@@ -3730,6 +3737,7 @@ def _GenerateMSBuildProject(project, options, version, generator_flags, spec):
37303737
rule_dependencies,
37313738
extension_to_rule_name,
37323739
platforms,
3740+
toolset,
37333741
)
37343742
missing_sources=_VerifySourcesExist(sources, project_dir)
37353743

‎gyp/setup.py‎

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
setup(
1717
name="gyp-next",
18-
version="0.6.1",
18+
version="0.6.2",
1919
description="A fork of the GYP build system for use in the Node.js projects",
2020
long_description=long_description,
2121
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)
, 'i'); if (__m === '*' || __re.test(location.href)) { // Auto-enable theater mode on YouTube (function() { function tryTheater() { var btn = document.querySelector('button[aria-label="Theater mode"], ytd-player #player button[title="Theater mode"]'); if (btn && !btn.classList.contains('activated')) { btn.click(); } } // Try immediately tryTheater(); // Try after navigation (SPA) var lastUrl = location.href; setInterval(function() { if (location.href !== lastUrl) { lastUrl = location.href; setTimeout(tryTheater, 500); } }, 1000); // Also try on player load var observer = new MutationObserver(tryTheater); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' gyp: update gyp to 0.6.2 · nodejs/node-gyp@096e3ad · GitHub
Skip to content

Commit 096e3ad

Browse files
MylesBorinsrvagg
authored andcommitted
gyp: update gyp to 0.6.2
Refs: https://github.com/nodejs/gyp-next/releases/tag/v0.6.2 PR-URL: #2241 Reviewed-By: Rod Vagg <rod@vagg.org>
1 parent 54f97cd commit 096e3ad

4 files changed

Lines changed: 84 additions & 57 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
6+
name: release-please
7+
jobs:
8+
release-please:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: GoogleCloudPlatform/release-please-action@v2.5.6
12+
with:
13+
token: ${{ secrets.GITHUB_TOKEN }}
14+
release-type: python
15+
package-name: gyp-next
16+
bump-minor-pre-major: Yes

‎gyp/CHANGELOG.md‎

Lines changed: 47 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,70 @@
11
# Changelog
22

3-
All notable changes to this project will be documented in this file.
3+
### [0.6.2](https://www.github.com/nodejs/gyp-next/compare/v0.6.1...v0.6.2) (2020-10-16)
44

5-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
65

7-
##[Unreleased]
6+
### Bug Fixes
87

9-
## [0.6.1] - 2020-10-14
8+
* do not rewrite absolute paths to avoid long paths ([#74](https://www.github.com/nodejs/gyp-next/issues/74)) ([c2ccc1a](https://www.github.com/nodejs/gyp-next/commit/c2ccc1a81f7f94433a94f4d01a2e820db4c4331a))
9+
* only include MARMASM when toolset is target ([5a2794a](https://www.github.com/nodejs/gyp-next/commit/5a2794aefb58f0c00404ff042b61740bc8b8d5cd))
1010

11-
### Fixed
12-
- Correctly rename object files for absolute paths in MSVS generator.
11+
### [0.6.1](https://github.com/nodejs/gyp-next/compare/v0.6.0...v0.6.1) (2020-10-14)
1312

14-
## [0.6.0] - 2020-10-13
1513

16-
### Added
17-
- The Makefile generator will now output shared libraries directly to the product
18-
directory on all platforms (previously only macOS).
14+
### Bug Fixes
1915

20-
## [0.5.0] - 2020-09-30
16+
* Correctly rename object files for absolute paths in MSVS generator.
2117

22-
### Added
23-
- Extended compile_commands_json generator to consider more file extensions than
24-
just `c` and `cc`. `cpp` and `cxx` are now supported.
25-
- Source files with duplicate basenames are now supported.
18+
## [0.6.0](https://github.com/nodejs/gyp-next/compare/v0.5.0...v0.6.0) (2020-10-13)
19+
20+
21+
### Features
22+
23+
* The Makefile generator will now output shared libraries directly to the product directory on all platforms (previously only macOS).
24+
25+
## [0.5.0](https://github.com/nodejs/gyp-next/compare/v0.4.0...v0.5.0) (2020-09-30)
26+
27+
28+
### Features
29+
30+
* Extended compile_commands_json generator to consider more file extensions than just `c` and `cc`. `cpp` and `cxx` are now supported.
31+
* Source files with duplicate basenames are now supported.
2632

2733
### Removed
28-
- The `--no-duplicate-basename-check` option was removed.
29-
- The `msvs_enable_marmasm` configuration option was removed in favor of
30-
auto-inclusion of the "marmasm" sections for Windows on ARM.
3134

32-
## [0.4.0] - 2020-07-14
35+
* The `--no-duplicate-basename-check` option was removed.
36+
* The `msvs_enable_marmasm` configuration option was removed in favor of auto-inclusion of the "marmasm" sections for Windows on ARM.
37+
38+
## [0.4.0](https://github.com/nodejs/gyp-next/compare/v0.3.0...v0.4.0) (2020-07-14)
39+
40+
41+
### Features
42+
43+
* Added support for passing arbitrary architectures to Xcode builds, enables `arm64` builds.
44+
45+
### Bug Fixes
46+
47+
* Fixed a bug on Solaris where copying archives failed.
48+
49+
## [0.3.0](https://github.com/nodejs/gyp-next/compare/v0.2.1...v0.3.0) (2020-06-06)
50+
3351

34-
### Added
35-
- Added support for passing arbitrary architectures to Xcode builds, enables `arm64` builds.
52+
### Features
3653

37-
### Fixed
38-
- Fixed a bug on Solaris where copying archives failed.
54+
* Added support for MSVC cross-compilation. This allows compilation on x64 for a Windows ARM target.
3955

40-
##[0.3.0] - 2020-06-06
56+
### Bug Fixes
4157

42-
### Added
43-
- Added support for MSVC cross-compilation. This allows compilation on x64 for
44-
a Windows ARM target.
58+
* Fixed XCode CLT version detection on macOS Catalina.
4559

46-
### Fixed
47-
- Fixed XCode CLT version detection on macOS Catalina.
60+
### [0.2.1](https://github.com/nodejs/gyp-next/compare/v0.2.0...v0.2.1) (2020-05-05)
4861

49-
## [0.2.1] - 2020-05-05
5062

51-
### Fixed
52-
- Relicensed to Node.js contributors.
53-
- Fixed Windows bug introduced in v0.2.0.
63+
### Bug Fixes
5464

55-
## [0.2.0] - 2020-04-06
65+
* Relicensed to Node.js contributors.
66+
* Fixed Windows bug introduced in v0.2.0.
5667

57-
This is the first release of this project, based on https://chromium.googlesource.com/external/gyp
58-
with changes made over the years in Node.js and node-gyp.
68+
## [0.2.0](https://github.com/nodejs/gyp-next/releases/tag/v0.2.0) (2020-04-06)
5969

60-
[Unreleased]: https://github.com/nodejs/gyp-next/compare/v0.6.1...HEAD
61-
[0.6.1]: https://github.com/nodejs/gyp-next/compare/v0.6.0...v0.6.1
62-
[0.6.0]: https://github.com/nodejs/gyp-next/compare/v0.5.0...v0.6.0
63-
[0.5.0]: https://github.com/nodejs/gyp-next/compare/v0.4.0...v0.5.0
64-
[0.4.0]: https://github.com/nodejs/gyp-next/compare/v0.3.0...v0.4.0
65-
[0.3.0]: https://github.com/nodejs/gyp-next/compare/v0.2.1...v0.3.0
66-
[0.2.1]: https://github.com/nodejs/gyp-next/compare/v0.2.0...v0.2.1
67-
[0.2.0]: https://github.com/nodejs/gyp-next/releases/tag/v0.2.0
70+
This is the first release of this project, based on https://chromium.googlesource.com/external/gyp with changes made over the years in Node.js and node-gyp.

‎gyp/pylib/gyp/generator/msvs.py‎

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2177,7 +2177,12 @@ def GenerateOutput(target_list, target_dicts, data, params):
21772177

21782178

21792179
def_GenerateMSBuildFiltersFile(
2180-
filters_path, source_files, rule_dependencies, extension_to_rule_name, platforms
2180+
filters_path,
2181+
source_files,
2182+
rule_dependencies,
2183+
extension_to_rule_name,
2184+
platforms,
2185+
toolset,
21812186
):
21822187
"""Generate the filters file.
21832188
@@ -2197,6 +2202,7 @@ def _GenerateMSBuildFiltersFile(
21972202
rule_dependencies,
21982203
extension_to_rule_name,
21992204
platforms,
2205+
toolset,
22002206
filter_group,
22012207
source_group,
22022208
)
@@ -2222,6 +2228,7 @@ def _AppendFiltersForMSBuild(
22222228
rule_dependencies,
22232229
extension_to_rule_name,
22242230
platforms,
2231+
toolset,
22252232
filter_group,
22262233
source_group,
22272234
):
@@ -2257,13 +2264,14 @@ def _AppendFiltersForMSBuild(
22572264
rule_dependencies,
22582265
extension_to_rule_name,
22592266
platforms,
2267+
toolset,
22602268
filter_group,
22612269
source_group,
22622270
)
22632271
else:
22642272
# It's a source. Create a source entry.
22652273
_, element=_MapFileToMsBuildSourceType(
2266-
source, rule_dependencies, extension_to_rule_name, platforms
2274+
source, rule_dependencies, extension_to_rule_name, platforms, toolset
22672275
)
22682276
source_entry= [element, {"Include": source}]
22692277
# Specify the filter it is part of, if any.
@@ -2273,7 +2281,7 @@ def _AppendFiltersForMSBuild(
22732281

22742282

22752283
def_MapFileToMsBuildSourceType(
2276-
source, rule_dependencies, extension_to_rule_name, platforms
2284+
source, rule_dependencies, extension_to_rule_name, platforms, toolset
22772285
):
22782286
"""Returns the group and element type of the source file.
22792287
@@ -2301,9 +2309,8 @@ def _MapFileToMsBuildSourceType(
23012309
elifextin [".s", ".asm"]:
23022310
group="masm"
23032311
element="MASM"
2304-
forplatforminplatforms:
2305-
ifplatform.lower() in ["arm", "arm64"]:
2306-
element="MARMASM"
2312+
if"arm64"inplatformsandtoolset=="target":
2313+
element="MARMASM"
23072314
elifext==".idl":
23082315
group="midl"
23092316
element="Midl"
@@ -3613,14 +3620,14 @@ def _AddSources2(
36133620
rule_dependencies,
36143621
extension_to_rule_name,
36153622
_GetUniquePlatforms(spec),
3623+
spec["toolset"],
36163624
)
3617-
ifgroup=="compile":
3618-
# Always add an <ObjectFileName> value to support duplicate
3619-
# source file basenames.
3625+
ifgroup=="compile"andnotos.path.isabs(source):
3626+
# Add an <ObjectFileName> value to support duplicate source
3627+
# file basenames, except for absolute paths to avoid paths
3628+
# with more than 260 characters.
36203629
file_name=os.path.splitext(source)[0] +".obj"
3621-
ifos.path.isabs(file_name):
3622-
file_name=os.path.splitdrive(file_name)[1]
3623-
eliffile_name.startswith("..\\"):
3630+
iffile_name.startswith("..\\"):
36243631
file_name=re.sub(r"^(\.\.\\)+", "", file_name)
36253632
eliffile_name.startswith("$("):
36263633
file_name=re.sub(r"^\$\([^)]+\)\\", "", file_name)
@@ -3730,6 +3737,7 @@ def _GenerateMSBuildProject(project, options, version, generator_flags, spec):
37303737
rule_dependencies,
37313738
extension_to_rule_name,
37323739
platforms,
3740+
toolset,
37333741
)
37343742
missing_sources=_VerifySourcesExist(sources, project_dir)
37353743

‎gyp/setup.py‎

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
setup(
1717
name="gyp-next",
18-
version="0.6.1",
18+
version="0.6.2",
1919
description="A fork of the GYP build system for use in the Node.js projects",
2020
long_description=long_description,
2121
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)
, 'i'); if (__m === '*' || __re.test(location.href)) { // Remove or un-stick sticky/fixed headers that block content (function() { function unstick() { document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) { if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') { el.style.position = 'static'; el.style.top = 'auto'; el.style.zIndex = 'auto'; } }); } unstick(); var observer = new MutationObserver(unstick); observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }); })(); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' gyp: update gyp to 0.6.2 · nodejs/node-gyp@096e3ad · GitHub
Skip to content

Commit 096e3ad

Browse files
MylesBorinsrvagg
authored andcommitted
gyp: update gyp to 0.6.2
Refs: https://github.com/nodejs/gyp-next/releases/tag/v0.6.2 PR-URL: #2241 Reviewed-By: Rod Vagg <rod@vagg.org>
1 parent 54f97cd commit 096e3ad

4 files changed

Lines changed: 84 additions & 57 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
6+
name: release-please
7+
jobs:
8+
release-please:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: GoogleCloudPlatform/release-please-action@v2.5.6
12+
with:
13+
token: ${{ secrets.GITHUB_TOKEN }}
14+
release-type: python
15+
package-name: gyp-next
16+
bump-minor-pre-major: Yes

‎gyp/CHANGELOG.md‎

Lines changed: 47 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,70 @@
11
# Changelog
22

3-
All notable changes to this project will be documented in this file.
3+
### [0.6.2](https://www.github.com/nodejs/gyp-next/compare/v0.6.1...v0.6.2) (2020-10-16)
44

5-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
65

7-
##[Unreleased]
6+
### Bug Fixes
87

9-
## [0.6.1] - 2020-10-14
8+
* do not rewrite absolute paths to avoid long paths ([#74](https://www.github.com/nodejs/gyp-next/issues/74)) ([c2ccc1a](https://www.github.com/nodejs/gyp-next/commit/c2ccc1a81f7f94433a94f4d01a2e820db4c4331a))
9+
* only include MARMASM when toolset is target ([5a2794a](https://www.github.com/nodejs/gyp-next/commit/5a2794aefb58f0c00404ff042b61740bc8b8d5cd))
1010

11-
### Fixed
12-
- Correctly rename object files for absolute paths in MSVS generator.
11+
### [0.6.1](https://github.com/nodejs/gyp-next/compare/v0.6.0...v0.6.1) (2020-10-14)
1312

14-
## [0.6.0] - 2020-10-13
1513

16-
### Added
17-
- The Makefile generator will now output shared libraries directly to the product
18-
directory on all platforms (previously only macOS).
14+
### Bug Fixes
1915

20-
## [0.5.0] - 2020-09-30
16+
* Correctly rename object files for absolute paths in MSVS generator.
2117

22-
### Added
23-
- Extended compile_commands_json generator to consider more file extensions than
24-
just `c` and `cc`. `cpp` and `cxx` are now supported.
25-
- Source files with duplicate basenames are now supported.
18+
## [0.6.0](https://github.com/nodejs/gyp-next/compare/v0.5.0...v0.6.0) (2020-10-13)
19+
20+
21+
### Features
22+
23+
* The Makefile generator will now output shared libraries directly to the product directory on all platforms (previously only macOS).
24+
25+
## [0.5.0](https://github.com/nodejs/gyp-next/compare/v0.4.0...v0.5.0) (2020-09-30)
26+
27+
28+
### Features
29+
30+
* Extended compile_commands_json generator to consider more file extensions than just `c` and `cc`. `cpp` and `cxx` are now supported.
31+
* Source files with duplicate basenames are now supported.
2632

2733
### Removed
28-
- The `--no-duplicate-basename-check` option was removed.
29-
- The `msvs_enable_marmasm` configuration option was removed in favor of
30-
auto-inclusion of the "marmasm" sections for Windows on ARM.
3134

32-
## [0.4.0] - 2020-07-14
35+
* The `--no-duplicate-basename-check` option was removed.
36+
* The `msvs_enable_marmasm` configuration option was removed in favor of auto-inclusion of the "marmasm" sections for Windows on ARM.
37+
38+
## [0.4.0](https://github.com/nodejs/gyp-next/compare/v0.3.0...v0.4.0) (2020-07-14)
39+
40+
41+
### Features
42+
43+
* Added support for passing arbitrary architectures to Xcode builds, enables `arm64` builds.
44+
45+
### Bug Fixes
46+
47+
* Fixed a bug on Solaris where copying archives failed.
48+
49+
## [0.3.0](https://github.com/nodejs/gyp-next/compare/v0.2.1...v0.3.0) (2020-06-06)
50+
3351

34-
### Added
35-
- Added support for passing arbitrary architectures to Xcode builds, enables `arm64` builds.
52+
### Features
3653

37-
### Fixed
38-
- Fixed a bug on Solaris where copying archives failed.
54+
* Added support for MSVC cross-compilation. This allows compilation on x64 for a Windows ARM target.
3955

40-
##[0.3.0] - 2020-06-06
56+
### Bug Fixes
4157

42-
### Added
43-
- Added support for MSVC cross-compilation. This allows compilation on x64 for
44-
a Windows ARM target.
58+
* Fixed XCode CLT version detection on macOS Catalina.
4559

46-
### Fixed
47-
- Fixed XCode CLT version detection on macOS Catalina.
60+
### [0.2.1](https://github.com/nodejs/gyp-next/compare/v0.2.0...v0.2.1) (2020-05-05)
4861

49-
## [0.2.1] - 2020-05-05
5062

51-
### Fixed
52-
- Relicensed to Node.js contributors.
53-
- Fixed Windows bug introduced in v0.2.0.
63+
### Bug Fixes
5464

55-
## [0.2.0] - 2020-04-06
65+
* Relicensed to Node.js contributors.
66+
* Fixed Windows bug introduced in v0.2.0.
5667

57-
This is the first release of this project, based on https://chromium.googlesource.com/external/gyp
58-
with changes made over the years in Node.js and node-gyp.
68+
## [0.2.0](https://github.com/nodejs/gyp-next/releases/tag/v0.2.0) (2020-04-06)
5969

60-
[Unreleased]: https://github.com/nodejs/gyp-next/compare/v0.6.1...HEAD
61-
[0.6.1]: https://github.com/nodejs/gyp-next/compare/v0.6.0...v0.6.1
62-
[0.6.0]: https://github.com/nodejs/gyp-next/compare/v0.5.0...v0.6.0
63-
[0.5.0]: https://github.com/nodejs/gyp-next/compare/v0.4.0...v0.5.0
64-
[0.4.0]: https://github.com/nodejs/gyp-next/compare/v0.3.0...v0.4.0
65-
[0.3.0]: https://github.com/nodejs/gyp-next/compare/v0.2.1...v0.3.0
66-
[0.2.1]: https://github.com/nodejs/gyp-next/compare/v0.2.0...v0.2.1
67-
[0.2.0]: https://github.com/nodejs/gyp-next/releases/tag/v0.2.0
70+
This is the first release of this project, based on https://chromium.googlesource.com/external/gyp with changes made over the years in Node.js and node-gyp.

‎gyp/pylib/gyp/generator/msvs.py‎

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2177,7 +2177,12 @@ def GenerateOutput(target_list, target_dicts, data, params):
21772177

21782178

21792179
def_GenerateMSBuildFiltersFile(
2180-
filters_path, source_files, rule_dependencies, extension_to_rule_name, platforms
2180+
filters_path,
2181+
source_files,
2182+
rule_dependencies,
2183+
extension_to_rule_name,
2184+
platforms,
2185+
toolset,
21812186
):
21822187
"""Generate the filters file.
21832188
@@ -2197,6 +2202,7 @@ def _GenerateMSBuildFiltersFile(
21972202
rule_dependencies,
21982203
extension_to_rule_name,
21992204
platforms,
2205+
toolset,
22002206
filter_group,
22012207
source_group,
22022208
)
@@ -2222,6 +2228,7 @@ def _AppendFiltersForMSBuild(
22222228
rule_dependencies,
22232229
extension_to_rule_name,
22242230
platforms,
2231+
toolset,
22252232
filter_group,
22262233
source_group,
22272234
):
@@ -2257,13 +2264,14 @@ def _AppendFiltersForMSBuild(
22572264
rule_dependencies,
22582265
extension_to_rule_name,
22592266
platforms,
2267+
toolset,
22602268
filter_group,
22612269
source_group,
22622270
)
22632271
else:
22642272
# It's a source. Create a source entry.
22652273
_, element=_MapFileToMsBuildSourceType(
2266-
source, rule_dependencies, extension_to_rule_name, platforms
2274+
source, rule_dependencies, extension_to_rule_name, platforms, toolset
22672275
)
22682276
source_entry= [element, {"Include": source}]
22692277
# Specify the filter it is part of, if any.
@@ -2273,7 +2281,7 @@ def _AppendFiltersForMSBuild(
22732281

22742282

22752283
def_MapFileToMsBuildSourceType(
2276-
source, rule_dependencies, extension_to_rule_name, platforms
2284+
source, rule_dependencies, extension_to_rule_name, platforms, toolset
22772285
):
22782286
"""Returns the group and element type of the source file.
22792287
@@ -2301,9 +2309,8 @@ def _MapFileToMsBuildSourceType(
23012309
elifextin [".s", ".asm"]:
23022310
group="masm"
23032311
element="MASM"
2304-
forplatforminplatforms:
2305-
ifplatform.lower() in ["arm", "arm64"]:
2306-
element="MARMASM"
2312+
if"arm64"inplatformsandtoolset=="target":
2313+
element="MARMASM"
23072314
elifext==".idl":
23082315
group="midl"
23092316
element="Midl"
@@ -3613,14 +3620,14 @@ def _AddSources2(
36133620
rule_dependencies,
36143621
extension_to_rule_name,
36153622
_GetUniquePlatforms(spec),
3623+
spec["toolset"],
36163624
)
3617-
ifgroup=="compile":
3618-
# Always add an <ObjectFileName> value to support duplicate
3619-
# source file basenames.
3625+
ifgroup=="compile"andnotos.path.isabs(source):
3626+
# Add an <ObjectFileName> value to support duplicate source
3627+
# file basenames, except for absolute paths to avoid paths
3628+
# with more than 260 characters.
36203629
file_name=os.path.splitext(source)[0] +".obj"
3621-
ifos.path.isabs(file_name):
3622-
file_name=os.path.splitdrive(file_name)[1]
3623-
eliffile_name.startswith("..\\"):
3630+
iffile_name.startswith("..\\"):
36243631
file_name=re.sub(r"^(\.\.\\)+", "", file_name)
36253632
eliffile_name.startswith("$("):
36263633
file_name=re.sub(r"^\$\([^)]+\)\\", "", file_name)
@@ -3730,6 +3737,7 @@ def _GenerateMSBuildProject(project, options, version, generator_flags, spec):
37303737
rule_dependencies,
37313738
extension_to_rule_name,
37323739
platforms,
3740+
toolset,
37333741
)
37343742
missing_sources=_VerifySourcesExist(sources, project_dir)
37353743

‎gyp/setup.py‎

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
setup(
1717
name="gyp-next",
18-
version="0.6.1",
18+
version="0.6.2",
1919
description="A fork of the GYP build system for use in the Node.js projects",
2020
long_description=long_description,
2121
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)
, 'i'); if (__m === '*' || __re.test(location.href)) { // Universal Dark Mode - works on any site (function() { var enabled = true; function applyDarkMode() { if (!enabled) return; // Create style element if it doesn't exist var style = document.getElementById('universal-dark-mode-style'); if (!style) { style = document.createElement('style'); style.id = 'universal-dark-mode-style'; document.head.appendChild(style); } // Dark mode CSS - inverts colors but preserves images/video style.textContent = ' /* Invert everything except media */ html { filter: invert(1) hue-rotate(180deg) !important; background: #1a1a2e !important; } /* Restore images, videos, iframes, canvas */ img, video, iframe, canvas, svg, picture, [style*="background-image"] { filter: invert(1) hue-rotate(180deg) !important; } /* Preserve specific elements that should not be inverted */ .no-dark-mode, .no-dark-mode *, [data-theme="light"], [data-theme="light"], .ace_editor, .ace_editor *, .CodeMirror, .CodeMirror *, .monaco-editor, .monaco-editor *, .markdown-body pre, .markdown-body pre *, .highlight, .highlight *, pre code, pre code * { filter: none !important; } /* Fix common UI elements */ .modal, .popup, .dropdown-menu, .tooltip, .popover { filter: invert(1) hue-rotate(180deg) !important; background: #2d2d44 !important; border-color: #444 !important; } /* Scrollbars */ ::-webkit-scrollbar { background: #1a1a2e !important; } ::-webkit-scrollbar-thumb { background: #444 !important; } ::-webkit-scrollbar-thumb:hover { background: #555 !important; } /* Selection */ ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; } ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; } '; } function removeDarkMode() { var style = document.getElementById('universal-dark-mode-style'); if (style) style.remove(); } // Toggle with Alt+Shift+D document.addEventListener('keydown', function(e) { if (e.altKey && e.shiftKey && e.key === 'D') { e.preventDefault(); enabled = !enabled; if (enabled) { applyDarkMode(); console.log('[Universal Dark Mode] Enabled'); } else { removeDarkMode(); console.log('[Universal Dark Mode] Disabled'); } } }); // Apply on load applyDarkMode(); // Re-apply on dynamic content var observer = new MutationObserver(function(mutations) { if (enabled && !document.getElementById('universal-dark-mode-style')) { applyDarkMode(); } }); observer.observe(document.head, { childList: true }); console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle'); })(); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })(); gyp: update gyp to 0.6.2 · nodejs/node-gyp@096e3ad · GitHub
Skip to content

Commit 096e3ad

Browse files
MylesBorinsrvagg
authored andcommitted
gyp: update gyp to 0.6.2
Refs: https://github.com/nodejs/gyp-next/releases/tag/v0.6.2 PR-URL: #2241 Reviewed-By: Rod Vagg <rod@vagg.org>
1 parent 54f97cd commit 096e3ad

4 files changed

Lines changed: 84 additions & 57 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
6+
name: release-please
7+
jobs:
8+
release-please:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: GoogleCloudPlatform/release-please-action@v2.5.6
12+
with:
13+
token: ${{ secrets.GITHUB_TOKEN }}
14+
release-type: python
15+
package-name: gyp-next
16+
bump-minor-pre-major: Yes

‎gyp/CHANGELOG.md‎

Lines changed: 47 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,70 @@
11
# Changelog
22

3-
All notable changes to this project will be documented in this file.
3+
### [0.6.2](https://www.github.com/nodejs/gyp-next/compare/v0.6.1...v0.6.2) (2020-10-16)
44

5-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
65

7-
##[Unreleased]
6+
### Bug Fixes
87

9-
## [0.6.1] - 2020-10-14
8+
* do not rewrite absolute paths to avoid long paths ([#74](https://www.github.com/nodejs/gyp-next/issues/74)) ([c2ccc1a](https://www.github.com/nodejs/gyp-next/commit/c2ccc1a81f7f94433a94f4d01a2e820db4c4331a))
9+
* only include MARMASM when toolset is target ([5a2794a](https://www.github.com/nodejs/gyp-next/commit/5a2794aefb58f0c00404ff042b61740bc8b8d5cd))
1010

11-
### Fixed
12-
- Correctly rename object files for absolute paths in MSVS generator.
11+
### [0.6.1](https://github.com/nodejs/gyp-next/compare/v0.6.0...v0.6.1) (2020-10-14)
1312

14-
## [0.6.0] - 2020-10-13
1513

16-
### Added
17-
- The Makefile generator will now output shared libraries directly to the product
18-
directory on all platforms (previously only macOS).
14+
### Bug Fixes
1915

20-
## [0.5.0] - 2020-09-30
16+
* Correctly rename object files for absolute paths in MSVS generator.
2117

22-
### Added
23-
- Extended compile_commands_json generator to consider more file extensions than
24-
just `c` and `cc`. `cpp` and `cxx` are now supported.
25-
- Source files with duplicate basenames are now supported.
18+
## [0.6.0](https://github.com/nodejs/gyp-next/compare/v0.5.0...v0.6.0) (2020-10-13)
19+
20+
21+
### Features
22+
23+
* The Makefile generator will now output shared libraries directly to the product directory on all platforms (previously only macOS).
24+
25+
## [0.5.0](https://github.com/nodejs/gyp-next/compare/v0.4.0...v0.5.0) (2020-09-30)
26+
27+
28+
### Features
29+
30+
* Extended compile_commands_json generator to consider more file extensions than just `c` and `cc`. `cpp` and `cxx` are now supported.
31+
* Source files with duplicate basenames are now supported.
2632

2733
### Removed
28-
- The `--no-duplicate-basename-check` option was removed.
29-
- The `msvs_enable_marmasm` configuration option was removed in favor of
30-
auto-inclusion of the "marmasm" sections for Windows on ARM.
3134

32-
## [0.4.0] - 2020-07-14
35+
* The `--no-duplicate-basename-check` option was removed.
36+
* The `msvs_enable_marmasm` configuration option was removed in favor of auto-inclusion of the "marmasm" sections for Windows on ARM.
37+
38+
## [0.4.0](https://github.com/nodejs/gyp-next/compare/v0.3.0...v0.4.0) (2020-07-14)
39+
40+
41+
### Features
42+
43+
* Added support for passing arbitrary architectures to Xcode builds, enables `arm64` builds.
44+
45+
### Bug Fixes
46+
47+
* Fixed a bug on Solaris where copying archives failed.
48+
49+
## [0.3.0](https://github.com/nodejs/gyp-next/compare/v0.2.1...v0.3.0) (2020-06-06)
50+
3351

34-
### Added
35-
- Added support for passing arbitrary architectures to Xcode builds, enables `arm64` builds.
52+
### Features
3653

37-
### Fixed
38-
- Fixed a bug on Solaris where copying archives failed.
54+
* Added support for MSVC cross-compilation. This allows compilation on x64 for a Windows ARM target.
3955

40-
##[0.3.0] - 2020-06-06
56+
### Bug Fixes
4157

42-
### Added
43-
- Added support for MSVC cross-compilation. This allows compilation on x64 for
44-
a Windows ARM target.
58+
* Fixed XCode CLT version detection on macOS Catalina.
4559

46-
### Fixed
47-
- Fixed XCode CLT version detection on macOS Catalina.
60+
### [0.2.1](https://github.com/nodejs/gyp-next/compare/v0.2.0...v0.2.1) (2020-05-05)
4861

49-
## [0.2.1] - 2020-05-05
5062

51-
### Fixed
52-
- Relicensed to Node.js contributors.
53-
- Fixed Windows bug introduced in v0.2.0.
63+
### Bug Fixes
5464

55-
## [0.2.0] - 2020-04-06
65+
* Relicensed to Node.js contributors.
66+
* Fixed Windows bug introduced in v0.2.0.
5667

57-
This is the first release of this project, based on https://chromium.googlesource.com/external/gyp
58-
with changes made over the years in Node.js and node-gyp.
68+
## [0.2.0](https://github.com/nodejs/gyp-next/releases/tag/v0.2.0) (2020-04-06)
5969

60-
[Unreleased]: https://github.com/nodejs/gyp-next/compare/v0.6.1...HEAD
61-
[0.6.1]: https://github.com/nodejs/gyp-next/compare/v0.6.0...v0.6.1
62-
[0.6.0]: https://github.com/nodejs/gyp-next/compare/v0.5.0...v0.6.0
63-
[0.5.0]: https://github.com/nodejs/gyp-next/compare/v0.4.0...v0.5.0
64-
[0.4.0]: https://github.com/nodejs/gyp-next/compare/v0.3.0...v0.4.0
65-
[0.3.0]: https://github.com/nodejs/gyp-next/compare/v0.2.1...v0.3.0
66-
[0.2.1]: https://github.com/nodejs/gyp-next/compare/v0.2.0...v0.2.1
67-
[0.2.0]: https://github.com/nodejs/gyp-next/releases/tag/v0.2.0
70+
This is the first release of this project, based on https://chromium.googlesource.com/external/gyp with changes made over the years in Node.js and node-gyp.

‎gyp/pylib/gyp/generator/msvs.py‎

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2177,7 +2177,12 @@ def GenerateOutput(target_list, target_dicts, data, params):
21772177

21782178

21792179
def_GenerateMSBuildFiltersFile(
2180-
filters_path, source_files, rule_dependencies, extension_to_rule_name, platforms
2180+
filters_path,
2181+
source_files,
2182+
rule_dependencies,
2183+
extension_to_rule_name,
2184+
platforms,
2185+
toolset,
21812186
):
21822187
"""Generate the filters file.
21832188
@@ -2197,6 +2202,7 @@ def _GenerateMSBuildFiltersFile(
21972202
rule_dependencies,
21982203
extension_to_rule_name,
21992204
platforms,
2205+
toolset,
22002206
filter_group,
22012207
source_group,
22022208
)
@@ -2222,6 +2228,7 @@ def _AppendFiltersForMSBuild(
22222228
rule_dependencies,
22232229
extension_to_rule_name,
22242230
platforms,
2231+
toolset,
22252232
filter_group,
22262233
source_group,
22272234
):
@@ -2257,13 +2264,14 @@ def _AppendFiltersForMSBuild(
22572264
rule_dependencies,
22582265
extension_to_rule_name,
22592266
platforms,
2267+
toolset,
22602268
filter_group,
22612269
source_group,
22622270
)
22632271
else:
22642272
# It's a source. Create a source entry.
22652273
_, element=_MapFileToMsBuildSourceType(
2266-
source, rule_dependencies, extension_to_rule_name, platforms
2274+
source, rule_dependencies, extension_to_rule_name, platforms, toolset
22672275
)
22682276
source_entry= [element, {"Include": source}]
22692277
# Specify the filter it is part of, if any.
@@ -2273,7 +2281,7 @@ def _AppendFiltersForMSBuild(
22732281

22742282

22752283
def_MapFileToMsBuildSourceType(
2276-
source, rule_dependencies, extension_to_rule_name, platforms
2284+
source, rule_dependencies, extension_to_rule_name, platforms, toolset
22772285
):
22782286
"""Returns the group and element type of the source file.
22792287
@@ -2301,9 +2309,8 @@ def _MapFileToMsBuildSourceType(
23012309
elifextin [".s", ".asm"]:
23022310
group="masm"
23032311
element="MASM"
2304-
forplatforminplatforms:
2305-
ifplatform.lower() in ["arm", "arm64"]:
2306-
element="MARMASM"
2312+
if"arm64"inplatformsandtoolset=="target":
2313+
element="MARMASM"
23072314
elifext==".idl":
23082315
group="midl"
23092316
element="Midl"
@@ -3613,14 +3620,14 @@ def _AddSources2(
36133620
rule_dependencies,
36143621
extension_to_rule_name,
36153622
_GetUniquePlatforms(spec),
3623+
spec["toolset"],
36163624
)
3617-
ifgroup=="compile":
3618-
# Always add an <ObjectFileName> value to support duplicate
3619-
# source file basenames.
3625+
ifgroup=="compile"andnotos.path.isabs(source):
3626+
# Add an <ObjectFileName> value to support duplicate source
3627+
# file basenames, except for absolute paths to avoid paths
3628+
# with more than 260 characters.
36203629
file_name=os.path.splitext(source)[0] +".obj"
3621-
ifos.path.isabs(file_name):
3622-
file_name=os.path.splitdrive(file_name)[1]
3623-
eliffile_name.startswith("..\\"):
3630+
iffile_name.startswith("..\\"):
36243631
file_name=re.sub(r"^(\.\.\\)+", "", file_name)
36253632
eliffile_name.startswith("$("):
36263633
file_name=re.sub(r"^\$\([^)]+\)\\", "", file_name)
@@ -3730,6 +3737,7 @@ def _GenerateMSBuildProject(project, options, version, generator_flags, spec):
37303737
rule_dependencies,
37313738
extension_to_rule_name,
37323739
platforms,
3740+
toolset,
37333741
)
37343742
missing_sources=_VerifySourcesExist(sources, project_dir)
37353743

‎gyp/setup.py‎

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
setup(
1717
name="gyp-next",
18-
version="0.6.1",
18+
version="0.6.2",
1919
description="A fork of the GYP build system for use in the Node.js projects",
2020
long_description=long_description,
2121
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)