명령 줄에서 gyp 버전을 얻는 방법은 무엇입니까?
나는 여기를 보았다 : https://code.google.com/p/gyp/wiki/InputFormatReference
나는 일반적인 명령을 시도했다 -v -ver -version, --version, --help
내가 아는 한 gyp 버전을 확인하는 명령은 없습니다. 아래를 참조하십시오gyp_main.py --help
rna@rna-P580:~/project/src/tools/gyp$ ./gyp_main.py --help
Usage: gyp_main.py [options ...] [build_file ...]
Options:
-h, --help show this help message and exit
--build=CONFIGS configuration for build after project generation
--check check format of gyp files
--config-dir=CONFIG_DIR
The location for configuration files like
include.gypi.
-d DEBUGMODE, --debug=DEBUGMODE
turn on a debugging mode for debugging GYP. Supported
modes are "variables", "includes" and "general" or
"all" for all of them.
-D VAR=VAL sets variable VAR to value VAL
--depth=PATH set DEPTH gyp variable to a relative path to PATH
-f FORMATS, --format=FORMATS
output formats to generate
-G FLAG=VAL sets generator flag FLAG to VAL
--generator-output=DIR
puts generated build files under DIR
--ignore-environment do not read options from environment variables
-I INCLUDE, --include=INCLUDE
files to include in all loaded .gyp files
--no-circular-check don't check for circular relationships between files
--no-parallel Disable multiprocessing
-S SUFFIX, --suffix=SUFFIX
suffix to add to generated files
--toplevel-dir=DIR directory to use as the root of the source tree
-R TARGET, --root-target=TARGET
include only TARGET and its deep dependencies
또는 명령 줄에서 버전을 확인해야하는 경우 다음 cat ./tools/gyp/setup.py
과 같이 할 수 있습니다.
rna@rna-P580:~/project/src/tools/gyp$ cat setup.py
#!/usr/bin/env python
# Copyright (c) 2009 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from setuptools import setup
setup(
name='gyp',
version='0.1',
description='Generate Your Projects',
author='Chromium Authors',
author_email='[email protected]',
url='http://code.google.com/p/gyp',
package_dir = {'': 'pylib'},
packages=['gyp', 'gyp.generator'],
entry_points = {'console_scripts': ['gyp=gyp:script_main'] }
)
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다