-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Program Files や Program Files (x86) のパスを決め打ちせずに環境変数を参照する #399
Program Files や Program Files (x86) のパスを決め打ちせずに環境変数を参照する #399
Conversation
“Resolve conversation” ボタンを押してみました。 |
tools/CppCheck/readme.md
Outdated
## ロジック | ||
|
||
以下の順番でパスを検索して、見つかったパスを環境変数 `CMD_CPPCHECK` にセットする。 | ||
CMD_CPPCHECK にはダブルクオートを含む値が設定される。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
この行はもう不要ですよね。(他のファイルも同様)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
削除しました。
まだまだ知らない機能がいっぱい・・・ |
ぼくとしてはmsbuildを外してもらえればLGTM出せます。 Msbuildにパスが通っていない場合の対処に疑問があるため、これについては別件としたいです。 |
↑ このコメントに対応した修正です。
この PR は『Program Files や Program Files (x86) のパスを決め打ち』に対する修正です。 『Program Files や Program Files (x86) のパスを決め打ち』に対する修正で msbuild を除外する理由の説明は不十分だと思います。 |
#399 (comment) |
@@ -34,10 +39,8 @@ set LOG_FILE=msbuild-%platform%-%configuration%.log | |||
@rem https://msdn.microsoft.com/ja-jp/library/ms171470.aspx | |||
set LOG_OPTION=/flp:logfile=%LOG_FILE% | |||
|
|||
set MSBUILD_EXE="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
変更前のバッチファイルが誤っている気がします。
https://www.appveyor.com/docs/build-phase/
このバッチの存在目的は「appveyorでのビルドを管理しやすくする」だと思っています。
ローカルビルド手順は「sakura.slnを開いてビルド」の認識です。
このバッチは appveyor 専用、使ったとしても「 appveyor と同じ順序のビルド」を検証する人だけです。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ローカルビルド手順は「sakura.slnを開いてビルド」の認識です。
それは、ソリューションだけをビルドする場合です。
HTML ヘルプやインストーラもまとめて含めてローカルでビルドするときには
一連のバッチファイルを使います。
ぼく言ってること分かりにくいですか? |
@berryzplus さんの提案を受け入れると、逆にこの PR は中途半端になって価値を失います。 この PR は、パスを決め打ちしているのを Program Files 等の環境変数を使うようにする対応です。 なんのためにするかというと例えば 32bit OS や、C ドライブ以外にWindows をインストールした場合など しかし、 @berryzplus さんの要求のように msbuild のパスに関して、Program Files 等の環境変数を
そこが重要です。インストーラの開発をする人は必要な依存関係を一気にビルドする必要がありますが、appveyor に使っている build-all.bat を流せば、インストーラ作成まで一気にできます。 |
一応インストーラ開発環境作る為に(だけじゃないけども)、 |
う~む。状況はなんとなく把握しました。
それは困りますね。 登場する環境変数の意味がちゃんと共有できてない気がしてきました。
「可変」は、起動したcmd.exe が32bitか64bitかで変わる部分です。 |
そんなに技術的に難しいわけではなく、かつ実現方法が見えているのに 以前、 #148 で、git のリポジトリ外でビルドしたときにビルドエラーが発生すると これは git リポジトリ外でビルドした場合、 サクラエディタの開発メンバー視点では、git リポジトリの中でビルドする前提だったので しかし、#148 (comment) 同様の視点で、 |
この話はあんまり関係ないのかな、と思いました。 で、色々状況把握した結果、やはり 2287d4c の追加コミットの辻褄が合わないように思います。 |
This reverts commit 2287d4c.
問題なければ approve お願いします。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTMです。
対応ありがとうございます。環境変数の判定順序が少し気になっていたのですが、そちらはまた気の向いたときに対応したいと考えています。しばらくこれで行きましょう。
…ined-program-files-env Program Files や Program Files (x86) のパスを決め打ちせずに環境変数を参照する
#395: Program Files や Program Files (x86) のパスを決め打ちせずに環境変数を参照する
以下の環境変数を元に以下の順番で各種プログラムのパスを検索する
tools/hhc/readme.md にバッチファイルを組む、使う上での注意事項を記載している