René's URL Explorer Experiment


Title: build,tools: make addons tests work with GN by zcbenz · Pull Request #50737 · nodejs/node · GitHub

Open Graph Title: build,tools: make addons tests work with GN by zcbenz · Pull Request #50737 · nodejs/node

X Title: build,tools: make addons tests work with GN by zcbenz · Pull Request #50737 · nodejs/node

Description: This PR refactors the install and build_addons scripts so they can be reused by node-ci and electron projects to build the addons tests. In detail, this PR does following things: Minor modifications of the GN configurations to fix loading native modules. Add some flags to tools/install.py script to allow customize locations of config.gypi, v8, etc. With some refactoring to remove global variables. Rewrite the tools/build_addons.py script: Rewrite it from js to python, because implementing cmd args handling with vanilla Node.js would take much longer time than a simple rewrite. Add a few more flags to make it easier to use for embedders. Modify the Makefile to generate headers in out dir first, and then calls build_addons.py --headers-dir=out_dir/headers (which calls node-gyp --nodedir=out_dir/headers) to build addons. Previously the build system was just calling node-gyp --nodedir=., which relied on quirky behavior of node-gyp and did not really test whether the generated headers work. Users that rely on make or vcbuild.bat to work on Node are not affected.

Open Graph Description: This PR refactors the install and build_addons scripts so they can be reused by node-ci and electron projects to build the addons tests. In detail, this PR does following things: Minor modificatio...

X Description: This PR refactors the install and build_addons scripts so they can be reused by node-ci and electron projects to build the addons tests. In detail, this PR does following things: Minor modificatio...

