forked from onecoolx/picasso
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
362 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
set GYP_MSVS_VERSION=2010e | ||
set GYP_MSVS_VERSION=2019 | ||
./tools/gyp/gyp --depth=./ picasso.gyp --generator-output=vcproj | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,8 @@ | ||
#!/usr/bin/env python | ||
|
||
# Copyright (c) 2009 Google Inc. All rights reserved. | ||
#!/bin/sh | ||
# Copyright 2013 The Chromium Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
import sys | ||
|
||
# TODO(mark): sys.path manipulation is some temporary testing stuff. | ||
try: | ||
import gyp | ||
except ImportError, e: | ||
import os.path | ||
sys.path.append(os.path.join(os.path.dirname(sys.argv[0]), 'pylib')) | ||
import gyp | ||
|
||
if __name__ == '__main__': | ||
sys.exit(gyp.main(sys.argv[1:])) | ||
set -e | ||
base=$(dirname "$0") | ||
exec python "${base}/gyp_main.py" "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/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. | ||
|
||
import os | ||
import sys | ||
import subprocess | ||
|
||
PY3 = bytes != str | ||
|
||
|
||
def IsCygwin(): | ||
# Function copied from pylib/gyp/common.py | ||
try: | ||
out = subprocess.Popen( | ||
"uname", stdout=subprocess.PIPE, stderr=subprocess.STDOUT | ||
) | ||
stdout, stderr = out.communicate() | ||
if PY3: | ||
stdout = stdout.decode("utf-8") | ||
return "CYGWIN" in str(stdout) | ||
except Exception: | ||
return False | ||
|
||
|
||
def UnixifyPath(path): | ||
try: | ||
if not IsCygwin(): | ||
return path | ||
out = subprocess.Popen( | ||
["cygpath", "-u", path], stdout=subprocess.PIPE, stderr=subprocess.STDOUT | ||
) | ||
stdout, _ = out.communicate() | ||
if PY3: | ||
stdout = stdout.decode("utf-8") | ||
return str(stdout) | ||
except Exception: | ||
return path | ||
|
||
|
||
# Make sure we're using the version of pylib in this repo, not one installed | ||
# elsewhere on the system. Also convert to Unix style path on Cygwin systems, | ||
# else the 'gyp' library will not be found | ||
path = UnixifyPath(sys.argv[0]) | ||
sys.path.insert(0, os.path.join(os.path.dirname(path), "pylib")) | ||
import gyp # noqa: E402 | ||
|
||
if __name__ == "__main__": | ||
sys.exit(gyp.script_main()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,23 +4,41 @@ | |
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
from distutils.core import setup | ||
from distutils.command.install import install | ||
from distutils.command.install_lib import install_lib | ||
from distutils.command.install_scripts import install_scripts | ||
from os import path | ||
|
||
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'], | ||
from setuptools import setup | ||
|
||
here = path.abspath(path.dirname(__file__)) | ||
# Get the long description from the README file | ||
with open(path.join(here, "README.md")) as in_file: | ||
long_description = in_file.read() | ||
|
||
scripts = ['gyp'], | ||
cmdclass = {'install': install, | ||
'install_lib': install_lib, | ||
'install_scripts': install_scripts}, | ||
setup( | ||
name="gyp-next", | ||
version="0.2.1", | ||
description="A fork of the GYP build system for use in the Node.js projects", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
author="Node.js contributors", | ||
author_email="[email protected]", | ||
url="https://github.com/nodejs/gyp-next", | ||
package_dir={"": "pylib"}, | ||
packages=["gyp", "gyp.generator"], | ||
entry_points={"console_scripts": ["gyp=gyp:script_main"]}, | ||
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", | ||
classifiers=[ | ||
'Development Status :: 3 - Alpha', | ||
'Environment :: Console', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: BSD License', | ||
'Natural Language :: English', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
], | ||
) |
Oops, something went wrong.