Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

How to compile static library target in simulator

オープン
#3,035 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
ドキュメント
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
cpp, nodejs
領域
build-system

調査の方向性

Issue に示されている GYP static_library ターゲットと actions の例から始めます。リポジトリのファイルもテストも特定されていないため、まず node-gyp がこの構成をドキュメント化すべきか、ビルド動作を変更すべきかを判断します。完了には、期待されるワークフローの定義と、それに対応するドキュメントまたは検証が必要です。

索引モデルが issue の本文から書いたものです。

説明

I need to have the simdutf target compiled by my implementation to support the new instructions. That is, add my simulator path before the gcc/g++ command to compile this object.

{
   'variables': {
     'simdutf_sources': [
     'simdutf.cpp',
     ]
   },
   'targets': [
     {
         'target_name': 'simdutf',
         'toolsets': ['host', 'target'],
         'type': 'static_library',
         'include_dirs': ['.'],
         'direct_dependent_settings': {
         'include_dirs': ['.'],
     },
     'sources': [
         '<@(simdutf_sources)',
         ],
     },
   ]
}

If it is an action, I can use the following method to add the path of my simulator before '<(node_js2c_exec)', but for a static library target, I don't know how to modify it.

   'actions': [
   {
     'action_name': 'node_js2c',
     'process_outputs_as_sources': 1,
     'inputs': [
         '<(node_js2c_exec)',
         '<@(library_files)',
         '<@(deps_files)',
         'config.gypi'
      ],
     'outputs': [
       '<(SHARED_INTERMEDIATE_DIR)/node_javascript.cc',
       ],
     'action': [
         'my_simulator_path',
         '<(node_js2c_exec)',
         '<@(_outputs)',
         'lib',
         'config.gypi',
         '<@(deps_files)',
         '<@(linked_module_files)',
     ],
主要言語
Python
スター
10.7k
フォーク
1.9k
平均マージ
1日 4時間
マージ済み PR(30日)
5

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nodejs/node-gyp のほかの issue

nodejs/node-gyp の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。