Opengraph URL: https://github.com/nodejs/node/pull/50737

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:8b7ade97-dddd-5975-2ef6-1ebc9a8dab86
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE0A0:22A978:12DCC52:1A704DC:696A3291
html-safe-nonce9810ce385ec1e74cde876ef49cdc82b29f918d1515f4006c1cbc3507c0c0f692
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEEwOjIyQTk3ODoxMkRDQzUyOjFBNzA0REM6Njk2QTMyOTEiLCJ2aXNpdG9yX2lkIjoiNzU3ODUxNTQwMzgxODI4MzY2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac065cf7275ab0b9af5aa738fe3dba4c122fee50a5a16c92b7d573d419d6a4d898
hovercard-subject-tagpull_request:1602108652
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/nodejs/node/pull/50737/files
twitter:imagehttps://avatars.githubusercontent.com/u/639601?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/639601?s=400&v=4
og:image:altThis PR refactors the install and build_addons scripts so they can be reused by node-ci and electron projects to build the addons tests. In detail, this PR does following things: Minor modificatio...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None321736bfdb3f591415ae895a0459bec204b26a76caf47ba5c980634cfacc4538
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7a9163cefd1ea4bd06f8eb7c082f43e4e53f626f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodejs/node/pull/50737/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F50737%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F50737%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/pull/50737/files
Reloadhttps://github.com/nodejs/node/pull/50737/files
Reloadhttps://github.com/nodejs/node/pull/50737/files
nodejs https://github.com/nodejs
nodehttps://github.com/nodejs/node
Please reload this pagehttps://github.com/nodejs/node/pull/50737/files
Notifications https://github.com/login?return_to=%2Fnodejs%2Fnode
Fork 34.4k https://github.com/login?return_to=%2Fnodejs%2Fnode
Star 115k https://github.com/login?return_to=%2Fnodejs%2Fnode
Code https://github.com/nodejs/node
Issues 1.7k https://github.com/nodejs/node/issues
Pull requests 695 https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects 3 https://github.com/nodejs/node/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/nodejs/node/security
Please reload this pagehttps://github.com/nodejs/node/pull/50737/files
Insights https://github.com/nodejs/node/pulse
Code https://github.com/nodejs/node
Issues https://github.com/nodejs/node/issues
Pull requests https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fnodejs%2Fnode%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fnodejs%2Fnode%2Fissues%2Fnew%2Fchoose
zcbenzhttps://github.com/zcbenz
nodejs:mainhttps://github.com/nodejs/node/tree/main
zcbenz:build-addons-gnhttps://github.com/zcbenz/node/tree/build-addons-gn
Conversation 30 https://github.com/nodejs/node/pull/50737
Commits 3 https://github.com/nodejs/node/pull/50737/commits
Checks 0 https://github.com/nodejs/node/pull/50737/checks
Files changed https://github.com/nodejs/node/pull/50737/files
Please reload this pagehttps://github.com/nodejs/node/pull/50737/files
build,tools: make addons tests work with GN https://github.com/nodejs/node/pull/50737/files#top
Show all changes 3 commits https://github.com/nodejs/node/pull/50737/files
139adad build,tools: make addons tests work with GN zcbenz Nov 16, 2023 https://github.com/nodejs/node/pull/50737/commits/139adada2bd5669bdff4b6cb9ef41213aa139e5b
b0595ce build,tools: generate node headers on request zcbenz Nov 17, 2023 https://github.com/nodejs/node/pull/50737/commits/b0595cef92b9a3e1a7956e120dc6b8da84d5d24a
da69fba build,tools: there are 2 out dirs on windows zcbenz Jan 23, 2024 https://github.com/nodejs/node/pull/50737/commits/da69fba975a12ed66d3a532078496f88cb466289
Clear filters https://github.com/nodejs/node/pull/50737/files
Please reload this pagehttps://github.com/nodejs/node/pull/50737/files
Please reload this pagehttps://github.com/nodejs/node/pull/50737/files
Makefile https://github.com/nodejs/node/pull/50737/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52
unofficial.gni https://github.com/nodejs/node/pull/50737/files#diff-92cef5c12223d0e61b5bb4e2799bea2728aae74330dc8cd3314642b16b1a9b07
unofficial.gni https://github.com/nodejs/node/pull/50737/files#diff-8d9a0b446fbedd04fb4027edbc93fba74d980eb7a934572a5ab7ec47019a6469
collaborator-guide.md https://github.com/nodejs/node/pull/50737/files#diff-1f1b460b267413ff2195458966c4426a76c9339417f993fa80158b089e82088e
build-addons.mjs https://github.com/nodejs/node/pull/50737/files#diff-866c1852f3de8a99582bc3ee3d4dbdb9df90995b343cf879ee2dea2b3b0c8551
build_addons.py https://github.com/nodejs/node/pull/50737/files#diff-27ca119fcaf394ebbc6d2061fba9e577aea278c4ac4ca8d6b52a377c60f79e03
install.py https://github.com/nodejs/node/pull/50737/files#diff-40ff3cce92cc995fba907b3e9c0b3a1ba608b59766654ea4832c6efaa5273893
unofficial.gni https://github.com/nodejs/node/pull/50737/files#diff-e8cf5a456ebf7f553134f4de566885ea786ab0cc428ba6bd143a3b6fa4c4324f
vcbuild.bat https://github.com/nodejs/node/pull/50737/files#diff-67745f8cde46d0a81ee94d49f2a7db1dd7aad869d8cdb0aca44ef60d127b431e
Makefilehttps://github.com/nodejs/node/pull/50737/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52
View file https://github.com/zcbenz/node/blob/da69fba975a12ed66d3a532078496f88cb466289/Makefile
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/50737/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/50737/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52
https://github.com/nodejs/node/pull/50737/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52
https://github.com/nodejs/node/pull/50737/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52
https://github.com/nodejs/node/pull/50737/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52
https://github.com/nodejs/node/pull/50737/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52
https://github.com/nodejs/node/pull/50737/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52
https://github.com/nodejs/node/pull/50737/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52
https://github.com/nodejs/node/pull/50737/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52
https://github.com/nodejs/node/pull/50737/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52
https://github.com/nodejs/node/pull/50737/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52
https://github.com/nodejs/node/pull/50737/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52
https://github.com/nodejs/node/pull/50737/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52
deps/openssl/unofficial.gnihttps://github.com/nodejs/node/pull/50737/files#diff-92cef5c12223d0e61b5bb4e2799bea2728aae74330dc8cd3314642b16b1a9b07
View file https://github.com/zcbenz/node/blob/da69fba975a12ed66d3a532078496f88cb466289/deps/openssl/unofficial.gni
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/50737/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/50737/files#diff-92cef5c12223d0e61b5bb4e2799bea2728aae74330dc8cd3314642b16b1a9b07
https://github.com/nodejs/node/pull/50737/files#diff-92cef5c12223d0e61b5bb4e2799bea2728aae74330dc8cd3314642b16b1a9b07
deps/uv/unofficial.gnihttps://github.com/nodejs/node/pull/50737/files#diff-8d9a0b446fbedd04fb4027edbc93fba74d980eb7a934572a5ab7ec47019a6469
View file https://github.com/zcbenz/node/blob/da69fba975a12ed66d3a532078496f88cb466289/deps/uv/unofficial.gni
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/50737/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/50737/files#diff-8d9a0b446fbedd04fb4027edbc93fba74d980eb7a934572a5ab7ec47019a6469
https://github.com/nodejs/node/pull/50737/files#diff-8d9a0b446fbedd04fb4027edbc93fba74d980eb7a934572a5ab7ec47019a6469
doc/contributing/collaborator-guide.mdhttps://github.com/nodejs/node/pull/50737/files#diff-1f1b460b267413ff2195458966c4426a76c9339417f993fa80158b089e82088e
View file https://github.com/zcbenz/node/blob/da69fba975a12ed66d3a532078496f88cb466289/doc/contributing/collaborator-guide.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/50737/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/50737/files#diff-1f1b460b267413ff2195458966c4426a76c9339417f993fa80158b089e82088e
Please reload this pagehttps://github.com/nodejs/node/pull/50737/files
https://github.com/nodejs/node/pull/50737/files#diff-1f1b460b267413ff2195458966c4426a76c9339417f993fa80158b089e82088e
tools/build-addons.mjshttps://github.com/nodejs/node/pull/50737/files#diff-866c1852f3de8a99582bc3ee3d4dbdb9df90995b343cf879ee2dea2b3b0c8551
View file https://github.com/nodejs/node/blob/1a8ae9d6c068e880c641b094b23fbaa442f0dbc0/tools/build-addons.mjs
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/nodejs/node/pull/50737/files
tools/build_addons.pyhttps://github.com/nodejs/node/pull/50737/files#diff-27ca119fcaf394ebbc6d2061fba9e577aea278c4ac4ca8d6b52a377c60f79e03
View file https://github.com/zcbenz/node/blob/da69fba975a12ed66d3a532078496f88cb466289/tools/build_addons.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/50737/{{ revealButtonHref }}
Please reload this pagehttps://github.com/nodejs/node/pull/50737/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.